/* ==========================================================================
   MaterialFx — materialfx.cn
   Dark-first visual system: cyan / violet HUD, angled edges, film-grade glow.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/rajdhani-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/rajdhani-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/rajdhani-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-elevated: #080d16;
  --surface: #0a111d;
  --surface-2: #0d1624;
  --border: #1b2a3d;
  --border-strong: #2a3d55;
  --text: #e9f2fb;
  --text-muted: #90a7be;
  --text-dim: #637a92;
  --primary: #22d3ee;
  --primary-deep: #0891b2;
  --accent: #a855f7;
  --accent-soft: #d8b4fe;
  --danger: #fb7185;
  --rail: linear-gradient(90deg, transparent, var(--primary) 12%, var(--accent) 50%, var(--primary) 88%, transparent);
  --rail-side: linear-gradient(180deg, var(--primary), var(--accent));
  --btn-grad: linear-gradient(120deg, #0e7490 0%, #2563eb 48%, #7c3aed 100%);
  --btn-grad-hover: linear-gradient(120deg, #0891b2 0%, #3b82f6 48%, #9333ea 100%);
  --title-grad: linear-gradient(110deg, #f5fbff 8%, #67e8f9 40%, #c084fc 76%, #f0abfc 100%);
  --glow-primary: 0 0 30px rgba(34, 211, 238, 0.18);
  --glow-accent: 0 0 30px rgba(168, 85, 247, 0.22);
  --shadow-panel: 0 28px 70px -28px rgba(0, 0, 0, 0.85);
  --font-display: "Rajdhani", "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: 1120px;
  --nav-h: 4.5rem;
  --slope: polygon(0.75rem 0, 100% 0, calc(100% - 0.75rem) 100%, 0 100%);
  --slope-sm: polygon(0.45rem 0, 100% 0, calc(100% - 0.45rem) 100%, 0 100%);
  --slope-lg: polygon(1rem 0, 100% 0, calc(100% - 1rem) 100%, 0 100%);
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f8fb;
  --bg-elevated: #ebf3f9;
  --surface: #ffffff;
  --surface-2: #f7fbfe;
  --border: #d6e2ec;
  --border-strong: #bfd1df;
  --text: #07121f;
  --text-muted: #4f6578;
  --text-dim: #6f8699;
  --primary: #0891b2;
  --primary-deep: #0e7490;
  --accent: #7c3aed;
  --accent-soft: #a855f7;
  --rail: linear-gradient(90deg, transparent, var(--primary) 12%, var(--accent) 50%, var(--primary) 88%, transparent);
  --rail-side: linear-gradient(180deg, var(--primary), var(--accent));
  --btn-grad: linear-gradient(120deg, #0e7490 0%, #4f46e5 52%, #7e22ce 100%);
  --btn-grad-hover: linear-gradient(120deg, #0891b2 0%, #6366f1 52%, #9333ea 100%);
  --title-grad: linear-gradient(110deg, #07121f 5%, #0e7490 44%, #7c3aed 88%);
  --glow-primary: 0 0 26px rgba(8, 145, 178, 0.14);
  --glow-accent: 0 0 26px rgba(124, 58, 237, 0.16);
  --shadow-panel: 0 26px 60px -30px rgba(23, 48, 71, 0.35);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 46% at 86% -8%, rgba(34, 211, 238, 0.1), transparent 62%),
    radial-gradient(ellipse 55% 40% at -8% 72%, rgba(168, 85, 247, 0.09), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image:
    repeating-linear-gradient(0deg, rgba(120, 220, 240, 0.5) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(120, 220, 240, 0.5) 0 1px, transparent 1px 64px);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.018;
  background: repeating-linear-gradient(0deg, transparent 0 2px, #9be8f5 2px 3px);
}

[data-theme="light"] body {
  background:
    radial-gradient(ellipse 65% 42% at 88% -6%, rgba(8, 145, 178, 0.09), transparent 60%),
    radial-gradient(ellipse 50% 38% at -5% 70%, rgba(124, 58, 237, 0.07), transparent 60%),
    var(--bg);
}

img { display: block; max-width: 100%; height: auto; }
#main { position: relative; z-index: 1; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
body.modal-open { overflow: hidden; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-soft); }
button { font: inherit; }
p { margin: 0 0 1rem; }
::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 999;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: #041018;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #041018; }

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  clip-path: var(--slope);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-primary {
  color: #fff;
  background-image: var(--btn-grad);
  background-size: 170% 170%;
  border-color: rgba(103, 232, 249, 0.38);
  box-shadow:
    var(--glow-primary),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  color: #fff;
  background-image: var(--btn-grad-hover);
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow:
    0 0 34px rgba(34, 211, 238, 0.25),
    0 0 30px rgba(168, 85, 247, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--border-strong);
}
[data-theme="light"] .btn-ghost { background: rgba(255, 255, 255, 0.7); }

.btn-ghost:hover {
  color: var(--primary);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

.btn-lg {
  min-height: 3.2rem;
  padding: 0.85rem 1.9rem;
  font-size: 0.9375rem;
  clip-path: var(--slope-lg);
}

.btn .icon { width: 1.05rem; height: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--rail);
  opacity: 0.9;
  pointer-events: none;
}

.site-header.is-scrolled {
  box-shadow: 0 14px 40px -22px rgba(0, 0, 0, 0.9);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
  position: relative;
  z-index: 102;
}
.brand:hover { color: var(--text); }

.brand img {
  width: 2rem;
  height: 2rem;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.25));
}

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}
.brand-tag {
  margin-top: 0.24rem;
  font-family: var(--font-mono);
  font-size: 0.475rem;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-toggle {
  position: relative;
  z-index: 102;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  clip-path: var(--slope-sm);
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.site-nav {
  position: fixed;
  top: var(--nav-h);
  right: 0; bottom: 0; left: 0;
  z-index: 101;
  display: none;
  flex-direction: column;
  padding: 1.25rem 1.25rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.site-nav.is-open { display: flex; }

.site-nav-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: min(var(--container), 100%);
  margin-inline: auto;
}

.nav-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 0.9rem 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.nav-list a:hover { color: var(--primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}
.nav-actions .btn { flex: 1; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  clip-path: var(--slope-sm);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.theme-toggle:hover {
  color: var(--primary);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: var(--glow-primary);
}
.theme-toggle .icon { width: 1.1rem; height: 1.1rem; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(2, 5, 10, 0.7);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.2s;
}
.nav-backdrop.is-open { display: block; opacity: 1; }

@media (max-width: 899px) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-backdrop { display: none !important; }
  .site-nav {
    position: static;
    inset: auto;
    z-index: auto;
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    overflow: visible;
  }
  .site-nav-inner {
    flex: none;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    width: auto;
    margin: 0;
  }
  .nav-list { display: flex; gap: 2rem; margin: 0; }
  .nav-list a {
    position: relative;
    padding: 0.35rem 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 0;
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.15rem;
    width: 0;
    height: 1.5px;
    background: var(--rail-side);
    transition: width 0.25s var(--ease);
  }
  .nav-list a:hover { color: var(--text); }
  .nav-list a:hover::after { width: 100%; }
  .nav-actions { margin-top: 0; }
  .nav-actions .btn { flex: none; min-height: 2.6rem; padding: 0.55rem 1.25rem; font-size: 0.8125rem; }
  .theme-toggle { width: 2.6rem; height: 2.6rem; }
}

/* ---------- Shared section header ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
  padding-left: 1.1rem;
  border-left: 2px solid transparent;
  border-image: var(--rail-side) 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.65rem;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 1.35rem;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}
.eyebrow.is-accent { color: var(--accent-soft); }

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 0;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.section-note {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.6rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.8;
}
.section-note strong { display: block; color: var(--primary); font-weight: 600; }

@media (max-width: 767px) {
  .section-head { flex-direction: column; gap: 0.9rem; }
  .section-note { align-self: flex-start; text-align: left; margin-top: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 4.75rem 0 5.25rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -12% -6% -8% 30%;
  background: url("../img/ambient.webp") center / cover no-repeat;
  opacity: 0.26;
  filter: saturate(0.85);
  -webkit-mask-image: radial-gradient(ellipse 66% 68% at 64% 38%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 66% 68% at 64% 38%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 38%, transparent 68%),
    linear-gradient(180deg, transparent 58%, var(--bg) 100%);
  pointer-events: none;
}
[data-theme="light"] .hero::before { opacity: 0.12; }
[data-theme="light"] .feature-icon {
  color: #0e7490;
  background: rgba(8, 145, 178, 0.07);
  border-color: rgba(8, 145, 178, 0.24);
}
[data-theme="light"] .feature-card.is-featured .feature-icon {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.07);
  border-color: rgba(124, 58, 237, 0.26);
}
[data-theme="light"] .btn-store.is-primary .btn-store-icon { color: #0e7490; }
[data-theme="light"] .btn-store-icon {
  border-color: rgba(8, 145, 178, 0.22);
  background: rgba(8, 145, 178, 0.05);
}
[data-theme="light"] .faq-item summary::after {
  border-color: rgba(8, 145, 178, 0.35);
  background: rgba(8, 145, 178, 0.06);
}
[data-theme="light"] .workflow-num {
  border-color: rgba(8, 145, 178, 0.28);
  background: rgba(8, 145, 178, 0.05);
}
[data-theme="light"] .showcase-tab[aria-selected="true"] { background: rgba(8, 145, 178, 0.06); }
[data-theme="light"] .workflow { background: rgba(8, 145, 178, 0.02); }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.35rem;
}
.hero-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: var(--rail-side);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.15rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  color: #a9e8f2;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid rgba(34, 211, 238, 0.22);
  clip-path: var(--slope-sm);
  white-space: nowrap;
}
[data-theme="light"] .hero-badge { color: #0e7490; background: rgba(8, 145, 178, 0.07); }
.hero-badge.is-accent {
  color: #e3c8ff;
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.32);
}
[data-theme="light"] .hero-badge.is-accent { color: #6d28d9; background: rgba(124, 58, 237, 0.07); }
.hero-badge .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.55rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.hero-title .grad {
  background: var(--title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-subtitle {
  max-width: 46ch;
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.8;
}
.hero-subtitle strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.35rem;
  margin: 2rem 0 0;
  padding: 1.15rem 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.hero-facts .icon { width: 0.9rem; height: 0.9rem; color: var(--primary); }

/* ---------- Hero app window ---------- */
.hero-media {
  position: relative;
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
}
.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  pointer-events: none;
  z-index: 2;
}
.hero-media::before {
  top: -0.7rem;
  left: -0.7rem;
  border-top: 1px solid rgba(34, 211, 238, 0.55);
  border-left: 1px solid rgba(34, 211, 238, 0.55);
}
.hero-media::after {
  right: -0.7rem;
  bottom: -0.7rem;
  border-right: 1px solid rgba(168, 85, 247, 0.55);
  border-bottom: 1px solid rgba(168, 85, 247, 0.55);
}

.app-window {
  position: relative;
  width: 100%;
  background: #060b13;
  border: 1px solid rgba(34, 211, 238, 0.24);
  box-shadow:
    0 2.4rem 5rem -1.4rem rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 48px rgba(34, 211, 238, 0.1);
  color: #e9f2fb;
}
.app-window::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 3;
  background: var(--rail);
}
.app-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(34, 211, 238, 0.035) 3px 4px);
  opacity: 0.6;
}

.app-window-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.6rem;
  padding: 0 0.9rem;
  background: linear-gradient(180deg, #0a1422, #070d17);
  border-bottom: 1px solid #17273a;
  position: relative;
  z-index: 3;
}
.traffic { display: flex; gap: 5px; }
.traffic i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #263a51;
}
.traffic i:nth-child(1) { background: #22d3ee; box-shadow: 0 0 6px rgba(34, 211, 238, 0.5); }
.traffic i:nth-child(2) { background: #a855f7; }
.app-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fa6bd;
}
.app-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.18rem 0.4rem;
  color: #67e8f9;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.05);
}
.app-status i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee;
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

.compare {
  --pos: 54%;
  position: relative;
  aspect-ratio: 620 / 270;
  overflow: hidden;
  background: #02040a;
  isolation: isolate;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.compare-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
  will-change: clip-path;
}
.compare-after img { position: absolute; inset: 0; }

.compare-tag {
  position: absolute;
  top: 0.7rem;
  z-index: 3;
  padding: 0.28rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dbeafe;
  background: rgba(4, 8, 14, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.compare-tag-before { left: 0.7rem; }
.compare-tag-after {
  right: 0.7rem;
  color: #a5f3fc;
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(4, 18, 24, 0.72);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 4;
  width: 2px;
  transform: translateX(-1px);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0), #22d3ee 18%, #a855f7 82%, rgba(168, 85, 247, 0));
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.55);
  pointer-events: none;
}
.compare-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  color: #e6fbff;
  background: rgba(5, 11, 20, 0.88);
  border: 1px solid rgba(103, 232, 249, 0.55);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  clip-path: polygon(22% 0, 78% 0, 100% 50%, 78% 100%, 22% 100%, 0 50%);
}
.compare-grip span { margin-top: -1px; }

.compare-range {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  opacity: 0;
  cursor: ew-resize;
}
.compare-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 2px;
  height: 100%;
  cursor: ew-resize;
}
.compare-range::-moz-range-thumb {
  width: 2px;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: ew-resize;
}
.compare:has(.compare-range:focus-visible) {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.app-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.7rem;
  background: #060b13;
  border-top: 1px solid #17273a;
  position: relative;
  z-index: 3;
}
.preset-switch { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.preset-switch button {
  padding: 0.4rem 0.55rem;
  border: 1px solid transparent;
  background: transparent;
  color: #637a92;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.preset-switch button:hover { color: #cfeaf5; }
.preset-switch button[aria-selected="true"] {
  color: #eafcff;
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.3);
}
.app-hint {
  color: #4e657d;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.hero-note {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

@media (min-width: 1000px) {
  .hero { padding: 5.5rem 0 6rem; }
  .hero-inner { grid-template-columns: 1.04fr 0.96fr; gap: 4rem; }
  .hero-media { margin-left: auto; }
}

@media (max-width: 999px) {
  .hero { padding: 3.5rem 0 4rem; }
  .hero-inner { gap: 3rem; }
  .hero-media { max-width: 38rem; }
}

@media (max-width: 560px) {
  .hero { padding: 2.75rem 0 3.25rem; }
  .hero-content { padding-left: 1rem; }
  .hero-title { font-size: clamp(2.2rem, 10vw, 2.75rem); }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { gap: 0.55rem 1rem; }
  .hero-facts li { font-size: 0.7rem; }
  .compare { aspect-ratio: 2 / 1; }
  .compare-tag { font-size: 0.5rem; }
  .app-title { font-size: 0.6rem; letter-spacing: 0.1em; }
  .app-hint { display: none; }
  .app-controls { padding: 0.55rem; }
  .preset-switch button { padding: 0.35rem 0.45rem; font-size: 0.6rem; }
  .hero-media::before, .hero-media::after { width: 1.7rem; height: 1.7rem; }
  .feature-index { font-size: 2.9rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ---------- Showcase ---------- */
.showcase {
  position: relative;
  padding: 5rem 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(ellipse 45% 50% at 92% 8%, rgba(168, 85, 247, 0.08), transparent 60%),
    radial-gradient(ellipse 40% 50% at 3% 96%, rgba(34, 211, 238, 0.06), transparent 60%);
}

.showcase-shell {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}
.showcase-shell::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 2;
  background: var(--rail);
  opacity: 0.8;
}

.showcase-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.showcase-tab {
  flex: 1 0 auto;
  min-width: 12.5rem;
  padding: 0.95rem 1.15rem;
  text-align: left;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.showcase-tab:last-child { border-right: 0; }
.showcase-tab .tab-num {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}
.showcase-tab .tab-name {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.showcase-tab:hover { background: rgba(34, 211, 238, 0.035); }
.showcase-tab[aria-selected="true"] { background: rgba(34, 211, 238, 0.055); }
.showcase-tab[aria-selected="true"] .tab-num { color: var(--primary); }
.showcase-tab[aria-selected="true"] .tab-name { color: var(--text); }
.showcase-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--rail-side);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
}

.showcase-figure { margin: 0; }
.showcase-stage {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #02040a;
  overflow: hidden;
}
.showcase-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s var(--ease), transform 0.6s var(--ease);
}
.showcase-stage img.is-swapping { opacity: 0.35; transform: scale(1.012); }

.showcase-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.showcase-caption h3 {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.showcase-caption p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}
.showcase-caption .caption-meta {
  flex-shrink: 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-align: right;
  line-height: 1.8;
  text-transform: uppercase;
}
.showcase-caption .caption-meta strong { display: block; color: var(--primary); font-weight: 600; }

@media (max-width: 767px) {
  .showcase { padding: 3.5rem 0; }
  .showcase-tab { min-width: 10.5rem; padding: 0.8rem 0.9rem; }
  .showcase-tab .tab-name { font-size: 0.8rem; }
  .showcase-caption { flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 0.9rem 1rem; }
  .showcase-caption .caption-meta { text-align: left; }
}

@media (max-width: 640px) {
  .showcase-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
  .showcase-tab { min-width: 0; padding: 0.72rem 0.55rem; }
  .showcase-tab .tab-num { font-size: 0.5rem; letter-spacing: 0.1em; }
  .showcase-tab .tab-name { font-size: 0.72rem; line-height: 1.35; }
}

/* ---------- Features ---------- */
.features {
  position: relative;
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.features::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(0deg, rgba(34, 211, 238, 0.07) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.07) 0 1px, transparent 1px 52px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.features-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.feature-card {
  position: relative;
  padding: 1.65rem;
  background: linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--surface) 70%, var(--bg)));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.feature-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: rgba(34, 211, 238, 0.28);
  transition: background 0.25s, box-shadow 0.25s;
}
.feature-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--rail);
  opacity: 0.35;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 22px 50px -30px rgba(0, 0, 0, 0.9), var(--glow-primary);
}
.feature-card:hover::before {
  background: var(--rail-side);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.45);
}

.feature-index {
  position: absolute;
  top: 0.35rem;
  right: 0.85rem;
  z-index: 0;
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.2), rgba(168, 85, 247, 0.08));
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  user-select: none;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1.15rem;
  color: #8be9f5;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  clip-path: polygon(0.5rem 0, 100% 0, 100% calc(100% - 0.5rem), calc(100% - 0.5rem) 100%, 0 100%, 0 0.5rem);
}
.feature-icon .icon { width: 1.35rem; height: 1.35rem; }

.feature-text { position: relative; z-index: 1; }
.feature-text h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.feature-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

.feature-card.is-featured {
  border-color: rgba(168, 85, 247, 0.4);
  background:
    linear-gradient(150deg, rgba(168, 85, 247, 0.09), rgba(34, 211, 238, 0.04) 55%, transparent),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.06) inset;
}
.feature-card.is-featured::before { background: var(--rail-side); }
.feature-card.is-featured .feature-index {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.3), rgba(34, 211, 238, 0.12));
  -webkit-background-clip: text;
  background-clip: text;
}
.feature-card.is-featured .feature-icon {
  color: #e2c8ff;
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.32);
}

.workflow {
  position: relative;
  z-index: 1;
  display: grid;
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.workflow-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.25rem;
}
.workflow-step + .workflow-step { border-top: 1px solid var(--border); }
.workflow-num {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.05);
}
.workflow-step h3 {
  margin: 0 0 0.15rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.workflow-step p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.75rem;
  line-height: 1.55;
}

@media (min-width: 900px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .workflow { grid-template-columns: repeat(3, 1fr); }
  .workflow-step + .workflow-step { border-top: 0; border-left: 1px solid var(--border); }
}

@media (max-width: 899px) {
  .features { padding: 3.5rem 0; }
}

/* ---------- FAQ ---------- */
.faq {
  padding: 5rem 0;
  position: relative;
}
.faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 58rem;
}
.faq-item {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: rgba(34, 211, 238, 0.22);
  transition: background 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 18px 44px -30px rgba(0, 0, 0, 0.85), var(--glow-primary);
}
.faq-item[open]::before {
  background: var(--rail-side);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.4);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.05rem 1.15rem;
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  flex-shrink: 0;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.05);
  clip-path: var(--slope-sm);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.faq-item[open] summary::after {
  content: "\2212";
  color: #fff;
  background: var(--btn-grad);
  border-color: transparent;
}
.faq-question { flex: 1; min-width: 0; }
.faq-item p {
  margin: 0;
  padding: 0.95rem 1.15rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.8;
  border-top: 1px solid var(--border);
}
.faq-item p a { text-decoration: underline; text-underline-offset: 2px; }

.faq-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  max-width: 58rem;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--border-strong);
  color: var(--text-dim);
  font-size: 0.8rem;
}
.faq-more p { margin: 0; }
.faq-more a { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; }
.faq-more .icon { width: 0.95rem; height: 0.95rem; }

@media (min-width: 768px) {
  .faq-list, .faq-more { max-width: none; }
}

@media (max-width: 767px) {
  .faq { padding: 3.5rem 0; }
  .faq-item summary { padding: 0.95rem 1rem; font-size: 0.875rem; }
  .faq-item p { padding: 0.9rem 1rem 1rem; font-size: 0.84rem; }
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 4.75rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 80% at 12% 50%, rgba(34, 211, 238, 0.1), transparent 60%),
    radial-gradient(ellipse 55% 80% at 88% 50%, rgba(168, 85, 247, 0.1), transparent 60%);
}
.cta-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 2.75rem 3rem;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(120deg, rgba(34, 211, 238, 0.055), transparent 38%, rgba(168, 85, 247, 0.06)),
    color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-panel), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.cta-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--rail);
  opacity: 0.85;
}
.cta-panel::after {
  content: "MFX";
  position: absolute;
  right: 1.5rem;
  bottom: -2.8rem;
  z-index: 0;
  font-family: var(--font-display);
  font-size: 11rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: transparent;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.1), rgba(168, 85, 247, 0.02));
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  user-select: none;
}
.cta-text { position: relative; z-index: 1; }
.cta-text h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.75rem, 3.8vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.cta-text h2 span {
  background: var(--title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  flex-shrink: 0;
}
.cta-actions .btn { min-width: 12.5rem; }
.cta-note {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

@media (max-width: 899px) {
  .cta { padding: 3.5rem 0; }
  .cta-panel { flex-direction: column; align-items: flex-start; padding: 2rem; gap: 1.75rem; }
  .cta-text h2 { font-size: clamp(1.3rem, 6.5vw, 2.2rem); }
  .cta-actions { width: 100%; }
  .cta-actions .btn { width: 100%; }
  .cta-panel::after { font-size: 8rem; right: -1rem; bottom: -2rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 3rem 0 1.5rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--rail);
  opacity: 0.55;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}
.footer-col { justify-self: start; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand .brand-name { font-size: 1.3rem; }
.footer-brand p {
  max-width: 34ch;
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.75;
}
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.footer-tags span {
  padding: 0.2rem 0.45rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
}

.footer-col {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.35rem;
  justify-self: end;
}
.footer-col h3 {
  margin: 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.575rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.35rem;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  padding-top: 1.25rem;
  color: var(--text-dim);
  font-size: 0.68rem;
  line-height: 1.7;
}
.footer-bottom p { margin: 0; }
.footer-bottom .footer-legal { max-width: 46ch; text-align: right; }

@media (max-width: 899px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col { justify-self: start; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom .footer-legal { text-align: left; }
}@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Download modal ---------- */
.download-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow-y: auto;
}
.download-modal[open] {
  display: grid;
  place-items: center;
}
.download-modal::backdrop {
  background: rgba(2, 5, 10, 0.84);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
[data-theme="light"] .download-modal::backdrop { background: rgba(12, 27, 40, 0.55); }

.download-modal-panel {
  position: relative;
  width: min(34rem, 100%);
  margin: auto;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid rgba(34, 211, 238, 0.3);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.95), var(--glow-primary);
  overflow: hidden;
}
.download-modal-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--rail);
}
.download-modal-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    repeating-linear-gradient(0deg, rgba(34, 211, 238, 0.8) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.8) 0 1px, transparent 1px 26px);
}
.download-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  clip-path: var(--slope-sm);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.download-modal-close:hover {
  color: var(--primary);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: var(--glow-primary);
}
.download-modal h2 {
  position: relative;
  z-index: 1;
  margin: 0 2.5rem 0.45rem 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.download-modal-subtitle {
  position: relative;
  z-index: 1;
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}
.download-buttons {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.65rem;
}
.btn-store {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  color: var(--text);
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  clip-path: var(--slope-sm);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-store:hover {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.05);
  box-shadow: var(--glow-primary);
  transform: translateY(-1px);
}
.btn-store.is-primary {
  border-color: rgba(34, 211, 238, 0.45);
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.1), rgba(168, 85, 247, 0.08));
}
.btn-store-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  color: var(--primary);
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(34, 211, 238, 0.05);
}
.btn-store.is-primary .btn-store-icon { color: #a5f3fc; }
.btn-store-icon .icon { width: 1.2rem; height: 1.2rem; }
.btn-store-text { display: flex; flex-direction: column; min-width: 0; }
.btn-store-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.btn-store-desc {
  margin-top: 0.1rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}
.modal-note {
  position: relative;
  z-index: 1;
  margin: 1.15rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.7rem;
  line-height: 1.7;
}
.modal-note a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 480px) {
  .download-modal-panel { padding: 1.6rem 1.25rem; }
}

/* ---------- Legal / content pages ---------- */
.page {
  position: relative;
  z-index: 1;
  padding: 3.75rem 0 5rem;
}
.page-wrap { width: min(820px, 100%); margin-inline: auto; }
.page-header {
  margin-bottom: 2.25rem;
  padding: 0 0 1.25rem 1.1rem;
  border-left: 2px solid transparent;
  border-image: var(--rail-side) 1;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  margin: 0.2rem 0 0.55rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.page-lead {
  margin: 0;
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}
.page-meta {
  margin: 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.legal-section {
  position: relative;
  margin-bottom: 0.9rem;
  padding: 1.35rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.legal-section::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: rgba(34, 211, 238, 0.2);
}
.legal-section h2 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.7rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.legal-section h2 .num {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.legal-section p,
.legal-section li {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.85;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0.4rem 0 0; padding-left: 1.15rem; }
.legal-section li { margin-bottom: 0.3rem; }
.legal-section strong { color: var(--text); font-weight: 600; }

.contact-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1.5rem;
}
.contact-card {
  position: relative;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--rail);
  opacity: 0.4;
}
.contact-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: var(--glow-primary);
}
.contact-card .contact-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.contact-card .contact-value {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  word-break: break-all;
}
.contact-card .contact-value:hover { color: var(--primary); }
.contact-card .icon { width: 0.95rem; height: 0.95rem; color: var(--primary); }
.contact-card p {
  margin: 0.35rem 0 0;
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .page { padding: 2.5rem 0 3.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .legal-section { padding: 1.15rem 1.1rem; }
}

/* ---------- Utilities ---------- */
.text-grad {
  background: var(--title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nowrap { white-space: nowrap; }
