@font-face {
  font-family: "Manrope TIM";
  src: url("fonts/manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

.mode-gate {
  --p-paper: oklch(95.3% 0 0);
  --p-surface: oklch(98.5% 0.003 100);
  --p-ink: oklch(24% 0.006 90);
  --p-blue: oklch(58% 0.16 150);
  --p-blue-light: oklch(72% 0.14 150);
  --p-coral: oklch(68% 0.21 39);
  --p-muted: oklch(45% 0.008 90);
  --p-line: oklch(82% 0.006 90);
  --p-dark-line: oklch(40% 0.006 90);
  --p-dark-muted: oklch(82% 0.006 90);
  --bg-page: var(--p-paper);
  --bg-surface: var(--p-surface);
  --text-main: var(--p-ink);
  --text-secondary: var(--p-muted);
  --action-primary: var(--p-blue);
  --action-secondary: var(--p-coral);
  --button-bg: var(--p-ink);
  --button-text: var(--p-surface);
  --font-body: "Manrope TIM", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --z-header: 20;
  --z-grain: 80;
  --z-modal: 100;
}

.mode-gate body {
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}

.mode-gate #gate {
  position: relative;
  isolation: isolate;
}

.mode-gate #gate *,
.mode-gate #gate *::before,
.mode-gate #gate *::after { box-sizing: border-box; }

.mode-gate #gate a,
.mode-gate #gate button,
.mode-gate #gate summary,
.mode-gate #gate input { -webkit-tap-highlight-color: transparent; }

.mode-gate #gate a:focus-visible,
.mode-gate #gate button:focus-visible,
.mode-gate #gate summary:focus-visible,
.mode-gate #gate input:focus-visible {
  outline: 3px solid var(--action-secondary);
  outline-offset: 4px;
}

.mode-gate #gate button,
.mode-gate #gate summary { cursor: pointer; }
.mode-gate #gate button:disabled { cursor: not-allowed; opacity: .45; }
.mode-gate #gate ::selection { background: var(--action-secondary); color: var(--text-main); }

.mode-gate .grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: soft-light;
}

.mode-gate #gate .container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 64px);
}

.mode-gate #gate section { padding: 96px 0; }
.mode-gate #gate section[id] { scroll-margin-top: 96px; }

/* Header */
.mode-gate #gate .landing-top-bar {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
  padding-block: 16px;
  background: color-mix(in oklch, var(--bg-page) 92%, transparent);
  border-bottom: 1px solid var(--p-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mode-gate #gate .landing-top-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  text-decoration: none;
  flex-shrink: 0;
}

.mode-gate #gate .landing-top-brand .brand-img {
  width: 44px;
  height: 44px;
  padding: 3px;
  border: 1.5px solid var(--text-main);
  border-radius: 12px;
  background: var(--bg-surface);
  box-shadow: none;
  transition: transform 180ms ease-out;
}

.mode-gate #gate .landing-top-brand:hover .brand-img { transform: rotate(-7deg) scale(1.04); }
.mode-gate #gate .brand-text { display: flex; flex-direction: column; gap: 2px; }
.mode-gate #gate .brand-title {
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
}
.mode-gate #gate .brand-sub {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
}

.mode-gate #gate .desktop-nav { display: none; align-items: center; gap: 32px; }
.mode-gate #gate .nav-link {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.mode-gate #gate .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 2px;
  background: var(--action-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease-out;
}
.mode-gate #gate .nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.mode-gate #gate .header-actions { display: flex; align-items: center; gap: 16px; }
.mode-gate #gate .live-pill {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--text-main);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}
.mode-gate #gate .live-dot {
  width: 8px;
  height: 8px;
  background: var(--action-primary);
  box-shadow: none;
  animation: livePulse 2s ease-in-out infinite;
}
.mode-gate #gate .btn-nav-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  color: var(--button-text);
  background: var(--button-bg);
  border: 1.5px solid var(--text-main);
  border-radius: 8px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease-out, background-color 160ms ease-out;
}
.mode-gate #gate .btn-nav-primary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 160ms ease-out;
}
.mode-gate #gate .btn-nav-primary:hover { background: var(--action-primary); transform: translateY(-2px); }
.mode-gate #gate .btn-nav-primary:hover svg { transform: translateX(3px); }
.mode-gate #gate .btn-nav-primary:active { transform: translateY(0); }

/* Hero */
.mode-gate #gate .hero-section { padding: 56px 0 88px; }
.mode-gate #gate .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.mode-gate #gate .hero-content { min-width: 0; }
.mode-gate #gate .hero-meta,
.mode-gate #gate .section-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--text-main);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}
.mode-gate #gate .hero-headline {
  margin: 28px 0 32px;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: clamp(48px, 14.4vw, 118px);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -.075em;
  text-wrap: nowrap;
}
.mode-gate #gate .hero-line {
  display: block;
  width: max-content;
  max-width: 100%;
  padding: .04em .08em .06em 0;
  overflow: hidden;
  white-space: nowrap;
}
.mode-gate #gate .hero-line-blue { color: var(--action-primary); }
.mode-gate #gate .hero-line .char { display: inline-block; will-change: transform, opacity; }
.mode-gate .redesign-ready #gate .hero-line .char {
  animation: charReveal 720ms cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--char-index) * 24ms + 80ms);
}
.mode-gate #gate .hero-description {
  max-width: 620px;
  margin: 0 0 32px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.65;
}
.mode-gate #gate .hero-description strong { color: var(--text-main); font-weight: 800; }
.mode-gate #gate .hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin: 0 0 40px;
}
.mode-gate #gate .btn-hero-primary,
.mode-gate #gate .btn-hero-secondary {
  min-height: 68px;
  border-radius: 10px;
  font-family: var(--font-body);
  text-decoration: none;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, background-color 180ms ease-out;
}
.mode-gate #gate .btn-hero-primary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  color: var(--p-surface);
  background: var(--action-primary);
  border: 2px solid var(--action-primary);
  box-shadow: 5px 5px 0 var(--text-main);
}
.mode-gate #gate .btn-hero-primary:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--text-main); }
.mode-gate #gate .btn-hero-primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--text-main); }
.mode-gate #gate .btn-hero-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text-main);
  background: transparent;
  border: 2px solid var(--text-main);
  box-shadow: none;
  font-size: 14px;
  font-weight: 800;
}
.mode-gate #gate .btn-hero-secondary:hover { color: var(--p-surface); background: var(--text-main); transform: translateY(-2px); }
.mode-gate #gate .svg-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mode-gate #gate .btn-hero-secondary .svg-icon { fill: currentColor; stroke: none; width: 21px; }
.mode-gate #gate .btn-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.mode-gate #gate .btn-flip {
  position: relative;
  display: inline-block;
  height: 1.35em;
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}
.mode-gate #gate .btn-flip > span,
.mode-gate #gate .btn-flip::after { display: block; transition: transform 200ms ease-out; }
.mode-gate #gate .btn-flip::after { content: attr(data-text); position: absolute; top: 100%; left: 0; }
.mode-gate #gate a:hover .btn-flip > span,
.mode-gate #gate button:hover .btn-flip > span,
.mode-gate #gate a:hover .btn-flip::after,
.mode-gate #gate button:hover .btn-flip::after { transform: translateY(-100%); }
.mode-gate #gate .btn-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .025em;
  opacity: 1;
}
.mode-gate #gate .button-arrow { margin-left: auto; font-size: 21px; }

.mode-gate #gate .hero-stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--text-main);
  border-bottom: 1px solid var(--text-main);
  border-radius: 0;
  box-shadow: none;
}
.mode-gate #gate .hero-stat { padding: 18px 12px; text-align: left; }
.mode-gate #gate .hero-stat:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--p-line); }
.mode-gate #gate .hero-stat:nth-child(-n+2) { border-bottom: 1px solid var(--p-line); }
.mode-gate #gate .stat-number {
  display: block;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.055em;
}
.mode-gate #gate .stat-label {
  display: block;
  margin-top: 6px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .03em;
}

/* Product stage */
.mode-gate #gate .hero-preview { position: relative; display: block; min-width: 0; }
.mode-gate #gate .hero-stage {
  position: relative;
  min-height: 640px;
  padding: 20px 16px;
  overflow: hidden;
  color: var(--p-surface);
  background: var(--action-primary);
  border: 2px solid var(--text-main);
  border-radius: 24px;
  box-shadow: 9px 9px 0 var(--text-main);
  perspective: 1100px;
}
.mode-gate #gate .stage-meta,
.mode-gate #gate .stage-caption {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
}
.mode-gate #gate .stage-caption { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.mode-gate #gate .stage-watermark {
  position: absolute;
  top: 18px;
  left: -18px;
  color: color-mix(in oklch, var(--p-surface) 11%, transparent);
  font-family: var(--font-display);
  font-size: 350px;
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.12em;
  pointer-events: none;
}
.mode-gate #gate .hero-sticker {
  position: absolute;
  top: 76px;
  right: 7px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  color: var(--text-main);
  background: var(--action-secondary);
  border: 2px solid var(--text-main);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--text-main);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.25;
  transform: rotate(9deg);
}
.mode-gate #gate .hero-sticker strong { font-family: var(--font-display); font-size: 23px; letter-spacing: -.06em; }
.mode-gate #gate .mockup-frame {
  position: relative;
  z-index: 2;
  width: calc(100% - 12px);
  max-width: 338px;
  margin: 54px auto 38px;
  padding: 18px;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 2px solid var(--text-main);
  border-radius: 34px;
  box-shadow: 7px 7px 0 var(--text-main);
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) rotateZ(-3deg);
  transform-style: preserve-3d;
  transition: transform 220ms ease-out;
  will-change: transform;
}
.mode-gate #gate .mockup-header { margin-bottom: 16px; }
.mode-gate #gate .mockup-brand { gap: 9px; }
.mode-gate #gate .mockup-logo { width: 34px; height: 34px; border-radius: 10px; }
.mode-gate #gate .mockup-name { color: var(--text-main); font-size: 14px; font-weight: 800; }
.mode-gate #gate .mockup-ver { color: var(--text-secondary); font-family: var(--font-mono); font-size: 8px; }
.mode-gate #gate .mockup-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  color: var(--text-main);
  background: transparent;
  border: 1px solid var(--text-main);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
}
.mode-gate #gate .mockup-badge span { width: 5px; height: 5px; background: var(--action-primary); border-radius: 50%; }
.mode-gate #gate .terminal-card {
  margin-bottom: 8px;
  padding: 18px;
  color: var(--p-surface);
  background: var(--text-main);
  border-radius: 20px;
  box-shadow: none;
}
.mode-gate #gate .t-label { font-family: var(--font-mono); font-size: 8px; font-weight: 700; letter-spacing: .04em; opacity: 1; }
.mode-gate #gate .t-balance { margin: 6px 0 12px; font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -.055em; }
.mode-gate #gate .t-cur { font-family: var(--font-mono); font-size: 9px; opacity: .8; }
.mode-gate #gate .t-tags { gap: 6px; }
.mode-gate #gate .t-tag {
  padding: 4px 7px;
  color: var(--p-surface);
  background: color-mix(in oklch, var(--p-surface) 12%, transparent);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
}
.mode-gate #gate .t-tag.highlight { color: var(--text-main); background: var(--action-secondary); }
.mode-gate #gate .preview-chart { display: block; width: 100%; height: 58px; margin-top: 14px; overflow: visible; }
.mode-gate #gate .chart-grid { fill: none; stroke: color-mix(in oklch, var(--p-surface) 14%, transparent); stroke-width: 1; }
.mode-gate #gate .chart-area { fill: color-mix(in oklch, var(--p-blue-light) 22%, transparent); }
.mode-gate #gate .chart-line { fill: none; stroke: var(--p-blue-light); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mode-gate #gate .hero-coin-container { height: 178px; margin: 0; }
.mode-gate #gate .h-halo { border: 1px solid var(--p-line); background: transparent; animation: haloPulse 2.8s ease-in-out infinite alternate; }
.mode-gate #gate .h-halo-outer { width: 172px; height: 172px; }
.mode-gate #gate .h-halo-inner { width: 146px; height: 146px; animation-delay: -1.2s; }
.mode-gate #gate .hero-3d-coin {
  width: 126px;
  height: 126px;
  padding: 0;
  color: var(--text-main);
  background: var(--bg-page);
  border: 3px solid var(--text-main);
  border-radius: 50%;
  box-shadow: 5px 5px 0 var(--text-main);
  font-family: var(--font-body);
  overflow: hidden;
  animation: gspin 7s ease-in-out infinite;
}
.mode-gate #gate .hero-3d-coin::after { background: linear-gradient(115deg, transparent 35%, color-mix(in oklch, var(--p-surface) 80%, transparent) 50%, transparent 65%); }
.mode-gate #gate .hero-3d-coin:hover { transform: scale(1.05); }
.mode-gate #gate .hero-coin-inner { display: grid; place-items: center; text-align: center; }
.mode-gate #gate .hero-coin-glyph { width: 38px; height: 38px; border-radius: 11px; }
.mode-gate #gate .hero-coin-txt { color: var(--text-main); font-family: var(--font-display); font-size: 14px; font-weight: 800; letter-spacing: .18em; }
.mode-gate #gate .hero-coin-sub { font-family: var(--font-mono); font-size: 6px; font-weight: 700; letter-spacing: .05em; opacity: 1; }
.mode-gate #gate .coin-caption { margin: 0; color: var(--text-secondary); font-family: var(--font-mono); font-size: 8px; text-align: center; }

/* Moving rail */
.mode-gate #gate .energy-rail { overflow: hidden; padding: 17px 0; color: var(--p-surface); background: var(--text-main); border-block: 2px solid var(--text-main); }
.mode-gate #gate .energy-track { display: flex; width: max-content; animation: energyMove 28s linear infinite; }
.mode-gate #gate .energy-group { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.mode-gate #gate .energy-group span { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.mode-gate #gate .energy-group i { width: 9px; height: 9px; flex: 0 0 auto; background: var(--action-secondary); border-radius: 50%; }

/* Shared section headings */
.mode-gate #gate .section-title-wrap { max-width: none; margin: 0 0 56px; text-align: left; }
.mode-gate #gate .section-heading {
  margin: 28px 0 24px;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: clamp(52px, 12.5vw, 112px);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.07em;
}
.mode-gate #gate .section-heading span { color: var(--action-primary); }
.mode-gate #gate .section-subtext { max-width: 610px; margin: 0; color: var(--text-secondary); font-size: 17px; line-height: 1.65; }

/* Installation */
.mode-gate #gate .download-section { padding-bottom: 112px; }
.mode-gate #gate .platforms-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 0; }
.mode-gate #gate .platform-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 24px;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 2px solid var(--text-main);
  border-radius: 22px;
  box-shadow: 7px 7px 0 var(--text-main);
}
.mode-gate #gate .ios-card { background: var(--bg-page); box-shadow: none; }
.mode-gate #gate .p-card-top { gap: 12px; margin-bottom: 28px; }
.mode-gate #gate .p-badge-os {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .04em;
}
.mode-gate #gate .android-badge { color: var(--p-surface); background: var(--action-primary); }
.mode-gate #gate .ios-badge { color: var(--p-surface); background: var(--text-main); }
.mode-gate #gate .p-os-icon { width: 16px; height: 16px; fill: currentColor; }
.mode-gate #gate .file-size-pill { padding: 0; color: var(--text-secondary); background: transparent; border: 0; border-radius: 0; font-family: var(--font-mono); font-size: 9px; }
.mode-gate #gate .p-app-info { gap: 16px; margin-bottom: 20px; }
.mode-gate #gate .p-icon { width: 66px; height: 66px; padding: 4px; background: var(--bg-surface); border: 1.5px solid var(--text-main); border-radius: 16px; box-shadow: none; }
.mode-gate #gate .p-app-info h3 { margin: 0 0 6px; color: var(--text-main); font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -.045em; }
.mode-gate #gate .p-tags-row { gap: 10px; margin-top: 8px; }
.mode-gate #gate .p-tag { padding: 0; color: var(--text-secondary); background: transparent; border-radius: 0; font-family: var(--font-mono); font-size: 8px; }
.mode-gate #gate .p-desc { margin: 0 0 28px; color: var(--text-secondary); font-size: 15px; line-height: 1.65; }
.mode-gate #gate .btn-download-apk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  margin: auto 0 0;
  padding: 14px 18px;
  color: var(--p-surface);
  background: var(--text-main);
  border: 2px solid var(--text-main);
  border-radius: 9px;
  box-shadow: none;
  font-size: 14px;
  text-decoration: none;
  transition: transform 170ms ease-out, background-color 170ms ease-out;
}
.mode-gate #gate .btn-download-apk:hover { background: var(--action-primary); transform: translateY(-2px); }
.mode-gate #gate .btn-ios-action { color: var(--p-surface); background: var(--action-primary); border-color: var(--action-primary); }
.mode-gate #gate .btn-ios-action:hover { background: var(--text-main); }
.mode-gate #gate .svg-dl { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mode-gate #gate .install-details { margin-top: 20px; border-top: 1px solid var(--p-line); }
.mode-gate #gate .install-details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; font-size: 13px; font-weight: 800; list-style: none; }
.mode-gate #gate .install-details summary::-webkit-details-marker { display: none; }
.mode-gate #gate .details-plus { position: relative; width: 16px; height: 16px; flex: 0 0 auto; transition: transform 180ms ease-out; }
.mode-gate #gate .details-plus::before,
.mode-gate #gate .details-plus::after { content: ""; position: absolute; top: 7px; left: 1px; width: 14px; height: 2px; background: var(--text-main); }
.mode-gate #gate .details-plus::after { transform: rotate(90deg); }
.mode-gate #gate details[open] .details-plus { transform: rotate(45deg); }
.mode-gate #gate .install-guide-box { padding: 0 0 4px; color: var(--text-secondary); background: transparent; border: 0; border-radius: 0; font-size: 13px; }
.mode-gate #gate .install-guide-box ol { margin: 0; padding-left: 20px; color: var(--text-secondary); }
.mode-gate #gate .install-guide-box li { margin-bottom: 7px; line-height: 1.55; }
.mode-gate #gate .install-guide-box strong { color: var(--text-main); }
.mode-gate #gate .install-guide-box code { color: var(--text-main); font-family: var(--font-mono); }
.mode-gate #gate .ios-steps-list { gap: 0; }
.mode-gate #gate .ios-step-item { gap: 12px; padding: 13px 0; background: transparent; border: 0; border-bottom: 1px solid var(--p-line); border-radius: 0; }
.mode-gate #gate .ios-step-item:last-child { border-bottom: 0; }
.mode-gate #gate .is-num { width: 30px; height: 30px; color: var(--p-surface); background: var(--action-primary); border-radius: 50%; font-family: var(--font-mono); font-size: 11px; }
.mode-gate #gate .is-content { min-width: 0; }
.mode-gate #gate .is-content strong { display: block; color: var(--text-main); font-size: 13px; }
.mode-gate #gate .is-content span { display: block; margin-top: 2px; color: var(--text-secondary); font-size: 12px; line-height: 1.45; }

/* Calculator */
.mode-gate #gate .calculator-section { color: var(--p-surface); background: var(--text-main); border: 0; }
.mode-gate #gate .calculator-section .section-meta { color: var(--p-dark-muted); border-color: var(--p-dark-line); }
.mode-gate #gate .calculator-section .section-heading { color: var(--p-surface); }
.mode-gate #gate .calculator-section .section-heading span { color: var(--p-blue-light); }
.mode-gate #gate .calculator-section .section-subtext { color: var(--p-dark-muted); }
.mode-gate #gate .calc-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--p-dark-line);
  border-bottom: 1px solid var(--p-dark-line);
  border-radius: 0;
  box-shadow: none;
}
.mode-gate #gate .calc-left { padding: 32px 0; border-bottom: 1px solid var(--p-dark-line); }
.mode-gate #gate .slider-header { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; color: var(--p-dark-muted); font-family: var(--font-mono); font-size: 10px; }
.mode-gate #gate .slider-val { color: var(--p-surface); font-family: var(--font-display); font-size: clamp(48px, 13vw, 72px); font-weight: 700; line-height: .9; letter-spacing: -.06em; }
.mode-gate #gate .custom-slider { height: 6px; margin: 10px 0 12px; background: var(--p-dark-line); border-radius: 0; }
.mode-gate #gate .custom-slider::-webkit-slider-thumb { width: 28px; height: 28px; background: var(--p-blue-light); border: 3px solid var(--p-surface); border-radius: 50%; box-shadow: none; }
.mode-gate #gate .custom-slider::-moz-range-thumb { width: 24px; height: 24px; background: var(--p-blue-light); border: 3px solid var(--p-surface); border-radius: 50%; box-shadow: none; }
.mode-gate #gate .slider-limits { display: flex; justify-content: space-between; color: var(--p-dark-muted); font-family: var(--font-mono); font-size: 9px; }
.mode-gate #gate .slider-presets { gap: 8px; margin: 28px 0; }
.mode-gate #gate .preset-pill {
  flex: 1 1 72px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--p-surface);
  background: transparent;
  border: 1px solid var(--p-dark-line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  transition: transform 150ms ease-out, background-color 150ms ease-out;
}
.mode-gate #gate .preset-pill:hover { border-color: var(--p-blue-light); transform: translateY(-2px); }
.mode-gate #gate .preset-pill.active { color: var(--p-surface); background: var(--action-primary); border-color: var(--action-primary); }
.mode-gate #gate .calc-formula-note { gap: 12px; padding: 20px 0 0; color: var(--p-dark-muted); background: transparent; border: 0; border-top: 1px solid var(--p-dark-line); border-radius: 0; font-size: 12px; line-height: 1.6; }
.mode-gate #gate .calc-formula-note strong { color: var(--p-surface); }
.mode-gate #gate .fn-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; color: var(--text-main); background: var(--action-secondary); border-radius: 50%; font-family: var(--font-mono); font-size: 12px; }
.mode-gate #gate .calc-right { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.mode-gate #gate .result-tile { display: flex; min-width: 0; padding: 26px 16px; background: transparent; border: 0; border-bottom: 1px solid var(--p-dark-line); border-radius: 0; box-shadow: none; }
.mode-gate #gate .result-tile:nth-child(odd) { border-right: 1px solid var(--p-dark-line); }
.mode-gate #gate .result-tile.highlight-tile { color: var(--p-surface); background: var(--action-primary); border-color: var(--action-primary); box-shadow: none; }
.mode-gate #gate .result-tile.total-tile { grid-column: span 2; background: transparent; border-bottom: 0; }
.mode-gate #gate .tile-label { display: block; color: var(--p-dark-muted); font-family: var(--font-mono); font-size: 8px; font-weight: 700; line-height: 1.5; letter-spacing: .03em; }
.mode-gate #gate .highlight-tile .tile-label,
.mode-gate #gate .highlight-tile .tile-sub { color: var(--p-surface); }
.mode-gate #gate .tile-val { display: block; margin: 10px 0 8px; color: var(--p-surface); font-family: var(--font-display); font-size: clamp(28px, 7.4vw, 44px); font-weight: 700; line-height: .95; letter-spacing: -.055em; overflow-wrap: anywhere; }
.mode-gate #gate .total-tile .tile-val { color: var(--p-blue-light); font-size: clamp(40px, 11vw, 64px); }
.mode-gate #gate .tile-sub { display: block; color: var(--p-dark-muted); font-size: 10px; font-weight: 600; }

/* Footer */
.mode-gate #gate .site-footer { margin: 0; padding: 72px 0 24px; background: var(--bg-page); border: 0; }
.mode-gate #gate .footer-top { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; padding-bottom: 48px; }
.mode-gate #gate .footer-wordmark { color: var(--text-main); font-family: var(--font-display); font-size: clamp(128px, 40vw, 340px); font-weight: 700; line-height: .72; letter-spacing: -.1em; text-decoration: none; }
.mode-gate #gate .footer-wordmark span { display: inline-block; margin-left: 12px; color: var(--action-primary); font-family: var(--font-mono); font-size: .08em; letter-spacing: 0; vertical-align: top; transform: translateY(.5em); }
.mode-gate #gate .footer-download { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; color: var(--text-main); border-bottom: 2px solid var(--text-main); font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-decoration: none; }
.mode-gate #gate .footer-download:hover { color: var(--action-primary); border-color: var(--action-primary); }
.mode-gate #gate .footer-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 24px; color: var(--text-secondary); border-top: 1px solid var(--text-main); font-family: var(--font-mono); font-size: 9px; }
.mode-gate #gate .footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.mode-gate #gate .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-main); text-decoration: none; }
.mode-gate #gate .footer-nav a:hover { color: var(--action-primary); }
.mode-gate #gate .net-status-dot { background: var(--action-primary); box-shadow: none; }

/* iOS guide dialog */
.mode-gate #gate .ios-modal { z-index: var(--z-modal); padding: 16px; }
.mode-gate #gate .ios-modal-backdrop { background: color-mix(in oklch, var(--text-main) 74%, transparent); backdrop-filter: blur(8px); }
.mode-gate #gate .ios-modal-card {
  z-index: calc(var(--z-modal) + 1);
  max-width: 540px;
  max-height: min(90dvh, 760px);
  padding: 26px 24px 22px;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 2px solid var(--text-main);
  border-radius: 22px;
  box-shadow: 9px 9px 0 var(--action-primary);
}
.mode-gate #gate .ios-m-title { color: var(--text-main); font-family: var(--font-display); font-size: 26px; letter-spacing: -.04em; }
.mode-gate #gate .ios-m-sub { color: var(--text-secondary); font-family: var(--font-mono); font-size: 8px; }
.mode-gate #gate .apple-badge { width: 44px; height: 44px; color: var(--p-surface); background: var(--text-main); border-radius: 10px; font-family: var(--font-mono); font-size: 13px; }
.mode-gate #gate .ios-modal-close { position: relative; width: 44px; height: 44px; color: var(--text-main); background: transparent; border: 1.5px solid var(--text-main); border-radius: 50%; }
.mode-gate #gate .ios-modal-close:hover { color: var(--p-surface); background: var(--text-main); }
.mode-gate #gate .ios-modal-close span::before,
.mode-gate #gate .ios-modal-close span::after { content: ""; position: absolute; top: 20px; left: 12px; width: 18px; height: 2px; background: currentColor; transform: rotate(45deg); }
.mode-gate #gate .ios-modal-close span::after { transform: rotate(-45deg); }
.mode-gate #gate .safari-warning-box { gap: 12px; margin-bottom: 14px; padding: 16px 0; color: var(--text-main); background: transparent; border: 0; border-block: 1px solid var(--p-line); border-radius: 0; font-size: 13px; }
.mode-gate #gate .sw-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; color: var(--p-surface); background: var(--action-primary); border-radius: 50%; font-family: var(--font-mono); font-size: 12px; }
.mode-gate #gate .btn-ios-done { min-height: 54px; padding: 14px 20px; color: var(--p-surface); background: var(--action-primary); border: 2px solid var(--action-primary); border-radius: 9px; box-shadow: none; }
.mode-gate #gate .btn-ios-done:hover { background: var(--text-main); border-color: var(--text-main); transform: translateY(-2px); }

.mode-gate #gate .section-heading .char { display: inline-block; will-change: transform, opacity; }
.mode-gate .redesign-ready #gate .section-heading.is-revealed .char {
  animation: charReveal 650ms cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--char-index) * 18ms);
}
.mode-gate .redesign-ready #gate .platform-card.is-revealed,
.mode-gate .redesign-ready #gate .calc-panel.is-revealed { animation: cardReveal 560ms cubic-bezier(.16, 1, .3, 1) both; }
.mode-gate .redesign-ready #gate .platform-card:nth-child(2).is-revealed { animation-delay: 90ms; }

@keyframes charReveal { from { opacity: 0; transform: translateY(110%) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes cardReveal { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes energyMove { to { transform: translateX(-50%); } }
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.75); } }
@keyframes haloPulse { from { opacity: .35; transform: scale(.92); } to { opacity: 1; transform: scale(1.05); } }
@keyframes gspin { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
@keyframes flip { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@keyframes shine { to { transform: translateX(140%); } }

@media (min-width: 560px) {
  .mode-gate #gate .live-pill { display: inline-flex; }
  .mode-gate #gate .hero-cta-group { flex-direction: row; align-items: center; }
  .mode-gate #gate .btn-hero-primary { flex: 1 1 auto; }
  .mode-gate #gate .btn-hero-secondary { flex: 0 0 auto; }
  .mode-gate #gate .hero-stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mode-gate #gate .hero-stat { padding: 20px 14px; border-right: 1px solid var(--p-line); border-bottom: 0 !important; }
  .mode-gate #gate .hero-stat:first-child { padding-left: 0; }
  .mode-gate #gate .hero-stat:last-child { border-right: 0; }
  .mode-gate #gate .hero-stage { padding: 24px; }
  .mode-gate #gate .hero-sticker { top: 84px; right: 16px; width: 108px; height: 108px; }
  .mode-gate #gate .hero-sticker strong { font-size: 27px; }
  .mode-gate #gate .platform-card { padding: 32px; }
  .mode-gate #gate .result-tile { padding: 30px 24px; }
}

@media (min-width: 860px) {
  .mode-gate #gate .landing-top-bar { display: grid; grid-template-columns: 1fr auto 1fr; }
  .mode-gate #gate .desktop-nav { display: flex; }
  .mode-gate #gate .header-actions { justify-self: end; }
  .mode-gate #gate .hero-section { padding: 72px 0 104px; }
  .mode-gate #gate .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr); gap: clamp(32px, 4vw, 64px); }
  .mode-gate #gate .hero-headline { font-size: clamp(68px, 7.65vw, 118px); }
  .mode-gate #gate .hero-stage { min-height: 680px; }
  .mode-gate #gate .section-heading { font-size: clamp(72px, 7.8vw, 112px); }
  .mode-gate #gate .section-title-wrap { margin-bottom: 72px; }
  .mode-gate #gate .footer-top { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .mode-gate #gate .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1024px) {
  .mode-gate #gate .platforms-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 32px; }
  .mode-gate #gate .ios-card { margin-top: 64px; }
  .mode-gate #gate .download-section { padding-bottom: 160px; }
  .mode-gate #gate .calc-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mode-gate #gate .calc-left { padding: 48px 48px 48px 0; border-right: 1px solid var(--p-dark-line); border-bottom: 0; }
  .mode-gate #gate .calc-right { padding: 24px 0 24px 24px; }
  .mode-gate #gate .result-tile { min-height: 180px; }
}

@media (min-width: 1280px) {
  .mode-gate #gate .hero-cta-group { flex-wrap: nowrap; }
  .mode-gate #gate .btn-hero-primary { padding-inline: 24px; }
  .mode-gate #gate .btn-hero-secondary { padding-inline: 24px; }
  .mode-gate #gate .hero-sticker { right: 24px; }
  .mode-gate #gate .mockup-frame { margin-top: 58px; }
}

@media (max-width: 420px) {
  .mode-gate #gate .brand-sub { display: none; }
  .mode-gate #gate .btn-nav-primary { padding-inline: 14px; }
  .mode-gate #gate .btn-nav-primary svg { display: none; }
  .mode-gate #gate .hero-description { font-size: 16px; }
  .mode-gate #gate .hero-stage { min-height: 606px; border-radius: 20px; box-shadow: 6px 6px 0 var(--text-main); }
  .mode-gate #gate .hero-sticker { top: 68px; right: 3px; width: 82px; height: 82px; }
  .mode-gate #gate .hero-sticker strong { font-size: 20px; }
  .mode-gate #gate .mockup-frame { margin-top: 58px; padding: 15px; }
  .mode-gate #gate .terminal-card { padding: 15px; }
  .mode-gate #gate .t-balance { font-size: 30px; }
  .mode-gate #gate .hero-coin-container { height: 166px; }
  .mode-gate #gate .stage-caption { font-size: 7px; }
  .mode-gate #gate .p-card-top { align-items: flex-start; }
  .mode-gate #gate .file-size-pill { text-align: right; }
  .mode-gate #gate .p-app-info h3 { font-size: 25px; }
  .mode-gate #gate .result-tile { grid-column: span 2; border-right: 0 !important; }
  .mode-gate #gate .result-tile.total-tile { grid-column: span 2; }
  .mode-gate #gate .tile-val { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .mode-gate { scroll-behavior: auto; }
  .mode-gate #gate *,
  .mode-gate #gate *::before,
  .mode-gate #gate *::after { animation: none !important; transition-duration: .01ms !important; }
  .mode-gate #gate .hero-line .char { opacity: 1 !important; transform: none !important; }
  .mode-gate #gate .energy-track { transform: none; }
  .mode-gate #gate .energy-group[aria-hidden="true"] { display: none; }
  .mode-gate #gate .mockup-frame { transform: rotateZ(-3deg); }
}
