:root {
  --bg: #f6f7fb;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --text: #0b0d12;
  --muted: #5b6475;
  --accent: #22d3ee;
  --accent-2: #3b6bff;
  --stroke: rgba(15, 23, 42, 0.12);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: radial-gradient(circle at top left, #eef2ff 0%, #f7f8fc 48%, #ffffff 100%);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"%3E%3Cfilter id="n" x="0" y="0" width="1" height="1"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="160" height="160" filter="url(%23n)" opacity="0.04"/%3E%3C/svg%3E');
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.08em;
}

.logo-mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(124, 245, 195, 0.6);
}

.logo-text {
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: relative;
  z-index: 12;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #3b6bff, #1d3dbb);
  color: #ffffff;
  font-weight: 700;
  text-shadow: none;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 70px rgba(124, 155, 255, 0.35);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke);
  box-shadow: none;
}

.btn.ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.nav .btn.btn-sm {
  color: #ffffff;
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--bg);
  color: var(--text);
}

.hero {
  position: relative;
  padding: 110px 0 120px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.3;
  margin: 16px 0 20px;
}

.hero-copy .accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.hero-metrics {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.metric {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
}

.metric-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Browser mockup */
.hero-browser {
  width: 100%;
  max-width: 460px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.browser-dot:first-child { background: #fca5a5; }
.browser-dot:nth-child(2) { background: #fcd34d; }
.browser-dot:nth-child(3) { background: #86efac; }

.browser-url {
  margin-left: 10px;
  font-size: 0.75rem;
  color: #94a3b8;
  background: #ffffff;
  padding: 3px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  flex: 1;
}

.browser-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dash-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-card.wide {
  grid-column: 1 / -1;
}

.dash-label {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 500;
}

.dash-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

.dash-change {
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-self: flex-start;
}

.dash-change.up {
  color: #16a34a;
}

.dash-chart-area {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}

.dash-chart-label {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 500;
  display: block;
  margin-bottom: 10px;
}

.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
  padding-bottom: 20px;
}

.dash-bar {
  flex: 1;
  background: linear-gradient(180deg, #93c5fd, #3b82f6);
  border-radius: 4px 4px 0 0;
  position: relative;
  min-height: 8px;
  animation: barGrow 1.2s ease-out forwards;
  transform-origin: bottom;
}

.dash-bar.accent {
  background: linear-gradient(180deg, #7cf5c3, #1d3dbb);
}

.dash-bar span {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  color: #94a3b8;
  white-space: nowrap;
}

@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  opacity: 0.7;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section.alt {
  background: linear-gradient(160deg, rgba(240, 244, 255, 0.85), rgba(255, 255, 255, 0.92));
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.section-head p {
  color: var(--muted);
  max-width: 460px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card, .case-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.card h3, .case-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 12px;
}

.tag-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag-list li {
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--muted);
}

.tag-list span {
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--muted);
  display: inline-flex;
}

.tag-list-sm {
  gap: 6px;
  margin-top: 8px;
}

.tag-list-sm span {
  font-size: 0.7rem;
  padding: 3px 8px;
}

.timeline {
  display: grid;
  gap: 24px;
}

.step {
  background: #ffffff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow);
}

.step-index {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  color: var(--accent);
}

.case-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* Process scroll swap */
.process-section {
  overflow: hidden;
}

.process-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 400px;
}

.process-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 480 / 400;
}

.process-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-img.active {
  opacity: 1;
  transform: scale(1);
}

.process-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.process-bg-num {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-55%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(8rem, 16vw, 14rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.06;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.process-content {
  position: relative;
  min-height: 160px;
  width: 100%;
}

.process-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.process-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.process-slide h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin-bottom: 16px;
}

.process-slide p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.process-dots {
  display: flex;
  gap: 12px;
  margin-top: 180px;
}

.process-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.process-dot span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.3s ease;
}

.process-dot.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  transform: scale(1.15);
  box-shadow: 0 4px 20px rgba(59, 107, 255, 0.3);
}

.process-dot.active span {
  color: #ffffff;
}

.process-dot:hover:not(.active) {
  border-color: var(--accent-2);
}

@media (max-width: 900px) {
  .process-stage {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-visual {
    max-width: 320px;
    margin: 0 auto;
  }

  .process-body {
    text-align: center;
    align-items: center;
  }

  .process-bg-num {
    left: 50%;
    transform: translate(-50%, -55%);
  }
}

@media (max-width: 640px) {
  .process-stage {
    min-height: auto;
  }

  .process-visual {
    max-width: 260px;
  }

  .process-dots {
    margin-top: 160px;
  }
}

/* Approach horizontal scroll */
.approach-section {
  overflow: hidden;
}

.approach-track {
  display: flex;
  gap: 24px;
  padding: 0 calc((100vw - 1120px) / 2 + 24px);
  width: max-content;
}

.approach-track .case-card {
  width: 360px;
  min-width: 360px;
  flex-shrink: 0;
}

.center {
  text-align: center;
  margin-top: 24px;
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.contact-info {
  margin-top: 20px;
  color: var(--muted);
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 28px;
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: #ffffff;
  color: var(--text);
}

.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: #ffffff;
  color: var(--text);
}

.form-actions {
  display: grid;
  gap: 10px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.about-dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px 24px;
}
.about-dl dt {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.about-dl dd {
  margin: 0;
}
.about-dl dd a {
  color: var(--accent-2);
}

.confirm-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
}
.confirm-dl dt {
  font-size: 0.9rem;
  color: var(--muted);
}
.confirm-dl dd {
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 32px 0;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

/* 404 page */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 0 80px;
}

.error-code {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  margin-bottom: 8px;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.error-message {
  color: var(--muted);
  margin-bottom: 32px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-hero {
  padding-top: 120px;
}

.page-hero .lead {
  max-width: 640px;
}

/* Service page CTA */
.service-cta {
  text-align: center;
}

.service-cta h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 16px;
}

.service-cta p {
  color: var(--muted);
  margin-bottom: 28px;
}

.service-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.search {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #d7dbe6;
  background: #ffffff;
  color: #0b0d12;
}
.search::placeholder { color: #94a3b8; }

.tag-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-height: 42px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.tag-filter.expanded {
  max-height: 600px;
}

.tag-filter button {
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

.tag-filter button.active {
  border-color: var(--accent);
  color: var(--text);
}

.tag-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 0;
  align-self: flex-start;
}
.tag-toggle:hover { text-decoration: underline; }

.blog-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--stroke);
  display: grid;
  gap: 10px;
  transition: transform 0.3s ease, border 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 245, 195, 0.6);
}

.blog-thumb {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  background: none;
  background-size: cover;
  background-position: center;
  border: none;
}

.blog-card .meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.blog-card .tag-list {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.blog-card .tag-list span {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--muted);
  opacity: 0.7;
}

.page-post,
.page-blog {
  background: #ffffff;
}

.page-post .section,
.page-blog .section {
  background: #ffffff;
  padding-top: 40px;
}

.post {
  max-width: 1200px;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.post-main {
  min-width: 0;
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-section {
  background: #ffffff;
  border: 1px solid #e6e8ef;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e6e8ef;
}

.sidebar-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.sidebar-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-item:first-of-type {
  padding-top: 0;
}

.sidebar-item:hover .sidebar-item-title {
  color: #1d3dbb;
}

.sidebar-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #e2e8f0;
  background-size: cover;
  background-position: center;
  flex: 0 0 48px;
}

.sidebar-item-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.sidebar-item-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

@media (max-width: 900px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .post-sidebar {
    position: static;
  }
}

.post-header .lead {
  max-width: none;
  margin-top: 20px;
}

.post-header .meta {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.post-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.15;
  margin: 0;
  color: #0b0d12;
}

.post-hero {
  width: 100%;
  aspect-ratio: 5 / 3;
  border-radius: var(--radius-md);
  background: none;
  background-size: cover;
  background-position: center;
  border: none;
  margin-top: 20px;
}

/* TOC */
.post-toc {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-top: 28px;
}

.post-toc-title {
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: #0b0d12;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.post-toc .toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-toc .toc-list .toc-list {
  padding-left: 20px;
  margin-top: 6px;
}

.post-toc .toc-list li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.post-toc .toc-list > li::before {
  content: '\25B6';
  font-size: 0.55rem;
  color: #94a3b8;
  margin-right: 8px;
  vertical-align: middle;
}

.post-toc > .toc-list > li::before {
  content: '\25CF';
  font-size: 0.6rem;
  color: #0b0d12;
}

.post-toc .toc-list a {
  color: #334155;
  text-decoration: none;
  font-size: 0.92rem;
}

.post-toc .toc-list a:hover {
  color: #1d3dbb;
}

.post-content {
  display: grid;
  gap: 24px;
  margin-top: 24px;
  color: var(--muted);
  line-height: 2;
}

.post-content h1 {
  color: #0b0d12;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  line-height: 1.2;
  margin-top: 40px;
}

.post-content h2 {
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  margin-top: 32px;
}

.post-content h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin-top: 20px;
}

.post-content section {
  margin-top: 40px;
}

.post-content ul,
.post-content ol {
  padding-left: 1.8em;
}

.post-content li {
  margin-bottom: 4px;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 16px 0;
}

.post-content thead th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
}

.post-content tbody td {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.post-content tbody tr:hover {
  background: #f8fafc;
}

.back-link {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Blog CTA box */
.point_box {
  margin-top: 48px;
  padding: 40px 36px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  border: 1px solid #d0daf0;
  border-radius: 16px;
  text-align: center;
}

.point_box h2 {
  font-size: 1.35rem;
  color: #1d3dbb;
  margin-top: 0;
}

.point_box p {
  color: #334155;
  line-height: 1.9;
}

.point_box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 12px 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b6bff, #1d3dbb);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(59, 107, 255, 0.25);
  transition: box-shadow 0.2s, transform 0.15s;
}

.point_box a:hover {
  box-shadow: 0 8px 24px rgba(59, 107, 255, 0.35);
  transform: translateY(-2px);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 9;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-2);
  color: #ffffff;
  border-color: var(--accent-2);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
}

@media (max-width: 900px) {
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 11;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 80vw);
    height: 100dvh;
    background: #ffffff;
    padding: 28px;
    padding-top: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 12;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
    display: flex !important;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav > a,
  .nav > .nav-dropdown > .nav-dropdown-toggle {
    display: block;
    padding: 14px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--stroke);
    text-align: left;
    width: 100%;
  }

  .nav > a:hover,
  .nav > .nav-dropdown > .nav-dropdown-toggle:hover {
    color: var(--accent-2);
  }

  .nav .btn.btn-sm {
    margin-top: 24px;
    padding: 14px 24px;
    font-size: 0.95rem;
    text-align: center;
    border-radius: 999px;
    width: 100%;
    justify-content: center;
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    z-index: 13;
  }

  .nav-dropdown {
    position: static;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 400px;
  }

  .nav-dropdown-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }

  .nav-dropdown-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 8px;
  }

  .nav-dropdown.open .nav-dropdown-toggle::after {
    transform: rotate(-135deg);
  }

  .nav-dropdown-menu a {
    padding: 10px 0;
    color: var(--muted);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
  }

  .nav-dropdown-menu a:last-child {
    border-bottom: none;
  }

  .nav-dropdown-menu a:hover {
    background: transparent;
    color: var(--accent-2);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 90px 0;
  }

  .hero-metrics {
    flex-direction: column;
  }

  .glass-card {
    inset: 18% 5% 5% 10%;
  }
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

.pricing-card {
  background: var(--card);
  border: 2px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.pricing-card.recommended {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px var(--accent-2), var(--shadow);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 20px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-plan {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--muted);
}
.pricing-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}
.pricing-server-fee {
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 12px;
}
.pricing-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
  flex: 1;
}
.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--stroke);
  font-size: 0.9rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pricing-features li::before {
  content: "✓";
  color: var(--accent-2);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 12px;
}

.pricing-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--card);
  border: 2px solid var(--accent-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--accent-2), var(--shadow);
  overflow: hidden;
}
.pricing-single-left {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid var(--stroke);
}
.pricing-single-left .pricing-plan {
  margin-bottom: 8px;
}
.pricing-single-left .pricing-price {
  margin-bottom: 8px;
}
.pricing-single-left .pricing-desc {
  margin-bottom: 28px;
}
.pricing-single-right {
  padding: 40px;
  display: flex;
  align-items: center;
}
.pricing-single-right .pricing-features {
  margin-bottom: 0;
  width: 100%;
}
@media (max-width: 768px) {
  .pricing-single {
    grid-template-columns: 1fr;
  }
  .pricing-single-left {
    padding: 36px 28px 28px;
    border-right: none;
    border-bottom: 1px solid var(--stroke);
  }
  .pricing-single-right {
    padding: 28px;
  }
}

.blog-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}
.pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}
.pager-btn:hover:not(.disabled):not(.active) {
  border-color: var(--accent-2);
  color: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.pager-btn.active {
  background: linear-gradient(135deg, #3b6bff, #1d3dbb);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow);
}
.pager-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.pager-dots {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
