/* ==========================================================================
   Veyra — Stylesheet
   Design system: 80% Premium SaaS (calm, solid, precise) / 20% Glass & Layers
   (subtle transparency + depth, used only at the nav, the hero preview panel
   and the CTA banner — never as the default surface treatment).
   ========================================================================== */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; }
img, picture, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: inherit; }

@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;
    scroll-behavior: auto !important;
  }
}

/* ---- Design tokens ---- */
:root {
  /* surfaces — solid, stepped dark tones (Premium SaaS default) */
  --bg: #090B12;
  --bg-elevated: #10131D;
  --surface: #151925;
  --surface-elevated: #1B2030;
  --card: var(--surface);
  --card-hover: var(--surface-elevated);
  --border: #292E3D;
  --border-strong: #363C4E;

  /* glass & layers — reserved for the nav bar, the hero preview panel and
     the CTA banner only; never the default card/surface treatment */
  --glass-bg: rgba(21, 25, 37, 0.64);
  --glass-bg-soft: rgba(21, 25, 37, 0.4);
  --glass-border: rgba(164, 119, 255, 0.22);
  --glass-blur: 18px;

  /* a neutral, low-contrast wash for hover/active states on solid surfaces */
  --wash-1: rgba(243, 242, 250, 0.035);
  --wash-2: rgba(243, 242, 250, 0.06);
  --wash-3: rgba(243, 242, 250, 0.09);

  /* text */
  --text: #F3F2FA;
  --text-muted: #A3A8BB;
  --text-faint: #6E7488;

  /* brand */
  --violet: #A477FF;
  --blue: #748BFF;
  --cyan: #39D6E8;

  --grad-brand: linear-gradient(105deg, var(--violet) 0%, var(--blue) 52%, var(--cyan) 100%);
  --grad-brand-vertical: linear-gradient(180deg, var(--violet) 0%, var(--blue) 55%, var(--cyan) 100%);
  --grad-text: linear-gradient(95deg, #dccbff 0%, #c3ccff 45%, #a3eef6 100%);
  --grad-soft: linear-gradient(135deg, rgba(164, 119, 255, 0.1), rgba(116, 139, 255, 0.1) 50%, rgba(57, 214, 232, 0.1));
  --grad-border: linear-gradient(140deg, rgba(164, 119, 255, 0.5), rgba(116, 139, 255, 0.3) 45%, rgba(57, 214, 232, 0.5));

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

  /* shadow — soft and restrained, never a heavy glow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px -12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 56px -18px rgba(0, 0, 0, 0.58);
  --shadow-glow: 0 0 60px rgba(164, 119, 255, 0.16);

  --container: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

/* ---- Base ---- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* ambient background — calm, static, low-contrast light accents (no drift/noise) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 420px at 14% 0%, rgba(164, 119, 255, 0.11), transparent 60%),
    radial-gradient(720px 480px at 100% 10%, rgba(57, 214, 232, 0.08), transparent 60%),
    radial-gradient(900px 600px at 50% 100%, rgba(116, 139, 255, 0.06), transparent 60%);
}

main, header, footer { position: relative; z-index: 1; }

::selection { background: rgba(164, 119, 255, 0.35); color: #fff; }

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

/* subtle custom scrollbar (webkit) */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-elevated);
  border-radius: 999px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

a, button, .btn { transition: all 0.2s var(--ease); }

/* ---- Typography ---- */
h1, h2, h3, h4 { letter-spacing: -0.02em; font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "✦";
  font-size: 12px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(164, 119, 255, 0.2));
}

.lead {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 118px 0; }
.section--tight { padding: 90px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(30px, 4vw, 42px); max-width: 620px; }
.section-head .lead { max-width: 380px; text-align: right; padding-bottom: 4px; }
.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head.center .lead { text-align: center; max-width: 560px; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  border: none;
}

/* skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--bg-elevated);
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-sm);
  white-space: nowrap;
  border: 1px solid transparent;
  /* Safari/WebKit can bleed an inset box-shadow past the rounded corner
     instead of clipping it (shows up as a thin pale seam at one or two
     corners) — forcing a clipping context here is the standard fix. */
  overflow: hidden;
}
.btn .icon { width: 17px; height: 17px; flex-shrink: 0; }

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 20px -8px rgba(164, 119, 255, 0.45);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 26px -8px rgba(164, 119, 255, 0.55);
}
.btn--primary:active { transform: translateY(0); }

.btn--secondary {
  background: var(--wash-1);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--secondary:hover {
  background: var(--wash-2);
  border-color: var(--border-strong);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 10px 16px;
}
.btn--ghost:hover { color: var(--text); }

.btn--lg { padding: 16px 28px; font-size: 16px; border-radius: var(--r-md); }
.btn--block { width: 100%; }

/* ---- Scroll progress ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-brand);
  z-index: 101;
  box-shadow: 0 0 10px rgba(164, 119, 255, 0.45);
  transition: width 0.1s linear;
}

/* ---- Navbar (glass accent #1: translucent, blurred once scrolled) ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(9, 11, 18, 0.32);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.nav.is-scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border-bottom-color: var(--glass-border);
}
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand img { height: 54px; width: auto; transition: transform 0.4s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__links a {
  padding: 9px 15px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.nav__links a:hover { color: var(--text); background: var(--wash-1); }
.nav__links a.is-active { color: var(--text); background: var(--wash-2); }
.nav__links a.is-maintenance { position: relative; }
.nav__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f5b142;
  margin-left: 6px;
  vertical-align: middle;
}

.nav__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__actions .btn { padding: 10px 18px; font-size: 14.5px; }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.nav__toggle .icon { width: 20px; height: 20px; }
.nav__toggle .icon-x { display: none; }
.nav--open .nav__toggle .icon-menu { display: none; }
.nav--open .nav__toggle .icon-x { display: block; }

/* mobile nav panel */
.nav__mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: rgba(9, 11, 18, 0.98);
  backdrop-filter: blur(20px);
  padding: 20px 20px 36px;
  overflow-y: auto;
  overflow-x: hidden;
}
.nav--open .nav__mobile { display: block; }
.nav__mobile::before {
  content: "";
  position: absolute;
  top: -8%;
  right: -16%;
  width: 70%;
  height: 36%;
  background: radial-gradient(circle, rgba(164, 119, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.nav__mobile::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -16%;
  width: 60%;
  height: 34%;
  background: radial-gradient(circle, rgba(57, 214, 232, 0.11), transparent 70%);
  pointer-events: none;
}

.nav__mobile-links { position: relative; z-index: 1; display: flex; flex-direction: column; }
.nav__mobile-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 6px;
  font-size: 16.5px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: menu-item-in 0.5s var(--ease) forwards;
}
.nav--open .nav__mobile-links a:nth-child(1) { animation-delay: 0.04s; }
.nav--open .nav__mobile-links a:nth-child(2) { animation-delay: 0.09s; }
.nav--open .nav__mobile-links a:nth-child(3) { animation-delay: 0.14s; }
.nav--open .nav__mobile-links a:nth-child(4) { animation-delay: 0.19s; }
.nav--open .nav__mobile-links a:nth-child(5) { animation-delay: 0.24s; }
@keyframes menu-item-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
.nav__mobile-links a:active { background: var(--wash-1); }
.nav__mobile-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.nav__mobile-icon .icon { width: 18px; height: 18px; }
.nav__mobile-links a:nth-child(3n+1) .nav__mobile-icon .icon { color: var(--violet); }
.nav__mobile-links a:nth-child(3n+2) .nav__mobile-icon .icon { color: var(--blue); }
.nav__mobile-links a:nth-child(3n+3) .nav__mobile-icon .icon { color: var(--cyan); }
.nav__mobile-arrow { margin-left: auto; width: 16px; height: 16px; color: var(--text-faint); flex-shrink: 0; }

.nav__mobile-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  opacity: 0;
  animation: menu-item-in 0.5s var(--ease) 0.3s forwards;
}

/* ---- Hero ---- */
.hero {
  padding: calc(var(--nav-h) + 86px) 0 90px;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 56px;
  align-items: center;
}
.hero__intro { animation: fade-up 0.8s var(--ease) both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
/* panel fades in on opacity only — its `transform` stays free for the JS tilt effect */
.hero .panel { animation: fade-in 0.9s var(--ease) 0.15s both; }
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-strong);
  background: var(--wash-1);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(57, 214, 232, 0.6);
  animation: pulse-dot 2.2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(57, 214, 232, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(57, 214, 232, 0); }
  100% { box-shadow: 0 0 0 0 rgba(57, 214, 232, 0); }
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.06;
  font-weight: 800;
  margin-bottom: 22px;
}
.hero .lead { font-size: 18.5px; max-width: 520px; margin-bottom: 34px; }
.hero__ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero__note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__note .icon { width: 15px; height: 15px; color: var(--cyan); }

/* hero visual mock panel — glass accent #2: the one surface that's genuinely
   translucent + blurred, reading as a floating UI layer above the page */
.panel {
  background: linear-gradient(165deg, rgba(27, 32, 48, 0.7), rgba(21, 25, 37, 0.4));
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: box-shadow 0.4s var(--ease);
}
.panel:hover {
  box-shadow: var(--shadow-lg), 0 26px 60px -24px rgba(164, 119, 255, 0.28);
}
.panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  opacity: 0.28;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.panel__brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.panel__brand img { height: 32px; width: auto; }
.panel__tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.panel__body {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
}
.panel__body h3 { font-size: 18px; margin-bottom: 4px; }
.panel__body > p { color: var(--text-faint); font-size: 13.5px; margin-bottom: 18px; }

.mod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mod-card {
  background: var(--wash-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 15px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.mod-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--wash-2);
}
.mod-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.mod-card__icon .icon { width: 17px; height: 17px; }
.mod-card__icon .icon:nth-child(1) { color: var(--violet); }
.mod-card h4 { font-size: 14px; margin-bottom: 2px; }
.mod-card span { font-size: 12px; color: var(--text-faint); }

.panel__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.panel__foot .dot { width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; flex-shrink: 0; }

/* ---- Trust strip ---- */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 34px 0;
}
.trust__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}
.trust__item .icon { width: 19px; height: 19px; color: var(--cyan); flex-shrink: 0; }

/* ---- Feature cards (solid Premium-SaaS surface) ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--card-hover);
  box-shadow: 0 20px 40px -24px rgba(164, 119, 255, 0.32);
}
.feature-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  margin-bottom: 18px;
  transition: transform 0.35s var(--ease);
}
.feature-card:hover .feature-card__icon { transform: scale(1.08) rotate(-4deg); }
.feature-card__icon .icon { width: 22px; height: 22px; }
.feature-card:nth-child(6n+1) .feature-card__icon .icon,
.feature-card:nth-child(6n+4) .feature-card__icon .icon { color: var(--violet); }
.feature-card:nth-child(6n+2) .feature-card__icon .icon,
.feature-card:nth-child(6n+5) .feature-card__icon .icon { color: var(--blue); }
.feature-card:nth-child(6n+3) .feature-card__icon .icon,
.feature-card:nth-child(6n+6) .feature-card__icon .icon { color: var(--cyan); }

.feature-card h3 { font-size: 18.5px; margin-bottom: 9px; }
.feature-card p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 18px; }
.feature-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--r-full);
  background: var(--wash-1);
  border: 1px solid var(--border);
  color: var(--text-faint);
  font-family: "SF Mono", "Fira Code", ui-monospace, monospace;
}

/* ---- Steps ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px -26px rgba(57, 214, 232, 0.28);
}
.step-card__num {
  font-size: 14px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  display: block;
}
.step-card h3 { font-size: 19px; margin-bottom: 9px; }
.step-card p { color: var(--text-muted); font-size: 14.5px; }
.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -21px;
  width: 20px;
  height: 1px;
  background: var(--border-strong);
  display: none;
}
@media (min-width: 901px) {
  .step-card:not(:last-child)::after { display: block; }
}

/* ---- Commands showcase ---- */
.commands {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.terminal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--wash-1);
}
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal__dot:nth-child(1) { background: #ff5f57; }
.terminal__dot:nth-child(2) { background: #febc2e; }
.terminal__dot:nth-child(3) { background: #28c840; }
.terminal__title {
  margin-left: 10px;
  font-size: 13px;
  color: var(--text-faint);
  font-weight: 600;
}
.terminal__title::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 13px;
  margin-left: 6px;
  background: var(--cyan);
  vertical-align: -2px;
  animation: blink-cursor 1.1s step-end infinite;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.terminal__body { padding: 10px; }
.cmd-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 16px;
  border-radius: var(--r-md);
  transition: background 0.3s var(--ease), padding-left 0.3s var(--ease), transform 0.3s var(--ease);
}
.cmd-row:hover {
  background: var(--wash-1);
  padding-left: 20px;
}
.cmd-row__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cmd-row:hover .cmd-row__icon {
  transform: scale(1.08);
  border-color: var(--border-strong);
}
.cmd-row__icon .icon { width: 18px; height: 18px; color: var(--cyan); }
.cmd-row__name {
  font-family: "SF Mono", "Fira Code", ui-monospace, monospace;
  font-size: 14.5px;
  font-weight: 600;
  color: #c9d6ff;
  white-space: nowrap;
}
.cmd-row__name span { color: var(--text-faint); font-weight: 400; }
.cmd-row__desc { color: var(--text-muted); font-size: 14px; }
.cmd-row__divider { flex: 1; border-top: 1px dashed var(--border); margin: 0 4px; min-width: 20px; }

/* ---- CTA banner (glass accent #3) ---- */
.cta-banner {
  position: relative;
  text-align: center;
  padding: 76px 40px;
  border-radius: var(--r-xl);
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(600px 300px at 50% -10%, rgba(164, 119, 255, 0.22), transparent 65%),
    radial-gradient(420px 240px at 100% 100%, rgba(57, 214, 232, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(27, 32, 48, 0.62), rgba(21, 25, 37, 0.32));
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  opacity: 0.32;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.cta-banner p { color: var(--text-muted); font-size: 16.5px; max-width: 480px; margin: 0 auto 32px; }
.cta-banner__ctas { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---- FAQ ---- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item.is-open { background: var(--card-hover); border-color: var(--border-strong); }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
}
.faq-item__q .icon {
  width: 19px;
  height: 19px;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.faq-item.is-open .faq-item__q .icon { transform: rotate(180deg); color: var(--cyan); }
.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a-inner { overflow: hidden; }
.faq-item__a p { padding: 0 24px 20px; color: var(--text-muted); font-size: 14.5px; line-height: 1.65; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); padding: 72px 0 32px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 50px;
}
.footer__brand .brand { margin-bottom: 14px; }
.footer__brand p { color: var(--text-faint); font-size: 14px; max-width: 300px; margin-bottom: 20px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer__social a:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--wash-1);
  transform: translateY(-2px);
}
.footer__social .icon { width: 17px; height: 17px; }

.footer__col h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: var(--text-muted); font-size: 14.5px; }
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
}
.footer__bottom a { color: var(--text-faint); }
.footer__bottom a:hover { color: var(--text-muted); }
.footer__legal-note { display: flex; align-items: center; gap: 8px; }

/* ---- Reveal-on-scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* ==========================================================================
   Maintenance (Dashboard) page
   ========================================================================== */
.maint {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
}
.maint__card {
  max-width: 580px;
  width: 100%;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 64px 44px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.maint__card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  opacity: 0.3;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.maint__icon-wrap {
  width: 112px;
  height: 112px;
  margin: 0 auto 30px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  position: relative;
}
.maint__icon-wrap img { height: 66px; width: auto; animation: float 3.5s ease-in-out infinite; }
.maint__icon-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 32px;
  background: var(--grad-brand);
  opacity: 0.14;
  filter: blur(18px);
  z-index: -1;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.maint__card .badge { margin-bottom: 22px; }
.maint__card h1 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 16px; }
.maint__card .lead { font-size: 16px; max-width: 440px; margin: 0 auto 32px; }

.progress {
  height: 8px;
  border-radius: var(--r-full);
  background: var(--wash-2);
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}
.progress__bar {
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: var(--r-full);
  background: var(--grad-brand);
  animation: progress-slide 1.8s ease-in-out infinite;
}
@keyframes progress-slide {
  0% { left: -40%; }
  100% { left: 100%; }
}
.progress-label {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}

.maint__ctas { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.maint__foot-note { font-size: 13px; color: var(--text-faint); }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal { padding: calc(var(--nav-h) + 64px) 0 100px; }
.legal__container { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 14px; }
.legal > .legal__container > .lead { margin-bottom: 40px; }

.notice {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(245, 177, 66, 0.08);
  border: 1px solid rgba(245, 177, 66, 0.3);
  margin-bottom: 44px;
}
.notice .icon { width: 20px; height: 20px; color: #f5b142; flex-shrink: 0; margin-top: 1px; }
.notice p { font-size: 14.5px; color: #f0d6a8; line-height: 1.6; }
.notice strong { color: #fff; }

.legal__section { margin-bottom: 38px; }
.legal__section h2 { font-size: 20px; margin-bottom: 14px; }
.legal__section h3 { font-size: 16px; margin: 18px 0 8px; color: var(--text); }
.legal__section p, .legal__section li { color: var(--text-muted); font-size: 15px; line-height: 1.75; }
.legal__section ul { padding-left: 20px; list-style: disc; display: flex; flex-direction: column; gap: 6px; }
.legal__section a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal__section .placeholder {
  color: #f5c069;
  background: rgba(245, 177, 66, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* ==========================================================================
   404 (optional reuse)
   ========================================================================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .container { padding-inline: 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions { display: none; }
  .nav__toggle { display: flex; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero { text-align: left; }

  .section { padding: 86px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .lead { text-align: left; max-width: 100%; }

  .trust__row { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__ctas, .cta-banner__ctas, .maint__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn, .cta-banner__ctas .btn, .maint__ctas .btn { width: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .cmd-row { flex-wrap: wrap; }
  .cmd-row__divider { display: none; }
  .maint__card { padding: 44px 24px; }
  .panel { padding: 16px; }
  .mod-grid { grid-template-columns: 1fr; }
}
