/* ZhiEra · marketing site (v2 — premium dark hero refresh) */

:root {
  --ink: #0B0B0F;
  --ink-2: #14141B;
  --ink-3: #1E1E27;
  --paper: #FFFFFF;
  --paper-muted: #F5F5F7;
  --paper-tint: #FAFAFB;
  --line: #E6E6EC;
  --line-soft: #F0F0F4;
  --line-deep: #C8C8D0;
  --brand: #10B981;
  --brand-bright: #34D399;
  --brand-deep: #059669;
  --brand-soft: rgba(16, 185, 129, 0.12);
  --accent: #6366F1;
  --pink: #EC4899;
  --text: #1F1F26;
  --text-muted: #6E6E78;
  --text-subtle: #9999A1;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 72px rgba(15, 23, 42, 0.14);
  --max-w: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
               "PingFang SC", "Hiragino Sans GB", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  position: fixed;
  top: 12px; left: 12px;
  background: var(--ink); color: white;
  padding: 8px 14px; border-radius: 8px;
  z-index: 1000;
}

/* ---------------- nav ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(11, 11, 15, 0.55);
  border-bottom: 1px solid transparent;
  color: white;
  transition: padding 200ms ease, background 200ms ease, border-color 200ms ease;
}
.nav.scrolled {
  padding: 12px 32px;
  background: rgba(11, 11, 15, 0.85);
  border-bottom-color: rgba(255,255,255,0.06);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-mark { display: inline-flex; }
.brand-word { font-variation-settings: "wght" 800; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}
.nav-links a {
  position: relative;
  transition: color 120ms ease;
}
.nav-links a:hover { color: white; }
.lang-toggle {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 12px;
  color: white;
  transition: background 120ms ease, border-color 120ms ease;
}
.lang-toggle:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); }
@media (max-width: 880px) {
  .nav { padding: 14px 16px; }
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-links a:nth-child(2),
  .nav-links a:nth-child(3) { display: none; }
}

/* ---------------- hero (DARK) ---------------- */
.hero-dark {
  position: relative;
  background: #060608;
  color: white;
  overflow: hidden;
  padding: 200px 0 60px;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  transition: transform 800ms cubic-bezier(.16,1,.3,1);
}
.mesh-a { width: 580px; height: 580px; background: rgba(16, 185, 129, 0.55); top: -180px; right: -100px; animation: meshDrift 22s ease-in-out infinite; }
.mesh-b { width: 480px; height: 480px; background: rgba(99, 102, 241, 0.55); bottom: -160px; left: -100px; animation: meshDrift 22s ease-in-out infinite -8s; }
.mesh-c { width: 320px; height: 320px; background: rgba(236, 72, 153, 0.45); top: 35%; left: 38%; animation: meshDrift 22s ease-in-out infinite -14s; }
@keyframes meshDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.08); }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(60% 80% at 50% 30%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(60% 80% at 50% 30%, black 30%, transparent 100%);
}
.grain {
  position: absolute;
  inset: 0;
  filter: url(#grain);
  opacity: 0.7;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 640px;
}
@media (max-width: 1080px) { .hero-grid { grid-template-columns: 1fr 0.9fr; gap: 30px; } }
@media (max-width: 960px)  {
  .hero-dark { padding: 130px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; min-height: 0; }
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(255,255,255,0.06);
  color: white;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.005em;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.dot-live {
  position: relative;
  width: 7px; height: 7px;
  background: var(--brand-bright);
  border-radius: 50%;
}
.dot-live:after {
  content: "";
  position: absolute;
  inset: -5px;
  background: var(--brand-bright);
  border-radius: 50%;
  opacity: 0.5;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.5; }
  50%      { transform: scale(1.7);  opacity: 0; }
}

.hero-text h1 {
  font-size: clamp(48px, 7.4vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 900;
  margin: 0 0 26px;
  color: white;
}
.hero-line-1, .hero-line-2 { display: block; }
.grad-text {
  background: linear-gradient(120deg, #34D399 0%, #818CF8 60%, #F472B6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  margin: 0 0 40px;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.btn.primary {
  background: white;
  color: var(--ink);
  box-shadow: 0 6px 24px rgba(255,255,255,0.15), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(255,255,255,0.2), 0 0 0 1px rgba(255,255,255,0.08) inset; }
.btn.ghost-dark {
  background: rgba(255,255,255,0.06);
  color: white;
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
}
.btn.ghost-dark:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); }

/* ---------------- hero device (iPhone with real-looking app UI) --------------- */
.hero-art {
  position: relative;
  height: 680px;
}
.device-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 600px;
  background: radial-gradient(closest-side, rgba(16,185,129,0.35), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}
.device-frame {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
  width: 320px;
  height: 660px;
  background: linear-gradient(155deg, #2A2A35 0%, #0A0A10 80%);
  border-radius: 52px;
  padding: 14px;
  box-shadow:
    0 80px 160px -30px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.07) inset,
    0 0 0 6px #000 inset;
  z-index: 2;
  transition: transform 600ms cubic-bezier(.16,1,.3,1);
}
.device-side {
  position: absolute;
  right: -2px;
  top: 130px;
  width: 4px;
  height: 64px;
  background: linear-gradient(180deg, #2A2A35 0%, #444 50%, #2A2A35 100%);
  border-radius: 2px;
}
.device-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #000;
  border-radius: 99px;
  z-index: 3;
}
.device-screen {
  position: relative;
  height: 100%;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(16,185,129,0.16), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(99,102,241,0.18), transparent 60%),
    #0F0F14;
  border-radius: 40px;
  padding: 50px 18px 16px;
  color: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 700;
  padding: 0 6px 14px;
}
.sb-icons { display: flex; align-items: center; gap: 4px; opacity: 0.95; }
.sb-signal { width: 16px; height: 10px; background:
   linear-gradient(180deg, transparent 0%, transparent 30%, white 30%, white 100%);
   mask:
   radial-gradient(circle at 2px 8px, white 1.2px, transparent 1.5px),
   radial-gradient(circle at 6px 6px, white 1.2px, transparent 1.5px),
   radial-gradient(circle at 10px 4px, white 1.2px, transparent 1.5px),
   radial-gradient(circle at 14px 2px, white 1.2px, transparent 1.5px);
   -webkit-mask:
   radial-gradient(circle at 2px 8px, white 1.2px, transparent 1.5px),
   radial-gradient(circle at 6px 6px, white 1.2px, transparent 1.5px),
   radial-gradient(circle at 10px 4px, white 1.2px, transparent 1.5px),
   radial-gradient(circle at 14px 2px, white 1.2px, transparent 1.5px);
   display: inline-block; }
.sb-batt {
  display: inline-block;
  width: 24px; height: 11px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 3px;
  padding: 1px;
  position: relative;
  margin-left: 2px;
}
.sb-batt:before {
  content: "";
  position: absolute;
  top: 1.5px; left: 1.5px; bottom: 1.5px;
  width: 65%;
  background: white;
  border-radius: 1px;
}
.sb-batt:after {
  content: "";
  position: absolute;
  top: 3px; right: -3px;
  width: 2px; height: 5px;
  background: rgba(255,255,255,0.6);
  border-radius: 1px;
}
.app-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 4px 6px 12px;
}
.app-greeting { font-size: 11px; opacity: 0.55; font-weight: 600; letter-spacing: 0.005em; }
.app-name { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; margin-top: 2px; }
.app-balance {
  text-align: right;
  background: rgba(16,185,129,0.14);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex; flex-direction: column;
}
.app-balance-label { font-size: 9px; opacity: 0.7; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.app-balance-num { font-size: 16px; font-weight: 900; color: var(--brand-bright); margin-top: 2px; }
.app-search {
  margin: 4px 6px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 12.5px;
  font-weight: 600;
}
.app-search-text { color: rgba(255,255,255,0.5); }
.app-section-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  padding: 0 8px 8px;
}
.app-card {
  display: flex; align-items: center; gap: 10px;
  margin: 0 6px 8px;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  transition: background 160ms ease;
}
.app-card-hero {
  background: linear-gradient(140deg, rgba(16,185,129,0.18) 0%, rgba(99,102,241,0.10) 100%);
  border-color: rgba(16,185,129,0.35);
}
.app-card-flag { font-size: 26px; line-height: 1; }
.app-card-body { flex: 1; }
.app-card-title { font-size: 14px; font-weight: 900; letter-spacing: -0.005em; }
.app-card-meta { font-size: 11px; opacity: 0.55; margin-top: 2px; font-weight: 600; }
.app-card-price { display: flex; flex-direction: column; align-items: flex-end; }
.app-card-price-num { font-size: 14px; font-weight: 900; color: var(--brand-bright); }
.app-card-price-strike { font-size: 10px; opacity: 0.45; text-decoration: line-through; margin-top: 2px; }
.app-bottom-bar {
  margin: auto -18px -16px;
  padding: 12px 14px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(20px);
}
.abb-tab {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  gap: 3px;
  padding: 6px 0 4px;
}
.abb-tab.abb-active { color: var(--brand-bright); }
.abb-tab.abb-msg .abb-badge {
  position: absolute;
  top: 2px;
  left: 50%;
  margin-left: 14px;
  background: #FF3B30;
  color: white;
  font-size: 8.5px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 99px;
  border: 1.5px solid #0F0F14;
}

.floating-card {
  position: absolute;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 18px 12px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.4);
  z-index: 3;
  animation: floatY 6s ease-in-out infinite;
  backdrop-filter: blur(20px);
}
.floating-card.card-a { top: 10%; left: 0; animation-delay: 0s; }
.floating-card.card-b { bottom: 22%; right: -10px; animation-delay: -3s; }
.floating-card.card-c { top: 48%; left: -8%; animation-delay: -1.5s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.floating-icon-svg {
  width: 36px; height: 36px;
  background: var(--paper-muted); border-radius: 10px;
  display: grid; place-items: center;
}
.floating-title { font-weight: 900; font-size: 13px; line-height: 1.2; }
.floating-sub { color: var(--text-muted); font-size: 11px; font-weight: 600; }

@media (max-width: 960px) { .hero-art { display: none; } }

/* ---------------- flag marquee ---------------- */
.flag-marquee {
  position: relative;
  margin-top: 80px;
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 22px 0;
}
.flag-track {
  display: flex;
  flex-shrink: 0;
  animation: marquee 50s linear infinite;
  gap: 36px;
  padding-right: 36px;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.flag {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  letter-spacing: -0.005em;
}

/* ---------------- infrastructure bar ---------------- */
.infra-bar {
  background: var(--paper);
  padding: 36px 0;
  border-bottom: 1px solid var(--line-soft);
}
.infra-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--text-subtle);
  text-align: center;
  margin-bottom: 20px;
}
.infra-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.infra-logo {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.025em;
  color: var(--text-muted);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  filter: grayscale(1);
  opacity: 0.75;
  transition: opacity 200ms ease, filter 200ms ease;
}
.infra-logo:hover { opacity: 1; filter: none; color: var(--ink); }
.infra-divider {
  width: 1px; height: 18px;
  background: var(--line);
}
@media (max-width: 720px) {
  .infra-logos { gap: 14px; }
  .infra-logo { font-size: 16px; }
  .infra-divider { display: none; }
}

/* ---------------- stats ---------------- */
.stats-bar {
  background: var(--ink);
  color: white;
  padding: 60px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; } }
.stat-item { text-align: center; }
.stat-num {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.035em;
  background: linear-gradient(120deg, #fff 0%, #34D399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label {
  margin-top: 12px;
  font-size: 12.5px;
  opacity: 0.65;
  font-weight: 600;
  letter-spacing: 0.005em;
}

/* ---------------- generic section ---------------- */
.section { padding: 120px 0; position: relative; }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head.light { color: white; }
.section-head .kicker { display: inline-block; }
.section-head h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 900;
  margin: 14px 0 16px;
}
.section-head .lede {
  color: var(--text-muted);
  font-size: 17.5px;
  margin: 0 auto;
  max-width: 600px;
}
.kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-deep);
}
.section.dark .kicker, .trust .kicker { color: var(--brand-bright); }

/* ---------------- coverage / dotted world map ---------------- */
.coverage { background: var(--paper-tint); }
.map-wrap {
  position: relative;
  background: linear-gradient(180deg, #0B0B0F 0%, #14141B 100%);
  border-radius: var(--radius-xl);
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  aspect-ratio: 2 / 1;
}
.grain-soft {
  position: absolute;
  inset: 0;
  filter: url(#grain);
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}
.world-dots {
  position: absolute;
  inset: 30px;
  width: calc(100% - 60px);
  height: calc(100% - 60px);
  z-index: 2;
}
.world-dots circle {
  fill: rgba(255,255,255,0.18);
}
.pulse-markers {
  position: absolute;
  inset: 30px;
  width: calc(100% - 60px);
  height: calc(100% - 60px);
  z-index: 3;
  pointer-events: none;
}
.pulse-pin {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--brand-bright);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(52,211,153,0.7);
  transform: translate(-50%, -50%);
}
.pulse-pin:after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid var(--brand-bright);
  border-radius: 50%;
  opacity: 0;
  animation: pinRing 2.4s ease-out infinite;
}
.pulse-pin:nth-child(2n):after  { animation-delay: -0.6s; }
.pulse-pin:nth-child(3n):after  { animation-delay: -1.2s; }
.pulse-pin:nth-child(5n):after  { animation-delay: -1.8s; }
@keyframes pinRing {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}
.map-legend {
  position: absolute;
  bottom: 22px; left: 30px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 99px;
  padding: 7px 16px;
  color: white;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  z-index: 4;
  backdrop-filter: blur(20px);
}
.legend-dot {
  width: 8px; height: 8px;
  background: var(--brand-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(52,211,153,0.7);
}

/* ---------------- products ---------------- */
.products { background: var(--paper); }
.product-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}
@media (max-width: 960px) { .product-grid { grid-template-columns: 1fr; } }
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.product-card.highlight {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(16,185,129,0.06), transparent 60%),
    linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.product-card.secondary { background: var(--paper-muted); }
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: white;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.product-badge.muted { background: var(--text-muted); }
.badge-dot {
  width: 6px; height: 6px;
  background: var(--brand-bright); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.product-card h3 {
  font-size: clamp(30px, 3.6vw, 40px);
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  font-weight: 900;
  line-height: 1.05;
}
.product-card p { color: var(--text-muted); font-size: 16px; line-height: 1.6; margin: 0 0 28px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 28px;
}
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; gap: 20px; } }
.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-icon-svg {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.feature-title { font-weight: 800; font-size: 15px; line-height: 1.3; color: var(--ink); }
.feature-sub { color: var(--text-muted); font-size: 13.5px; line-height: 1.55; margin-top: 3px; }

/* ---------------- code editor mockup ---------------- */
.ide-mock {
  background: #0B0B0F;
  border-radius: 14px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.ide-tabs {
  display: flex; align-items: center; gap: 10px;
  background: #15151D;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ide-traffic { display: flex; gap: 6px; margin-right: 8px; }
.ide-traffic span { width: 10px; height: 10px; border-radius: 50%; }
.ide-traffic span:nth-child(1) { background: #FF5F57; }
.ide-traffic span:nth-child(2) { background: #FEBC2E; }
.ide-traffic span:nth-child(3) { background: #28C840; }
.ide-tab {
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 11.5px;
  color: rgba(255,255,255,0.45);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}
.ide-tab.ide-tab-active {
  color: white;
  background: rgba(255,255,255,0.06);
}
.ide-code {
  font-family: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: #F5F5F7;
  padding: 18px 0 18px 0;
  margin: 0;
  overflow-x: auto;
}
.ide-code code { display: block; }
.ide-code .line {
  display: block;
  padding-right: 18px;
  white-space: pre;
}
.ide-code .ln {
  display: inline-block;
  width: 38px;
  text-align: right;
  color: rgba(255,255,255,0.25);
  user-select: none;
  margin-right: 14px;
  padding-right: 8px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.c-comment  { color: #6E6E78; }
.c-keyword  { color: #34D399; }
.c-string   { color: #FBBF24; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--ink);
  font-size: 14.5px;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  transition: gap 160ms ease;
}
.link-arrow:hover { gap: 10px; }

/* ---------------- how it works ---------------- */
.how { background: var(--paper-tint); }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  align-items: start;
  padding: 36px 40px;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.step:hover { transform: translateX(8px); box-shadow: var(--shadow-md); }
@media (max-width: 720px) {
  .step { grid-template-columns: 1fr; gap: 12px; padding: 28px; }
}
.step-num {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  line-height: 1;
}
.step-body h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.025em; font-weight: 900; }
.step-body p { color: var(--text-muted); margin: 0; font-size: 15.5px; line-height: 1.65; }

/* ---------------- use cases ---------------- */
.use-cases { background: var(--paper); }
.use-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .use-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .use-grid { grid-template-columns: 1fr; } }
.use-card {
  background: var(--paper-muted);
  border-radius: var(--radius-xl);
  padding: 30px 26px;
  transition: transform 240ms ease, background 240ms ease, border-color 240ms ease;
  border: 1px solid transparent;
}
.use-card:hover {
  transform: translateY(-6px);
  background: white;
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}
.use-icon-svg {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.use-card h4 { margin: 0 0 10px; font-size: 18px; font-weight: 900; letter-spacing: -0.02em; }
.use-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ---------------- philosophy (editorial) ---------------- */
.philosophy { background: var(--paper-tint); padding: 120px 0; }
.philo-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 880px) { .philo-grid { grid-template-columns: 1fr; gap: 40px; } }
.philo-text h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 900;
  margin: 14px 0 26px;
}
.philo-text p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 18px;
}
.philo-quote {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.big-quote-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 100px;
  line-height: 0.8;
  color: var(--brand);
  position: absolute;
  top: 24px; left: 24px;
  opacity: 0.35;
}
.philo-quote p {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.5;
  color: var(--ink);
  margin: 26px 0 18px;
  position: relative;
  z-index: 1;
}
.philo-quote footer {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  display: flex; flex-direction: column; gap: 2px;
}
.philo-quote footer strong { color: var(--ink); font-weight: 800; }

/* ---------------- engineering ---------------- */
.engineering { background: var(--paper); }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.pillar h4 { font-size: 20px; font-weight: 900; margin: 0 0 10px; letter-spacing: -0.02em; }
.pillar p { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; margin: 0 0 22px; }
.pillar-stat {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.pillar-num {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.pillar-unit { font-size: 18px; opacity: 0.5; font-weight: 800; }
.pillar-stat-label {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* ---------------- trust ---------------- */
.trust {
  background: var(--ink);
  color: white;
  position: relative;
  overflow: hidden;
}
.trust:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(16,185,129,0.18), transparent 60%),
    radial-gradient(50% 60% at 100% 100%, rgba(99,102,241,0.18), transparent 60%);
  pointer-events: none;
}
.trust .container { position: relative; z-index: 1; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 960px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(20px);
  transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
}
.trust-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}
.trust-icon-svg {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(16,185,129,0.18);
  color: var(--brand-bright);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.trust-title { font-weight: 900; font-size: 16px; margin-bottom: 8px; letter-spacing: -0.01em; }
.trust-card p { font-size: 13.5px; color: rgba(255,255,255,0.65); margin: 0; line-height: 1.6; }

/* ---------------- contact ---------------- */
.contact-section { background: var(--paper-muted); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.03em;
  margin: 12px 0 14px;
  line-height: 1.05;
  font-weight: 900;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 32px 36px;
  background: var(--ink);
  color: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.contact-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.55; font-weight: 800; }
.contact-value { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.contact-arrow { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); opacity: 0.6; }

/* ---------------- footer ---------------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 80px 0 32px;
  position: relative;
}
.footer:before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-brand-col { gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; color: white; letter-spacing: -0.02em; }
.footer-legal { font-size: 13px; line-height: 1.7; margin: 0; color: rgba(255,255,255,0.5); }
.footer-legal strong { color: white; font-weight: 700; }
.footer-legal a { color: white; font-weight: 600; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,0.12);
  color: var(--brand-bright);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}
.status-dot {
  position: relative;
  width: 7px; height: 7px;
  background: var(--brand-bright);
  border-radius: 50%;
}
.status-dot:after {
  content: "";
  position: absolute;
  inset: -4px;
  background: var(--brand-bright);
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse 2s ease-in-out infinite;
}
.footer h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.45);
  margin: 0 0 6px;
  font-weight: 800;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  padding: 4px 0;
  font-weight: 600;
  transition: color 120ms ease;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------- legal pages ---------------- */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 24px 120px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
}
.legal-page h1 {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.05;
}
.legal-page .updated {
  display: block;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 32px;
}
.legal-page h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 48px 0 12px;
  font-weight: 900;
}
.legal-page h3 {
  font-size: 17px;
  color: var(--ink);
  margin: 24px 0 8px;
  font-weight: 800;
}
.legal-page ul { padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--brand-deep); border-bottom: 1px solid currentColor; }
.legal-page table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13.5px;
  margin: 14px 0 20px;
}
.legal-page th, .legal-page td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal-page th { background: var(--paper-muted); font-weight: 800; color: var(--ink); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.back-link:hover { color: var(--ink); }

/* ---------------- scroll reveal ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .mesh, .badge-dot, .dot-live:after, .pulse-pin:after, .floating-card,
  .flag-track, .status-dot:after { animation: none; }
  html { scroll-behavior: auto; }
}
