/* =================================================================
   Nomia Storage -- Complete Design System
   Single source of truth. Every page links this file.
   No external requests. System font stack only.
   ================================================================= */

/* ---- 1. DESIGN TOKENS ----------------------------------------- */
:root {
  /* --- Color Palette (Cobalt + Zinc, cold precision) --- */
  --c-bg:            #f7f9fb;
  --c-bg-alt:        #eef1f6;
  --c-surface:       #ffffff;
  --c-surface-2:     #f4f6fa;
  --c-border:        #dce3ee;
  --c-border-subtle: #e8edf5;

  --c-text-1: #0d1420;
  --c-text-2: #4a5568;
  --c-text-3: #8896aa;

  /* Single accent: cobalt blue -- not AI-purple, not generic navy */
  --c-accent:        #1766f0;
  --c-accent-hover:  #0f55d4;
  --c-accent-dark:   #0c46b4;
  --c-accent-light:  #dbeafe;
  --c-accent-muted:  rgba(23, 102, 240, 0.10);

  --c-green:         #16a34a;
  --c-green-light:   #dcfce7;

  /* --- Typography: system stack, no external fonts --- */
  --font-sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
               "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Fira Code", ui-monospace,
               "Courier New", monospace;

  /* --- Type Scale (rem, 16px base) --- */
  --text-xs:   0.6875rem;  /* 11px */
  --text-sm:   0.8125rem;  /* 13px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */

  /* --- Spacing (4px base) --- */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-14: 3.5rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* --- Border Radius: one scale, used consistently ---
     sm=inputs, md=cards/buttons, lg=panels, pill=badges */
  --r-xs:   3px;
  --r-sm:   5px;
  --r-md:   8px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-pill: 9999px;

  /* --- Shadows (hue-tinted, never pure black) --- */
  --shadow-xs:     0 1px 2px 0 rgb(13 20 32 / 0.06);
  --shadow-sm:     0 1px 4px 0 rgb(13 20 32 / 0.07), 0 1px 2px -1px rgb(13 20 32 / 0.04);
  --shadow-md:     0 4px 14px -2px rgb(13 20 32 / 0.09), 0 2px 6px -2px rgb(13 20 32 / 0.04);
  --shadow-lg:     0 10px 36px -4px rgb(13 20 32 / 0.12), 0 4px 16px -4px rgb(13 20 32 / 0.06);
  --shadow-accent: 0 4px 22px -4px rgb(23 102 240 / 0.28);

  /* --- Motion --- */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    120ms;
  --dur-base:    220ms;
  --dur-slow:    380ms;

  /* --- Layout --- */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 5vw, 2.5rem);
  --section-v:     clamp(4rem, 8vw, 6.5rem);
  --nav-h:         64px;
}

/* Dark mode token swap */
@media (prefers-color-scheme: dark) {
  :root {
    --c-bg:            #0b0f1a;
    --c-bg-alt:        #101624;
    --c-surface:       #161d2e;
    --c-surface-2:     #1c2338;
    --c-border:        #2a3348;
    --c-border-subtle: #1e2a3d;

    --c-text-1: #e8edf5;
    --c-text-2: #8a97ae;
    --c-text-3: #4d5c72;

    --c-accent:       #4b8df8;
    --c-accent-hover: #6ba4fb;
    --c-accent-dark:  #3b7ef5;
    --c-accent-light: #162040;
    --c-accent-muted: rgba(75, 141, 248, 0.12);

    --c-green:        #22c55e;
    --c-green-light:  #052e16;

    --shadow-xs:     0 1px 2px 0 rgb(0 0 0 / 0.30);
    --shadow-sm:     0 1px 4px 0 rgb(0 0 0 / 0.35);
    --shadow-md:     0 4px 14px -2px rgb(0 0 0 / 0.45);
    --shadow-lg:     0 10px 36px -4px rgb(0 0 0 / 0.55);
    --shadow-accent: 0 4px 22px -4px rgb(75 141 248 / 0.35);
  }
}


/* ---- 2. RESET & BASE ------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--c-text-1);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; border: none; background: none; }


/* ---- 3. ACCESSIBILITY ----------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-accent);
  color: #fff;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--text-sm);
  z-index: 9999;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: var(--sp-4); }

:focus-visible {
  outline: 2.5px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
.btn:focus-visible { outline-offset: 3px; }


/* ---- 4. TYPOGRAPHY -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--c-text-1);
}
h1 { font-size: clamp(var(--text-4xl), 5.5vw, var(--text-6xl)); letter-spacing: -0.038em; }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

p { color: var(--c-text-2); max-width: 65ch; line-height: 1.7; }

.lead {
  font-size: var(--text-lg);
  color: var(--c-text-2);
  max-width: 55ch;
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}


/* ---- 5. LAYOUT ------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section        { padding-block: var(--section-v); }
.section--alt   { background: var(--c-bg-alt); }
.section--dark  {
  background: #0d1420;
  color: #e8edf5;
}
.section--dark p              { color: #8a97ae; max-width: 65ch; }
.section--dark h1,
.section--dark h2,
.section--dark h3             { color: #e8edf5; }

.grid   { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }


/* ---- 6. NAVIGATION -------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.nav--scrolled {
  background: rgb(247 249 251 / 0.94);
  box-shadow: 0 1px 0 var(--c-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@media (prefers-color-scheme: dark) {
  .nav--scrolled {
    background: rgb(11 15 26 / 0.94);
  }
}

.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: -0.02em;
  color: var(--c-text-1);
  flex-shrink: 0;
}

.nav__brand-mark {
  width: 28px;
  height: 28px;
  background: var(--c-accent);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.nav__link {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text-2);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
}
.nav__link:hover { color: var(--c-text-1); background: var(--c-surface-2); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  cursor: pointer;
  border-radius: var(--r-sm);
}
.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--c-text-1);
  border-radius: var(--r-pill);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast);
  display: block;
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-4) var(--container-pad) var(--sp-5);
  box-shadow: var(--shadow-md);
  z-index: 99;
  flex-direction: column;
  gap: var(--sp-1);
}
.nav-drawer.is-open { display: flex; }

.nav-drawer__link {
  padding: var(--sp-3) var(--sp-3);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--c-text-2);
  border-radius: var(--r-md);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-drawer__link:hover { background: var(--c-bg-alt); color: var(--c-text-1); }


/* ---- 7. BUTTONS ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.65rem 1.35rem;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--r-md);
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background var(--dur-fast), color var(--dur-fast),
              box-shadow var(--dur-fast), transform var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast);
  text-decoration: none;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: var(--c-accent);
  color: #ffffff;
  border-color: var(--c-accent);
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  background: var(--c-accent-hover);
  border-color: var(--c-accent-hover);
  box-shadow: 0 6px 28px -4px rgb(23 102 240 / 0.36);
}

.btn--secondary {
  background: var(--c-surface);
  color: var(--c-text-1);
  border-color: var(--c-border);
  box-shadow: var(--shadow-xs);
}
.btn--secondary:hover {
  background: var(--c-bg-alt);
  border-color: var(--c-text-3);
}

.btn--ghost {
  background: transparent;
  color: var(--c-text-2);
  border-color: transparent;
}
.btn--ghost:hover { background: var(--c-accent-muted); color: var(--c-accent); }

.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: var(--text-base);
  border-radius: var(--r-lg);
}
.btn--sm {
  padding: 0.45rem 0.9rem;
  font-size: var(--text-xs);
}


/* ---- 8. BADGES / PILLS --------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.28rem 0.65rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--r-pill);
  line-height: 1;
}
.badge--blue {
  background: var(--c-accent-light);
  color: var(--c-accent);
}
.badge--green {
  background: var(--c-green-light);
  color: var(--c-green);
}
.badge--surface {
  background: var(--c-surface-2);
  color: var(--c-text-2);
  border: 1px solid var(--c-border);
}


/* ---- 9. FORMS ------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-text-1);
}
.form-input {
  width: 100%;
  padding: 0.65rem 0.875rem;
  font-size: var(--text-sm);
  color: var(--c-text-1);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
}
.form-input::placeholder { color: var(--c-text-3); }
.form-input:hover  { border-color: var(--c-text-3); }
.form-input:focus  { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-muted); }
.form-hint  { font-size: var(--text-xs); color: var(--c-text-3); }
.form-error { font-size: var(--text-xs); color: #dc2626; }


/* ---- 10. HERO ------------------------------------------------- */
.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
  gap: var(--sp-12);
  padding-top: calc(var(--nav-h) + var(--sp-10));
  padding-bottom: var(--sp-16);
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.hero__headline {
  font-size: clamp(var(--text-4xl), 5.5vw, var(--text-6xl));
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--c-text-1);
}

.hero__body {
  font-size: var(--text-lg);
  color: var(--c-text-2);
  max-width: 46ch;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.hero__asset {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}


/* ---- 11. PRODUCT UI MOCKUP (hero asset) ----------------------- */
.ui-mockup {
  width: 100%;
  max-width: 520px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 var(--c-border-subtle);
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}

.ui-mockup__chrome {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-border);
  gap: 6px;
}

.chrome-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chrome-dot:nth-child(1) { background: #ff5f57; }
.chrome-dot:nth-child(2) { background: #febc2e; }
.chrome-dot:nth-child(3) { background: #28c840; }

.chrome-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--c-text-3);
  font-weight: 500;
}

.ui-mockup__body {
  display: grid;
  grid-template-columns: 150px 1fr;
  height: 330px;
}

.ui-sidebar {
  border-right: 1px solid var(--c-border);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--c-bg-alt);
  font-size: 11px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: var(--r-sm);
  font-size: 11px;
  color: var(--c-text-2);
}
.sidebar-item.is-active {
  background: var(--c-accent-muted);
  color: var(--c-accent);
  font-weight: 600;
}
.sidebar-icon { width: 13px; height: 13px; flex-shrink: 0; opacity: 0.7; }
.sidebar-item.is-active .sidebar-icon { opacity: 1; }

.sidebar-divider { height: 1px; background: var(--c-border); margin: 5px 4px; }

.sidebar-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-3);
  padding: 3px 8px 2px;
}

.sidebar-storage {
  margin-top: auto;
  padding: 8px 6px;
}
.storage-label {
  font-size: 9.5px;
  color: var(--c-text-3);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}
.storage-bar-track {
  height: 4px;
  background: var(--c-border);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.storage-bar-fill {
  height: 100%;
  width: 34%;
  background: var(--c-accent);
  border-radius: var(--r-pill);
}

.ui-main { display: flex; flex-direction: column; overflow: hidden; }

.ui-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-bottom: 1px solid var(--c-border-subtle);
  gap: 8px;
  flex-shrink: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--c-text-3);
}
.breadcrumb-sep { color: var(--c-border); }
.breadcrumb-current { color: var(--c-text-1); font-weight: 600; }

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  background: var(--c-accent);
  color: #fff;
  border-radius: var(--r-xs);
}

.ui-file-list { flex: 1; overflow: hidden; }

.file-row-head {
  display: grid;
  grid-template-columns: 16px 1fr 68px 48px;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-text-3);
  border-bottom: 1px solid var(--c-border-subtle);
}

.file-row {
  display: grid;
  grid-template-columns: 16px 1fr 68px 48px;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 11px;
  color: var(--c-text-1);
}
.file-row:hover { background: var(--c-bg-alt); }
.file-row.is-selected { background: var(--c-accent-muted); }

.file-icon { width: 14px; height: 14px; flex-shrink: 0; }
.file-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-name .ext { color: var(--c-text-3); font-weight: 400; }
.file-size { text-align: right; color: var(--c-text-3); font-family: var(--font-mono); font-size: 10px; }
.file-date { text-align: right; color: var(--c-text-3); font-size: 10px; }


/* ---- 12. TRUST BAR ------------------------------------------- */
.trust-bar {
  padding-block: var(--sp-10);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}

.trust-bar__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: var(--sp-6);
  text-align: center;
}

.trust-bar__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--sp-6), 5vw, var(--sp-12));
  flex-wrap: wrap;
}

.trust-mark {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-text-3);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0.75;
  transition: opacity var(--dur-fast);
}
.trust-mark:hover { opacity: 1; }
.trust-mark svg { flex-shrink: 0; }


/* ---- 13. BENTO FEATURES -------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.bento-cell {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  min-height: 210px;
}

.bento-cell--wide { grid-column: 1 / 3; }

.bento-cell--accent {
  background: var(--c-accent-light);
  border-color: transparent;
}
@media (prefers-color-scheme: dark) {
  .bento-cell--accent {
    background: var(--c-accent-light);
    border-color: var(--c-border-subtle);
  }
}

.bento-cell--dark {
  background: #111827;
  border-color: transparent;
}
.bento-cell--dark h3,
.bento-cell--dark h4 { color: #e8edf5; }
.bento-cell--dark p { color: #8a97ae; }

.bento-cell--pattern {
  background: var(--c-surface);
  background-image: radial-gradient(var(--c-border) 1px, transparent 1px);
  background-size: 18px 18px;
}

.bento-cell--code {
  background: #0f1729;
  border-color: transparent;
}

.bento-icon {
  width: 36px;
  height: 36px;
  background: var(--c-accent-muted);
  color: var(--c-accent);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bento-cell--dark .bento-icon {
  background: rgba(75, 141, 248, 0.15);
  color: #4b8df8;
}

.bento-cell h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.022em;
}
.bento-cell p {
  font-size: var(--text-sm);
  color: var(--c-text-2);
  line-height: 1.65;
  max-width: 44ch;
}

.code-snippet {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.75;
  color: #7dd3fc;
  overflow: hidden;
  flex: 1;
}
.code-comment { color: #4b5c70; }
.code-keyword { color: #c084fc; }
.code-string  { color: #86efac; }
.code-plain   { color: #e2e8f0; }


/* ---- 14. HOW IT WORKS: 3 STEPS ------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  position: relative;
}

.step__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-accent-muted);
  border: 2px solid var(--c-accent);
  color: var(--c-accent);
  font-weight: 700;
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step h3 {
  font-size: var(--text-xl);
  margin-top: 0;
}

.step p {
  font-size: var(--text-sm);
  line-height: 1.65;
  max-width: none;
}


/* ---- 15. STATS / SECURITY SPLIT ------------------------------ */
.stats-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--sp-8), 8vw, var(--sp-20));
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
}

.stat-value {
  font-size: clamp(var(--text-3xl), 4.5vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--c-text-1);
  line-height: 1;
  font-family: var(--font-sans);
}
.stat-unit {
  font-size: var(--text-xl);
  font-weight: 700;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--c-text-2);
  margin-top: var(--sp-2);
  max-width: 22ch;
  line-height: 1.5;
}


/* ---- 16. PRICING --------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  max-width: 780px;
  margin-inline: auto;
}

.pricing-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.pricing-card--featured {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-accent), var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.pricing-card__name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--c-text-1);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
  line-height: 1;
  margin-top: var(--sp-3);
}
.price-amount {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--c-text-1);
}
.price-per {
  font-size: var(--text-sm);
  color: var(--c-text-3);
}
.price-note {
  font-size: var(--text-xs);
  color: var(--c-text-3);
  margin-top: var(--sp-2);
}

.pricing-divider { height: 1px; background: var(--c-border); }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--c-text-2);
}

.check-icon {
  width: 16px;
  height: 16px;
  background: var(--c-green-light);
  color: var(--c-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}


/* ---- 17. TESTIMONIALS --------------------------------------- */
.testimonial-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}

.testimonial-quote {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  box-shadow: var(--shadow-sm);
}

.quote-text {
  font-size: var(--text-base);
  color: var(--c-text-1);
  line-height: 1.7;
  font-style: italic;
  max-width: none;
  flex: 1;
}
/* Italic descender clearance per skill rule */
.quote-text { leading-trim: both; padding-bottom: 1px; }

.quote-attribution {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.avatar-init {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-accent-muted);
  color: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  flex-shrink: 0;
  border: 1.5px solid var(--c-accent-light);
}

.attr-name { font-size: var(--text-sm); font-weight: 700; color: var(--c-text-1); }
.attr-role { font-size: var(--text-xs); color: var(--c-text-3); margin-top: 1px; }


/* ---- 18. CTA BANNER ----------------------------------------- */
.cta-banner {
  background: #0d1420;
  padding-block: var(--sp-24);
  text-align: center;
}
.cta-banner h2 { color: #e8edf5; margin-bottom: var(--sp-4); }
.cta-banner .lead {
  color: #8a97ae;
  margin-inline: auto;
  margin-bottom: var(--sp-8);
  max-width: 50ch;
}


/* ---- 19. FOOTER --------------------------------------------- */
.footer {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  padding-block: var(--sp-16) var(--sp-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}

.footer__brand-block {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--c-text-3);
  max-width: 28ch;
  line-height: 1.6;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: var(--sp-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--c-text-2);
  transition: color var(--dur-fast);
}
.footer__link:hover { color: var(--c-text-1); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-8);
  border-top: 1px solid var(--c-border);
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--c-text-3);
}

.footer__legal-links {
  display: flex;
  gap: var(--sp-4);
}
.footer__legal-link {
  font-size: var(--text-xs);
  color: var(--c-text-3);
  transition: color var(--dur-fast);
}
.footer__legal-link:hover { color: var(--c-text-2); }


/* ---- 20. SCROLL REVEAL -------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-delay-1 { transition-delay: 80ms;  }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn    { transition: none; }
}


/* ---- 21. RESPONSIVE ----------------------------------------- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--nav-h) + var(--sp-12));
    padding-bottom: var(--sp-12);
  }
  .hero__asset { justify-content: center; }
  .ui-mockup   { max-width: 480px; }

  .bento { grid-template-columns: 1fr 1fr; }
  .bento-cell--wide { grid-column: 1 / -1; }

  .steps { grid-template-columns: 1fr; gap: var(--sp-6); }

  .stats-split { grid-template-columns: 1fr; gap: var(--sp-10); }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__actions .btn--secondary { display: none; }
  .nav-toggle { display: flex; }

  .hero__headline { font-size: clamp(var(--text-3xl), 7vw, var(--text-4xl)); }

  .bento          { grid-template-columns: 1fr; }
  .bento-cell--wide { grid-column: 1; }

  .testimonial-strip { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; }

  .trust-bar__list { gap: var(--sp-5); }

  .stats-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}
