/* ==========================================================================
   瑞果亚 / Ruiguoya — Global Portal Stylesheet
   Design system: tokenized dual-theme, fluid typography, glass morphism
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */

/* No-flash i18n guard: hide localized text until the resolved language is applied */
html.js:not(.lang-ready) [data-i18n] { visibility: hidden; }

:root {
  /* Brand ramp */
  --brand-cyan: #00e5ff;
  --brand-violet: #7c5cff;
  --brand-green: #07c160;
  --brand-amber: #ffb340;
  --brand-pink: #ff5c8a;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00e5ff 0%, #7c5cff 100%);
  --grad-primary-soft: linear-gradient(135deg, rgba(0, 229, 255, .18) 0%, rgba(124, 92, 255, .18) 100%);
  --grad-warm: linear-gradient(135deg, #ffb340 0%, #ff5c8a 100%);
  --grad-green: linear-gradient(135deg, #07c160 0%, #00e5ff 100%);

  /* Fluid type scale — clamp(min, preferred, max) */
  --fs-display: clamp(2.5rem, 1.2rem + 5.6vw, 5.25rem);
  --fs-h1: clamp(2rem, 1.1rem + 3.6vw, 3.5rem);
  --fs-h2: clamp(1.65rem, 1.1rem + 2.2vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  --fs-h4: clamp(1.0625rem, .95rem + .5vw, 1.25rem);
  --fs-lead: clamp(1rem, .93rem + .38vw, 1.1875rem);
  --fs-body: clamp(.9375rem, .9rem + .2vw, 1rem);
  --fs-sm: .875rem;
  --fs-xs: .8125rem;
  --fs-micro: .6875rem;

  /* Spacing rhythm */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 2.5rem;  --sp-8: 3rem;
  --sp-9: 4rem;    --sp-10: 5rem;   --sp-11: 6.5rem; --sp-12: 8rem;

  /* Radii */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  /* Motion */
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out-soft: cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: .18s;
  --dur-base: .32s;
  --dur-slow: .6s;

  /* Layout */
  --container: 1240px;
  --container-wide: 1440px;
  --nav-h: 72px;

  /* Multilingual font stack: Latin → SC → JP → KR fallbacks */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic",
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR",
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, "Cascadia Code",
    Menlo, Consolas, monospace;
}

/* Dark theme (default) */
:root,
[data-theme="dark"] {
  --bg-base: #05070f;
  --bg-elev-1: #0a0e1c;
  --bg-elev-2: #101527;
  --bg-elev-3: #161c33;
  --surface-glass: rgba(255, 255, 255, .045);
  --surface-glass-hover: rgba(255, 255, 255, .075);
  --border-subtle: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text-primary: #eef1fa;
  --text-secondary: #a3abc4;
  --text-tertiary: #6b7492;
  --text-inverse: #05070f;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, .45);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, .6);
  --glow-cyan: 0 0 44px rgba(0, 229, 255, .32);
  --glow-violet: 0 0 44px rgba(124, 92, 255, .32);
  --grid-line: rgba(255, 255, 255, .035);
  --orb-opacity: .5;
  --particle-rgb: 150, 190, 255;
  --code-bg: rgba(0, 229, 255, .07);
}

/* Light theme */
[data-theme="light"] {
  --bg-base: #ffffff;
  --bg-elev-1: #f7f9fd;
  --bg-elev-2: #eef2f9;
  --bg-elev-3: #e4eaf5;
  --surface-glass: rgba(255, 255, 255, .72);
  --surface-glass-hover: rgba(255, 255, 255, .95);
  --border-subtle: rgba(10, 20, 50, .08);
  --border-strong: rgba(10, 20, 50, .16);
  --text-primary: #0a1020;
  --text-secondary: #4d566e;
  --text-tertiary: #7a839b;
  --text-inverse: #ffffff;
  --shadow-sm: 0 2px 8px rgba(16, 30, 70, .06);
  --shadow-md: 0 12px 32px rgba(16, 30, 70, .1);
  --shadow-lg: 0 28px 70px rgba(16, 30, 70, .14);
  --glow-cyan: 0 0 44px rgba(0, 160, 200, .18);
  --glow-violet: 0 0 44px rgba(124, 92, 255, .18);
  --grid-line: rgba(10, 20, 50, .04);
  --orb-opacity: .28;
  --particle-rgb: 60, 110, 200;
  --code-bg: rgba(0, 140, 180, .08);
  --brand-cyan: #00a9c4;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--dur-base) var(--ease-in-out-soft),
              color var(--dur-base) var(--ease-in-out-soft);
}

body.nav-locked { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button { cursor: pointer; }

ul, ol { list-style: none; }

::selection { background: rgba(0, 229, 255, .28); color: var(--text-primary); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-elev-1); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--r-pill);
  border: 2px solid var(--bg-elev-1);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-violet); }

:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.022em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); letter-spacing: -.012em; }

.text-grad {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-grad-warm {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--text-secondary);
  line-height: 1.75;
}

.muted { color: var(--text-secondary); }
.dim { color: var(--text-tertiary); }

/* --------------------------------------------------------------------------
   4. Layout Primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container-wide { max-width: var(--container-wide); }

.section {
  position: relative;
  padding-block: clamp(4rem, 8vw, 7.5rem);
}

.section-alt { background: var(--bg-elev-1); }

.section-head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head.align-left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: var(--sp-4);
}

.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .7;
}

.section-head.align-left .eyebrow::before { display: none; }

.section-title { margin-bottom: var(--sp-4); }

.section-sub {
  font-size: var(--fs-lead);
  color: var(--text-secondary);
  line-height: 1.75;
}

.grid { display: grid; gap: var(--sp-5); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   5. Ambient Background Effects
   -------------------------------------------------------------------------- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--orb-opacity);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.orb-cyan { background: radial-gradient(circle, rgba(0, 229, 255, .55), transparent 68%); }
.orb-violet { background: radial-gradient(circle, rgba(124, 92, 255, .55), transparent 68%); }
.orb-green { background: radial-gradient(circle, rgba(7, 193, 96, .38), transparent 68%); }
.orb-pink { background: radial-gradient(circle, rgba(255, 92, 138, .35), transparent 68%); }

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: .875rem 1.75rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out-expo),
              box-shadow var(--dur-base) var(--ease-out-expo),
              background-color var(--dur-base) var(--ease-out-expo),
              border-color var(--dur-base) var(--ease-out-expo);
  will-change: transform;
}

.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
  background: var(--grad-primary);
  color: #04121c;
  box-shadow: 0 8px 26px rgba(0, 180, 255, .3);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .5) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform .75s var(--ease-out-expo);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 180, 255, .45); }
.btn-primary:hover::after { transform: translateX(130%); }
.btn-primary:active { transform: translateY(-1px) scale(.985); }

.btn-ghost {
  background: var(--surface-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-ghost:hover {
  background: var(--surface-glass-hover);
  border-color: var(--brand-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-lg { padding: 1.0625rem 2.25rem; font-size: var(--fs-body); }
.btn-sm { padding: .625rem 1.125rem; font-size: var(--fs-xs); }
.btn-block { width: 100%; }

/* Link with animated arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-cyan);
  transition: gap var(--dur-base) var(--ease-out-expo);
}

.link-arrow svg { width: 15px; height: 15px; transition: transform var(--dur-base) var(--ease-out-expo); }
.link-arrow:hover { gap: var(--sp-3); }
.link-arrow:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   7. Cards & Surfaces
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out-expo),
              border-color var(--dur-base) var(--ease-out-expo),
              box-shadow var(--dur-base) var(--ease-out-expo),
              background-color var(--dur-base) var(--ease-out-expo);
  will-change: transform;
}

.card-hover:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  background: var(--surface-glass-hover);
}

/* Radial spotlight follows cursor */
.card-spot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(0, 229, 255, .1), transparent 62%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-in-out-soft);
  pointer-events: none;
}

.card-spot:hover::before { opacity: 1; }

/* Top gradient hairline on hover */
.card-line::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out-expo);
}

.card-line:hover::after { transform: scaleX(1); }

.icon-box {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--grad-primary-soft);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--sp-4);
  transition: transform var(--dur-base) var(--ease-spring);
}

.icon-box svg { width: 25px; height: 25px; stroke: var(--brand-cyan); }
.card-hover:hover .icon-box { transform: scale(1.1) rotate(-5deg); }

.icon-box.tone-green { background: linear-gradient(135deg, rgba(7,193,96,.18), rgba(0,229,255,.12)); }
.icon-box.tone-green svg { stroke: var(--brand-green); }
.icon-box.tone-violet { background: linear-gradient(135deg, rgba(124,92,255,.2), rgba(255,92,138,.12)); }
.icon-box.tone-violet svg { stroke: var(--brand-violet); }
.icon-box.tone-amber { background: linear-gradient(135deg, rgba(255,179,64,.2), rgba(255,92,138,.12)); }
.icon-box.tone-amber svg { stroke: var(--brand-amber); }

/* Badges / chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: .3125rem .75rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .04em;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.chip-accent { color: var(--brand-cyan); border-color: rgba(0, 229, 255, .3); background: rgba(0, 229, 255, .08); }
.chip-green { color: var(--brand-green); border-color: rgba(7, 193, 96, .3); background: rgba(7, 193, 96, .08); }

.dot-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 0 rgba(7, 193, 96, .6);
  animation: pulse-dot 2.2s infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(7, 193, 96, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(7, 193, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(7, 193, 96, 0); }
}

/* --------------------------------------------------------------------------
   8. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color var(--dur-base) var(--ease-in-out-soft),
              border-color var(--dur-base) var(--ease-in-out-soft),
              box-shadow var(--dur-base) var(--ease-in-out-soft);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: color-mix(in srgb, var(--bg-base) 82%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--grad-primary);
  box-shadow: 0 6px 18px rgba(0, 180, 255, .35);
  transition: transform var(--dur-base) var(--ease-spring);
}

.logo:hover .logo-mark { transform: rotate(-10deg) scale(1.08); }
.logo-mark svg { width: 20px; height: 20px; }
.logo-text small {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-link {
  position: relative;
  padding: .5rem .875rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-in-out-soft),
              background-color var(--dur-fast) var(--ease-in-out-soft);
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--grad-primary);
  transform: translateX(-50%);
  transition: width var(--dur-base) var(--ease-out-expo);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 18px; }
.nav-link.active { color: var(--text-primary); }
.nav-link.active::after { width: 18px; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

/* Icon button */
.icon-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-glass);
  color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease-in-out-soft);
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--surface-glass-hover);
}

.icon-btn svg { width: 18px; height: 18px; }

/* Dropdown (language) */
.dropdown { position: relative; }

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  height: 38px;
  padding: 0 .75rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-glass);
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: all var(--dur-fast) var(--ease-in-out-soft);
}

.dropdown-toggle:hover { color: var(--text-primary); border-color: var(--border-strong); }
.dropdown-toggle svg { width: 16px; height: 16px; }
.dropdown-toggle .caret { width: 12px; height: 12px; transition: transform var(--dur-base) var(--ease-out-expo); }
.dropdown.open .caret { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 178px;
  padding: var(--sp-2);
  border-radius: var(--r-md);
  background: var(--bg-elev-2);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  transition: opacity var(--dur-base) var(--ease-out-expo),
              transform var(--dur-base) var(--ease-out-expo),
              visibility var(--dur-base);
  z-index: 1100;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  padding: .5rem .625rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  text-align: left;
  transition: all var(--dur-fast) var(--ease-in-out-soft);
}

.dropdown-item:hover { background: var(--surface-glass-hover); color: var(--text-primary); }
.dropdown-item.selected { color: var(--brand-cyan); background: rgba(0, 229, 255, .08); }
.dropdown-item .flag { font-size: 1rem; margin-right: 2px; }
.dropdown-item .check { width: 15px; height: 15px; opacity: 0; }
.dropdown-item.selected .check { opacity: 1; }
.dropdown-label {
  padding: var(--sp-2) .625rem var(--sp-1);
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
}

/* Mobile toggle */
.nav-burger { display: none; }

.burger-lines { width: 18px; height: 12px; position: relative; }
.burger-lines span {
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out-expo),
              opacity var(--dur-fast) var(--ease-in-out-soft);
}
.burger-lines span:nth-child(1) { top: 0; }
.burger-lines span:nth-child(2) { top: 5px; }
.burger-lines span:nth-child(3) { top: 10px; }
.nav-burger.open .burger-lines span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-burger.open .burger-lines span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.nav-burger.open .burger-lines span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: color-mix(in srgb, var(--bg-base) 96%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: var(--sp-6) 0 var(--sp-8);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--dur-base) var(--ease-out-expo),
              transform var(--dur-base) var(--ease-out-expo),
              visibility var(--dur-base);
}

.mobile-drawer.open { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--dur-fast) var(--ease-in-out-soft), padding-left var(--dur-base) var(--ease-out-expo);
}

.mobile-link:hover, .mobile-link:active { color: var(--brand-cyan); padding-left: var(--sp-2); }
.mobile-link svg { width: 16px; height: 16px; opacity: .4; }

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: var(--sp-9);
  overflow: hidden;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: .4375rem .875rem .4375rem .5625rem;
  border-radius: var(--r-pill);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--sp-5);
}

.hero-title {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
  margin-bottom: var(--sp-5);
}

.hero-title .line { display: block; }

.hero-desc {
  font-size: var(--fs-lead);
  color: var(--text-secondary);
  max-width: 33em;
  line-height: 1.78;
  margin-bottom: var(--sp-6);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-subtle);
}

.trust-item { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--text-tertiary); }
.trust-item svg { width: 15px; height: 15px; stroke: var(--brand-green); flex-shrink: 0; }

/* Hero stats strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-subtle);
}

.stat-num {
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  margin-top: var(--sp-1);
  line-height: 1.45;
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 300 / 610;
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(155deg, #2b3350, #10142a 45%, #1c2340);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, .5),
    0 0 0 1px rgba(255, 255, 255, .1) inset,
    0 0 70px rgba(0, 229, 255, .18);
  transform: rotateY(-13deg) rotateX(5deg) rotateZ(1.5deg);
  transform-style: preserve-3d;
  animation: phone-float 7s var(--ease-in-out-soft) infinite;
  will-change: transform;
}

[data-theme="light"] .phone {
  background: linear-gradient(155deg, #dfe6f5, #b9c4dc 45%, #cfd8ea);
  box-shadow: 0 50px 100px rgba(20, 40, 90, .22), 0 0 0 1px rgba(255, 255, 255, .8) inset;
}

@keyframes phone-float {
  0%, 100% { transform: rotateY(-13deg) rotateX(5deg) rotateZ(1.5deg) translateY(0); }
  50%      { transform: rotateY(-10deg) rotateX(3deg) rotateZ(1deg) translateY(-18px); }
}

.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 32px;
  background: var(--bg-elev-1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .phone-screen { background: #ffffff; }

.phone-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 22px;
  border-radius: var(--r-pill);
  background: #05070f;
  z-index: 5;
}

[data-theme="light"] .phone-notch { background: #0a1020; }

.wx-bar {
  padding: 38px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.wx-title { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.wx-caps { display: flex; gap: 5px; align-items: center; }
.wx-caps i {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: block;
}

.wx-body { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }

.wx-hero-card {
  border-radius: 14px;
  padding: 14px;
  background: var(--grad-primary);
  color: #04121c;
}
.wx-hero-card b { font-size: 13px; display: block; margin-bottom: 3px; }
.wx-hero-card span { font-size: 10px; opacity: .78; }

.wx-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wx-tile { display: grid; place-items: center; gap: 5px; }
.wx-tile i {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--bg-elev-3);
  display: grid;
  place-items: center;
}
.wx-tile i svg { width: 16px; height: 16px; stroke: var(--brand-cyan); }
.wx-tile span { font-size: 8px; color: var(--text-tertiary); }

.wx-list { display: flex; flex-direction: column; gap: 8px; }
.wx-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 11px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-subtle);
}
.wx-thumb { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; }
.wx-lines { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.wx-lines i { display: block; height: 6px; border-radius: 3px; background: var(--bg-elev-3); }
.wx-lines i:first-child { width: 74%; }
.wx-lines i:last-child { width: 46%; opacity: .6; }

.wx-tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 9px 0 13px;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.wx-tab { display: grid; place-items: center; gap: 3px; }
.wx-tab i { width: 16px; height: 16px; border-radius: 5px; background: var(--bg-elev-3); }
.wx-tab.on i { background: var(--brand-green); }
.wx-tab span { font-size: 7px; color: var(--text-tertiary); }
.wx-tab.on span { color: var(--brand-green); }

/* Floating info cards around phone */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: .75rem 1rem;
  border-radius: var(--r-md);
  background: var(--surface-glass);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: var(--shadow-md);
  z-index: 3;
  animation: card-float 5.5s var(--ease-in-out-soft) infinite;
  will-change: transform;
}

[data-theme="light"] .float-card { background: rgba(255, 255, 255, .92); }

.float-card i {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
}
.float-card i svg { width: 17px; height: 17px; }
.float-card b { display: block; font-size: var(--fs-xs); font-weight: 700; line-height: 1.3; }
.float-card small { font-size: var(--fs-micro); color: var(--text-tertiary); }

.float-1 { top: 11%; left: -4%; animation-delay: 0s; }
.float-2 { bottom: 22%; right: -8%; animation-delay: 1.6s; }
.float-3 { bottom: 5%; left: 2%; animation-delay: 3.1s; }

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-13px); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-micro);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  z-index: 2;
}

.scroll-cue .rail {
  width: 22px; height: 34px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  position: relative;
}

.scroll-cue .rail::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 7px;
  border-radius: 2px;
  background: var(--brand-cyan);
  transform: translateX(-50%);
  animation: scroll-dot 1.9s var(--ease-in-out-soft) infinite;
}

@keyframes scroll-dot {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* --------------------------------------------------------------------------
   10. Marquee (platform logos)
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-6);
  border-block: 1px solid var(--border-subtle);
  background: var(--bg-elev-1);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: var(--sp-8);
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-tertiary);
  white-space: nowrap;
  transition: color var(--dur-base) var(--ease-in-out-soft);
}

.marquee-item:hover { color: var(--text-primary); }
.marquee-item .pf {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.marquee-item .pf svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   11. Services
   -------------------------------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }

.svc-card { display: flex; flex-direction: column; height: 100%; }
.svc-card h3 { margin-bottom: var(--sp-3); font-size: var(--fs-h4); }
.svc-card p { color: var(--text-secondary); font-size: var(--fs-sm); line-height: 1.72; margin-bottom: var(--sp-4); }

.svc-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: auto; }

/* Featured wide card */
.svc-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--sp-6);
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, .1), rgba(124, 92, 255, .08));
}

.svc-featured-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

.mini-stat {
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  text-align: center;
}
.mini-stat b {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--brand-cyan);
}
.mini-stat span { font-size: var(--fs-micro); color: var(--text-tertiary); }

/* --------------------------------------------------------------------------
   12. Industries
   -------------------------------------------------------------------------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }

.ind-card {
  position: relative;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out-expo),
              border-color var(--dur-base) var(--ease-out-expo),
              box-shadow var(--dur-base) var(--ease-out-expo);
}

.ind-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }

.ind-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.ind-head i {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--grad-primary-soft);
  flex-shrink: 0;
}
.ind-head i svg { width: 21px; height: 21px; stroke: var(--brand-cyan); }
.ind-head h4 { font-size: var(--fs-h4); }
.ind-card p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--sp-4); }

.ind-metrics { display: flex; gap: var(--sp-5); padding-top: var(--sp-3); border-top: 1px solid var(--border-subtle); }
.ind-metrics div b {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brand-green);
}
.ind-metrics div span { font-size: var(--fs-micro); color: var(--text-tertiary); }

/* --------------------------------------------------------------------------
   13. Global reach
   -------------------------------------------------------------------------- */
.globe-wrap {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.region-list { display: flex; flex-direction: column; gap: var(--sp-3); }

.region-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  cursor: default;
  transition: all var(--dur-base) var(--ease-out-expo);
}

.region-card:hover {
  border-color: var(--brand-cyan);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.region-flag {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  filter: saturate(1.1);
}

.region-body { flex: 1; min-width: 0; }
.region-body h4 { font-size: var(--fs-body); margin-bottom: 3px; }
.region-body p { font-size: var(--fs-xs); color: var(--text-secondary); line-height: 1.6; }
.region-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  flex-shrink: 0; text-align: right;
}
.region-meta b { font-size: var(--fs-sm); color: var(--brand-cyan); font-weight: 700; }
.region-meta span { font-size: var(--fs-micro); color: var(--text-tertiary); }

/* World map svg */
.map-panel {
  position: relative;
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.map-dots { width: 100%; height: auto; }
.map-dots circle.node { fill: var(--brand-cyan); }
.map-dots circle.ping { fill: none; stroke: var(--brand-cyan); stroke-width: 1.2; opacity: 0; }
.map-dots path.arc { fill: none; stroke: url(#arcGrad); stroke-width: 1.3; stroke-linecap: round; opacity: .55; }

@keyframes ping-out {
  0%   { r: 3; opacity: .85; }
  100% { r: 17; opacity: 0; }
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
}
.map-legend div { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-micro); color: var(--text-tertiary); }
.map-legend em { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-cyan); }
.map-legend em.g { background: var(--brand-green); }
.map-legend em.v { background: var(--brand-violet); }

/* --------------------------------------------------------------------------
   14. Process timeline
   -------------------------------------------------------------------------- */
.process { position: relative; }

.process-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sp-4);
  position: relative;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 27px; left: 6%; right: 6%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent, var(--brand-cyan), var(--brand-violet), var(--brand-green), transparent);
  opacity: .35;
}

.step { position: relative; text-align: center; }

.step-dot {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--brand-cyan);
  transition: all var(--dur-base) var(--ease-spring);
}

.step:hover .step-dot {
  background: var(--grad-primary);
  color: #04121c;
  border-color: transparent;
  transform: scale(1.13);
  box-shadow: var(--glow-cyan);
}

.step h4 { font-size: var(--fs-body); margin-bottom: var(--sp-2); }
.step p { font-size: var(--fs-xs); color: var(--text-secondary); line-height: 1.65; }
.step-time {
  display: inline-block;
  margin-top: var(--sp-3);
  font-size: var(--fs-micro);
  font-family: var(--font-mono);
  color: var(--brand-green);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(7, 193, 96, .1);
}

/* --------------------------------------------------------------------------
   15. Cases
   -------------------------------------------------------------------------- */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }

.case-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out-expo),
              border-color var(--dur-base) var(--ease-out-expo),
              box-shadow var(--dur-base) var(--ease-out-expo);
}

.case-card:hover { transform: translateY(-7px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }

.case-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.case-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 7, 15, .55), transparent 55%);
}

.cover-a { background: linear-gradient(135deg, #0b3d5c, #1c1147 70%); }
.cover-b { background: linear-gradient(135deg, #0d4a35, #08324f 70%); }
.cover-c { background: linear-gradient(135deg, #4a1a3d, #1b1348 70%); }

.case-cover .glyph {
  position: relative;
  z-index: 1;
  width: 62px; height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.case-cover .glyph svg { width: 28px; height: 28px; stroke: #fff; }

.case-tag {
  position: absolute;
  top: var(--sp-3); left: var(--sp-3);
  z-index: 2;
  padding: .25rem .625rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-micro);
  font-weight: 600;
  background: rgba(0, 0, 0, .4);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.case-body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.case-body h4 { margin-bottom: var(--sp-2); }
.case-body > p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--sp-4); flex: 1; }

.case-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
}
.case-kpis div { text-align: center; }
.case-kpis b {
  display: block;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--brand-green);
  letter-spacing: -.02em;
}
.case-kpis span { font-size: var(--fs-micro); color: var(--text-tertiary); line-height: 1.3; display: block; }

/* --------------------------------------------------------------------------
   16. Why us / features
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
}

.why-card { text-align: left; padding: var(--sp-5); }
.why-card h4 { font-size: var(--fs-body); margin-bottom: var(--sp-2); }
.why-card p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.7; }

/* Comparison table */
.cmp-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border-subtle); }
.cmp {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  background: var(--surface-glass);
}
.cmp th, .cmp td { padding: var(--sp-4) var(--sp-5); text-align: left; }
.cmp thead th {
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 600;
}
.cmp thead th:last-child { color: var(--brand-cyan); }
.cmp tbody tr { border-bottom: 1px solid var(--border-subtle); transition: background-color var(--dur-fast); }
.cmp tbody tr:last-child { border-bottom: none; }
.cmp tbody tr:hover { background: var(--surface-glass-hover); }
.cmp td:first-child { font-weight: 600; color: var(--text-primary); }
.cmp td:nth-child(2) { color: var(--text-tertiary); }
.cmp td:last-child { color: var(--text-primary); }
.cmp .yes { display: inline-flex; align-items: center; gap: var(--sp-2); }
.cmp .yes svg { width: 15px; height: 15px; stroke: var(--brand-green); flex-shrink: 0; }
.cmp .no svg { width: 15px; height: 15px; stroke: var(--text-tertiary); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   17. Pricing
   -------------------------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); align-items: stretch; }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  transition: transform var(--dur-base) var(--ease-out-expo),
              border-color var(--dur-base) var(--ease-out-expo),
              box-shadow var(--dur-base) var(--ease-out-expo);
}

.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.price-card.featured {
  border-color: rgba(0, 229, 255, .4);
  background: linear-gradient(160deg, rgba(0, 229, 255, .09), rgba(124, 92, 255, .06));
  box-shadow: var(--glow-cyan);
}

.price-flag {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  padding: .25rem .875rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--grad-primary);
  color: #04121c;
  white-space: nowrap;
}

.price-name { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.price-desc { font-size: var(--fs-xs); color: var(--text-tertiary); line-height: 1.6; margin-bottom: var(--sp-5); min-height: 2.6em; }
.price-amt { display: flex; align-items: baseline; gap: 4px; margin-bottom: var(--sp-5); padding-bottom: var(--sp-5); border-bottom: 1px solid var(--border-subtle); }
.price-amt .cur { font-size: var(--fs-sm); color: var(--text-secondary); font-weight: 600; }
.price-amt .val { font-size: 2.25rem; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.price-amt .per { font-size: var(--fs-xs); color: var(--text-tertiary); }

.price-feats { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-6); flex: 1; }
.price-feats li { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.6; }
.price-feats svg { width: 16px; height: 16px; stroke: var(--brand-green); flex-shrink: 0; margin-top: 3px; }

/* --------------------------------------------------------------------------
   18. Testimonials
   -------------------------------------------------------------------------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }

.quote-card { display: flex; flex-direction: column; gap: var(--sp-4); }
.quote-mark { font-size: 2.75rem; line-height: .6; color: var(--brand-cyan); opacity: .35; font-family: Georgia, serif; }
.quote-card p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.8; flex: 1; }

.quote-by { display: flex; align-items: center; gap: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--border-subtle); }
.avatar {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #04121c;
  flex-shrink: 0;
}
.av-1 { background: var(--grad-primary); }
.av-2 { background: var(--grad-green); }
.av-3 { background: var(--grad-warm); }
.quote-by b { display: block; font-size: var(--fs-sm); }
.quote-by span { font-size: var(--fs-micro); color: var(--text-tertiary); }

.stars { display: flex; gap: 2px; }
.stars svg { width: 13px; height: 13px; fill: var(--brand-amber); stroke: none; }

/* --------------------------------------------------------------------------
   19. FAQ
   -------------------------------------------------------------------------- */
.faq-list { max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--sp-3); }

.faq-item {
  border-radius: var(--r-md);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-in-out-soft),
              background-color var(--dur-base) var(--ease-in-out-soft);
}

.faq-item.open { border-color: rgba(0, 229, 255, .32); background: var(--surface-glass-hover); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5);
  font-size: var(--fs-body);
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
  transition: color var(--dur-fast);
}

.faq-q:hover { color: var(--brand-cyan); }

.faq-icon {
  position: relative;
  width: 20px; height: 20px;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--brand-cyan);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.faq-icon::before { width: 13px; height: 2px; }
.faq-icon::after { width: 2px; height: 13px; }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out-expo);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p {
  padding: 0 var(--sp-5) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   20. CTA + Contact form
   -------------------------------------------------------------------------- */
.cta-panel {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(0, 229, 255, .13), rgba(124, 92, 255, .11));
  border: 1px solid var(--border-strong);
  overflow: hidden;
}

.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; position: relative; z-index: 2; }

.contact-info { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-6); }
.contact-row { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--text-secondary); }
.contact-row i {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.contact-row i svg { width: 17px; height: 17px; stroke: var(--brand-cyan); }
.contact-row b { display: block; color: var(--text-primary); font-size: var(--fs-sm); }
.contact-row span { font-size: var(--fs-micro); color: var(--text-tertiary); }

.form-card {
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--bg-elev-2);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .form-card { background: #fff; }

.field { margin-bottom: var(--sp-4); }
.field label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}
.field label .req { color: var(--brand-pink); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: .8125rem 1rem;
  border-radius: var(--r-sm);
  background: var(--bg-elev-1);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast) var(--ease-in-out-soft),
              box-shadow var(--dur-fast) var(--ease-in-out-soft),
              background-color var(--dur-fast);
}

[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea { background: var(--bg-elev-1); }

.field input::placeholder, .field textarea::placeholder { color: var(--text-tertiary); }

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, .13);
  outline: none;
}

.field textarea { resize: vertical; min-height: 96px; font-family: inherit; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7492' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

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

.form-note { font-size: var(--fs-micro); color: var(--text-tertiary); margin-top: var(--sp-3); text-align: center; line-height: 1.6; }

.form-ok {
  display: none;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  margin-top: var(--sp-4);
  border-radius: var(--r-sm);
  background: rgba(7, 193, 96, .1);
  border: 1px solid rgba(7, 193, 96, .3);
  font-size: var(--fs-sm);
  color: var(--brand-green);
}
.form-ok.show { display: flex; animation: slide-up .4s var(--ease-out-expo); }
.form-ok svg { width: 18px; height: 18px; stroke: var(--brand-green); flex-shrink: 0; }
.form-err {
  background: rgba(255, 95, 162, .1);
  border-color: rgba(255, 95, 162, .35);
  color: var(--brand-pink);
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  padding-top: var(--sp-10);
  background: var(--bg-elev-1);
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: var(--sp-6);
  padding-bottom: var(--sp-8);
}

.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.75;
  margin: var(--sp-4) 0 var(--sp-5);
  max-width: 34ch;
}

.social-row { display: flex; gap: var(--sp-2); }
.social {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  transition: all var(--dur-base) var(--ease-out-expo);
}
.social:hover {
  color: var(--brand-cyan);
  border-color: var(--brand-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.social svg { width: 17px; height: 17px; }

.footer-col h5 {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  transition: color var(--dur-fast), padding-left var(--dur-base) var(--ease-out-expo);
}
.footer-col a:hover { color: var(--brand-cyan); padding-left: 4px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.footer-legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer-legal a:hover { color: var(--brand-cyan); }

/* Back to top */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 900;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #04121c;
  box-shadow: 0 10px 28px rgba(0, 180, 255, .38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.85);
  transition: all var(--dur-base) var(--ease-out-expo);
}

.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 16px 36px rgba(0, 180, 255, .5); }
.to-top svg { width: 19px; height: 19px; }

/* --------------------------------------------------------------------------
   22. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease-out-expo), transform .75s var(--ease-out-expo);
}

[data-reveal].in { opacity: 1; transform: none; }

[data-reveal="left"]  { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="scale"] { transform: scale(.94); }

/* Progress bar */
.read-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--grad-primary);
  z-index: 1200;
  transition: width .1s linear;
}

/* --------------------------------------------------------------------------
   23. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .hero-visual { order: -1; margin-bottom: var(--sp-4); }
  .phone { width: min(258px, 66vw); transform: rotateY(-8deg) rotateX(3deg); }
  .float-2 { right: -2%; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-featured { grid-column: span 2; }
  .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-grid { grid-template-columns: 1fr; }
  .globe-wrap { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--sp-7); }
  .process-track::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; }
  .price-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .cta-grid { grid-template-columns: 1fr; }
  .desktop-only { display: none !important; }
}

@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 2rem); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-featured { grid-column: span 1; grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .field-row { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .float-card { padding: .5rem .75rem; }
  .float-card i { width: 28px; height: 28px; }
  .float-1 { left: -2%; top: 8%; }
  .float-2 { right: -2%; }
  .float-3 { display: none; }
  .hero-trust { gap: var(--sp-4); }
  .card { padding: var(--sp-5); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .process-track { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .logo-text small { display: none; }
}

/* --------------------------------------------------------------------------
   24. Accessibility / motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media print {
  .nav, .to-top, .scroll-cue, #particles, .orb, .read-bar { display: none !important; }
  body { background: #fff; color: #000; }
}
