/* ============================================================
   ROAMII — 智慧文旅 AI API 平台
   Design System v2 · 数字丝路
   ============================================================ */

/* --- Font Face --- */
@font-face {
  font-family: 'DIN Bold';
  src: url('../fonts/din-bold-2.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Variables --- */
:root {
  --brand: #473FE6;
  --brand-dark: #362EB4;
  --brand-light: #F3F0FF;
  --brand-glow: rgba(71,63,230,.12);

  --dark: #1A1A1A;
  --dark-soft: #555555;
  --gray: #666666;
  --gray-light: #999999;
  --bg: #F5F5F5;
  --card: #FFFFFF;
  --border: #E0E0E0;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.08);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.10);

  --ease: cubic-bezier(.22,1,.36,1);
  --ease-out: cubic-bezier(0,0,.2,1);
  --max-w: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-orb, .hero-ring, .hero-line, .hero-blob, .hero-pattern::before, .hero-pattern::after, .hero::after {
    display: none;
  }
  .hero {
    animation: none;
    background: linear-gradient(170deg, #F5F5F5 0%, #FAFAFA 25%, #F0EDFF 50%, #F5F5F5 100%);
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  font-weight: 400;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: 'DIN Bold', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(28px, 3.5vw, 42px); }
h3 { font-size: 20px; }

p { color: var(--gray); line-height: 1.65; }

a { color: var(--brand); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--brand-dark); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute; top: -100px; left: 20px;
  background: var(--brand); color: #fff; padding: 10px 20px;
  border-radius: 0 0 8px 8px; font-size: 14px; font-weight: 600;
  text-decoration: none; z-index: 200;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 0; }

/* --- Container --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* --- Navbar --- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc((100% - var(--max-w)) / 2 + 32px);
  height: 68px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 21px; font-weight: 800;
  color: var(--dark);
  letter-spacing: -.03em;
}

.nav-logo-img {
  height: 24px;
  width: auto;
  display: block;
}

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-cta-mobile { display: none; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--gray);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--dark); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 600;
  color: #fff;
  background: var(--brand);
  padding: 10px 24px; border-radius: 10px;
  border: none; cursor: pointer;
  transition: background .3s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(71,63,230,.2);
}
.nav-cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(71,63,230,.3);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; z-index: 110;
}
.nav-toggle-bar {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Section --- */
.section { padding: 100px 0; }
.section:nth-child(even) { background: #FAFAFA; }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--brand);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 16px;
  color: var(--dark);
}
.section-sub {
  font-size: 17px; color: var(--gray);
  max-width: 620px;
  margin-bottom: 48px;
  line-height: 1.65;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 100px 0 120px;
  text-align: center;
  background: linear-gradient(170deg, #F5F5F5 0%, #FAFAFA 25%, #F0EDFF 50%, #F3F0FF 75%, #F5F5F5 100%);
  background-size: 200% 200%;
  animation: hero-gradient 12s infinite ease-in-out;
  overflow: hidden;
}

@keyframes hero-gradient {
  0%, 100% { background-position: 0% 0%; }
  25% { background-position: 50% 30%; }
  50% { background-position: 100% 60%; }
  75% { background-position: 50% 100%; }
}

/* Animated bg orbs */
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .22;
  animation: orb-float 20s infinite ease-in-out;
}
.hero-orb:nth-child(1) {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(71,63,230,.15), transparent);
  top: -250px; left: -150px;
  animation-delay: 0s;
}
.hero-orb:nth-child(2) {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(54,46,180,.12), transparent);
  bottom: -200px; right: -80px;
  animation-delay: -7s;
  animation-duration: 24s;
}
.hero-orb:nth-child(3) {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(71,63,230,.10), transparent);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation-delay: -14s;
  animation-duration: 28s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  25% { transform: translate(40px,-50px) scale(1.1); }
  50% { transform: translate(-30px,25px) scale(.92); }
  75% { transform: translate(-50px,-15px) scale(1.06); }
}

/* Abstract geometric rings */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(71,63,230,.12);
  pointer-events: none;
}
.hero-ring:nth-child(4) {
  width: 320px; height: 320px;
  top: 10%; left: -60px;
  animation: ring-rotate 15s infinite linear;
}
.hero-ring:nth-child(5) {
  width: 240px; height: 240px;
  bottom: 15%; right: -40px;
  border-color: rgba(71,63,230,.08);
  border-style: dashed;
  animation: ring-rotate 20s infinite linear reverse;
}

@keyframes ring-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Floating abstract lines */
.hero-line {
  position: absolute;
  pointer-events: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(71,63,230,.15), transparent);
  transform-origin: left center;
}
.hero-line:nth-child(6) {
  width: 300px;
  top: 25%; left: 10%;
  animation: line-sweep 8s infinite ease-in-out;
}
.hero-line:nth-child(7) {
  width: 200px;
  bottom: 30%; right: 5%;
  animation: line-sweep 10s infinite ease-in-out .5s;
  transform-origin: right center;
}

@keyframes line-sweep {
  0%, 100% { transform: translateX(0) rotate(-8deg); opacity: 0; }
  25%, 75% { opacity: .7; }
  50% { transform: translateX(40px) rotate(-3deg); opacity: .4; }
}

/* Morphing abstract blob */
.hero-blob {
  position: absolute; pointer-events: none;
  width: 180px; height: 180px;
  top: 55%; left: 5%;
  background: radial-gradient(circle, rgba(71,63,230,.05), transparent);
  border: 1px solid rgba(71,63,230,.08);
  animation: blob-morph 12s infinite ease-in-out;
}

@keyframes blob-morph {
  0%, 100% { border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; transform: translate(0,0) rotate(0deg); }
  25% { border-radius: 30% 60% 70% 40%/50% 60% 30% 60%; transform: translate(20px,-15px) rotate(90deg); }
  50% { border-radius: 40% 50% 60% 30%/70% 40% 50% 30%; transform: translate(-10px,-25px) rotate(180deg); }
  75% { border-radius: 70% 30% 40% 60%/40% 70% 30% 50%; transform: translate(-20px,10px) rotate(270deg); }
}

/* Animated dot particle pattern */
.hero-pattern {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-pattern::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(71,63,230,.10) 1.5px, transparent 1.5px),
    radial-gradient(circle at 80% 70%, rgba(54,46,180,.07) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(71,63,230,.05) 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px, 100px 100px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  animation: pattern-drift 30s infinite linear;
}
.hero-pattern::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 70% 20%, rgba(71,63,230,.06) 1px, transparent 1px),
    radial-gradient(circle at 30% 80%, rgba(54,46,180,.04) 1px, transparent 1px);
  background-size: 120px 120px, 90px 90px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  animation: pattern-drift 40s infinite linear reverse;
}

@keyframes pattern-drift {
  0% { transform: translate(0,0); }
  25% { transform: translate(10px,-5px); }
  50% { transform: translate(-5px,10px); }
  75% { transform: translate(-10px,-5px); }
  100% { transform: translate(0,0); }
}

/* Floating light streaks */
.hero::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(71,63,230,.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(71,63,230,.04) 0%, transparent 50%);
  animation: hero-glow 8s infinite ease-in-out alternate;
  z-index: 0;
}

@keyframes hero-glow {
  0% { opacity: .4; transform: scale(1); }
  100% { opacity: .8; transform: scale(1.05); }
}

.hero .container { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--dark);
}
.hero h1 span {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--gray);
  max-width: 560px; margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-metrics {
  display: flex; justify-content: center; gap: 48px;
  margin-bottom: 40px;
}
.hero-metric { text-align: center; }
.hero-metric .val {
  font-size: 28px; font-weight: 800;
  color: var(--brand);
}
.hero-metric .val span {
  font-size: 16px; font-weight: 500;
  color: var(--gray-light);
}
.hero-metric .lbl {
  font-size: 12px; color: var(--gray-light);
  text-transform: uppercase; letter-spacing: .08em;
  margin-top: 4px;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Buttons --- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  color: #fff;
  background: var(--brand);
  padding: 15px 36px; border-radius: 12px;
  border: none; cursor: pointer;
  transition: background .3s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(71,63,230,.25);
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(71,63,230,.3);
  color: #fff;
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  color: var(--dark); background: transparent;
  padding: 15px 36px; border-radius: 12px;
  border: 1.5px solid var(--border);
  cursor: pointer; text-decoration: none;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .25s var(--ease);
}
.btn-outline:hover {
  border-color: var(--dark);
  background: var(--bg);
  transform: translateY(-1px);
  color: var(--dark);
}

/* Hero buttons — same style as global */

/* --- Cards --- */
.card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 36px;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease);
  position: relative; overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0,0,0,.03), transparent 40%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.card:hover::before { opacity: 1; }
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(0,0,0,.08);
}
.card > * { position: relative; z-index: 1; }

.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-light);
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--brand);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover .card-icon {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: 10px; font-size: 19px; }
.card p { font-size: 14px; line-height: 1.6; }

/* --- Grid --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

/* --- Stat Cards --- */
.stat-card {
  text-align: center; padding: 40px 20px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0,0,0,.06);
  transform: translateY(-2px);
}
.stat-value {
  font-size: 48px; font-weight: 800;
  color: var(--dark);
  letter-spacing: -.025em;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-unit { font-size: 18px; font-weight: 600; color: var(--gray); }
.stat-label { font-size: 13px; color: var(--gray-light); margin-top: 8px; }

/* --- Why ROAMII (Bento Grid) --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  position: relative;
  display: flex; flex-direction: column;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.why-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,0,0,.08);
  transform: translateY(-3px);
}

.why-num {
  font-size: 56px; font-weight: 800;
  color: var(--brand-light);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -.04em;
}

.why-card h3 {
  font-size: 24px; font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--dark);
}
.why-card p {
  font-size: 15px; color: var(--gray);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 24px;
}

.why-metric {
  display: flex; align-items: baseline; gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.why-value {
  font-size: 32px; font-weight: 800;
  letter-spacing: -.03em;
  color: var(--dark);
  line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.why-unit { font-size: 16px; font-weight: 600; color: var(--gray); margin-left: 2px; }
.why-desc { font-size: 13px; color: var(--gray-light); line-height: 1.4; }

/* --- Solution Cards --- */
.solution-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 36px;
  text-decoration: none; color: inherit;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease);
  display: block;
  position: relative; overflow: hidden;
}
.solution-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(0,0,0,.08);
  color: inherit;
}
.solution-card .card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  background: var(--brand-light);
  color: var(--brand);
}
.solution-card .card-icon.museum   { background: #F3F0FF; color: #5B3CC4; }
.solution-card .card-icon.scenic   { background: #EDF7F2; color: #228B5F; }
.solution-card .card-icon.heritage { background: #FDF6ED; color: #C7923C; }
.solution-card .card-icon.campus   { background: #EEF4FB; color: #3C7BC4; }
.solution-card h3 { margin-bottom: 10px; font-size: 18px; }
.solution-card p { font-size: 14px; color: var(--gray); margin-bottom: 16px; }

/* --- Case Cards --- */
.case-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease);
}
.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(0,0,0,.06);
}
.case-body { padding: 28px 32px 32px; }
.case-tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 6px;
  margin-bottom: 14px;
  background: var(--brand-light); color: var(--brand);
}
.case-tag.museum   { background: #F3F0FF; color: #5B3CC4; }
.case-tag.scenic   { background: #EDF7F2; color: #228B5F; }
.case-tag.heritage { background: #FDF6ED; color: #C7923C; }
.case-tag.campus   { background: #EEF4FB; color: #3C7BC4; }
.case-stats {
  display: flex; gap: 28px;
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--border);
}
.case-stat { text-align: center; }
.case-stat .val {
  font-size: 22px; font-weight: 700;
  color: var(--brand);
}
.case-stat .lbl { font-size: 11px; color: var(--gray-light); margin-top: 2px; }

/* --- CTA Section --- */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(160deg, #F5F5F5, #E8E8E8);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 25% 50%, rgba(0,0,0,.04), transparent),
    radial-gradient(ellipse 40% 50% at 75% 30%, rgba(0,0,0,.02), transparent);
  pointer-events: none;
}
.cta-section .container {
  position: relative; z-index: 2;
  text-align: center;
}
.cta-section h2 {
  color: var(--dark);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.cta-section p {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* --- Feature Row --- */
.feature-row {
  display: flex; align-items: center; gap: 72px;
  padding: 48px 0;
}
.feature-row:nth-child(even) { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-text h3 { font-size: 28px; margin-bottom: 18px; }
.feature-text p { font-size: 15px; line-height: 1.65; }
.feature-visual {
  flex: 1;
  background: linear-gradient(135deg, var(--brand-light), #FFF);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.04);
  padding: 44px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  transition: box-shadow .4s var(--ease);
}
.feature-visual:hover { box-shadow: 0 12px 40px rgba(0,0,0,.06); }

.flow-diagram { display: flex; align-items: center; gap: 20px; }
.flow-node {
  width: 68px; height: 68px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--brand);
}
.flow-node svg { width: 28px; height: 28px; }
.flow-arrow { font-size: 24px; color: var(--gray-light); font-weight: 300; }
.flow-label { font-size: 13px; color: var(--gray); margin-top: 10px; }

.shield-visual { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.shield-icon { width: 80px; height: 96px; color: var(--brand); }
.shield-stats { display: flex; gap: 36px; margin-top: 8px; }
.shield-stat { text-align: center; }
.shield-stat .val { font-size: 22px; font-weight: 700; color: var(--dark); }
.shield-stat .lbl { font-size: 12px; color: var(--gray-light); }

.lang-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lang-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 14px; font-weight: 600;
  color: var(--dark);
  transition: all .3s var(--ease);
}
.lang-tag:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}

.cms-flow { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cms-arrow-down {
  color: var(--brand);
  font-size: 22px;
  animation: bounce-down 2s infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* --- Pricing Cards (legacy) --- */
.pricing-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 40px 36px;
  text-align: center;
  position: relative;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.pricing-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-glow);
  background: linear-gradient(180deg, #F5F5F5, #fff);
}
.pricing-card h4 { font-size: 19px; margin-bottom: 8px; }
.pricing-price {
  font-size: 52px; font-weight: 800;
  margin: 18px 0 4px;
  color: var(--brand);
}
.pricing-unit { font-size: 15px; color: var(--gray); margin-bottom: 28px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-features li {
  padding: 9px 0; font-size: 14px; color: var(--gray);
  border-bottom: 1px solid var(--border);
}
.pricing-features li::before { content: '✓ '; color: var(--brand); font-weight: 700; }
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 5px 18px; border-radius: 20px;
  box-shadow: 0 4px 12px rgba(71,63,230,.25);
}

/* --- Pricing Showcase (redesigned) --- */
.pricing-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  align-items: stretch;
}

/* ===== Plan Card ===== */
.plan-card {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.plan-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

/* Featured card */
.plan-card.featured {
  border-color: var(--plan-accent, var(--brand));
  box-shadow: 0 0 0 5px var(--plan-glow, var(--brand-glow)), 0 4px 24px rgba(0,0,0,.06);
  transform: scale(1.03);
  z-index: 2;
}
.plan-card.featured:hover { transform: scale(1.03) translateY(-6px); }

/* Card header with gradient */
.plan-card .plan-head {
  padding: 32px 28px 28px;
  text-align: center;
  position: relative;
}
.plan-card .plan-tier {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--plan-accent, var(--brand));
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(4px);
  padding: 4px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* Price block */
.plan-card .plan-price-block {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  margin-bottom: 8px;
}
.plan-card .plan-currency {
  font-size: 24px; font-weight: 700;
  color: var(--dark-soft);
  align-self: flex-start;
  margin-top: 8px;
}
.plan-card .plan-amount {
  font-size: 52px; font-weight: 700;
  color: var(--plan-accent, var(--brand));
  line-height: 1;
  letter-spacing: -.03em;
}
.plan-card .plan-amount small {
  font-size: 20px; font-weight: 600;
  letter-spacing: 0;
}
.plan-card .plan-unit {
  font-size: 14px; color: var(--gray-light);
  font-weight: 500;
  align-self: flex-end;
  margin-bottom: 8px;
}
.plan-card .plan-subtitle {
  font-size: 13px; color: var(--gray);
  line-height: 1.5;
  margin: 0;
}

/* Card body */
.plan-card .plan-body {
  padding: 0 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Feature list */
.plan-card .plan-features {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}
.plan-card .plan-features li {
  font-size: 13px; line-height: 1.5;
  color: var(--dark-soft);
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-card .plan-features li svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--plan-accent, var(--brand));
}
.plan-card .plan-features li.pf-disabled {
  color: var(--gray-light);
}
.plan-card .plan-features li.pf-disabled svg {
  color: var(--gray-light);
  opacity: .4;
}

/* CTA button */
.plan-card .plan-cta {
  display: block; text-align: center;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px; font-weight: 600;
  background: var(--plan-accent, var(--brand));
  color: #fff;
  text-decoration: none;
  transition: opacity .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.plan-card .plan-cta:hover {
  opacity: .92;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  transform: translateY(-1px);
}
.plan-card .plan-cta.outline {
  background: transparent;
  color: var(--plan-accent, var(--brand));
  border: 2px solid var(--plan-accent, var(--brand));
}
.plan-card .plan-cta.outline:hover {
  background: var(--plan-accent, var(--brand));
  color: #fff;
}

/* Feature comparison table */
.compare-table-wrap {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 40px;
}
.compare-table-wrap h3 {
  padding: 28px 36px 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.compare-table thead th {
  text-align: center;
  padding: 16px 20px;
  font-size: 14px; font-weight: 700;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}
.compare-table thead th:first-child {
  text-align: left;
  padding-left: 36px;
  font-size: 13px;
  color: var(--gray-light);
  font-weight: 600;
  letter-spacing: .04em;
}
.compare-table thead th .ct-accent {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}
.compare-table tbody td {
  text-align: center;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--dark-soft);
  border-bottom: 1px solid var(--border);
}
.compare-table tbody td:first-child {
  text-align: left;
  padding-left: 36px;
  font-weight: 600;
  color: var(--dark);
}
.compare-table tbody td .ct-yes { color: var(--plan-accent, var(--brand)); font-weight: 700; font-size: 16px; }
.compare-table tbody td .ct-no  { color: var(--gray-light); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: var(--bg); }

/* Comparison table: category group headers */
.compare-table tbody tr.ct-group td {
  font-weight: 700;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-bottom: 2px solid rgba(0,0,0,.06);
}
.compare-table tbody tr.ct-group td:first-child {
  padding-left: 36px;
  font-size: 12px;
}

/* Enterprise highlight card */
.enterprise-card {
  background: linear-gradient(135deg, #1A1A1A, #000);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  margin-bottom: 32px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 48px;
}
.enterprise-card .ec-left { flex: 1; }
.enterprise-card .ec-left h2 {
  font-size: 26px; font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
  color: #fff;
}
.enterprise-card .ec-left .ec-desc {
  font-size: 15px; line-height: 1.6;
  color: rgba(255,255,255,.65);
  margin-bottom: 20px;
}
.enterprise-card .ec-left .ec-tags {
  display: flex; flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.enterprise-card .ec-left .ec-tags span {
  font-size: 12px; font-weight: 600;
  padding: 5px 14px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
}
.enterprise-card .ec-right {
  text-align: center;
  flex-shrink: 0;
}
.enterprise-card .ec-right .ec-price {
  font-size: 48px; font-weight: 700;
  color: #888;
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 4px;
}
.enterprise-card .ec-right .ec-price small {
  font-size: 20px; font-weight: 600;
  color: rgba(255,255,255,.45);
}
.enterprise-card .ec-right .ec-unit {
  font-size: 13px; color: rgba(255,255,255,.45);
  margin-bottom: 20px;
}
.enterprise-card .ec-right .ec-cta {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  background: #1A1A1A;
  color: #fff;
  text-decoration: none;
  transition: opacity .3s var(--ease);
}
.enterprise-card .ec-right .ec-cta:hover { opacity: .85; }

/* Revenue share card */
.rev-share-card {
  background: linear-gradient(135deg, #F5F5F5, #E8E8E8);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,.08);
  padding: 40px 44px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.rev-share-card .rs-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: #1A1A1A;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 28px;
}
.rev-share-card .rs-body { flex: 1; }
.rev-share-card .rs-body h3 {
  font-size: 20px; font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 8px;
}
.rev-share-card .rs-body p {
  font-size: 14px; color: #555;
  line-height: 1.6;
}
.rev-share-card .rs-body .rs-proof {
  display: flex; gap: 24px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.rev-share-card .rs-body .rs-proof span {
  font-size: 12px; font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.7);
  color: #1A1A1A;
}
.rev-share-card .rs-pct {
  text-align: center;
  flex-shrink: 0;
}
.rev-share-card .rs-pct .rs-big {
  font-size: 44px; font-weight: 700;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -.03em;
}
.rev-share-card .rs-pct .rs-sub {
  font-size: 13px; color: #555;
}

/* FAQ (modern) */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.faq-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 24px 28px;
  transition: border-color .3s var(--ease);
}
.faq-item:hover { border-color: rgba(0,0,0,.12); }
.faq-item h4 {
  font-size: 15px; font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
  display: flex; align-items: center; gap: 10px;
}
.faq-item h4 .faq-q {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--brand-light);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.faq-item p {
  font-size: 13px; color: var(--gray);
  line-height: 1.6;
  padding-left: 34px;
}

/* --- Page Hero (sub pages) --- */
.page-hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(170deg, #F5F5F5 0%, #FAFAFA 30%, #F0F0F0 60%, #F8F8F8 100%);
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .section-label { margin-bottom: 16px; }
.page-hero h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--dark);
}
.page-hero p { font-size: 17px; color: var(--gray); max-width: 540px; margin: 0 auto; }

/* --- Tag --- */
.tag {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 6px;
  background: var(--brand-light); color: var(--brand);
  margin-top: 20px;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
  background: var(--card);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer h4 { font-size: 14px; font-weight: 600; margin-bottom: 18px; color: var(--dark); }
.footer a, .footer p { font-size: 13px; color: var(--gray); display: block; margin-bottom: 10px; }
.footer a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--gray-light);
  display: flex; justify-content: space-between;
}

/* --- Icon Wrapper --- */
.icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand-light); color: var(--brand);
}
.icon-wrap svg { width: 24px; height: 24px; }

/* --- Code Block --- */
.code-block {
  background: #F5F5F5;
  color: #333;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px; line-height: 1.75;
  overflow-x: auto;
  margin: 18px 0 28px;
}
.code-block .keyword { color: var(--brand); }
.code-block .string { color: var(--brand-dark); }
.code-block .comment { color: var(--gray-light); }
.code-block .func { color: #333; }

/* --- Data Table --- */
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px; margin: 28px 0;
}
.data-table th {
  background: var(--bg); text-align: left;
  padding: 14px 18px; font-weight: 600;
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.data-table strong {
  font-family: inherit;
}
.data-table tbody tr { transition: background .2s; }
.data-table tbody tr:hover { background: var(--brand-light); }

/* --- API Detail --- */
.api-detail {
  display: grid; grid-template-columns: 280px 1fr; gap: 56px;
  padding: 0 0 80px;
}
.api-sidebar { position: sticky; top: 92px; align-self: start; }
.api-sidebar h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-light); margin-bottom: 14px; }
.api-sidebar a {
  display: block; font-size: 14px; color: var(--gray);
  padding: 9px 14px; border-radius: 8px;
  margin-bottom: 4px;
  transition: background .2s, color .2s;
}
.api-sidebar a:hover, .api-sidebar a.active { background: var(--brand-light); color: var(--brand); }

.api-content h2 { margin: 48px 0 18px; font-size: 26px; }
.api-content h2:first-of-type { margin-top: 0; }
.api-content p { margin-bottom: 18px; font-size: 15px; }

/* --- Solution Detail --- */
.solution-hero { padding: 48px 0 0; text-align: center; }
.solution-hero h2 { font-size: 28px; margin-bottom: 8px; }
.solution-card-detail {
  padding: 44px 40px;
  border-left: 4px solid var(--brand);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.solution-meta { display: flex; gap: 28px; flex-wrap: wrap; margin: 24px 0; }
.solution-meta span { font-size: 14px; color: var(--gray); }
.solution-meta strong { color: var(--dark); }

/* --- Scenario Colors --- */
.sc-museum  { --sc-accent: #5B3CC4; --sc-bg: #F3F0FF; }
.sc-scenic  { --sc-accent: #228B5F; --sc-bg: #EDF7F2; }
.sc-heritage{ --sc-accent: #C7923C; --sc-bg: #FDF6ED; }
.sc-campus  { --sc-accent: #3C7BC4; --sc-bg: #EEF4FB; }

/* standalone sc-tag (for quick nav, etc.) */
.sc-tag {
  background: var(--sc-bg, var(--brand-light));
  color: var(--sc-accent, var(--brand));
  font-weight: 600;
  border-radius: 8px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
a.sc-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  color: var(--sc-accent, var(--brand));
}

/* --- Scenario Showcase --- */
.scenario-showcase {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 32px;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.scenario-showcase:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.scenario-showcase .sc-accent-bar {
  height: 4px;
  background: var(--sc-accent, var(--brand));
}
.scenario-showcase .sc-body {
  padding: 44px 48px;
}
.scenario-showcase .sc-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
.scenario-showcase .sc-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--sc-bg, var(--brand-light));
  color: var(--sc-accent, var(--brand));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.scenario-showcase .sc-icon svg { width: 28px; height: 28px; }
.scenario-showcase .sc-hd-text { flex: 1; }
.scenario-showcase .sc-tag {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 6px;
  background: var(--sc-bg, var(--brand-light));
  color: var(--sc-accent, var(--brand));
  margin-bottom: 10px;
}
.scenario-showcase .sc-hd-text h2 {
  font-size: 24px; font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 6px;
  color: var(--dark);
}
.scenario-showcase .sc-hd-text .sc-desc {
  font-size: 15px; color: var(--gray); line-height: 1.55;
}

/* scenario metrics bar */
.scenario-showcase .sc-metrics {
  display: flex;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.scenario-showcase .sc-metric {
  flex: 1;
  padding: 18px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
  background: var(--bg);
}
.scenario-showcase .sc-metric:last-child { border-right: none; }
.scenario-showcase .sc-metric .sc-mval {
  font-size: 14px; font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
}
.scenario-showcase .sc-metric .sc-mlbl {
  font-size: 11px; color: var(--gray-light);
  letter-spacing: .04em;
}

/* scenario 3-col grid */
.scenario-showcase .sc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.scenario-showcase .sc-col { }
.scenario-showcase .sc-col h4 {
  font-size: 14px; font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
  display: flex; align-items: center; gap: 7px;
}
.scenario-showcase .sc-col h4 .sc-col-icon {
  display: inline-flex;
  color: var(--sc-accent, var(--brand));
}
.scenario-showcase .sc-col h4 .sc-col-icon svg { width: 16px; height: 16px; }
.scenario-showcase .sc-col p {
  font-size: 14px; line-height: 1.6; color: var(--gray);
}

/* scenario number badge */
.scenario-showcase .sc-num {
  font-size: 72px; font-weight: 800;
  color: var(--sc-bg, var(--brand-light));
  line-height: 1;
  letter-spacing: -.04em;
  margin-left: auto;
}

/* --- Case Hero Card (legacy) --- */
.case-hero-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 44px;
  margin-bottom: 36px;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.case-hero-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0,0,0,.05);
}
.case-hero-card h2 { font-size: 30px; margin-bottom: 10px; }
.case-meta { display: flex; gap: 36px; flex-wrap: wrap; margin: 24px 0; }
.case-meta-item { text-align: center; }
.case-meta-item .num { font-size: 30px; font-weight: 800; }
.case-meta-item .txt { font-size: 12px; color: var(--gray-light); }
.case-insight {
  background: linear-gradient(135deg, var(--brand-light), #FFF);
  border-radius: var(--radius-sm);
  padding: 22px 28px;
  margin-top: 28px;
  border: 1px solid rgba(0,0,0,.04);
}
.case-insight h4 { color: var(--brand); margin-bottom: 10px; font-size: 14px; }

/* --- Case Showcase (redesigned) --- */
.case-showcase {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 32px;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.case-showcase:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.case-showcase .cs-accent-bar {
  height: 4px;
  background: var(--sc-accent, var(--brand));
}
.case-showcase .cs-body {
  padding: 44px 48px;
}
.case-showcase .cs-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
.case-showcase .cs-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--sc-bg, var(--brand-light));
  color: var(--sc-accent, var(--brand));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.case-showcase .cs-icon svg { width: 28px; height: 28px; }
.case-showcase .cs-hd-text { flex: 1; }
.case-showcase .cs-tag {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 6px;
  background: var(--sc-bg, var(--brand-light));
  color: var(--sc-accent, var(--brand));
  margin-bottom: 10px;
}
.case-showcase .cs-hd-text h2 {
  font-size: 24px; font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 6px;
  color: var(--dark);
}
.case-showcase .cs-hd-text .cs-desc {
  font-size: 15px; color: var(--gray); line-height: 1.55;
}

/* case metrics bar */
.case-showcase .cs-metrics {
  display: flex;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.case-showcase .cs-metric {
  flex: 1;
  padding: 18px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
  background: var(--bg);
}
.case-showcase .cs-metric:last-child { border-right: none; }
.case-showcase .cs-metric .cs-mval {
  font-size: 22px; font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  letter-spacing: -.02em;
}
.case-showcase .cs-metric .cs-mval small {
  font-size: 14px; font-weight: 600;
  color: var(--gray);
}
.case-showcase .cs-metric .cs-mlbl {
  font-size: 11px; color: var(--gray-light);
  letter-spacing: .04em;
}

/* case story (before/after) */
.case-showcase .cs-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}
.case-showcase .cs-story-block {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  border: 1px solid var(--border);
}
.case-showcase .cs-story-block h4 {
  font-size: 14px; font-weight: 700;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 7px;
}
.case-showcase .cs-story-block h4 .cs-story-icon {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 6px;
  align-items: center; justify-content: center;
  font-size: 12px;
}
.cs-story-before .cs-story-icon { background: #F0F0F0; color: #555; }
.cs-story-after  .cs-story-icon { background: #E0E0E0; color: #1A1A1A; }
.cs-story-before h4 { color: #444; }
.cs-story-after  h4 { color: #1A1A1A; }
.case-showcase .cs-story-block p {
  font-size: 14px; line-height: 1.65; color: var(--gray);
}
.case-showcase .cs-story-block ul {
  list-style: none; padding: 0;
}
.case-showcase .cs-story-block ul li {
  font-size: 13px; line-height: 1.6; color: var(--dark-soft);
  padding: 5px 0;
  display: flex; align-items: flex-start; gap: 8px;
}
.case-showcase .cs-story-block ul li::before {
  content: ''; flex-shrink: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  margin-top: 8px;
}
.cs-story-before ul li::before { background: #AAA; }
.cs-story-after  ul li::before { background: #333; }

/* case insight section */
.case-showcase .cs-insight {
  background: linear-gradient(135deg, var(--sc-bg, var(--brand-light)), rgba(255,255,255,0));
  border-radius: var(--radius-sm);
  padding: 22px 28px;
  border: 1px solid rgba(0,0,0,.04);
  display: flex; align-items: flex-start; gap: 16px;
}
.case-showcase .cs-insight .cs-insight-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--sc-accent, var(--brand));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.case-showcase .cs-insight .cs-insight-body h4 {
  font-size: 14px; font-weight: 700;
  color: var(--sc-accent, var(--brand));
  margin-bottom: 4px;
}
.case-showcase .cs-insight .cs-insight-body p {
  font-size: 13px; color: var(--gray); line-height: 1.55;
}

/* case number badge */
.case-showcase .cs-num {
  font-size: 72px; font-weight: 700;
  color: var(--sc-bg, var(--brand-light));
  line-height: 1;
  letter-spacing: -.04em;
  margin-left: auto;
}

/* case total stats banner */
.case-stats-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.case-stats-banner .csb-item {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow .4s var(--ease);
}
.case-stats-banner .csb-item:hover {
  box-shadow: var(--shadow-md);
}
.case-stats-banner .csb-item .csb-val {
  font-size: 36px; font-weight: 700;
  color: var(--brand);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.case-stats-banner .csb-item .csb-lbl {
  font-size: 13px; color: var(--gray-light);
}
.case-stats-banner .csb-item .csb-sub {
  font-size: 11px; color: var(--gray-light);
  margin-top: 4px;
}

/* --- API Showcase (redesigned) --- */
.api-showcase {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 32px;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.api-showcase:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.api-showcase .as-accent-bar {
  height: 4px;
  background: var(--as-accent, var(--brand));
}
.api-showcase .as-body { padding: 44px 48px; }
.api-showcase .as-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 16px;
}
.api-showcase .as-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--as-bg, var(--brand-light));
  color: var(--as-accent, var(--brand));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.api-showcase .as-icon svg { width: 28px; height: 28px; }
.api-showcase .as-hd-text { flex: 1; }
.api-showcase .as-tag {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 6px;
  background: var(--as-bg, var(--brand-light));
  color: var(--as-accent, var(--brand));
  margin-bottom: 10px;
}
.api-showcase .as-hd-text h2 {
  font-size: 24px; font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 6px;
  color: var(--dark);
}
.api-showcase .as-hd-text .as-desc {
  font-size: 15px; color: var(--gray); line-height: 1.55;
  margin-bottom: 4px;
}

/* API metrics bar */
.api-showcase .as-metrics {
  display: flex;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.api-showcase .as-metric {
  flex: 1;
  padding: 18px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
  background: var(--bg);
}
.api-showcase .as-metric:last-child { border-right: none; }
.api-showcase .as-metric .as-mval {
  font-size: 20px; font-weight: 800;
  color: var(--dark);
  margin-bottom: 3px;
  letter-spacing: -.02em;
}
.api-showcase .as-metric .as-mval small {
  font-size: 13px; font-weight: 600;
  color: var(--gray);
}
.api-showcase .as-metric .as-mlbl {
  font-size: 11px; color: var(--gray-light);
  letter-spacing: .04em;
}

/* API detail grid (capabilities + code/visual) */
.api-showcase .as-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1038px;
  gap: 28px;
  padding: 0;
  margin-bottom: 24px;
}
.api-showcase .as-capabilities {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  border: 1px solid var(--border);
}
.api-showcase .as-capabilities h4 {
  font-size: 14px; font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
  display: flex; align-items: center; gap: 7px;
}
.api-showcase .as-capabilities h4 svg { width: 16px; height: 16px; color: var(--as-accent, var(--brand)); }
.api-showcase .as-capabilities ul {
  list-style: none; padding: 0;
}
.api-showcase .as-capabilities ul li {
  font-size: 13px; line-height: 1.6; color: var(--dark-soft);
  padding: 6px 0;
  display: flex; align-items: flex-start; gap: 8px;
}
.api-showcase .as-capabilities ul li::before {
  content: ''; flex-shrink: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  margin-top: 7px;
  background: var(--as-accent, var(--brand));
}

/* API code/demo visual */
.api-showcase .as-visual {
  background: linear-gradient(135deg, var(--as-bg, var(--brand-light)), #F5F5F5);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  border: 1px solid rgba(0,0,0,.04);
  display: flex; flex-direction: column;
  justify-content: center;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px; line-height: 1.7;
  color: #555;
  white-space: pre-wrap;
  overflow-x: auto;
}
.api-showcase .as-visual .as-code-key   { color: var(--as-accent, var(--brand)); }
.api-showcase .as-visual .as-code-val   { color: var(--brand-dark); }
.api-showcase .as-visual .as-code-comment{ color: var(--gray-light); }

/* API number badge */
.api-showcase .as-num {
  font-size: 72px; font-weight: 800;
  color: var(--as-bg, var(--brand-light));
  line-height: 1;
  letter-spacing: -.04em;
  margin-left: auto;
}

/* SDK highlight card */
.sdk-highlight {
  background: linear-gradient(135deg, #F0F0F0, #E0E0E0);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,.06);
  padding: 48px;
  margin-bottom: 32px;
  text-align: center;
}
.sdk-highlight h2 {
  font-size: 26px; font-weight: 700;
  margin-bottom: 10px;
  color: #1A1A1A;
}
.sdk-highlight .sdk-desc {
  font-size: 15px; color: #555;
  margin-bottom: 28px;
}
.sdk-highlight .sdk-code {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px; line-height: 1.75;
  text-align: left;
  max-width: 580px;
  margin: 0 auto 28px;
  border: 1px solid rgba(0,0,0,.06);
  overflow-x: auto;
}
.sdk-highlight .sdk-code .skey  { color: #1A1A1A; }
.sdk-highlight .sdk-code .sval  { color: #000000; }
.sdk-highlight .sdk-code .sfun  { color: #333333; }
.sdk-highlight .sdk-code .scom  { color: var(--gray-light); }
.sdk-highlight .sdk-badges {
  display: flex; gap: 24px; justify-content: center;
  flex-wrap: wrap;
}
.sdk-highlight .sdk-badge {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.06);
  padding: 18px 24px;
  text-align: center;
  min-width: 130px;
}
.sdk-highlight .sdk-badge .sdk-bval {
  font-size: 20px; font-weight: 700;
  color: var(--brand);
  margin-bottom: 2px;
}
.sdk-highlight .sdk-badge .sdk-blbl {
  font-size: 11px; color: #555;
  letter-spacing: .04em;
}

/* --- Divider --- */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* --- Back Link --- */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--gray); margin-bottom: 28px;
}
.back-link:hover { color: var(--dark); }

/* --- Scroll Reveal Animations --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="fade-up"] { transform: translateY(36px); }
[data-reveal="fade-up"].in-view { transform: translateY(0); }

[data-reveal="fade-left"] { transform: translateX(-36px); }
[data-reveal="fade-left"].in-view { transform: translateX(0); }

[data-reveal="fade-right"] { transform: translateX(36px); }
[data-reveal="fade-right"].in-view { transform: translateX(0); }

[data-reveal="scale"] { transform: scale(.92); }
[data-reveal="scale"].in-view { transform: scale(1); }

.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* --- About Page (redesigned) --- */
.about-story-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 40px;
}
.about-story-card .ast-accent { height: 4px; background: var(--brand); }
.about-story-card .ast-body { padding: 48px; }
.about-story-card .ast-body h2 {
  font-size: 24px; font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.about-story-card .ast-body .ast-quote {
  font-size: 15px; line-height: 2;
  color: var(--gray);
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 3px solid var(--brand);
}
.about-story-card .ast-body .ast-highlight {
  font-size: 16px; font-weight: 600;
  color: var(--brand);
  line-height: 1.8;
  padding: 20px 24px;
  background: var(--brand-light);
  border-radius: var(--radius-sm);
  margin-top: 24px;
}

/* About values grid */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.about-value {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 36px 32px;
  text-align: center;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease);
}
.about-value:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--av-accent, var(--brand));
}
.about-value .av-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--av-bg, var(--brand-light));
  color: var(--av-accent, var(--brand));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.about-value .av-icon svg { width: 28px; height: 28px; }
.about-value h3 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.about-value p {
  font-size: 14px; color: var(--gray);
  line-height: 1.6;
}

/* About partners grid */
.about-partners-wrap {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 40px;
}
.about-partners-wrap .apw-header {
  padding: 36px 44px 0;
}
.about-partners-wrap .apw-header h2 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -.02em;
}
.about-partners-wrap .apw-header p {
  font-size: 14px; color: var(--gray);
  margin-top: 6px;
}
.about-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px;
}
.about-partner {
  text-align: center;
  padding: 28px 20px;
  border-right: 1px solid var(--border);
  transition: background .3s var(--ease);
}
.about-partner:last-child { border-right: none; }
.about-partner:hover { background: var(--bg); }
.about-partner .ap-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}
.about-partner .ap-name {
  font-size: 16px; font-weight: 700;
  margin-bottom: 4px;
  color: var(--dark);
}
.about-partner .ap-loc {
  font-size: 12px; color: var(--gray-light);
}

/* About contact card */
.about-contact-card {
  background: linear-gradient(135deg, #1A1A1A, #000);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  color: #fff;
}
.about-contact-card .acc-item h4 {
  font-size: 14px; font-weight: 700;
  color: #888;
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.about-contact-card .acc-item p {
  font-size: 14px; color: rgba(255,255,255,.65);
  line-height: 1.6;
}

/* About timeline */
.about-timeline {
  position: relative;
  padding: 24px 0;
  margin-bottom: 40px;
}
.about-timeline::before {
  content: '';
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.about-timeline .atl-item {
  position: relative;
  padding-left: 52px;
  padding-bottom: 32px;
}
.about-timeline .atl-item:last-child { padding-bottom: 0; }
.about-timeline .atl-item::before {
  content: '';
  position: absolute;
  left: 12px; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 4px rgba(0,0,0,.08);
}
.about-timeline .atl-date {
  font-size: 12px; font-weight: 700;
  color: var(--brand);
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.about-timeline .atl-title {
  font-size: 16px; font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.about-timeline .atl-desc {
  font-size: 13px; color: var(--gray);
  line-height: 1.55;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .navbar { padding: 0 32px; height: 60px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: flex; flex-direction: column;
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 28px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .4s var(--ease), opacity .4s var(--ease);
    pointer-events: none;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 16px 0;
    font-size: 16px; font-weight: 600;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
  .nav-links .nav-cta-mobile {
    display: block;
    margin-top: 20px;
  }
  .nav-links .nav-cta-mobile a {
    display: block; text-align: center;
    background: var(--brand); color: #fff;
    padding: 14px 28px; border-radius: var(--radius);
    font-size: 15px; font-weight: 700;
    border-bottom: none;
  }
  .nav-links .nav-cta-mobile a:hover {
    background: var(--brand-dark);
  }

  .section { padding: 64px 0; }
  .section-title { font-size: 28px; }
  .section-sub { margin-bottom: 36px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 20px; }
  .feature-row, .feature-row:nth-child(even) { flex-direction: column; gap: 36px; }
  .why-card { padding: 36px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .api-detail { grid-template-columns: 1fr; gap: 32px; }
  .api-sidebar { position: static; display: flex; gap: 8px; flex-wrap: wrap; }

  .hero { padding: 72px 0 64px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .hero-metrics { gap: 32px; flex-wrap: wrap; }
  .hero-orb { filter: blur(40px); opacity: .14; }
  .hero-orb:nth-child(1) { width: 400px; height: 400px; }
  .hero-orb:nth-child(2) { width: 280px; height: 280px; }
  .hero-orb:nth-child(3) { width: 220px; height: 220px; }
  .hero-pattern::before, .hero-pattern::after { animation-duration: 60s; }

  .flow-diagram { flex-wrap: wrap; justify-content: center; }
  .cta-section { padding: 64px 20px; }
  .case-meta, .solution-meta { gap: 20px; }
  .case-hero-card { padding: 32px 28px; }
  .scenario-showcase .sc-body { padding: 32px 28px; }
  .scenario-showcase .sc-header { flex-direction: column; gap: 16px; }
  .scenario-showcase .sc-num { margin-left: 0; position: absolute; top: 32px; right: 28px; font-size: 52px; }
  .scenario-showcase { position: relative; }
  .scenario-showcase .sc-metrics { flex-wrap: wrap; }
  .scenario-showcase .sc-metric { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
  .scenario-showcase .sc-metric:nth-child(3) { border-bottom: none; }
  .scenario-showcase .sc-metric:nth-child(4) { border-bottom: none; }
  .scenario-showcase .sc-grid { grid-template-columns: 1fr; gap: 24px; }

  /* case-showcase responsive */
  .case-showcase .cs-body { padding: 32px 28px; }
  .case-showcase .cs-header { flex-direction: column; gap: 16px; }
  .case-showcase .cs-num { margin-left: 0; position: absolute; top: 32px; right: 28px; font-size: 52px; }
  .case-showcase { position: relative; }
  .case-showcase .cs-metrics { flex-wrap: wrap; }
  .case-showcase .cs-metric { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
  .case-showcase .cs-metric:nth-child(3) { border-bottom: none; }
  .case-showcase .cs-metric:nth-child(4) { border-bottom: none; }
  .case-showcase .cs-story { grid-template-columns: 1fr; }
  .case-stats-banner { grid-template-columns: 1fr; gap: 16px; }

  /* API showcase responsive */
  .api-showcase .as-body { padding: 32px 28px; }
  .api-showcase .as-header { flex-direction: column; gap: 16px; }
  .api-showcase .as-num { margin-left: 0; position: absolute; top: 32px; right: 28px; font-size: 52px; }
  .api-showcase { position: relative; }
  .api-showcase .as-metrics { flex-wrap: wrap; }
  .api-showcase .as-metric { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
  .api-showcase .as-metric:nth-child(3) { border-bottom: none; }
  .api-showcase .as-metric:nth-child(4) { border-bottom: none; }
  .api-showcase .as-grid { grid-template-columns: 1fr; gap: 16px; }
  .sdk-highlight { padding: 32px 24px; }
  .sdk-highlight .sdk-code { font-size: 12px; padding: 20px; }

  /* Pricing responsive */
  .pricing-showcase { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .plan-card.featured { transform: none; }
  .plan-card.featured:hover { transform: translateY(-4px); }
  .enterprise-card { flex-direction: column; padding: 36px 28px; text-align: center; gap: 28px; }
  .enterprise-card .ec-tags { justify-content: center; }
  .rev-share-card { flex-direction: column; padding: 32px 28px; text-align: center; gap: 20px; }
  .rev-share-card .rs-proof { justify-content: center; }
  .faq-grid { grid-template-columns: 1fr; }
  .compare-table thead th,
  .compare-table tbody td { padding: 12px 14px; font-size: 12px; }
  .compare-table thead th:first-child,
  .compare-table tbody td:first-child { padding-left: 20px; }
  .compare-table tbody tr.ct-group td { padding: 10px 14px; font-size: 11px; }
  .compare-table tbody tr.ct-group td:first-child { padding-left: 20px; }

  /* About responsive */
  .about-values { grid-template-columns: 1fr; }
  .about-partners-grid { grid-template-columns: repeat(2, 1fr); }
  .about-partner { border-right: none; border-bottom: 1px solid var(--border); }
  .about-partner:nth-child(3),
  .about-partner:nth-child(4) { border-bottom: none; }
  .about-contact-card { grid-template-columns: 1fr; gap: 24px; }
  .about-story-card .ast-body { padding: 36px 28px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .navbar { padding: 0 20px; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .hero-metrics { gap: 20px; }
  .hero-metric .val { font-size: 22px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero { padding: 72px 0 56px; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .case-stats { flex-wrap: wrap; gap: 16px; }
  .stat-value { font-size: 38px; }
  .pricing-price { font-size: 42px; }
}

@media print {
  .navbar { display: none !important; }
  body { background: #fff; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-bg { display: none; }
}

/* --- Contact QR Modal --- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  text-align: center;
  max-width: 340px; width: 90%;
  box-shadow: var(--shadow-xl);
  transform: translateY(16px) scale(.96);
  transition: transform .3s var(--ease);
  position: relative;
}
.modal-backdrop.open .modal-card { transform: translateY(0) scale(1); }

.modal-card h3 {
  font-size: 20px; font-weight: 700;
  color: var(--dark); margin-bottom: 20px;
}
.modal-card img {
  width: 200px; height: 200px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  object-fit: contain;
}
.modal-card p {
  font-size: 14px; color: var(--gray);
  margin-bottom: 0;
}
.modal-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none;
  font-size: 24px; color: var(--gray-light);
  cursor: pointer; line-height: 1;
  transition: color .2s;
}
.modal-close:hover { color: var(--dark); }

@media (max-width: 600px) {
  .modal-card { padding: 28px 24px; }
  .modal-card img { width: 170px; height: 170px; }
}
