/* ============================================================
   VoltAgent Design System — markmedia
   ============================================================ */

/* Google Fonts — Inter only; SFMono is system-native */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Custom Properties ───────────────────────────────────── */
:root {
  /* Surface & Background */
  --bg-canvas:    #050507; /* Abyss Black */
  --bg-surface:   #101010; /* Carbon Surface */
  --bg-raised:    #0d0d0f; /* slightly lighter canvas for alternating sections */

  /* Borders */
  --border:       #3d3a39; /* Warm Charcoal */
  --border-subtle:#2a2826;

  /* Accent */
  --green:        #00d992; /* Emerald Signal Green */
  --green-mint:   #2fd6a1; /* VoltAgent Mint */
  --green-dim:    rgba(0,217,146,.12);
  --purple:       #818cf8; /* Soft Purple */

  /* Text */
  --text-primary:   #f2f2f2; /* Snow White */
  --text-white:     #ffffff; /* Pure White */
  --text-secondary: #b8b3b0; /* Warm Parchment */
  --text-muted:     #8b949e; /* Steel Slate */
  --text-fog:       #bdbdbd; /* Fog Gray */

  /* Shadows */
  --shadow-ambient: rgba(92,88,85,.2) 0px 0px 15px;
  --shadow-dramatic: rgba(0,0,0,.7) 0px 20px 60px, rgba(148,163,184,.1) 0px 0px 0px 1px inset;

  /* Radius */
  --r-xs:  4px;
  --r-sm:  6px;
  --r-md:  8px;
  --r-pill:9999px;

  /* Fonts */
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", Helvetica, Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Spacing */
  --section-y:  96px;
  --section-sm: 64px;
  --container:  1280px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "calt","rlig";
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography ──────────────────────────────────────────── */
.display-xl {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.65px;
}
.display-lg {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.11;
  letter-spacing: -0.9px;
}
.display-md {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.6px;
}

/* Green accent text */
.accent { color: var(--green); }

/* ── Layout helpers ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section       { padding: var(--section-y) 0; }
.section-sm    { padding: var(--section-sm) 0; }
.section-alt   { background: var(--bg-raised); }

/* ── Label mono ──────────────────────────────────────────── */
.label-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2.52px;
  text-transform: uppercase;
  color: var(--green);
}
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--green);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  transition: opacity .2s, background .2s;
  white-space: nowrap;
}
.btn-sm { font-size: 0.9rem; padding: 8px 16px; }

/* Primary — green text on carbon */
.btn-primary {
  background: var(--bg-surface);
  color: var(--green-mint);
  border: 1px solid var(--border);
  outline: 1px solid transparent;
}
.btn-primary:hover {
  background: rgba(0,0,0,.3);
  border-color: var(--green);
  outline-color: rgba(47,214,161,.3);
}

/* Ghost / outline */
.btn-ghost {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(0,0,0,.2);
  border-color: var(--text-muted);
}

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,5,7,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-logo-cn {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.nav-logo-en {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--green);
  letter-spacing: 1.5px;
  text-transform: lowercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,.04);
}
.nav-link.active { color: var(--green); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5,5,7,.97);
  display: flex;
  flex-direction: column;
  padding: 80px 32px 48px;
  gap: 8px;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  border-left: 1px solid var(--border);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--text-muted);
  padding: 8px;
}
.mobile-nav .nav-link {
  font-size: 1.1rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-canvas);
}
.hero > .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

/* Grid decoration */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,217,146,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,217,146,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: .4;
  will-change: transform;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  top: -160px; left: -100px;
  background: radial-gradient(circle, rgba(0,217,146,.15) 0%, transparent 70%);
  animation: orb-drift-1 18s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  bottom: -100px; right: 10%;
  background: radial-gradient(circle, rgba(129,140,248,.08) 0%, transparent 70%);
  animation: orb-drift-2 22s ease-in-out infinite;
}

@keyframes orb-drift-1 {
  0%   { transform: translate(0,    0)    scale(1); }
  25%  { transform: translate(60px, 40px) scale(1.06); }
  50%  { transform: translate(30px, 90px) scale(0.96); }
  75%  { transform: translate(-40px,50px) scale(1.04); }
  100% { transform: translate(0,    0)    scale(1); }
}

@keyframes orb-drift-2 {
  0%   { transform: translate(0,     0)     scale(1); }
  20%  { transform: translate(-50px, -30px) scale(1.08); }
  45%  { transform: translate(-80px,  40px) scale(0.94); }
  70%  { transform: translate( 30px,  60px) scale(1.05); }
  100% { transform: translate(0,     0)     scale(1); }
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 4px var(--green); }
  50%      { box-shadow: 0 0 12px var(--green); }
}

/* Hero headline */
.hero-headline { margin-bottom: 24px; }
.hero-headline-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--green);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

/* Green gradient text */
.accent-text {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.scroll-line {
  width: 24px;
  height: 1px;
  background: var(--border);
}
.scroll-arrow {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  animation: scroll-bounce 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0);   opacity: .35; }
  50%       { transform: translateY(5px); opacity: 1;   }
}

/* ── Terminal widget ─────────────────────────────────────── */
.hero-terminal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-dramatic);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.3);
}
.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.terminal-dot:first-child { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #28ca41; }
.terminal-title {
  margin-left: 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.terminal-body {
  padding: 20px;
  line-height: 1.7;
}
.t-line { display: flex; align-items: baseline; gap: 8px; }
.t-prompt { color: var(--green); user-select: none; }
.t-cmd    { color: var(--text-primary); }
.t-output { color: var(--text-muted); font-size: 12px; padding-left: 16px; }
.t-success { color: var(--green); }
.t-comment { color: var(--text-muted); font-size: 12px; }
.t-gold   { color: var(--green-mint); }
.cursor-blink {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--green);
  animation: blink .8s step-end infinite;
  vertical-align: -2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Stats ───────────────────────────────────────────────── */
.stats-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Marquee ─────────────────────────────────────────────── */
.marquee-section {
  overflow: hidden;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-canvas);
}
.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marqueeScroll 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  border-right: 1px solid var(--border-subtle);
}
.marquee-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--green);
  opacity: .6;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .hero-orb,
  .page-hero-orb,
  .scroll-arrow { animation: none; }
}

/* ── Section heading helpers ─────────────────────────────── */
.section-title { margin-bottom: 20px; }
.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 48px;
}

/* ── Service Cards ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--border);
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--bg-surface);
  transition: background .2s;
  position: relative;
}
.service-card-link-wrap { color: inherit; }
.service-card:hover { background: #141414; }
.service-card:hover .service-num { color: var(--green); }

.service-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color .2s;
}
.service-icon {
  width: 40px; height: 40px;
  color: var(--green);
  stroke: var(--green);
}
.service-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.service-arrow {
  position: absolute;
  top: 32px;
  right: 32px;
  color: var(--text-muted);
  transition: color .2s, transform .2s;
}
.service-card:hover .service-arrow {
  color: var(--green);
  transform: translate(3px,-3px);
}

/* ── Tags / Badges ───────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(61,58,57,.4);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px 10px;
}

/* ── Work / Portfolio Cards ──────────────────────────────── */
.work-grid {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}
.work-grid-4 { grid-template-columns: repeat(4, 1fr); }
.work-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.work-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-ambient);
}
.work-card-visual {
  position: relative;
  height: 160px;
  background: var(--bg-canvas);
  overflow: hidden;
}
.work-card-body { padding: 20px; }
.work-card-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 1px;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.work-card-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
}
.work-card-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* SVG accent color for work card visuals */
.work-card-visual svg [stroke*="200,149,48"] { stroke: rgba(0,217,146,0.3); }
.work-card-visual svg [fill*="200,149,48"]   { fill: rgba(0,217,146,0.3); }

/* ── About Section ───────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}
.about-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-ambient);
}
.glass-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.glass-card-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-xs);
  background: var(--green-dim);
  border: 1px solid rgba(0,217,146,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.glass-card-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.glass-card-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 400;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.glass-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Process Steps ───────────────────────────────────────── */
.process-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-line {
  position: absolute;
  left: 19px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.process-step {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.process-step:last-child { border-bottom: none; }
.process-step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  position: relative;
  z-index: 1;
}
.process-step-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.process-step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px;
  box-shadow: var(--shadow-ambient);
  position: relative;
}
.testimonial-quote {
  font-family: var(--font-head);
  font-size: 4rem;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
  opacity: .4;
}
.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1px solid rgba(0,217,146,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--green);
}
.author-info .name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.author-info .role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,217,146,.06) 0%, transparent 60%);
  pointer-events: none;
}
.cta-glow {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: .5;
}
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-title { margin-bottom: 16px; }
.cta-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo-cn {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.footer-logo-en {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: lowercase;
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.social-link {
  width: 36px; height: 36px;
  border-radius: var(--r-xs);
  background: rgba(61,58,57,.3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color .2s, border-color .2s;
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { color: var(--green); border-color: var(--green); }

.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 0.85rem;
  color: var(--text-fog);
  transition: color .15s;
}
.footer-link:hover { color: var(--green); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-icp { font-size: 0.78rem; color: var(--text-muted); }
.footer-icp a { color: var(--text-muted); }
.footer-icp a:hover { color: var(--green); }

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border);
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,217,146,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,217,146,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}
.page-hero-orb-1 {
  width: 400px; height: 400px;
  top: -100px; left: -80px;
  background: radial-gradient(circle, rgba(0,217,146,.12) 0%, transparent 70%);
  animation: orb-drift-1 20s ease-in-out infinite;
}
.page-hero-orb-2 {
  width: 300px; height: 300px;
  bottom: -80px; right: 10%;
  background: radial-gradient(circle, rgba(129,140,248,.07) 0%, transparent 70%);
  animation: orb-drift-2 24s ease-in-out infinite;
}
.page-hero-content { position: relative; z-index: 2; max-width: 760px; }
.page-hero-eyebrow { margin-bottom: 16px; }

/* ── About page specific ─────────────────────────────────── */
.about-philosophy { background: var(--bg-canvas); }
.about-philosophy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding-top: 64px;
}
.about-philosophy-quote blockquote {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  border-left: 2px solid var(--green);
  padding-left: 24px;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}
.about-philosophy-quote cite {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  padding-left: 24px;
}
.about-philosophy-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-metrics {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.about-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.about-metric-item {
  text-align: center;
  padding: 24px 32px;
  border-right: 1px solid var(--border);
}
.about-metric-item:last-child { border-right: none; }
.about-metric-value {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--green);
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.about-metric-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.about-metric-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* About story */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 48px;
}
.about-story-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-milestones {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.about-milestone {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.about-milestone:last-child { border-bottom: none; }
.about-milestone-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green);
  letter-spacing: 1px;
  min-width: 40px;
  padding-top: 3px;
}
.about-milestone-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.about-milestone-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Values */
.about-values {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: var(--section-y) 0;
}
.values-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.value-card {
  background: var(--bg-surface);
  padding: 28px;
  transition: background .2s;
}
.value-card:hover { background: #141414; }
.value-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-xs);
  background: var(--green-dim);
  border: 1px solid rgba(0,217,146,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 16px;
}
.value-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.value-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Services page ───────────────────────────────────────── */
.service-detail-section { background: var(--bg-canvas); }
.service-detail-section:nth-child(even) { background: var(--bg-raised); }

.service-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.service-detail-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 4px 8px;
  margin-top: 6px;
}
.service-detail-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--r-xs);
  background: var(--green-dim);
  border: 1px solid rgba(0,217,146,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}
.service-detail-icon-wrap svg { width: 28px; height: 28px; stroke: var(--green); }
.service-detail-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.service-detail-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.service-detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}
.service-capability-block,
.service-case-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
}
.service-block-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.capability-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.capability-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}
.capability-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px; height: 1px;
  background: var(--green);
}
.case-list { display: flex; flex-direction: column; gap: 20px; }
.case-item { border-left: 2px solid var(--green); padding-left: 14px; }
.case-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.case-item-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Why grid */
.services-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.why-card {
  background: var(--bg-surface);
  padding: 28px;
  transition: background .2s;
}
.why-card:hover { background: #141414; }
.why-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-xs);
  background: var(--green-dim);
  border: 1px solid rgba(0,217,146,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 16px;
}
.why-card-icon svg { width: 20px; height: 20px; }
.why-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.why-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Works page ──────────────────────────────────────────── */
.cases-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 32px;
}
.case-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 0;
  background: var(--bg-surface);
  transition: background .2s;
}
.case-card:nth-child(even) { grid-template-columns: 1fr 420px; }
.case-card:nth-child(even) .case-card-body { order: -1; }
.case-card:hover { background: #121212; }
.case-card-visual {
  background: var(--bg-canvas);
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-card:nth-child(even) .case-card-visual { border-right: none; border-left: 1px solid var(--border); }
.case-card-visual svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
}
.case-card-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.case-card-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.case-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.case-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(0,217,146,.2);
  border-radius: var(--r-pill);
  padding: 3px 10px;
}
.case-card-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  line-height: 1.25;
}
.case-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.case-values {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-values li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
  line-height: 1.6;
}
.case-values li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px; height: 1px;
  background: var(--green);
}
.case-values strong { color: var(--text-primary); }
.case-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--green-mint);
  margin-top: auto;
  transition: gap .15s;
}
.case-card-link:hover { gap: 10px; }

/* ── Process page full steps ─────────────────────────────── */
.process-steps-full .capability-list { max-width: none; }
.process-steps-full .process-step { padding: 32px 0; }
.process-steps-full .process-step-content { flex: 1; }
.process-deliverable {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  margin-top: 16px;
}
.process-deliverable svg { color: var(--green); flex-shrink: 0; }
.process-deliverable span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ── Animations ──────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in {
  opacity: 0;
  transition: opacity .6s ease;
}
.fade-in.visible { opacity: 1; }

.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .work-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .values-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .services-why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .case-card,
  .case-card:nth-child(even) { grid-template-columns: 1fr; }
  .case-card-visual { min-height: 220px; }
  .case-card:nth-child(even) .case-card-visual { border-left: none; border-top: 1px solid var(--border); }
  .case-card:nth-child(even) .case-card-body { order: 0; }
  .case-card-visual { border-right: none; border-bottom: 1px solid var(--border); }
  .about-story-grid { grid-template-columns: 1fr; }
  .service-detail-body { grid-template-columns: 1fr; }
  .about-philosophy-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-y: 64px; }
  .hero > .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-deco { display: none; }
  .display-xl { font-size: 2.4rem; }
  .display-lg { font-size: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-metrics-grid { grid-template-columns: 1fr; }
  .about-metric-item { border-right: none; border-bottom: 1px solid var(--border); }
  .about-metric-item:last-child { border-bottom: none; }
  .values-grid-4 { grid-template-columns: 1fr; }
  .services-why-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  #navCta { display: none !important; }
  .section-desc { font-size: 0.92rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-ctas { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Theme Toggle Button ─────────────────────────────────── */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, border-color .15s, background .15s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: rgba(255,255,255,.04);
}
.theme-toggle svg { width: 16px; height: 16px; pointer-events: none; }

/* Dark mode: show moon, hide sun */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

/* ── Light Theme ─────────────────────────────────────────── */
html[data-theme="light"] {
  --bg-canvas:    #f7f6f5;
  --bg-surface:   #ffffff;
  --bg-raised:    #f0eeec;

  --border:       #d4d0cd;
  --border-subtle:#e8e4e0;

  --text-primary:   #1a1918;
  --text-white:     #1a1918;
  --text-secondary: #4a4744;
  --text-muted:     #6b6560;
  --text-fog:       #5a5653;

  --shadow-ambient: rgba(0,0,0,.08) 0px 4px 16px;
  --shadow-dramatic: rgba(0,0,0,.12) 0px 20px 60px, rgba(0,0,0,.06) 0px 0px 0px 1px inset;
}

/* Light mode: show sun, hide moon */
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: block; }

/* Light toggle hover */
html[data-theme="light"] .theme-toggle:hover {
  background: rgba(0,0,0,.04);
}

/* Navigation */
html[data-theme="light"] .nav {
  background: rgba(247,246,245,.92);
}
html[data-theme="light"] .mobile-nav {
  background: rgba(247,246,245,.98);
}

/* Buttons */
html[data-theme="light"] .btn-primary:hover {
  background: rgba(0,0,0,.04);
}
html[data-theme="light"] .btn-ghost {
  color: var(--text-primary);
}
html[data-theme="light"] .btn-ghost:hover {
  background: rgba(0,0,0,.04);
}

/* Nav links */
html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active {
  background: rgba(0,0,0,.05);
}

/* Tags */
html[data-theme="light"] .tag {
  background: rgba(0,0,0,.06);
}

/* Social links */
html[data-theme="light"] .social-link {
  background: rgba(0,0,0,.05);
}

/* Cards hover */
html[data-theme="light"] .service-card:hover,
html[data-theme="light"] .why-card:hover,
html[data-theme="light"] .value-card:hover {
  background: #f8f7f6;
}

/* Terminal */
html[data-theme="light"] .hero-terminal {
  box-shadow: 0 8px 32px rgba(0,0,0,.1), 0 0 0 1px var(--border);
}
html[data-theme="light"] .terminal-header {
  background: rgba(0,0,0,.04);
}

/* Hero grid lines */
html[data-theme="light"] .hero-grid,
html[data-theme="light"] .page-hero-grid {
  opacity: .6;
}

/* Hero orbs — slightly more visible in light */
html[data-theme="light"] .hero-orb,
html[data-theme="light"] .page-hero-orb {
  opacity: .25;
}

/* Scrollbar (Webkit) */
html[data-theme="light"] ::-webkit-scrollbar { width: 8px; }
html[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg-canvas); }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── Contact Modals ──────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04) inset;
  transform: translateY(20px) scale(.97);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 28px 28px 0;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
  position: relative;
}
.modal-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-xs);
  background: var(--green-dim);
  border: 1px solid rgba(0,217,146,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 16px;
}
.modal-icon svg { width: 18px; height: 18px; }
.modal-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px; height: 32px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, border-color .15s, background .15s;
}
.modal-close:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: rgba(255,255,255,.04);
}
.modal-close svg { width: 14px; height: 14px; pointer-events: none; }

.modal-body { padding: 24px 28px 28px; }

/* Email display row */
.modal-email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-bottom: 20px;
}
.modal-email-addr {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green-mint);
  flex: 1;
  word-break: break-all;
}
.modal-copy-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 4px 10px;
  background: transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.modal-copy-btn:hover {
  color: var(--green);
  border-color: var(--green);
}
.modal-copy-btn.copied {
  color: var(--green);
  border-color: var(--green);
}

/* Form */
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.modal-form-group { display: flex; flex-direction: column; gap: 6px; }
.modal-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.modal-input,
.modal-textarea {
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color .15s;
  width: 100%;
}
.modal-input::placeholder,
.modal-textarea::placeholder { color: var(--text-muted); }
.modal-input:focus,
.modal-textarea:focus { border-color: var(--green); }
.modal-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}
.modal-submit {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  padding: 12px 20px;
}

/* Phone modal */
.modal-phone-display {
  text-align: center;
  padding: 28px 0 20px;
}
.modal-phone-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--green);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 8px;
}
.modal-phone-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.modal-phone-call {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  padding: 12px 20px;
  margin-bottom: 16px;
}
.modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}
.modal-divider span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.modal-wechat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}
.modal-wechat-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-xs);
  background: var(--green-dim);
  border: 1px solid rgba(0,217,146,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}
.modal-wechat-icon svg { width: 16px; height: 16px; }
.modal-wechat-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.modal-wechat-text strong { color: var(--text-primary); }

/* Light theme modal overrides */
html[data-theme="light"] .modal-overlay {
  background: rgba(0,0,0,.5);
}
html[data-theme="light"] .modal {
  box-shadow: 0 24px 64px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06) inset;
}
html[data-theme="light"] .modal-close:hover {
  background: rgba(0,0,0,.04);
}
html[data-theme="light"] .modal-input,
html[data-theme="light"] .modal-textarea,
html[data-theme="light"] .modal-email-row,
html[data-theme="light"] .modal-wechat-row {
  background: var(--bg-raised);
}
