:root {
    --ink: #05070F; --deep: #1C1230; --gold: #EDB94E; --gold-soft: #F7DA8E;
    --gold-deep: #B8863B; --text: #F4F3F6; --soft: #C7BAD9; --muted: #8E8A99;
    --teal: #5FD9F0; --card: rgba(244,243,246,0.06); --line: rgba(255,255,255,0.08);
    --btn-ink: #241A05;
  }
  body, .card, .swatch, .privacy-band, .btn, .phone, .screen, nav a, footer
    { transition: background 0.45s ease, background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease; }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
         background: linear-gradient(175deg, var(--deep) 0%, var(--ink) 100%);
         color: var(--text); line-height: 1.6; transition: background 0.45s ease, color 0.45s ease; }
  .serif { font-family: Georgia, "Iowan Old Style", serif; }
  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
  header { padding: 22px 0; display: flex; justify-content: space-between; align-items: center; }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: 0.02em; }
  .brand img { width: 30px; height: 30px; border-radius: 22.5%; display: block; }
  nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
  nav a { color: var(--soft); text-decoration: none; font-size: 14px; }
  nav a:hover { color: var(--gold); }
  .hero { text-align: center; padding: 72px 0 40px; }
  .hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
  .hero h1 em { font-style: normal; color: var(--gold); }
  .hero p.lead { color: var(--soft); font-size: 19px; max-width: 620px; margin: 20px auto 0; }
  .cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
  .btn { display: inline-block; padding: 14px 28px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; }
  .btn-gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--btn-ink); }
  .btn-ghost { border: 1px solid var(--line); color: var(--text); }
  .free-line { margin-top: 16px; color: var(--muted); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
  .phone { margin: 56px auto 0; width: min(320px, 84vw); border-radius: 44px; padding: 12px;
           background: #0A0A12; border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(0,0,0,0.55); }
  .screen { border-radius: 34px; overflow: hidden; background: linear-gradient(180deg, #020A14, #10444A); padding: 26px 22px 30px; text-align: left; }
  .screen .kicker { color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
  .screen .big { font-size: 40px; font-weight: 800; color: var(--teal); font-variant-numeric: tabular-nums; margin: 2px 0 4px; }
  .screen .row { display: flex; justify-content: space-between; color: #D2CFDA; font-size: 14px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .screen .row b { color: var(--gold-soft); font-weight: 600; }
  .screen .tag { margin-top: 12px; color: #8E8A99; font-size: 11px; }
  section { padding: 76px 0; border-top: 1px solid var(--line); }
  .kick { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
  h2 { font-size: clamp(26px, 4vw, 38px); margin-top: 10px; letter-spacing: -0.01em; }
  .sub { color: var(--soft); max-width: 640px; margin-top: 12px; }
  .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; margin-top: 38px; }
  .card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
  .card .ico { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 12%, transparent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
  .ico svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .card h3 { margin: 12px 0 6px; font-size: 18px; }
  .card p { color: var(--soft); font-size: 14.5px; }
  .themes-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin-top: 34px; }
  .swatch { border-radius: 16px; height: 130px; border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 10px; font-size: 12px; font-weight: 600; }
  .quote { text-align: center; max-width: 700px; margin: 0 auto; }
  .quote p { font-size: clamp(20px, 3vw, 27px); line-height: 1.5; }
  .quote .who { color: var(--muted); margin-top: 14px; font-size: 14px; }
  .privacy-band { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 40px; display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-top: 38px; }
  .privacy-band .lock svg { width: 40px; height: 40px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  footer { padding: 44px 0 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
  footer .cols { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
  footer a { color: var(--soft); text-decoration: none; }
  footer a:hover { color: var(--gold); }
  .faq { max-width: 760px; }
  .faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-top: 10px; }
  .faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; color: var(--gold); font-size: 22px; font-weight: 300; line-height: 1; transition: transform .25s; }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq details p { margin-top: 10px; color: var(--soft); font-size: 15px; line-height: 1.65; }

  @media (max-width: 640px) {
    .wrap { padding: 0 18px; }
    header { flex-wrap: wrap; gap: 10px; }
    nav { justify-content: flex-start; gap: 6px 16px; }
    h1 { font-size: 40px; line-height: 1.08; }
    h2 { font-size: 26px; }
    .lead { font-size: 16px; }
    .card { padding: 20px; }
    .privacy-band { padding: 26px; }
    .themes-strip { overflow-x: auto; }
    footer .cols { flex-direction: column; gap: 10px; }
    br.desk { display: none; }
  }

  /* ---- Motion system -------------------------------------------------
     Every section gets its own entrance so the page has a rhythm instead of
     one blanket fade. Nothing moves until it is scrolled into view, and the
     whole system collapses to "visible, no motion" under Reduce Motion. */
  [data-anim] { opacity: 0; will-change: transform, opacity; }
  [data-anim].in { opacity: 1; }

  [data-anim="up"]      { transform: translateY(26px); }
  [data-anim="up"].in   { transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.22,.9,.3,1); }

  [data-anim="left"]    { transform: translateX(-30px); }
  [data-anim="left"].in { transform: none; transition: opacity .75s ease, transform .75s cubic-bezier(.22,.9,.3,1); }

  [data-anim="zoom"]    { transform: scale(.93); }
  [data-anim="zoom"].in { transform: none; transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); }

  [data-anim="blur"]    { filter: blur(12px); transform: translateY(14px); }
  [data-anim="blur"].in { filter: none; transform: none; transition: opacity .8s ease, filter .8s ease, transform .8s ease; }

  /* Feature cards deal themselves in, one after another. */
  .grid > .card { opacity: 0; transform: translateY(30px) scale(.97); }
  .grid.in > .card { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.22,.9,.3,1); }
  .grid.in > .card:nth-child(1) { transition-delay: .00s }
  .grid.in > .card:nth-child(2) { transition-delay: .07s }
  .grid.in > .card:nth-child(3) { transition-delay: .14s }
  .grid.in > .card:nth-child(4) { transition-delay: .21s }
  .grid.in > .card:nth-child(5) { transition-delay: .28s }
  .grid.in > .card:nth-child(6) { transition-delay: .35s }
  .card { transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
  .card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gold) 45%, transparent);
                box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--gold) 70%, transparent); }
  .card:hover .ico { transform: scale(1.08) rotate(-4deg); }
  .ico { transition: transform .35s cubic-bezier(.2,.8,.2,1); }

  /* Theme swatches fan in from the left, then lift under the cursor. */
  .themes-strip > .swatch { opacity: 0; transform: translateX(-18px); }
  .themes-strip.in > .swatch { opacity: 1; transform: none; transition: opacity .5s ease, transform .55s cubic-bezier(.22,.9,.3,1); }
  .themes-strip.in > .swatch:nth-child(n) { transition-delay: calc(var(--i, 0) * .05s); }
  .swatch { transition: transform .3s ease, box-shadow .3s ease; }
  .swatch:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 16px 30px -18px rgba(0,0,0,.7); }

  /* FAQ rows stagger, and the marker spins on open. */
  .faq > details { opacity: 0; transform: translateY(16px); }
  .faq.in > details { opacity: 1; transform: none; transition: opacity .5s ease, transform .55s ease; }
  .faq.in > details:nth-child(1) { transition-delay: .00s }
  .faq.in > details:nth-child(2) { transition-delay: .06s }
  .faq.in > details:nth-child(3) { transition-delay: .12s }
  .faq.in > details:nth-child(4) { transition-delay: .18s }
  .faq.in > details:nth-child(5) { transition-delay: .24s }
  .faq.in > details:nth-child(6) { transition-delay: .30s }
  .faq details { transition: border-color .3s ease, background .3s ease; }
  .faq details[open] { border-color: color-mix(in srgb, var(--gold) 38%, transparent); }
  .faq details[open] p { animation: faqReveal .45s ease both; }
  @keyframes faqReveal { from { opacity: 0; transform: translateY(-6px) } to { opacity: 1; transform: none } }

  /* The countdown in the phone mock ticks for real. */
  .screen .big { font-variant-numeric: tabular-nums; }
  .screen .row { transition: background .3s ease; }

  /* Buttons pick up a sheen on hover. */
  .btn { position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
  .btn:hover { transform: translateY(-2px); }
  .btn-gold:hover { box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--gold) 85%, transparent); }
  .btn::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%);
                background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); }
  .btn:hover::after { animation: sheen .7s ease; }
  @keyframes sheen { to { transform: translateX(120%) } }

  /* Nav underline grows from the left. */
  nav a { position: relative; }
  nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1.5px; width: 100%;
                 background: var(--gold); transform: scaleX(0); transform-origin: left;
                 transition: transform .3s cubic-bezier(.22,.9,.3,1); }
  nav a:hover::after { transform: scaleX(1); }

  /* The brand mark breathes, very slowly. */
  .brand img { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
  .brand:hover img { transform: rotate(-8deg) scale(1.08); }

  /* Theme dots pop when picked. */
  #themePicker button { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease; }
  #themePicker button:hover { transform: scale(1.18); }
  #themePicker button:active { transform: scale(.94); }


  /* ---- Theme directory ------------------------------------------------ */
  .tdir{ margin-top:26px }
  .tdir-tools{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:16px }
  .tdir-tools input{ flex:1; min-width:190px; background:var(--card); border:1px solid var(--line);
    color:var(--text); border-radius:10px; padding:10px 13px; font:inherit; font-size:14px }
  .tdir-tools input:focus-visible{ outline:2px solid var(--gold); outline-offset:1px }
  .tseg{ display:flex; border:1px solid var(--line); border-radius:10px; overflow:hidden }
  .tseg button{ background:transparent; color:var(--muted); border:0; padding:10px 15px;
    font:inherit; font-size:13px; cursor:pointer }
  .tseg button[aria-pressed="true"]{ background:var(--gold); color:var(--ink); font-weight:700 }
  .tjump{ display:flex; gap:6px; overflow-x:auto; padding-bottom:6px; margin-bottom:8px }
  .tjump a{ flex:0 0 auto; font-size:12px; color:var(--muted); text-decoration:none;
    border:1px solid var(--line); border-radius:99px; padding:5px 11px; white-space:nowrap }
  .tjump a:hover{ color:var(--gold); border-color:var(--gold) }
  .tfam{ margin-top:30px; scroll-margin-top:20px }
  .tfam-h{ display:grid; grid-template-columns:auto auto 1fr; gap:10px; align-items:baseline;
    border-bottom:1px solid var(--line); padding-bottom:8px; margin-bottom:14px }
  .tfam-h h3{ margin:0; font-size:19px }
  .tfam-h span{ color:var(--gold); font-size:13px; font-weight:700 }
  .tfam-h p{ margin:0; color:var(--muted); font-size:13px; text-align:right }
  .tgrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(min(215px,100%),1fr)); gap:13px }
  .tcard{ background:var(--card); border:1px solid var(--line); border-radius:12px; overflow:hidden;
    transition:border-color .25s ease, transform .25s ease }
  .tcard:hover{ transform:translateY(-3px); border-color:color-mix(in srgb,var(--gold) 45%,transparent) }
  .tsw{ background:linear-gradient(160deg,var(--bt),var(--bb)); color:var(--tx); padding:12px 13px 13px }
  .tsw-r{ display:flex; justify-content:space-between; align-items:center; font-size:13.5px; font-weight:600 }
  .tdots i{ display:inline-block; width:7px; height:7px; border-radius:50%; margin-left:4px }
  .tsw-t{ font-size:23px; font-weight:700; color:var(--ac); font-variant-numeric:tabular-nums }
  .tsw-b{ height:3px; border-radius:2px; background:color-mix(in srgb,var(--tx) 18%,transparent); margin:7px 0 6px }
  .tsw-b span{ display:block; width:38%; height:100%; border-radius:2px; background:var(--ac) }
  .tsw-f{ font-size:11px; color:var(--a2) }
  .tmeta{ padding:11px 13px 12px }
  .tmeta h4{ margin:0 0 3px; font-size:15px }
  .tmeta h4 em{ font-style:normal; font-size:9.5px; letter-spacing:.06em; text-transform:uppercase;
    color:var(--ink); background:var(--gold); border-radius:4px; padding:2px 5px; vertical-align:2px }
  .tmeta p{ margin:0; font-size:12.5px; color:var(--muted); line-height:1.5 }
  .tempty{ display:none; padding:40px 0; text-align:center; color:var(--muted) }

  @media (prefers-reduced-motion: reduce) {
    [data-anim], .grid > .card, .themes-strip > .swatch, .faq > details {
      opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
    }
    .phone { animation: none !important; }
    .btn:hover::after { animation: none !important; }
  }

  @media (prefers-reduced-motion: no-preference) {
    .rise { opacity: 0; transform: translateY(18px); animation: rise 0.7s ease forwards; }
    .d1 { animation-delay: .08s } .d2 { animation-delay: .16s } .d3 { animation-delay: .24s }
    @keyframes rise { to { opacity: 1; transform: none; } }
    .phone { animation: float 7s ease-in-out infinite; }
    @keyframes float { 50% { transform: translateY(-10px); } }
  }

  nav a.on { color: var(--gold); }
  nav a.on::after { transform: scaleX(1); }
