/* =============================================================================
   Walti — Premium Landing Styles
   Apple & Linear-grade minimalist luxury design system.
   Palette tracks Walti's native iOS app: warm cream, obsidian ink, tailored accents.
   ========================================================================== */

@layer reset, base, layout, components, sections, legal, utils;

/* ---------- reset ---------------------------------------------------------- */
@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

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

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

  img,
  svg {
    display: block;
    max-width: 100%;
  }

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

  button {
    font: inherit;
    color: inherit;
    border: none;
    background: none;
    cursor: pointer;
  }

  input {
    font: inherit;
    color: inherit;
    border: none;
    outline: none;
  }

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

/* ---------- base / tokens -------------------------------------------------- */
@layer base {
  :root {
    /* Neutrals — Warm luxury light mode */
    --bg: #f7f6f2;
    --bg-alt: #f0eee8;
    --bg-mesh-1: rgba(211, 164, 104, 0.12);
    --bg-mesh-2: rgba(143, 187, 174, 0.11);

    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.72);
    --surface-hover: #faf9f6;
    --surface-elevated: #ffffff;

    --line: rgba(31, 31, 27, 0.08);
    --line-subtle: rgba(31, 31, 27, 0.04);
    --line-strong: rgba(31, 31, 27, 0.16);

    /* Text & Ink */
    --ink: #141613;
    --text: #2c302a;
    --text-soft: #5a6056;
    --text-mute: #858b80;

    /* Accents */
    --accent: #191c18;
    --on-accent: #fbfbf9;
    --accent-gold: #c89552;
    --accent-gold-soft: rgba(200, 149, 82, 0.14);

    /* Category Palette */
    --c-food: #d3a468;
    --c-groceries: #8fbbae;
    --c-transport: #a6a8c9;
    --c-shopping: #9caf89;
    --c-health: #c08a82;
    --c-fun: #d492a1;

    /* Shadows */
    --shadow-sm: 0 2px 6px rgba(20, 22, 19, 0.04), 0 1px 2px rgba(20, 22, 19, 0.03);
    --shadow-md: 0 8px 24px -4px rgba(20, 22, 19, 0.07), 0 2px 6px rgba(20, 22, 19, 0.03);
    --shadow-lg: 0 20px 48px -8px rgba(20, 22, 19, 0.10), 0 6px 16px rgba(20, 22, 19, 0.05);
    --shadow-device: 0 32px 72px -12px rgba(20, 22, 19, 0.22), 0 12px 28px -6px rgba(20, 22, 19, 0.12);

    /* Radii */
    --r-xs: 8px;
    --r-sm: 14px;
    --r-md: 22px;
    --r-lg: 32px;
    --r-xl: 44px;

    --maxw: 1180px;
    --gutter: clamp(20px, 5vw, 36px);
    --section-y: clamp(84px, 11vw, 140px);

    --font: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #111310;
      --bg-alt: #171a15;
      --bg-mesh-1: rgba(211, 164, 104, 0.07);
      --bg-mesh-2: rgba(143, 187, 174, 0.06);

      --surface: #1a1e18;
      --surface-glass: rgba(26, 30, 24, 0.75);
      --surface-hover: #22261f;
      --surface-elevated: #21261e;

      --line: rgba(255, 255, 255, 0.09);
      --line-subtle: rgba(255, 255, 255, 0.04);
      --line-strong: rgba(255, 255, 255, 0.16);

      --ink: #f5f4ef;
      --text: #e1e4dd;
      --text-soft: #a6aba0;
      --text-mute: #787e72;

      --accent: #f5f4ef;
      --on-accent: #111310;
      --accent-gold: #d8a562;
      --accent-gold-soft: rgba(216, 165, 98, 0.16);

      --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
      --shadow-md: 0 10px 30px -4px rgba(0, 0, 0, 0.45);
      --shadow-lg: 0 24px 60px -8px rgba(0, 0, 0, 0.65);
      --shadow-device: 0 36px 80px -10px rgba(0, 0, 0, 0.85);
    }
  }

  body {
    font-family: var(--font);
    background-color: var(--bg);
    background-image:
      radial-gradient(at 15% 12%, var(--bg-mesh-1) 0px, transparent 55%),
      radial-gradient(at 85% 18%, var(--bg-mesh-2) 0px, transparent 50%),
      radial-gradient(circle, var(--line-subtle) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 32px 32px;
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    letter-spacing: -0.012em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

  h1, h2, h3, h4 {
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -0.035em;
    font-weight: 800;
    text-wrap: balance;
  }

  h1 {
    font-size: clamp(2.75rem, 6.5vw, 4.4rem);
    letter-spacing: -0.045em;
    line-height: 1.04;
  }

  h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: -0.038em;
  }

  h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    letter-spacing: -0.025em;
  }

  p {
    text-wrap: pretty;
  }

  ::selection {
    background: color-mix(in srgb, var(--accent-gold) 40%, transparent);
    color: var(--ink);
  }
}

/* ---------- layout --------------------------------------------------------- */
@layer layout {
  .wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  .section {
    padding-block: var(--section-y);
    position: relative;
  }

  .section-head {
    max-width: 58ch;
    margin-bottom: clamp(40px, 6vw, 68px);
  }

  .section-head.center {
    max-width: 46ch;
    margin-inline: auto;
    text-align: center;
  }

  .kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 16px;
    padding: 4px 12px;
    background: var(--accent-gold-soft);
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent-gold) 30%, transparent);
  }

  .kicker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
  }

  .lede {
    margin-top: 18px;
    font-size: 1.14rem;
    color: var(--text-soft);
    line-height: 1.65;
  }

  .center .lede {
    margin-inline: auto;
  }
}

/* ---------- components ----------------------------------------------------- */
@layer components {
  /* Brand */
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.025em;
    color: var(--ink);
  }

  .brand-glyph {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f3efea;
    border: 1px solid rgba(31, 31, 31, 0.1);
    display: grid;
    place-items: center;
    flex: none;
    box-shadow: var(--shadow-sm);
  }

  .brand-glyph svg {
    width: 18px;
    height: 18px;
    fill: #1f1f1f;
  }

  /* Header */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line-subtle);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  }

  .site-header[data-scrolled] {
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
  }

  .site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.5vw, 32px);
    font-size: 0.94rem;
    font-weight: 600;
  }

  .site-nav a:not(.btn) {
    color: var(--text-mute);
    transition: color 0.18s ease;
    padding: 6px 4px;
  }

  .site-nav a:not(.btn):hover {
    color: var(--ink);
  }

  @media (max-width: 720px) {
    .site-nav a:not(.btn) {
      display: none;
    }
  }

  /* Buttons */
  .btn {
    --_bg: var(--accent);
    --_fg: var(--on-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--_bg);
    color: var(--_fg);
    font-weight: 700;
    font-size: 0.94rem;
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.15s;
    white-space: nowrap;
  }

  .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .btn:active {
    transform: translateY(0);
  }

  .btn.ghost {
    --_bg: var(--surface);
    --_fg: var(--ink);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-sm);
  }

  .btn.ghost:hover {
    border-color: var(--ink);
    background: var(--surface-hover);
  }

  .btn.lg {
    padding: 16px 30px;
    font-size: 1.05rem;
    border-radius: 999px;
  }

  /* App Store badge */
  .appstore-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 14px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.2s ease;
  }

  .appstore-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  .appstore-badge svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex: none;
  }

  .appstore-badge .badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
  }

  .appstore-badge .badge-sub {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 0.72;
    text-transform: uppercase;
  }

  .appstore-badge .badge-main {
    font-size: 1rem;
    letter-spacing: -0.01em;
  }

  /* Glass Card Base */
  .glass-card {
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  }

  .glass-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
  }

  /* iPhone Pro Device Frame */
  .device-mockup {
    position: relative;
    width: min(84vw, 320px);
    aspect-ratio: 1206 / 2622;
    border: 12px solid #1c1f1a;
    border-radius: 54px;
    background: #000000;
    box-shadow: var(--shadow-device);
    overflow: hidden;
    isolation: isolate;
  }

  .device-mockup.md {
    width: min(60vw, 240px);
  }

  .device-mockup::before {
    /* Glass Reflection Glare Overlay */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.03) 40%,
      transparent 60%
    );
    pointer-events: none;
    z-index: 5;
  }

  .device-mockup .dynamic-island {
    position: absolute;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 28px;
    background: #000000;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.15);
  }

  .device-mockup .dynamic-island::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #0d121c;
    box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.25);
  }

  .device-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 42px;
  }

  /* Floating Telemetry Chips */
  .floating-pill {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-md);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    z-index: 15;
    animation: floatSlow 6s ease-in-out infinite alternate;
  }

  .floating-pill.pill-primary {
    top: 14%;
    left: -12%;
    animation-delay: 0s;
  }

  .floating-pill.pill-secondary {
    bottom: 22%;
    right: -8%;
    animation-delay: -2s;
  }

  .floating-pill.pill-accent {
    bottom: 8%;
    left: -10%;
    animation-delay: -4s;
  }

  .floating-pill svg {
    width: 15px;
    height: 15px;
    color: var(--accent-gold);
  }

  @keyframes floatSlow {
    0% { transform: translateY(0px) rotate(-1deg); }
    100% { transform: translateY(-10px) rotate(1.5deg); }
  }

  @media (max-width: 960px) {
    .floating-pill.pill-primary { left: -4%; }
    .floating-pill.pill-secondary { right: -4%; }
    .floating-pill.pill-accent { left: -4%; }
  }

  @media (max-width: 480px) {
    .floating-pill {
      display: none;
    }
  }
}

/* ---------- sections ------------------------------------------------------- */
@layer sections {
  /* ===== HERO ===== */
  .hero {
    padding-block: clamp(52px, 8vw, 100px) clamp(64px, 9vw, 110px);
    overflow: clip;
  }

  .hero .wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(40px, 6vw, 84px);
    align-items: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    max-width: 16ch;
  }

  .hero .lede {
    max-width: 44ch;
    font-size: 1.18rem;
    margin-top: 20px;
  }

  .hero-actions {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .hero-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 28px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-mute);
  }

  .hero-trust li {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .hero-trust li svg {
    width: 15px;
    height: 15px;
    color: #10b981;
  }

  .hero-art {
    position: relative;
    display: grid;
    place-items: center;
    isolation: isolate;
  }

  .hero-art .glow-halo {
    position: absolute;
    inset: -15% -10% -10% -10%;
    background: radial-gradient(
      circle at 50% 45%,
      color-mix(in srgb, var(--accent-gold) 28%, transparent),
      color-mix(in srgb, var(--c-groceries) 22%, transparent) 45%,
      transparent 75%
    );
    filter: blur(48px);
    z-index: -1;
    pointer-events: none;
  }

  @media (max-width: 960px) {
    .hero .wrap {
      grid-template-columns: 1fr;
      text-align: center;
      justify-items: center;
    }

    .hero-copy {
      align-items: center;
    }

    .hero h1 {
      max-width: 22ch;
    }

    .hero-actions {
      align-items: center;
    }

    .hero-buttons {
      justify-content: center;
    }

    .hero-trust {
      justify-content: center;
    }

    .hero-art {
      margin-top: 24px;
    }
  }

  /* ===== METRICS PROOF STRIP ===== */
  .metrics-strip {
    border-block: 1px solid var(--line);
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
  }

  .metrics-strip .wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
  }

  .metric-card {
    padding: clamp(28px, 4vw, 40px) clamp(20px, 3vw, 32px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-right: 1px solid var(--line);
    transition: background 0.2s ease;
  }

  .metric-card:last-child {
    border-right: none;
  }

  .metric-card:hover {
    background: color-mix(in srgb, var(--surface) 60%, transparent);
  }

  .metric-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent-gold-soft);
    color: var(--accent-gold);
    display: grid;
    place-items: center;
    margin-bottom: 8px;
  }

  .metric-icon svg {
    width: 20px;
    height: 20px;
  }

  .metric-val {
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--ink);
  }

  .metric-sub {
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.45;
  }

  @media (max-width: 860px) {
    .metrics-strip .wrap {
      grid-template-columns: 1fr;
    }
    .metric-card {
      border-right: none !important;
      border-bottom: 1px solid var(--line);
    }
    .metric-card:last-child {
      border-bottom: none;
    }
  }

  /* ===== INTERACTIVE 5-SCREEN THEATER ===== */
  .tour-theater {
    background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg-alt) 70%, transparent) 50%, transparent 100%);
  }

  .theater-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: clamp(36px, 5vw, 56px);
  }

  .theater-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text-soft);
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
  }

  .theater-tab-btn:hover {
    color: var(--ink);
    border-color: var(--line-strong);
    transform: translateY(-1px);
  }

  .theater-tab-btn.active {
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
  }

  .theater-tab-btn svg {
    width: 16px;
    height: 16px;
  }

  .theater-stage {
    display: grid;
    grid-template-columns: minmax(220px, 260px) 1fr;
    gap: clamp(36px, 6vw, 76px);
    align-items: center;
    background: var(--surface-glass);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: clamp(32px, 5vw, 64px);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
  }

  .theater-stage .stage-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-gold-soft) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    pointer-events: none;
    z-index: 0;
  }

  .theater-device-wrap {
    display: grid;
    place-items: center;
    position: relative;
    z-index: 2;
  }

  .theater-screen-img {
    display: none;
    animation: fadeInSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .theater-screen-img.active {
    display: block;
  }

  @keyframes fadeInSlide {
    0% { opacity: 0; transform: translateY(12px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }

  .theater-info-deck {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .theater-panel {
    display: none;
    animation: fadeInText 0.35s ease forwards;
  }

  .theater-panel.active {
    display: block;
  }

  @keyframes fadeInText {
    0% { opacity: 0; transform: translateX(10px); }
    100% { opacity: 1; transform: translateX(0); }
  }

  .theater-panel h3 {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    color: var(--ink);
    margin-bottom: 14px;
    line-height: 1.18;
  }

  .theater-panel p {
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 24px;
  }

  @media (max-width: 900px) {
    .theater-stage {
      grid-template-columns: 1fr;
      text-align: center;
      padding: clamp(24px, 4vw, 40px);
    }
    .theater-panel p {
      margin-inline: auto;
    }
  }

  /* ===== MODERN BENTO GRID ===== */
  .bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(18px, 2.5vw, 24px);
  }

  .bento-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(28px, 4vw, 40px);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  }

  .bento-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
  }

  .col-8 { grid-column: span 8; }
  .col-4 { grid-column: span 4; }
  .col-6 { grid-column: span 6; }
  .col-12 { grid-column: span 12; }

  .bento-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }

  .bento-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface-hover);
    border: 1px solid var(--line);
    color: var(--ink);
    display: grid;
    place-items: center;
  }

  .bento-icon-badge svg {
    width: 22px;
    height: 22px;
  }

  .bento-card h3 {
    font-size: 1.35rem;
    letter-spacing: -0.025em;
  }

  .bento-card p {
    color: var(--text-soft);
    font-size: 0.96rem;
    line-height: 1.55;
  }

  /* Bento Feature: Privacy Shield Graphic */
  .vault-visual {
    background: color-mix(in srgb, var(--bg-alt) 80%, transparent);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
  }

  .vault-node {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
  }

  .vault-node .node-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
  }

  .vault-node.safe .node-icon svg { color: #10b981; }
  .vault-node.blocked .node-icon svg { color: #ef4444; }

  /* Bento Feature: Language Marquee */
  .languages-pill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
  }

  .lang-tag {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg-alt);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-soft);
    border: 1px solid var(--line-subtle);
  }

  /* Bento Feature: Widget Preview */
  .bento-card-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }

  .widget-mockup {
    flex: none;
    width: 168px;
    padding: 18px;
    border-radius: 28px;
    background: var(--ink);
    color: var(--on-accent);
    box-shadow: var(--shadow-md);
  }

  .widget-mockup-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .widget-mockup-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--accent-gold);
    display: grid;
    place-items: center;
  }

  .widget-mockup-icon svg {
    width: 13px;
    height: 13px;
    fill: var(--ink);
  }

  .widget-mockup-month {
    font-size: 0.76rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
  }

  .widget-mockup-amount {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 14px;
  }

  .widget-mockup-sub {
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
  }

  @media (max-width: 700px) {
    .bento-card-split {
      justify-content: center;
      text-align: center;
    }
  }

  @media (max-width: 960px) {
    .col-8, .col-4, .col-6 {
      grid-column: span 12;
    }
  }

  /* ===== LUXURY PREMIUM SECTION ===== */
  .premium-luxury-card {
    background: linear-gradient(145deg, #181b16, #0e100d);
    color: #fbfbf9;
    border-radius: var(--r-xl);
    padding: clamp(48px, 7vw, 84px) clamp(28px, 6vw, 68px);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(36px, 6vw, 64px);
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 32px 80px -16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
  }

  .premium-luxury-card .ambient-gold {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 165, 98, 0.16) 0%, transparent 70%);
    top: -120px;
    right: -120px;
    pointer-events: none;
  }

  .premium-luxury-card h2 {
    color: #ffffff;
    margin-top: 8px;
    margin-bottom: 16px;
  }

  .premium-luxury-card .lede {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.06rem;
  }

  .premium-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #d8a562;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(216, 165, 98, 0.14);
    border: 1px solid rgba(216, 165, 98, 0.3);
  }

  .premium-perks-list {
    list-style: none;
    display: grid;
    gap: 12px;
  }

  .premium-perks-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.98rem;
    font-weight: 600;
    color: #ffffff;
    transition: background 0.2s;
  }

  .premium-perks-list li:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .premium-perks-list svg {
    width: 20px;
    height: 20px;
    color: #d8a562;
    flex: none;
  }

  .price-callout {
    margin-top: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d8a562;
  }

  @media (max-width: 860px) {
    .premium-luxury-card {
      grid-template-columns: 1fr;
      text-align: center;
    }
    .premium-luxury-card .lede {
      margin-inline: auto;
    }
    .premium-perks-list li {
      text-align: left;
    }
  }

  /* ===== PRIVACY STATEMENT ===== */
  .privacy-statement {
    padding-block: clamp(32px, 5vw, 56px);
  }

  .privacy-statement-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-gold-soft);
    color: var(--accent-gold);
    display: grid;
    place-items: center;
    margin-inline: auto;
    margin-bottom: 20px;
  }

  .privacy-statement-icon svg {
    width: 22px;
    height: 22px;
  }

  /* ===== CLOSER CTA ===== */
  .closer-box {
    background: var(--surface-glass);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: clamp(52px, 8vw, 88px) clamp(24px, 5vw, 60px);
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
  }

  .closer-box h2 {
    max-width: 22ch;
    margin-inline: auto;
  }

  .closer-box .lede {
    max-width: 48ch;
    margin-inline: auto;
    margin-top: 14px;
  }

  .closer-box .btn {
    margin-top: 32px;
  }

  /* ===== FOOTER ===== */
  .site-footer {
    border-top: 1px solid var(--line);
    padding-block: 48px 64px;
    margin-top: var(--section-y);
    background: var(--surface-glass);
  }

  .site-footer .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-mute);
  }

  .site-footer nav {
    display: flex;
    gap: 24px;
  }

  .site-footer nav a {
    color: var(--text-soft);
    font-weight: 600;
    transition: color 0.15s;
  }

  .site-footer nav a:hover {
    color: var(--ink);
  }

  /* ===== Blog index ===== */
  .blog-hero {
    padding-top: clamp(48px, 8vw, 84px);
    padding-bottom: clamp(56px, 8vw, 96px);
  }

  .blog-intro {
    max-width: 52ch;
    margin-bottom: clamp(40px, 6vw, 64px);
  }

  .blog-intro h1 {
    font-size: clamp(2.1rem, 4.4vw, 3rem);
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--ink);
  }

  .blog-intro .lede {
    margin-top: 14px;
  }

  .blog-card-tag {
    display: inline-flex;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    background: var(--accent-gold-soft);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
  }

  .blog-card-read {
    display: inline-block;
    margin-top: 18px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
  }

  /* Featured post */
  .blog-featured {
    display: block;
    max-width: 62ch;
    background: var(--surface);
    border-left: 3px solid var(--accent-gold);
    border-radius: 0 var(--r-xl) var(--r-xl) 0;
    padding: clamp(32px, 5vw, 48px);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
  }

  .blog-featured:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
  }

  .blog-featured h2 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 12px;
  }

  .blog-featured p {
    color: var(--text-soft);
    font-size: 1.04rem;
    line-height: 1.65;
  }

  /* More posts */
  .blog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .blog-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 26px);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  }

  .blog-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
  }

  .blog-card-thumb {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: var(--r-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-alt);
  }

  .blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }

  .blog-card-copy h2 {
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    line-height: 1.28;
    color: var(--ink);
    margin-bottom: 6px;
  }

  .blog-card-copy p {
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .blog-card-copy .blog-card-read {
    margin-top: 10px;
  }

  /* Quiet closing CTA */
  .blog-footer-cta {
    text-align: center;
    margin-top: clamp(56px, 9vw, 96px);
    padding-top: clamp(40px, 6vw, 56px);
    border-top: 1px solid var(--line);
  }

  .blog-footer-cta p {
    color: var(--ink);
    font-weight: 700;
  }

  .blog-footer-cta .blog-footer-cta-sub {
    color: var(--text-mute);
    font-weight: 500;
    font-size: 0.92rem;
    margin-top: 4px;
  }

  .blog-footer-cta a {
    display: inline-block;
    margin-top: 16px;
    font-weight: 700;
    color: var(--ink);
  }

  @media (max-width: 640px) {
    .blog-card {
      flex-direction: column;
      text-align: center;
    }

    .blog-card-thumb {
      width: 88px;
      height: 88px;
    }
  }

  /* ===== Blog post ===== */
  .post-wrap {
    max-width: 700px;
    margin-inline: auto;
    padding: clamp(40px, 7vw, 72px) var(--gutter) 0;
  }

  .post-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-mute);
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.15s;
  }

  .post-breadcrumb:hover {
    color: var(--ink);
  }

  .post-header {
    margin-top: 28px;
  }

  .post-title {
    font-size: clamp(2rem, 4.2vw, 2.75rem);
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: var(--ink);
    margin-top: 16px;
  }

  .post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-mute);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 18px;
  }

  .post-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
  }

  .post-body {
    max-width: 700px;
    margin-inline: auto;
    padding: clamp(32px, 5vw, 48px) var(--gutter) 0;
  }

  .post-body h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.55rem);
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 48px 0 16px;
  }

  .post-body p {
    color: var(--text-soft);
    font-size: 1.06rem;
    line-height: 1.75;
    margin-top: 16px;
  }

  .post-body p:first-of-type {
    margin-top: 0;
  }

  .post-body strong {
    color: var(--ink);
  }

  .post-body a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .pull-quote {
    border-left: 3px solid var(--accent-gold);
    background: var(--accent-gold-soft);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    padding: 20px 24px;
    margin: 32px 0;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.45;
    color: var(--ink);
  }

  .post-closing {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-top: 40px;
  }

  .post-footer {
    max-width: 700px;
    margin-inline: auto;
    padding: clamp(48px, 8vw, 72px) var(--gutter) clamp(80px, 12vw, 120px);
  }

  .post-cta {
    background: var(--surface-glass);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: clamp(32px, 5vw, 48px);
    text-align: center;
    box-shadow: var(--shadow-md);
  }

  .post-cta h3 {
    font-size: clamp(1.3rem, 2.6vw, 1.6rem);
    letter-spacing: -0.03em;
    color: var(--ink);
  }

  .post-cta p {
    color: var(--text-soft);
    margin-top: 10px;
    max-width: 46ch;
    margin-inline: auto;
  }

  .post-cta .btn {
    margin-top: 24px;
  }

  .post-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }

  .post-next-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 6px;
  }

  .post-next a {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.015em;
  }

  .post-next a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

/* ---------- legal pages ---------------------------------------------------- */
@layer legal {
  .legal {
    max-width: 720px;
    margin-inline: auto;
    padding: clamp(48px, 8vw, 84px) var(--gutter) clamp(80px, 12vw, 120px);
  }

  .legal .back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-mute);
    transition: color 0.15s;
  }

  .legal .back:hover {
    color: var(--ink);
  }

  .legal h1 {
    font-size: clamp(2rem, 4.5vw, 2.6rem);
    letter-spacing: -0.035em;
  }

  .legal .updated {
    color: var(--text-mute);
    font-size: 0.88rem;
    margin-top: 8px;
  }

  .legal h2 {
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    margin: 44px 0 12px;
  }

  .legal p,
  .legal li {
    color: var(--text-soft);
    font-size: 1.02rem;
    margin-top: 12px;
    line-height: 1.68;
  }

  .legal ul {
    padding-left: 24px;
  }

  .legal a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

/* ---------- utils --------------------------------------------------------- */
@layer utils {
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

}
