/* ═══════════════════════════════════════════════════════
   算力科學股份有限公司 / ABACUS SCIENCE CO., LTD. — DESIGN SYSTEM
   NOC Terminal Aesthetic · Violet Command Dark
════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────── */
:root {
  /* Colors — Violet Command Palette */
  --ink:          #0A0714;   /* primary bg — violet-black */
  --panel:        #110E20;   /* card / panel bg */
  --grid:         #1E1840;   /* borders, subtle lines */
  --grid-bright:  #2D2660;   /* hover borders */
  --pulse:        #A78BFA;   /* signature lavender-violet · AI / healed */
  --pulse-dim:    rgba(167, 139, 250, 0.12);
  --pulse-glow:   rgba(167, 139, 250, 0.28);
  --vio:          #7C3AED;   /* vivid violet · CTA / primary action */
  --vio-dim:      rgba(124, 58, 237, 0.15);
  --vio-glow:     rgba(124, 58, 237, 0.35);
  --ember:        #F97316;   /* alert / WARN states · amber-orange contrast */
  --ember-dim:    rgba(249, 115, 22, 0.12);
  --ember-glow:   rgba(249, 115, 22, 0.3);
  --azure-blue:   #0078D4;
  --gcp-blue:     #4285F4;
  --slate-text:   #9B8FBE;   /* body labels — lavender-grey */
  --text-muted:   #5E5280;   /* muted — muted violet-grey */
  --bright:       #E2D9F3;   /* headlines — warm white with lavender tint */
  --white:        #FFFFFF;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing scale (8px base) */
  --sp-1:  0.25rem;   /* 4px */
  --sp-2:  0.5rem;    /* 8px */
  --sp-3:  0.75rem;   /* 12px */
  --sp-4:  1rem;      /* 16px */
  --sp-5:  1.25rem;   /* 20px */
  --sp-6:  1.5rem;    /* 24px */
  --sp-8:  2rem;      /* 32px */
  --sp-10: 2.5rem;    /* 40px */
  --sp-12: 3rem;      /* 48px */
  --sp-16: 4rem;      /* 64px */
  --sp-20: 5rem;      /* 80px */
  --sp-24: 6rem;      /* 96px */

  /* Radii */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --t-fast:     150ms;
  --t-base:     250ms;
  --t-slow:     400ms;

  /* Layout */
  --max-w: 1200px;
  --nav-h:  68px;
}

/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--bright);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
fieldset { border: none; }

/* ── Utility Classes ───────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

@media (max-width: 600px) {
  .container { padding: 0 var(--sp-4); }
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.accent-pulse { color: var(--pulse); }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.625rem 1.375rem;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: all var(--t-base) var(--ease-out);
  min-height: 44px;  /* touch target */
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-icon { font-size: 1em; flex-shrink: 0; }

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--vio);
  color: var(--white);
  box-shadow: 0 0 0 0 var(--vio-glow);
}
.btn-primary:hover {
  background: #8B5CF6;
  box-shadow: 0 0 28px var(--vio-glow);
  transform: translateY(-1px);
}
.btn-primary:focus-visible {
  outline: 3px solid var(--pulse);
  outline-offset: 3px;
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--bright);
  border: 1.5px solid var(--grid-bright);
}
.btn-ghost:hover {
  border-color: var(--pulse);
  color: var(--pulse);
  background: var(--pulse-dim);
}
.btn-ghost:focus-visible {
  outline: 3px solid var(--pulse);
  outline-offset: 3px;
}

/* ── Section Headers ───────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--pulse);
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--bright);
  line-height: 1.2;
  margin-bottom: var(--sp-4);
}

.section-desc {
  color: var(--slate-text);
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Navigation ────────────────────────────────────── */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 7, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grid);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--bright);
  flex-shrink: 0;
  transition: color var(--t-fast);
}
.nav-logo:hover { color: var(--pulse); }
.nav-logo:focus-visible { outline: 3px solid var(--pulse); outline-offset: 4px; border-radius: 4px; }

.logo-mark {
  font-size: 1.4rem;
  color: var(--pulse);
}
.logo-text em {
  font-style: normal;
  color: var(--pulse);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex: 1;
}
.nav-links a {
  font-size: 0.9375rem;
  color: var(--slate-text);
  font-weight: 500;
  transition: color var(--t-fast);
  padding: var(--sp-1) 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--bright); }
.nav-links a:focus-visible { outline: 2px solid var(--pulse); outline-offset: 4px; border-radius: 3px; }

.nav-cta { margin-left: auto; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  color: var(--bright);
}
.nav-toggle:focus-visible { outline: 3px solid var(--pulse); outline-offset: 2px; }
.hamburger, .hamburger::before, .hamburger::after {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease-out),
              opacity var(--t-fast);
  position: relative;
}
.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--grid);
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: var(--sp-4) var(--sp-6);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: var(--sp-3) 0; }
  .nav-cta { display: none; }
}

/* ── Hero Section ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--sp-20) 0 var(--sp-16);
}

/* Background grid pattern */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 24, 64, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 24, 64, 0.55) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%,
    rgba(124, 58, 237, 0.08) 0%,
    transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%,
    rgba(167, 139, 250, 0.04) 0%,
    transparent 50%);
}

/* Floating particles */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.p1 { width: 3px; height: 3px; background: var(--pulse); top: 20%; left: 15%; animation: float1 8s ease-in-out infinite; opacity: 0.7; }
.p2 { width: 2px; height: 2px; background: var(--vio); top: 60%; left: 8%; animation: float2 11s ease-in-out infinite 2s; opacity: 0.5; }
.p3 { width: 4px; height: 4px; background: var(--pulse); top: 35%; right: 30%; animation: float1 9s ease-in-out infinite 1s; opacity: 0.45; }
.p4 { width: 2px; height: 2px; background: var(--azure-blue); top: 75%; right: 15%; animation: float2 12s ease-in-out infinite 3s; opacity: 0.5; }
.p5 { width: 3px; height: 3px; background: var(--gcp-blue); top: 10%; right: 45%; animation: float1 10s ease-in-out infinite 0.5s; opacity: 0.4; }

@keyframes float1 {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-24px) translateX(8px); }
  66% { transform: translateY(12px) translateX(-6px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  40% { transform: translateY(18px) translateX(-10px); }
  70% { transform: translateY(-8px) translateX(14px); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  color: var(--slate-text);
}

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pulse);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--pulse-glow); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

.divider-dot { color: var(--grid-bright); }

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  color: var(--bright);
  margin-bottom: var(--sp-5);
  letter-spacing: -0.02em;
}

.headline-accent {
  background: linear-gradient(135deg, var(--vio) 0%, var(--pulse) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subhead {
  font-size: 1.125rem;
  color: var(--slate-text);
  line-height: 1.75;
  margin-bottom: var(--sp-8);
}
.hero-subhead strong { color: var(--bright); font-weight: 600; }

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}

.hero-proof-strip {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--grid);
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proof-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--pulse);
  line-height: 1;
}
.proof-sup { font-size: 0.75em; }
.proof-label {
  font-size: 0.75rem;
  color: var(--slate-text);
  font-weight: 500;
}

.proof-divider {
  width: 1px;
  height: 36px;
  background: var(--grid);
  flex-shrink: 0;
}

/* NOC Panel */
.noc-panel {
  background: var(--panel);
  border: 1px solid var(--grid);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(124, 58, 237, 0.06);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.noc-titlebar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--grid);
}

.noc-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.noc-dot--red    { background: #ff5f56; }
.noc-dot--yellow { background: #ffbd2e; }
.noc-dot--green  { background: #27c93f; }

.noc-title {
  flex: 1;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: var(--sp-2);
}

.noc-live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  color: var(--pulse);
  letter-spacing: 0.08em;
}
.noc-live-blink {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pulse);
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.noc-body {
  padding: var(--sp-4);
  height: 260px;
  overflow: hidden;
  position: relative;
}
.noc-body::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 48px;
  background: linear-gradient(transparent, var(--panel));
  pointer-events: none;
}

.noc-log-stream {
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: scroll-log 18s linear infinite;
}
@keyframes scroll-log {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.noc-line {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  line-height: 1.5;
  white-space: pre;
}
.noc-line--info   { color: var(--slate-text); }
.noc-line--warn   { color: var(--ember); }
.noc-line--ai     { color: #A78BFA; }
.noc-line--action { color: #60A5FA; }
.noc-line--ok     { color: var(--pulse); }
.noc-line--cursor { color: var(--pulse); }

.ts { color: var(--text-muted); flex-shrink: 0; }

.tag {
  font-weight: 600;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}
.tag--ok     { background: rgba(167, 139, 250, 0.15); color: var(--pulse); }
.tag--warn   { background: rgba(249, 115, 22, 0.15); color: var(--ember); }
.tag--ai     { background: rgba(167, 139, 250, 0.15); color: #A78BFA; }
.tag--action { background: rgba(96, 165, 250, 0.15); color: #60A5FA; }

.cursor-blink {
  animation: blink 0.8s step-end infinite;
}

.noc-footer {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(0,0,0,0.2);
  border-top: 1px solid var(--grid);
  flex-wrap: wrap;
}

.noc-metric {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  color: var(--text-muted);
}
.metric-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.metric-dot--green { background: #27c93f; }

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { order: 1; }
  .noc-panel    { order: 2; max-width: 520px; margin: 0 auto; }
  .hero-eyebrow { justify-content: center; }
  .hero-cta-group { justify-content: center; }
  .hero-proof-strip { justify-content: center; }
}

@media (max-width: 480px) {
  .hero { padding: var(--sp-12) 0; }
  .noc-body { height: 200px; }
  .break-sm { display: none; }
}

/* ── Trust Badges ──────────────────────────────────── */
.trust-section {
  padding: var(--sp-12) 0;
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
  background: rgba(17, 14, 32, 0.7);
}

.trust-label {
  text-align: center;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-8);
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  max-width: 860px;
  margin: 0 auto;
}

.badge-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--panel);
  border: 1px solid var(--grid);
  border-radius: var(--r-md);
  transition: border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.badge-card:hover {
  border-color: var(--grid-bright);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.badge-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.badge-icon-letters {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.badge-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--bright);
}
.badge-aws .badge-icon-letters { color: #FF9900; }
.badge-gcp .badge-icon-letters {
  background: linear-gradient(135deg, #4285F4, #34A853, #FBBC05, #EA4335);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.badge-azure .badge-icon-letters { color: var(--azure-blue); }

.badge-tier {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-aws   .badge-tier { color: #FF9900; }
.badge-gcp   .badge-tier { color: var(--gcp-blue); }
.badge-azure .badge-tier { color: var(--azure-blue); }

.badge-desc {
  font-size: 0.8125rem;
  color: var(--slate-text);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .trust-badges {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* ── Services Grid ─────────────────────────────────── */
.services-section {
  padding: var(--sp-24) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}

.service-card {
  position: relative;
  display: block;
  background: var(--panel);
  border: 1px solid var(--grid);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out),
              box-shadow var(--t-slow) var(--ease-out);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.service-card:focus-visible {
  outline: 3px solid var(--pulse);
  outline-offset: 3px;
}

.service-card-inner {
  padding: var(--sp-8);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  height: 100%;
}

.service-card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease-out);
  pointer-events: none;
}
.service-card:hover .service-card-glow { opacity: 1; }

/* Per-card accent colors */
.service-card--aiops:hover { border-color: var(--pulse); }
.service-card--aiops .service-card-glow {
  background: radial-gradient(ellipse 60% 50% at 20% 20%, var(--pulse-dim), transparent);
}

.service-card--finops:hover { border-color: #27C93F; }
.service-card--finops .service-card-glow {
  background: radial-gradient(ellipse 60% 50% at 20% 20%, rgba(39,201,63,0.1), transparent);
}
.service-card--finops .service-number { color: #27C93F; }

.service-card--arch:hover { border-color: #60A5FA; }
.service-card--arch .service-card-glow {
  background: radial-gradient(ellipse 60% 50% at 20% 20%, rgba(96,165,250,0.08), transparent);
}
.service-card--arch .service-number { color: #60A5FA; }

.service-card--sec:hover { border-color: var(--ember); }
.service-card--sec .service-card-glow {
  background: radial-gradient(ellipse 60% 50% at 20% 20%, var(--ember-dim), transparent);
}
.service-card--sec .service-number { color: var(--ember); }

.service-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--grid);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--sp-2);
}

.service-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--pulse);
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
}

.service-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--bright);
  line-height: 1.3;
}

.service-subtitle {
  color: var(--text-muted);
  font-size: 0.675rem;
}

.service-desc {
  color: var(--slate-text);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: auto;
}
.service-features li {
  font-size: 0.85rem;
  color: var(--slate-text);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.service-features li::before {
  content: '▸';
  color: var(--pulse);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.service-cta {
  display: block;
  margin-top: var(--sp-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--pulse);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out);
}
.service-card:hover .service-cta,
.service-card:focus-visible .service-cta {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ── AI Healing Demo ───────────────────────────────── */
.healing-section {
  padding: var(--sp-24) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(17,14,32,0.6) 100%);
  position: relative;
  overflow: hidden;
}
.healing-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(124,58,237,0.06), transparent);
  pointer-events: none;
}

.healing-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin: 0 auto var(--sp-12);
}

.heal-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--sp-5);
  position: relative;
  padding-bottom: var(--sp-8);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}
.heal-step.visible {
  opacity: 1;
  transform: translateX(0);
}
.heal-step:last-child { padding-bottom: 0; }

/* Vertical connector line */
.heal-step-connector {
  position: absolute;
  left: 24px;
  top: 48px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--grid-bright) 0%, var(--grid) 100%);
}

.heal-marker {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--panel);
  border: 1.5px solid var(--grid-bright);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.heal-step.visible .heal-marker {
  border-color: var(--pulse);
  box-shadow: 0 0 16px var(--pulse-dim);
}
.heal-marker--done.heal-marker {
  background: var(--vio-dim);
  border-color: var(--vio);
}

.heal-content {
  padding-top: var(--sp-2);
}

.heal-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.heal-timestamp {
  color: var(--pulse);
  font-size: 0.75rem;
}

.heal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--bright);
}

.heal-badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 600;
}
.heal-badge--alert  { background: var(--ember-dim); color: var(--ember); border: 1px solid rgba(249,115,22,0.3); }
.heal-badge--ai     { background: rgba(167,139,250,0.12); color: #A78BFA; border: 1px solid rgba(167,139,250,0.3); }
.heal-badge--exec   { background: rgba(96,165,250,0.12); color: #60A5FA; border: 1px solid rgba(96,165,250,0.3); }
.heal-badge--done   { background: var(--vio-dim); color: var(--pulse); border: 1px solid rgba(124,58,237,0.3); }

.heal-desc {
  color: var(--slate-text);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

.heal-terminal {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--grid);
  border-radius: var(--r-sm);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.term-line {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.term-key  { color: var(--text-muted); flex-shrink: 0; min-width: 80px; }
.term-val  { color: var(--slate-text); }
.term-warn { color: var(--ember); }
.term-ok   { color: var(--pulse); }
.term-alert { color: var(--ember); font-weight: 600; }

/* Comparison cards */
.healing-compare {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  max-width: 760px;
  margin: 0 auto;
}

.compare-card {
  flex: 1;
  padding: var(--sp-6);
  border-radius: var(--r-md);
  text-align: center;
}
.compare-card--old {
  background: rgba(249,115,22,0.06);
  border: 1px solid rgba(249,115,22,0.2);
}
.compare-card--new {
  background: rgba(124,58,237,0.07);
  border: 1px solid rgba(124,58,237,0.25);
}

.compare-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.compare-time {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--ember);
  line-height: 1.1;
  margin-bottom: var(--sp-3);
}
.compare-time span { font-size: 1rem; font-weight: 600; }
.compare-time--fast { color: var(--pulse); }
.compare-card p {
  font-size: 0.8125rem;
  color: var(--slate-text);
  line-height: 1.55;
}

.compare-vs {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .heal-step {
    grid-template-columns: 40px 1fr;
    gap: var(--sp-3);
  }
  .heal-marker { width: 40px; height: 40px; font-size: 1rem; }
  .heal-step-connector { left: 20px; }
  .healing-compare { flex-direction: column; }
  .compare-vs { display: none; }
}

/* ── Stats Section ─────────────────────────────────── */
.stats-section {
  padding: var(--sp-20) 0;
  background: var(--panel);
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  text-align: center;
}

.stat-item {
  padding: var(--sp-6) var(--sp-4);
  border-right: 1px solid var(--grid);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--pulse);
  line-height: 1.1;
  margin-bottom: var(--sp-2);
}
.stat-unit { font-size: 0.55em; opacity: 0.8; }

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bright);
  margin-bottom: var(--sp-1);
}

.stat-sublabel {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 740px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--grid); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--grid); border-right: none; }
}
@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-top: 1px solid var(--grid); }
  .stat-item:first-child { border-top: none; }
}

/* ── Testimonials ──────────────────────────────────── */
.testimonials-section {
  padding: var(--sp-24) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  align-items: start;
}

.testimonial-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--grid);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.testimonial-card:hover {
  border-color: var(--grid-bright);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.testimonial-card--featured {
  border-color: rgba(124,58,237,0.3);
  background: linear-gradient(180deg, rgba(124,58,237,0.05), var(--panel));
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--pulse);
  opacity: 0.3;
  line-height: 0.8;
  margin-bottom: var(--sp-3);
  user-select: none;
}
.testimonial-card--featured .testimonial-quote { opacity: 0.5; }

blockquote p {
  color: var(--bright);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}

blockquote footer {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

cite { font-style: normal; }

.cite-name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--bright);
}
.cite-role {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cite-result {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.result-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--pulse-dim);
  color: var(--pulse);
  text-transform: uppercase;
}
.result-val {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pulse);
}

@media (max-width: 860px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

/* ── CTA Banner ────────────────────────────────────── */
.cta-banner {
  position: relative;
  padding: var(--sp-24) 0;
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%,
      rgba(124,58,237,0.09) 0%, transparent 60%),
    linear-gradient(180deg, var(--panel) 0%, rgba(17,14,32,0.85) 100%);
  border-top: 1px solid rgba(124,58,237,0.18);
  border-bottom: 1px solid rgba(124,58,237,0.12);
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--bright);
  line-height: 1.2;
  margin-bottom: var(--sp-4);
}

.cta-desc {
  color: var(--slate-text);
  font-size: 1rem;
  line-height: 1.7;
}

/* Form */
.cta-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bright);
}

.required-mark { color: var(--ember); }

.form-group input {
  background: rgba(0,0,0,0.3);
  border: 1.5px solid var(--grid);
  border-radius: var(--r-sm);
  padding: 0.625rem var(--sp-4);
  color: var(--bright);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  min-height: 44px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group input:hover  { border-color: var(--grid-bright); }
.form-group input:focus  {
  outline: none;
  border-color: var(--vio);
  box-shadow: 0 0 0 3px var(--vio-dim);
}

fieldset legend {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bright);
  margin-bottom: var(--sp-3);
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.9rem;
  color: var(--slate-text);
  cursor: pointer;
  min-height: 44px;
  padding: 0 var(--sp-3);
}
.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px;
  min-height: auto;
  accent-color: var(--pulse);
  cursor: pointer;
  padding: 0;
}

.form-privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .cta-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── Footer ────────────────────────────────────────── */
.site-footer {
  background: rgba(6, 4, 12, 0.96);
  border-top: 1px solid var(--grid);
  padding-top: var(--sp-16);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
}

.footer-logo { margin-bottom: var(--sp-3); }

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--bright); }
.footer-col a:focus-visible { outline: 2px solid var(--pulse); outline-offset: 3px; border-radius: 2px; }

.footer-bottom {
  border-top: 1px solid var(--grid);
  padding: var(--sp-5) 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom a {
  color: var(--text-muted);
  transition: color var(--t-fast);
}
.footer-bottom a:hover { color: var(--slate-text); }

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-nav { grid-template-columns: 1fr; }
}

/* ── Scroll-reveal base class ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Reduced Motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .noc-log-stream { animation: none; }
  .heal-step { opacity: 1; transform: none; }
  .reveal     { opacity: 1; transform: none; }
}

/* ── Language Switcher ─────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--grid);
  border-radius: var(--r-sm);
  padding: 3px;
  flex-shrink: 0;
}

.lang-btn {
  min-width: 44px;
  min-height: 36px;
  padding: 0 var(--sp-2);
  border-radius: calc(var(--r-sm) - 2px);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  transition:
    color var(--t-fast) var(--ease-out),
    background var(--t-fast) var(--ease-out);
  letter-spacing: 0.02em;
  /* Thai glyphs are taller — keep consistent line-height */
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  color: var(--bright);
  background: var(--grid);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--pulse);
  outline-offset: 2px;
}

.lang-btn--active,
.lang-btn[aria-pressed="true"] {
  background: var(--vio);
  color: var(--white);
}

.lang-btn--active:hover,
.lang-btn[aria-pressed="true"]:hover {
  background: #8B5CF6;
  color: var(--white);
}

/* Mobile: collapse inside the slide-down menu */
@media (max-width: 860px) {
  /* Keep switcher in the nav header row, above the dropdown */
  .lang-switcher {
    /* On mobile the nav-toggle is flex-end, so switcher goes left of it */
    order: -1;
    margin-left: auto;
    margin-right: var(--sp-2);
  }
  /* Hide the nav-cta text button but keep the lang switcher */
  .nav-cta { display: none; }
}

@media (max-width: 380px) {
  .lang-btn {
    min-width: 36px;
    font-size: 0.75rem;
  }
}
