  :root {
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);

    --bg: #14131f;
    --bg-soft: #1a1829;
    --panel: #201e33;
    --panel-edge: #2b2844;
    --ink: #f2efe8;
    --ink-dim: #a7a3bd;
    --ink-faint: #706c8c;
    --amber: #e8a33d;
    --amber-dim: #6b5628;
    --teal: #49b0a0;
    --line: rgba(242, 239, 232, 0.10);
    --line-strong: rgba(242, 239, 232, 0.22);
    --shadow-deep: rgba(4, 3, 10, 0.55);
  }

  html[data-theme="light"] {
    --bg: #eef0f3;
    --bg-soft: #e4e6ec;
    --panel: #ffffff;
    --panel-edge: #d9dce3;
    --ink: #151426;
    --ink-dim: #57536f;
    --ink-faint: #8a86a3;
    --amber: #c07f1f;
    --amber-dim: #f0d9ae;
    --teal: #2d8c7c;
    --line: rgba(21, 20, 38, 0.10);
    --line-strong: rgba(21, 20, 38, 0.20);
    --shadow-deep: rgba(21, 20, 38, 0.18);
  }

  @media (prefers-color-scheme: light) {
    html:not([data-theme="dark"]) {
      --bg: #eef0f3;
      --bg-soft: #e4e6ec;
      --panel: #ffffff;
      --panel-edge: #d9dce3;
      --ink: #151426;
      --ink-dim: #57536f;
      --ink-faint: #8a86a3;
      --amber: #c07f1f;
      --amber-dim: #f0d9ae;
      --teal: #2d8c7c;
      --line: rgba(21, 20, 38, 0.10);
      --line-strong: rgba(21, 20, 38, 0.20);
      --shadow-deep: rgba(21, 20, 38, 0.18);
    }
  }

  * { box-sizing: border-box; }

  html { scroll-behavior: smooth; scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px)); }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  h1, h2, h3, .display {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
  }

  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }

  .wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
  }

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

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      transition-duration: 0.001ms !important;
    }
  }

  /* ---------- NAV ---------- */

  .nav {
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: env(safe-area-inset-top, 0px);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }

  .nav-row {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
  }

  .brand-mark {
    width: 30px; height: 30px;
    border-radius: 7px;
    background: linear-gradient(145deg, var(--amber), var(--teal));
    position: relative;
    transform: perspective(200px) rotateX(20deg) rotateY(-18deg);
    box-shadow: 5px 6px 0 rgba(0,0,0,0.25);
  }

  .nav-links {
    display: flex;
    gap: 30px;
    font-size: 0.94rem;
    color: var(--ink-dim);
  }

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

  .nav-cta {
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--amber);
    color: #17140a;
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .nav-cta:hover { background: color-mix(in srgb, var(--amber) 85%, white); }

  .nav-actions { display: flex; align-items: center; gap: 12px; }

  .theme-toggle {
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
  }
  .theme-toggle:hover { border-color: var(--teal); color: var(--teal); }
  .theme-toggle svg { width: 18px; height: 18px; display: none; }
  .theme-toggle[data-mode="dark"] .icon-moon { display: block; }
  .theme-toggle[data-mode="light"] .icon-sun { display: block; }

  @media (max-width: 760px) {
    .nav-links { display: none; }
  }

  /* ---------- HERO ---------- */

  .hero {
    padding: 76px 0 60px;
    perspective: 1500px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
  }

  .eyebrow-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-faint);
    font-size: 0.86rem;
    margin-bottom: 18px;
  }

  .eyebrow-line span.dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent);
  }

  .hero h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.5rem);
    line-height: 1.06;
    max-width: 12ch;
  }

  .hero h1 em {
    font-style: normal;
    color: var(--amber);
  }

  .hero p.lede {
    margin-top: 22px;
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--ink-dim);
    max-width: 46ch;
  }

  .hero-actions {
    margin-top: 32px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.96rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
  }
  .btn:active { transform: translateY(1px); }

  .btn-primary {
    background: var(--amber);
    color: #17140a;
  }
  .btn-primary:hover { background: color-mix(in srgb, var(--amber) 85%, white); }

  .btn-ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
  }
  .btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

  .hero-stats {
    margin-top: 46px;
    display: flex;
    gap: 34px;
  }
  .hero-stats div strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
  }
  .hero-stats div span {
    font-size: 0.8rem;
    color: var(--ink-faint);
  }

  /* --- 3D scene --- */

  .scene {
    position: relative;
    height: 420px;
    transform-style: preserve-3d;
  }

  .scene-stage {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
    transform: rotateX(6deg) rotateY(-10deg);
  }

  .pane {
    position: absolute;
    width: 258px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    box-shadow: 0 30px 60px -20px var(--shadow-deep);
    overflow: hidden;
    opacity: 0;
    animation: rise 0.9s cubic-bezier(.2,.8,.2,1) forwards;
  }

  .pane-head {
    height: 22px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
  }
  .pane-head i {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ink-faint);
    opacity: .5;
  }

  .pane-body { padding: 14px; }
  .pane-bar { height: 8px; border-radius: 4px; margin-bottom: 8px; }

  .pane.p1 {
    left: 6%; top: 14%;
    transform: translateZ(40px) rotateY(6deg);
    animation-delay: .05s;
  }
  .pane.p2 {
    left: 30%; top: 42%;
    transform: translateZ(110px) rotateY(-4deg);
    animation-delay: .18s;
  }
  .pane.p3 {
    left: 8%; top: 66%;
    transform: translateZ(10px) rotateY(10deg) scale(0.85);
    animation-delay: .3s;
  }
  .pane.p4 {
    left: 44%; top: 6%;
    transform: translateZ(70px) rotateY(-9deg) scale(0.72);
    animation-delay: .42s;
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(26px) translateZ(var(--z,0)); }
    to   { opacity: 1; }
  }

  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .scene { height: 320px; margin-top: 10px; }
    .pane { width: 200px; }
  }

  /* ---------- SECTION SHELL ---------- */

  section { padding: 84px 0; }

  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 42px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
  }

  .section-head h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    max-width: 16ch;
  }

  .section-head p {
    color: var(--ink-dim);
    max-width: 38ch;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  @media (max-width: 700px) {
    .section-head { flex-direction: column; align-items: flex-start; }
  }

  /* ---------- FILTERS ---------- */

  .filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 34px;
  }

  .filter-btn {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--ink-dim);
    font-size: 0.87rem;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s ease;
  }
  .filter-btn:hover { color: var(--ink); border-color: var(--teal); }
  .filter-btn[aria-pressed="true"] {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
  }

  /* ---------- TEMPLATE GRID ---------- */

  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    perspective: 1200px;
  }

  @media (max-width: 940px) { .grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

  .card {
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    border-radius: 14px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform .12s ease-out, box-shadow .2s ease;
    box-shadow: 0 18px 40px -24px var(--shadow-deep);
  }

  .card:hover {
    box-shadow: 0 32px 60px -20px var(--shadow-deep);
  }

  .card-shot {
    height: 168px;
    position: relative;
    display: flex;
    flex-direction: column;
    transform: translateZ(24px);
  }

  .card-shot.has-image { background: var(--bg-soft); }
  .card-shot.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .shot-bar {
    height: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    background: rgba(0,0,0,0.18);
  }
  .shot-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.35); }

  .shot-body { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 7px; }
  .shot-line { height: 7px; border-radius: 3px; background: rgba(255,255,255,0.22); }
  .shot-blocks { display: flex; gap: 7px; margin-top: 4px; flex: 1; }
  .shot-blocks div { flex: 1; border-radius: 5px; background: rgba(255,255,255,0.14); }

  .card-info {
    padding: 18px 18px 20px;
    transform: translateZ(12px);
  }

  .card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
  }

  .card-info h3 { font-size: 1.05rem; }

  .card-tag {
    font-size: 0.72rem;
    color: var(--ink-faint);
    margin-top: 4px;
  }

  .card-price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--amber);
    white-space: nowrap;
  }

  .card-desc {
    margin-top: 10px;
    font-size: 0.87rem;
    line-height: 1.5;
    color: var(--ink-dim);
  }

  .card-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
  }

  .card-actions .btn { padding: 9px 14px; font-size: 0.84rem; flex: 1; justify-content: center; }

  /* ---------- FEATURES ---------- */

  .features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }
  @media (max-width: 800px) { .features { grid-template-columns: 1fr; } }

  .feature {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-soft);
  }

  .feature .icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--teal) 18%, transparent);
    color: var(--teal);
    margin-bottom: 16px;
  }

  .feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
  .feature p { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.55; margin: 0; }

  /* ---------- BUNDLE / CTA BAND ---------- */

  .band {
    border-radius: 20px;
    background: linear-gradient(135deg, var(--bg-soft), var(--panel));
    border: 1px solid var(--panel-edge);
    padding: 52px;
    display: grid;
    grid-template-columns: 1.2fr auto;
    align-items: center;
    gap: 30px;
  }

  @media (max-width: 760px) { .band { grid-template-columns: 1fr; padding: 34px 26px; } }

  .band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 20ch; }
  .band p { color: var(--ink-dim); margin-top: 12px; max-width: 42ch; line-height: 1.6; }

  /* ---------- FOOTER ---------- */

  footer {
    border-top: 1px solid var(--line);
    padding: 46px 0 calc(46px + env(safe-area-inset-bottom, 0px));
  }

  .foot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .foot-links {
    display: flex;
    gap: 22px;
    font-size: 0.88rem;
    color: var(--ink-dim);
  }
  .foot-links a:hover { color: var(--ink); }

  .foot-brand { color: var(--ink-faint); font-size: 0.85rem; }

