:root {
  --bg: #07090c;
  --bg-elev: #0d1016;
  --surface: rgba(17, 21, 28, 0.78);
  --surface-solid: #11151c;
  --surface-2: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.085);
  --border-bright: rgba(255, 255, 255, 0.16);

  --text: rgba(255, 255, 255, 0.94);
  --text-dim: rgba(255, 255, 255, 0.64);
  --text-muted: rgba(255, 255, 255, 0.42);

  --emerald: #30d158;
  --emerald-bright: #4ce373;
  --emerald-soft: rgba(48, 209, 88, 0.14);
  --emerald-glow: rgba(48, 209, 88, 0.28);
  --teal: #2dd4bf;
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --red: #ff453a;
  --red-soft: rgba(255, 69, 58, 0.15);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 15px;
}

button, input {
  font: inherit;
  color: inherit;
}

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

.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Ambient Background ---------- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 25%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 25%, #000 40%, transparent 100%);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(115px);
  will-change: transform;
}

.aurora-emerald {
  width: 680px;
  height: 520px;
  top: -160px;
  right: -80px;
  background: radial-gradient(circle, rgba(48, 209, 88, 0.16) 0%, rgba(48, 209, 88, 0) 70%);
  animation: driftAurora1 18s ease-in-out infinite alternate;
}

.aurora-teal {
  width: 580px;
  height: 480px;
  top: 240px;
  left: -180px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.11) 0%, rgba(45, 212, 191, 0) 72%);
  animation: driftAurora2 22s ease-in-out infinite alternate;
}

@keyframes driftAurora1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-45px, 35px, 0) scale(1.08); }
}

@keyframes driftAurora2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(55px, -30px, 0) scale(1.1); }
}

.floating-glyphs {
  position: absolute;
  inset: 0;
  color: rgba(255, 255, 255, 0.04);
}

.glyph {
  position: absolute;
  width: 64px;
  height: 64px;
}

.glyph-1 { top: 15%; left: 6%; animation: floatSlow 14s ease-in-out infinite; }
.glyph-2 { top: 42%; right: 5%; animation: floatSlow 17s ease-in-out infinite reverse; }
.glyph-3 { bottom: 22%; left: 10%; width: 52px; height: 52px; animation: floatSlow 19s ease-in-out infinite; }
.glyph-4 { bottom: 14%; right: 12%; width: 56px; height: 56px; animation: floatSlow 15s ease-in-out infinite reverse; }

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(6deg); }
}

/* ---------- Sticky Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 9, 12, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 11px;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.nav-item {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-item:hover {
  color: var(--text);
}

.nav-item.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.lang-btn.active {
  color: #08120c;
  background: var(--emerald);
}

/* Shared Buttons */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.18s var(--ease-out), box-shadow 0.22s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-ghost-sm {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.btn-ghost-sm:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--border-bright);
}

.btn-emerald-sm {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--emerald);
  color: #051409;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(48, 209, 88, 0.25);
}

.btn-emerald-sm:hover {
  background: var(--emerald-bright);
  box-shadow: 0 6px 22px rgba(48, 209, 88, 0.36);
}

.btn-secondary-sm {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary-sm:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--border-bright);
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 16px;
  height: 1.8px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--border);
  background: rgba(7, 9, 12, 0.96);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  padding: 8px 4px;
  color: var(--text-dim);
  font-size: 14px;
}

.mobile-drawer-row {
  display: flex;
  gap: 8px;
  padding-top: 8px;
}

/* ---------- Hero Section ---------- */
.hero-section {
  padding: 58px 0 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 44px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.7);
  animation: pingEmerald 2.2s infinite;
}

@keyframes pingEmerald {
  0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

.hero-title {
  font-size: clamp(34px, 4.3vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 18px;
}

.title-gradient {
  background: linear-gradient(95deg, #30d158 0%, #5eead4 55%, #30d158 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerTitle 6s linear infinite;
}

@keyframes shimmerTitle {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-desc {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.72;
  max-width: 540px;
  margin-bottom: 22px;
}

.hero-desc .hl {
  color: var(--text);
  font-weight: 600;
}

.hero-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-dim);
  font-size: 14px;
}

.check-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: grid;
  place-items: center;
}

.check-icon svg {
  width: 12px;
  height: 12px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.btn-primary-lg {
  padding: 13px 22px;
  border-radius: 13px;
  background: var(--emerald);
  color: #05140a;
  font-size: 14.5px;
  box-shadow: 0 10px 28px rgba(48, 209, 88, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary-lg:hover {
  background: var(--emerald-bright);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(48, 209, 88, 0.36);
}

.os-icon {
  display: inline-flex;
  align-items: center;
}

.btn-secondary-lg {
  padding: 13px 18px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}

.btn-secondary-lg:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--border-bright);
}

.btn-video-lg {
  padding: 11px 16px;
  border-radius: 13px;
  background: rgba(48, 209, 88, 0.08);
  border: 1px solid rgba(48, 209, 88, 0.28);
  color: var(--text);
  font-size: 14px;
  gap: 8px;
  cursor: pointer;
}

.btn-video-lg:hover {
  background: rgba(48, 209, 88, 0.15);
  border-color: rgba(48, 209, 88, 0.5);
  transform: translateY(-1px);
}

.video-play-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.22);
  color: var(--emerald-bright);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.video-play-icon svg {
  margin-left: 1px;
}

.video-play-icon.sm {
  width: 19px;
  height: 19px;
}

.video-dur-tag {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.btn-link-lg {
  padding: 12px 10px;
  font-size: 14px;
  color: var(--emerald);
}

.btn-link-lg:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.metric-val {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.metric-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- Hero Right Radar Engine Card ---------- */
.notice-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(17, 21, 28, 0.72);
  border: 1px solid var(--border);
  font-size: 12.5px;
  backdrop-filter: blur(14px);
}

.notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-weight: 600;
  font-size: 11.5px;
  flex: none;
}

.pin-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.notice-text {
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-link {
  margin-left: auto;
  color: var(--emerald);
  font-weight: 600;
  flex: none;
}

/* Spotlight Glass Card base */
.spotlight-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 64px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(48, 209, 88, 0.09),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.engine-card {
  padding: 22px;
  --accent-state: var(--emerald);
  --accent-state-soft: var(--emerald-soft);
}

.engine-card[data-state="blocked"] {
  --accent-state: var(--amber);
  --accent-state-soft: var(--amber-soft);
}

.engine-card[data-state="tripped"] {
  --accent-state: var(--red);
  --accent-state-soft: var(--red-soft);
}

.engine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.engine-label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
}

.engine-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.engine-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-state);
  background: var(--accent-state-soft);
  border: 1px solid color-mix(in srgb, var(--accent-state) 35%, transparent);
  transition: all 0.3s ease;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-state);
  box-shadow: 0 0 10px var(--accent-state);
}

/* Radar Visualization */
.radar-stage {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.78fr;
  align-items: center;
  gap: 6px;
  padding: 14px 6px 16px;
}

.radar-node-wrap, .remote-node-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.radar-ring-outer {
  position: relative;
  width: 156px;
  height: 156px;
  display: grid;
  place-items: center;
}

.radar-ticks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent-state);
  animation: rotateTicks 28s linear infinite;
  transition: color 0.35s ease;
}

.engine-card[data-state="tripped"] .radar-ticks {
  animation-duration: 6s;
}

@keyframes rotateTicks {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-pulse-ring {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-state);
  opacity: 0;
  animation: radarExpand 2.8s cubic-bezier(0.2, 0.7, 0.2, 1) infinite;
}

.radar-pulse-ring.ring-2 {
  animation-delay: 1.4s;
}

@keyframes radarExpand {
  0% { transform: scale(0.95); opacity: 0.55; }
  100% { transform: scale(2.05); opacity: 0; }
}

.radar-core {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #161b24;
  border: 1.5px solid color-mix(in srgb, var(--accent-state) 65%, transparent);
  display: grid;
  place-items: center;
  color: var(--text);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent-state) 22%, transparent);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.node-caption {
  margin-top: 8px;
}

.node-title {
  font-size: 12.5px;
  font-weight: 600;
}

.node-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* Bridge & Data Packets */
.bridge-track {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
}

.bridge-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    color-mix(in srgb, var(--accent-state) 55%, transparent) 0 6px,
    transparent 6px 12px
  );
  transition: background 0.3s ease;
}

.bridge-packets {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: opacity 0.25s ease;
}

.engine-card:not([data-state="safe"]) .bridge-packets {
  opacity: 0;
}

.pkt {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: flowPacket 1.8s linear infinite;
}

.pkt.p2 { animation-delay: 0.6s; }
.pkt.p3 { animation-delay: 1.2s; }

@keyframes flowPacket {
  0% { left: -8px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.bridge-gate {
  position: relative;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #141922;
  border: 1.5px solid var(--accent-state);
  display: grid;
  place-items: center;
  color: var(--accent-state);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent-state) 35%, transparent);
  transition: transform 0.28s var(--ease-out), border-color 0.25s ease, color 0.25s ease;
}

.engine-card:not([data-state="safe"]) .bridge-gate {
  transform: scale(1.16);
}

.bridge-gate svg {
  width: 14px;
  height: 14px;
}

.bridge-gate .gate-block {
  display: none;
}

.engine-card:not([data-state="safe"]) .bridge-gate .gate-check {
  display: none;
}

.engine-card:not([data-state="safe"]) .bridge-gate .gate-block {
  display: block;
}

.remote-circle {
  width: 58px;
  height: 58px;
  margin-bottom: 34px;
  border-radius: 50%;
  background: #151a22;
  border: 1px solid var(--border-bright);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.engine-card:not([data-state="safe"]) .remote-circle {
  opacity: 0.45;
  transform: scale(0.94);
}

/* Engine Log Bar */
.engine-log {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 14px;
  font-size: 12.5px;
}

.log-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-state);
  background: var(--accent-state-soft);
  flex: none;
}

.log-msg {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
  flex: 1;
}

.log-tag {
  font-size: 11px;
  color: var(--text-muted);
  flex: none;
}

/* Scenario Switcher */
.scenario-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.scenario-hint {
  font-size: 11.5px;
  color: var(--text-muted);
}

.scenario-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.scenario-btn {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}

.scenario-btn:hover {
  border-color: var(--border-bright);
  color: var(--text);
}

.scenario-btn.active {
  background: var(--accent-state-soft);
  border-color: var(--accent-state);
  color: var(--text);
}

/* Timeline Bar */
.engine-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tl-step .tl-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.tl-step .tl-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent-state);
  border-radius: inherit;
  transition: width 0.55s var(--ease-out), background 0.3s ease;
}

.tl-step.done .tl-bar span,
.tl-step.active .tl-bar span {
  width: 100%;
}

.tl-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.tl-step.active .tl-label {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Shared Section Styling ---------- */
.section {
  padding: 74px 0;
  scroll-margin-top: 84px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 38px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 12px;
}

.eyebrow-num {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--emerald-soft);
  font-family: var(--font-mono);
}

.section-title {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 15px;
  color: var(--text-dim);
}

.walkthrough-video-bar {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.btn-video-inline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(48, 209, 88, 0.07);
  border: 1px solid rgba(48, 209, 88, 0.28);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.btn-video-inline:hover {
  background: rgba(48, 209, 88, 0.15);
  border-color: rgba(48, 209, 88, 0.5);
  transform: translateY(-1px);
}

/* ---------- Section 01: Bento Grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bento-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.bento-tag.emerald { color: var(--emerald); background: var(--emerald-soft); }
.bento-tag.red { color: var(--red); background: var(--red-soft); }
.bento-tag.teal { color: var(--teal); background: rgba(45, 212, 191, 0.14); }
.bento-tag.amber { color: var(--amber); background: var(--amber-soft); }

.bento-chip {
  font-size: 11.5px;
  color: var(--text-muted);
}

.bento-card h3 {
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.bento-card p {
  font-size: 13.8px;
  color: var(--text-dim);
  line-height: 1.65;
}

.inline-code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--emerald);
}

.mini-dual-badges {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12.5px;
  color: var(--text);
}

.mini-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}

.fuse-wave {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}

.fuse-wave span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 69, 58, 0.28);
}

.fuse-wave span:nth-child(1),
.fuse-wave span:nth-child(2),
.fuse-wave span:nth-child(3) {
  background: var(--emerald);
}

.fuse-wave .cut {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.mode-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mode-tags span, .mask-chip {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--text-dim);
}

.device-slots {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.slot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.slot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.privacy-pill-row {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mask-chip.ok {
  color: var(--emerald);
  border-color: rgba(48, 209, 88, 0.25);
  background: var(--emerald-soft);
}

/* ---------- Section 02: Interactive Walkthrough ---------- */
.walkthrough-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.stepper-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-item {
  text-align: left;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
}

.step-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.step-item.active {
  background: rgba(48, 209, 88, 0.08);
  border-color: rgba(48, 209, 88, 0.42);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-dim);
  flex: none;
  margin-top: 2px;
}

.step-item.active .step-num {
  background: var(--emerald);
  color: #061409;
}

.step-title {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* Desktop Client Window Mirror */
.client-window {
  background: rgba(20, 24, 32, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  min-height: 332px;
  display: flex;
  flex-direction: column;
}

.win-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.traffic-lights {
  display: flex;
  gap: 6px;
}

.traffic-lights .tl {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tl.red { background: #ff5f57; }
.tl.amber { background: #febc2e; }
.tl.green { background: #28c840; }

.win-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}

.win-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
}

.client-window[data-step="1"] .win-dot { background: var(--amber); }
.client-window[data-step="3"] .win-dot { background: var(--red); }

.win-tag {
  font-size: 10.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 999px;
}

.win-ver {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.mirror-pane {
  display: none;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  animation: fadeSlideIn 0.3s var(--ease-out);
}

.mirror-pane.active {
  display: flex;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mirror-auth-box {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: auto 0;
  padding: 10px 14px;
}

.mirror-shield-sm {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.mirror-shield-sm.emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.mirror-shield-sm.red {
  background: var(--red-soft);
  color: var(--red);
}

.mirror-auth-title {
  font-size: 15px;
  font-weight: 700;
}

.mirror-auth-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.mirror-fake-input {
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12.5px;
  color: var(--text-dim);
}

.mirror-fake-btn {
  text-align: center;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--emerald);
  color: #06140a;
  font-size: 12.5px;
  font-weight: 700;
}

.mirror-fake-btn.emerald-outline {
  margin-top: auto;
  background: rgba(48, 209, 88, 0.14);
  border: 1px solid rgba(48, 209, 88, 0.4);
  color: var(--emerald);
}

.mirror-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
}

.mirror-hero.checking { background: var(--amber-soft); border: 1px solid rgba(245, 158, 11, 0.25); }
.mirror-hero.safe { background: var(--emerald-soft); border: 1px solid rgba(48, 209, 88, 0.28); }
.mirror-hero.danger { background: var(--red-soft); border: 1px solid rgba(255, 69, 58, 0.30); }

.mirror-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.5px solid rgba(245, 158, 11, 0.25);
  border-top-color: var(--amber);
  animation: spin 0.9s linear infinite;
  flex: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.mirror-hero-t { font-size: 13.5px; font-weight: 700; }
.mirror-hero-s { font-size: 11.5px; color: var(--text-dim); }

.mirror-checks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mc-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  color: var(--text-dim);
}

.mc-row.done span:first-child { color: var(--emerald); font-weight: 700; }
.mc-row.active span:first-child { color: var(--amber); }
.mc-row.fail span:first-child { color: var(--red); font-weight: 700; }
.mc-row.warn span:first-child { color: var(--amber); font-weight: 700; }

.mirror-targets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.mt-card {
  padding: 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mt-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.mt-badge.green {
  font-size: 10.5px;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 2px 6px;
  border-radius: 999px;
}

.mt-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.mirror-pills {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mp.green {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(48, 209, 88, 0.10);
  color: var(--emerald);
}

/* ---------- Section 03: Download Center ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dl-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dl-card.os-detected {
  border-color: rgba(48, 209, 88, 0.45);
}

.dl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dl-os-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dl-os-badge h3 {
  font-size: 20px;
  line-height: 1.2;
}

.dl-req {
  font-size: 12px;
  color: var(--text-muted);
}

.ver-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
}

.dl-desc {
  font-size: 13.8px;
  color: var(--text-dim);
}

.dl-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 13px;
  transition: transform 0.18s var(--ease-out), border-color 0.2s, background 0.2s;
}

.dl-btn.primary {
  background: linear-gradient(135deg, rgba(48, 209, 88, 0.16), rgba(45, 212, 191, 0.08));
  border: 1px solid rgba(48, 209, 88, 0.42);
}

.dl-btn.primary:hover {
  transform: translateY(-2px);
  border-color: var(--emerald);
  background: linear-gradient(135deg, rgba(48, 209, 88, 0.24), rgba(45, 212, 191, 0.12));
}

.dl-btn.secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.dl-btn.secondary:hover {
  transform: translateY(-1px);
  border-color: var(--border-bright);
  background: rgba(255, 255, 255, 0.07);
}

.dl-btn-title {
  font-size: 14.5px;
  font-weight: 700;
}

.dl-btn-meta {
  font-size: 12px;
  color: var(--text-dim);
}

.dl-arrow {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
}

.dl-tip {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 12px;
}

.dl-tip summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-dim);
  list-style: none;
}

.dl-tip summary:hover {
  color: var(--emerald);
}

.dl-tip-body {
  padding-top: 10px;
  font-size: 12.5px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cmd-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cmd-copy-box code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--emerald);
  overflow-x: auto;
}

.copy-cmd-btn {
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  cursor: pointer;
  flex: none;
}

.dl-release-note {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}

/* ---------- Section 04: Register ---------- */
.register-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: start;
}

.reg-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.rh-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rh-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12.5px;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
}

.rh-t { font-size: 14.5px; font-weight: 700; margin-bottom: 2px; }
.rh-d { font-size: 13px; color: var(--text-dim); }

.register-card {
  padding: 28px;
}

.reg-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
  gap: 8px 12px;
}

.reg-card-head h3 {
  font-size: 20px;
  font-weight: 700;
}

.reg-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.form-group {
  margin-bottom: 15px;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out), opacity 0.28s ease, margin 0.35s ease;
  max-height: 160px;
}

.form-group.collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.req-star { color: var(--emerald); }

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid var(--border);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap.has-toggle input {
  padding-right: 42px;
}

.input-wrap input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.14);
}

.eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.eye-btn svg {
  width: 17px;
  height: 17px;
}

.eye-btn:hover { color: var(--text); }

.field-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 5px;
}

.field-error {
  min-height: 16px;
  font-size: 11.5px;
  color: var(--red);
  margin-top: 4px;
}

.pw-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.pw-bars {
  display: grid;
  grid-template-columns: repeat(4, 24px);
  gap: 4px;
}

.pw-bars span {
  height: 3.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  transition: background 0.25s ease;
}

.pw-strength[data-level="1"] .pw-bars span:nth-child(1) { background: var(--red); }
.pw-strength[data-level="2"] .pw-bars span:nth-child(-n+2) { background: var(--amber); }
.pw-strength[data-level="3"] .pw-bars span:nth-child(-n+3) { background: var(--teal); }
.pw-strength[data-level="4"] .pw-bars span { background: var(--emerald); }

.pw-text {
  font-size: 11.5px;
  color: var(--text-muted);
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-top: 4px;
  font-size: 12.8px;
  color: var(--text-dim);
}

.terms-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-bright);
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
  transition: all 0.18s ease;
}

.terms-check input:checked + .check-box {
  background: var(--emerald);
  border-color: var(--emerald);
}

.terms-check input:checked + .check-box::after {
  content: "✓";
  font-size: 12px;
  font-weight: 800;
  color: #051409;
}

.text-link-btn {
  border: none;
  background: transparent;
  color: var(--emerald);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-submit-full {
  width: 100%;
  margin-top: 12px;
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--emerald);
  color: #051409;
  font-size: 14.5px;
  box-shadow: 0 10px 26px rgba(48, 209, 88, 0.24);
}

.btn-submit-full:hover {
  background: var(--emerald-bright);
  transform: translateY(-1px);
}

.form-feedback {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.55;
}

.form-feedback.success {
  background: var(--emerald-soft);
  border: 1px solid rgba(48, 209, 88, 0.38);
  color: var(--text);
}

.form-feedback.error {
  background: var(--red-soft);
  border: 1px solid rgba(255, 69, 58, 0.38);
  color: var(--text);
}

.reg-pane.hidden,
.reg-success-card.hidden,
.account-summary-card.hidden,
.form-group.hidden,
.opt-tag.hidden {
  display: none;
}

/* Multi-tab account / referral / reset styles */
.reg-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.reg-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reg-tab:hover {
  color: var(--text);
}

.reg-tab.active {
  background: rgba(48, 209, 88, 0.15);
  color: var(--emerald);
  box-shadow: inset 0 0 0 1px rgba(48, 209, 88, 0.34);
}

.otp-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.otp-row .input-wrap {
  flex: 1;
}

.btn-send-otp {
  flex-shrink: 0;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(48, 209, 88, 0.42);
  background: rgba(48, 209, 88, 0.12);
  color: var(--emerald);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}

.btn-send-otp:hover:not(:disabled) {
  background: rgba(48, 209, 88, 0.22);
}

.btn-send-otp:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.opt-tag {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

.reg-success-card,
.account-summary-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.success-pill {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(48, 209, 88, 0.14);
  border: 1px solid rgba(48, 209, 88, 0.36);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 600;
}

.reg-success-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.success-sub {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

.invite-share-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-dim);
}

.invited-count-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(48, 209, 88, 0.14);
  color: var(--emerald);
  font-size: 11.5px;
  font-weight: 600;
}

.share-code-row,
.share-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.share-code-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--emerald);
}

.share-url-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-mini-btn {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.copy-mini-btn:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.success-manage-btn {
  width: 100%;
  padding: 10px 16px;
  border-radius: 11px;
}

.acct-login-intro {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.form-group .form-label-row label {
  margin-bottom: 0;
}

.subtle-inline-link {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
}

.subtle-inline-link:hover {
  color: var(--emerald);
  text-decoration: underline;
}

.form-alt-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.subtle-action {
  color: var(--text-dim);
  font-size: 12.5px;
  align-self: center;
}

.acct-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.acct-email-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.acct-plan-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.acct-devices-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.acct-devices-count {
  font-size: 12px;
  color: var(--text-dim);
}

.acct-devices-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acct-device-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.acct-device-info {
  min-width: 0;
}

.acct-device-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acct-device-meta {
  font-size: 12px;
  color: var(--text-dim);
}

.btn-unbind-web {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 69, 58, 0.4);
  background: transparent;
  color: #ff7b72;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-unbind-web:hover:not(:disabled) {
  background: rgba(255, 69, 58, 0.14);
}

.btn-unbind-web:disabled {
  opacity: 0.55;
  cursor: default;
}

/* ---------- Section 05: Transparency Grid ---------- */
.transparency-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 36px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(17, 21, 28, 0.58);
  border: 1px solid var(--border);
}

.trans-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.trans-item p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.65;
}

.legal-links-bar {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  background: rgba(5, 7, 10, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.footer-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
}

.footer-ver {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.api-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.api-status-pill.online .status-pulse {
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.footer-mail {
  font-size: 13px;
  color: var(--emerald);
}

/* ---------- Legal Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-panel {
  width: 100%;
  max-width: 660px;
  max-height: 84vh;
  background: #12161e;
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  animation: modalIn 0.25s var(--ease-out);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  font-size: 13.8px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-body h4 {
  color: var(--text);
  font-size: 14.5px;
  margin-bottom: 4px;
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-contact {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ---------- Product Promo Video Modal ---------- */
.video-modal-panel {
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  overflow: hidden;
}

.video-modal-panel .modal-close {
  color: var(--text-dim);
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.video-modal-panel .modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.video-modal-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.video-modal-heading h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.video-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}

.video-frame-wrap {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  max-height: calc(92vh - 140px);
  background: #05070a;
  overflow: hidden;
  display: block;
}

.promo-video-el {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: calc(92vh - 140px);
  display: block;
  outline: none;
  background: #05070a;
  object-fit: contain;
}

.video-modal-footer {
  gap: 12px;
  flex-wrap: wrap;
}

.video-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Header Account Pill & Homepage Session State ---------- */
.btn-account-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(48, 209, 88, 0.1);
  border: 1px solid rgba(48, 209, 88, 0.34);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.btn-account-pill:hover {
  background: rgba(48, 209, 88, 0.18);
  border-color: rgba(48, 209, 88, 0.6);
}

.nav-user-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald-glow);
  flex-shrink: 0;
}

.nav-user-email {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.mobile-drawer-btn {
  appearance: none;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.mobile-drawer-btn:hover {
  border-color: var(--border-bright);
  background: rgba(255, 255, 255, 0.06);
}

.compact-alt {
  margin-top: 14px;
}

.session-identity-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 4px;
}

.session-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.form-feedback.info {
  background: var(--amber-soft);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: var(--text);
}

/* ---------- Dedicated Account & My Home Page ---------- */
.account-main {
  min-height: calc(100vh - 150px);
  padding: 44px 0 72px;
}

.account-auth-section {
  padding: 20px 0 36px;
}

.auth-single-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.auth-single-card {
  padding: 28px;
}

.auth-single-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-single-sub {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

.dashboard-section {
  padding: 6px 0 40px;
}

.dash-top-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.dash-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.dash-identity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-email {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
  word-break: break-all;
}

.dash-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-danger-outline-sm {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 69, 58, 0.42);
  background: rgba(255, 69, 58, 0.08);
  color: #ff8e86;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.btn-danger-outline-sm:hover {
  background: rgba(255, 69, 58, 0.18);
  border-color: rgba(255, 69, 58, 0.65);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.dash-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dash-card-head h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.dash-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.dash-card-sub {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}

.dash-card-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.profile-kv-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
}

.profile-kv-row dt {
  font-size: 13px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.profile-kv-row dd {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-mono);
  text-align: right;
  word-break: break-all;
}

.invite-stat-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--emerald-soft);
  border: 1px solid rgba(48, 209, 88, 0.28);
}

.invite-stat-num {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--emerald-bright);
  font-family: var(--font-mono);
  min-width: 38px;
  text-align: center;
}

.invite-stat-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.invite-stat-hint {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

.dash-empty-box {
  padding: 18px 14px;
  border-radius: 12px;
  border: 1px dashed var(--border-bright);
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.dash-device-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.dash-card-wide {
  grid-column: 1 / -1;
}

.btn-danger-sm {
  appearance: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 69, 58, 0.14);
  border: 1px solid rgba(255, 69, 58, 0.36);
  color: #ffb2ad;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.btn-danger-sm:hover:not(:disabled) {
  background: rgba(255, 69, 58, 0.24);
  border-color: rgba(255, 69, 58, 0.56);
}

.btn-danger-sm:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.plan-expired {
  color: #ffb2ad !important;
  border-color: rgba(255, 69, 58, 0.4) !important;
}

.redeem-inline-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.redeem-inline-form .form-field {
  flex: 1 1 280px;
  margin-bottom: 0;
}

.redeem-inline-form .btn-submit-full {
  width: auto;
  min-width: 150px;
  margin-top: 0;
  height: 44px;
  padding: 0 22px;
}

.security-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.sec-mode-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.sec-mode-btn:hover {
  color: var(--text);
}

.sec-mode-btn.active {
  background: var(--emerald-soft);
  color: var(--emerald-bright);
}

.readonly-input {
  opacity: 0.78;
  cursor: not-allowed;
}

.dash-support-bar {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(17, 21, 28, 0.56);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-support-bar a {
  color: var(--emerald-bright);
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 980px) {
  .nav-pill, .header-actions {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-grid,
  .walkthrough-grid,
  .register-grid,
  .download-grid,
  .transparency-grid,
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .hero-section { padding: 36px 0 56px; }
  .section { padding: 52px 0; }
  .dash-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .dash-card {
    padding: 20px;
  }
  .auth-single-card {
    padding: 22px;
  }
  .profile-kv-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-kv-row dd {
    text-align: left;
  }
  .invite-stat-strip {
    align-items: flex-start;
  }
  .radar-stage {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bridge-track {
    width: 140px;
    margin: 0 auto;
    transform: rotate(90deg);
    height: 36px;
  }
  .remote-circle {
    margin-bottom: 6px;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
  }
  .mirror-targets {
    grid-template-columns: 1fr;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .video-modal-panel .modal-header,
  .video-modal-panel .modal-footer {
    padding: 12px 16px;
  }
  .video-modal-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .video-modal-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
