/* ==========================================================================
   MIDNIGHT — a website template by UXMND
   Demo: Wisp, a made-up AI notebook app.

   Charcoal ground, soft neon glows, wide futurist type. App screens on a
   3D carousel, a features row that slides sideways as you scroll, borders
   that light up under the pointer, a live launch countdown, and glowing
   sparks drifting through the hero.
   Palette: #FEFAFA #BAE9B5 #A2F14D #E76F87 #3C3C42
   ========================================================================== */
:root {
  --bg:    #3c3c42;
  --text:  #fefafa;
  --soft:  rgba(254, 250, 250, .72);
  --faint: rgba(254, 250, 250, .48);
  --line:  rgba(254, 250, 250, .12);
  --surface: rgba(254, 250, 250, .045);
  --lime:  #a2f14d;
  --mint:  #bae9b5;
  --melon: #e76f87;

  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 48px);
}

/* ---------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html.has-glide { scroll-behavior: auto; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 700px at 50% -8%, rgba(162, 241, 77, .12), transparent 62%),
    radial-gradient(800px 700px at 105% 30%, rgba(231, 111, 135, .1), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--lime); color: var(--bg); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 300; padding: 10px 16px; border-radius: 12px; background: var(--lime); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2.5px solid var(--lime); outline-offset: 3px; border-radius: 10px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }

/* a faint grid that fades out from the top, and a glow that follows the pointer */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(254, 250, 250, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(254, 250, 250, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.spot {
  position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none;
  width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(186, 233, 181, .13), transparent 62%);
  transform: translate3d(var(--sx, 50vw), var(--sy, 30vh), 0);
  opacity: 0; transition: opacity .6s ease;
}
.spot.on { opacity: 1; }
@media (pointer: coarse) { .spot { display: none; } }

/* ---------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1em 1.6em;
  border: 1px solid transparent; border-radius: 100px;
  font-weight: 700; font-size: .96rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: box-shadow .35s ease, background-color .3s ease, border-color .3s ease, color .3s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-lime { background: var(--lime); color: var(--bg); box-shadow: 0 0 0 0 rgba(162, 241, 77, 0); }
.btn-lime:hover { box-shadow: 0 0 34px 2px rgba(162, 241, 77, .45); }
.btn-line { border-color: rgba(254, 250, 250, .26); color: var(--text); background: rgba(254, 250, 250, .03); }
.btn-line:hover { border-color: var(--lime); color: var(--lime); }
.btn-sm { padding: .72em 1.2em; font-size: .88rem; }
.mag { will-change: transform; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, background-color .3s ease, border-color .3s ease, color .3s ease; }

/* ---------------------------------------- navigation */
.nav {
  position: fixed; z-index: 100; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(var(--wrap), calc(100% - 2 * var(--gut)));
  display: flex; align-items: center; gap: 14px;
  padding: 9px 9px 9px 20px;
  border: 1px solid var(--line); border-radius: 100px;
  background: rgba(60, 60, 66, .55);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6);
}
.logo {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .04em; text-decoration: none;
}
.logo-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #f4ffe6, var(--lime) 72%);
  box-shadow: 0 0 18px rgba(162, 241, 77, .65);
  animation: flicker 4s ease-in-out infinite;
}
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .82; } 50% { opacity: 1; } 52% { opacity: .88; } }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 14px; border-radius: 100px;
  font-size: .92rem; font-weight: 600; color: var(--soft); text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(254, 250, 250, .07); }
.nav-links .only-small, .nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    display: none; flex-direction: column; padding: 10px;
    border: 1px solid var(--line); border-radius: 26px;
    background: rgba(60, 60, 66, .96);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 14px 16px; font-family: var(--display); font-size: 1.05rem; color: var(--text); }
  .nav-links .only-small { display: block; }
  .nav-toggle {
    display: inline-grid; place-items: center; flex: none;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(254, 250, 250, .05); cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s ease; }
  .nav-toggle span { position: relative; transform: translateY(-3px); }
  .nav-toggle span::before { content: ""; position: absolute; top: 6px; }
  .nav.is-open .nav-toggle span { transform: rotate(45deg); }
  .nav.is-open .nav-toggle span::before { transform: translateY(-6px) rotate(-90deg); }
}
@media (max-width: 440px) { .nav-cta { display: none; } }

/* ---------------------------------------- hero */
.hero { position: relative; padding: clamp(118px, 15vh, 150px) var(--gut) 20px; text-align: center; overflow: hidden; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 26px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 100px; background: var(--surface);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--soft);
}
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: live 1.8s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }
.hero-h {
  font-size: clamp(2.1rem, 6.6vw, 6.6rem);
  font-weight: 800; line-height: .98; letter-spacing: -.035em; text-transform: uppercase;
}
.h-line { display: block; }
.hero-h .hl { color: var(--lime); text-shadow: 0 0 40px rgba(162, 241, 77, .35); }
.scr { display: inline-block; text-align: center; }
.hero-sub { max-width: 40em; margin: 24px auto 28px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--soft); }
.hero-sub b { color: var(--text); font-weight: 700; }
.hero-sub .glow { color: var(--mint); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 24px; font-size: .88rem; font-weight: 600; color: var(--soft); }
.badges li { display: inline-flex; align-items: center; gap: 9px; }
.star {
  display: inline-block; flex: none; width: 12px; height: 12px; background: var(--lime);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

/* the carousel */
.ring-stage {
  --cw: clamp(190px, 24vw, 330px);
  position: relative; height: calc(var(--cw) * 1.25); margin: clamp(16px, 2.5vw, 34px) auto 0; max-width: 1400px;
  perspective: 1700px; perspective-origin: 50% 20%;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.ring-stage.is-drag { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 42%; width: 0; height: 0; transform-style: preserve-3d; }
.ring-card {
  position: absolute; left: calc(var(--cw) / -2); top: calc(var(--cw) * -.3125);
  width: var(--cw); overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(254, 250, 250, .14);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;   /* no mirrored backs */
  will-change: transform, opacity;
}
.ring-floor {
  position: absolute; left: 50%; bottom: 0; width: min(980px, 92%); height: 140px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(162, 241, 77, .22), rgba(186, 233, 181, .06) 45%, transparent 70%);
  filter: blur(8px); pointer-events: none;
}
.ring-hint {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); margin: 0;
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--faint);
}

/* ---------------------------------------- ticker, inside a rounded strip */
.ticker {
  margin: clamp(40px, 6vw, 80px) var(--gut) 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 24px; background: var(--surface);
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tk-track { display: flex; align-items: center; gap: 30px; width: max-content; animation: tk 34s linear infinite; }
.tk-track span { font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 600; text-transform: uppercase; white-space: nowrap; }
.tk-track span:nth-of-type(2n) { color: var(--lime); }
.tk-track .star { width: 16px; height: 16px; background: var(--melon); }
@keyframes tk { to { transform: translateX(-50%); } }

/* ---------------------------------------- shared section bits */
.section { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.kicker { margin-bottom: 18px; font-size: .8rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.kicker span { color: var(--lime); margin: 0 4px; }
.sec-h { max-width: 18ch; margin-bottom: clamp(36px, 5vw, 60px); font-size: clamp(1.8rem, 3.9vw, 3.4rem); line-height: 1.08; }
.hl-text { color: var(--lime); }

/* ---------------------------------------- work: pinned, slides sideways */
.hwork { position: relative; }
.hwork-sticky { padding: clamp(80px, 10vw, 120px) 0 40px; }
.hwork-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(26px, 4vw, 44px); }
.hwork-head .sec-h { margin-bottom: 0; }
.hwork-count { margin: 0; font-family: var(--display); font-size: 1rem; color: var(--faint); white-space: nowrap; }
.hwork-count b { color: var(--lime); font-size: 1.6rem; }
.hwork-track {
  --edge: max(var(--gut), calc((100vw - var(--wrap)) / 2));
  display: flex; gap: 28px;
  padding: 0 var(--edge) 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.hwork-track::-webkit-scrollbar { display: none; }
.hcard { flex: 0 0 min(78vw, 720px); margin: 0; scroll-snap-align: start; }
.hcard-link { display: block; color: inherit; text-decoration: none; }
.hcard-frame {
  position: relative; overflow: hidden; border-radius: 22px;
  box-shadow: 0 40px 70px -36px rgba(0, 0, 0, .8), 0 0 0 1px rgba(254, 250, 250, .12);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease;
}
.hcard:hover .hcard-frame { transform: translateY(-6px); box-shadow: 0 50px 80px -36px rgba(0, 0, 0, .85), 0 0 0 1px rgba(162, 241, 77, .6), 0 0 40px -10px rgba(162, 241, 77, .4); }
.hcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 2px 0; }
.hcard-n { font-family: var(--display); font-size: .85rem; color: var(--lime); }
.hcard-meta h3 { margin-right: auto; font-size: 1.15rem; }
.tag { padding: 5px 11px; border: 1px solid var(--line); border-radius: 100px; font-size: .76rem; font-weight: 700; color: var(--soft); }
.tag-c { border-color: rgba(186, 233, 181, .4); color: var(--mint); }
.tag-live { background: var(--lime); border-color: var(--lime); color: var(--bg); }
.hwork-bar { height: 3px; margin-top: 26px; border-radius: 3px; background: rgba(254, 250, 250, .1); overflow: hidden; }
.hwork-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--lime)); transform-origin: left; transform: scaleX(.08); }

/* wide screens: the section pins and the cards slide as you scroll down */
@media (min-width: 861px) {
  .hwork.is-pinned .hwork-sticky {
    position: sticky; top: 0; height: 100vh; height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 90px 0 30px; overflow: hidden;
  }
  .hwork.is-pinned .hwork-track { overflow: visible; scroll-snap-type: none; will-change: transform; }
  .hwork.is-pinned .hcard { flex-basis: min(56vw, 720px, calc((100svh - 300px) * 1.6)); }
}

/* ---------------------------------------- services: borders light up near the pointer */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 30px 28px;
  border: 1px solid var(--line); border-radius: 24px; background: var(--surface);
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  padding: 1px; border-radius: inherit;
  background: radial-gradient(280px circle at var(--x, -400px) var(--y, -400px), var(--lime), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .35s ease;
}
.svc::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--x, -400px) var(--y, -400px), rgba(162, 241, 77, .08), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
.svc-grid:hover .svc::before, .svc-grid:hover .svc::after { opacity: 1; }
.svc-ic {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid rgba(162, 241, 77, .35); border-radius: 14px; color: var(--lime);
  background: rgba(162, 241, 77, .06);
}
.svc-ic svg { width: 22px; height: 22px; }
.svc h3 { margin: 22px 0 10px; font-size: 1.12rem; }
.svc p { color: var(--soft); font-size: .96rem; }
.svc-hot { background: linear-gradient(150deg, rgba(162, 241, 77, .14), rgba(254, 250, 250, .03) 60%); border-color: rgba(162, 241, 77, .3); }
.svc-big { display: block; margin-bottom: 6px; font-family: var(--display); font-size: 1.9rem; line-height: 1.05; color: var(--lime); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.stat { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.stat b {
  display: block; margin-bottom: 8px;
  font-family: var(--display); font-size: clamp(2.4rem, 4.4vw, 3.8rem); font-weight: 800; line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--text), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: .92rem; color: var(--soft); }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } .stat { padding: 22px; } }

/* ---------------------------------------- process: a timeline with a travelling light */
.proc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 90px); }
.proc-left { position: sticky; top: 130px; align-self: start; }
.proc-note { max-width: 30ch; color: var(--soft); }
.tl { position: relative; padding-left: 58px; }
.tl::before { content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: rgba(254, 250, 250, .1); }
.tl-fill {
  position: absolute; left: 17px; top: 10px; width: 2px; height: calc((100% - 20px) * var(--p, 0)); border-radius: 2px;
  background: linear-gradient(var(--mint), var(--lime));
}
.tl-dot {
  position: absolute; left: 10px; top: calc(10px + (100% - 20px) * var(--p, 0)); width: 16px; height: 16px; margin-top: -8px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 5px rgba(162, 241, 77, .18), 0 0 26px 6px rgba(162, 241, 77, .55);
}
.tl-step { position: relative; padding-bottom: clamp(40px, 6vw, 70px); }
.tl-step:last-child { padding-bottom: 0; }
.tl-n {
  display: block; margin-bottom: 10px;
  font-family: var(--display); font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; line-height: 1; text-transform: uppercase;
  color: rgba(254, 250, 250, .16);
  transition: color .5s ease, text-shadow .5s ease;
}
.tl-step.on .tl-n { color: var(--lime); text-shadow: 0 0 30px rgba(162, 241, 77, .35); }
.tl-step h3 { margin-bottom: 10px; font-size: 1.3rem; }
.tl-step p { max-width: 46ch; color: var(--soft); }
@media (max-width: 860px) { .proc { grid-template-columns: 1fr; } .proc-left { position: static; } }

/* ---------------------------------------- pricing */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 34px 30px 30px;
  border: 1px solid var(--line); border-radius: 28px; background: var(--surface);
}
.plan-hot {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#45454b, #3e3e44) padding-box,
    conic-gradient(from var(--angle), var(--lime), var(--mint), var(--melon), var(--lime)) border-box;
  box-shadow: 0 40px 80px -40px rgba(162, 241, 77, .5);
  animation: turn 5s linear infinite;
}
@keyframes turn { to { --angle: 360deg; } }
.plan-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: 7px 14px; border-radius: 100px; white-space: nowrap;
  background: var(--lime); color: var(--bg); font-size: .74rem; font-weight: 800;
}
.plan-name { margin-bottom: 4px; font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.plan-desc { margin-bottom: 24px; color: var(--soft); font-size: .95rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.price b { font-family: var(--display); font-size: clamp(2.2rem, 3.4vw, 2.9rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.plan-hot .price b { color: var(--lime); }
.price span, .price small { font-size: .85rem; color: var(--faint); }
.plan-list { display: grid; gap: 12px; margin-bottom: 30px; }
.plan-list li { position: relative; padding-left: 28px; font-size: .95rem; color: var(--soft); }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(162, 241, 77, .14) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a2f14d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.5l4 4L18 8'/></svg>") center / 11px no-repeat;
}
.plan-list .free { color: var(--text); font-weight: 700; }
.plan-list .free em {
  margin-left: 8px; padding: 2px 8px; border-radius: 100px; background: var(--lime); color: var(--bg);
  font-style: normal; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
}
.plan-btn { margin-top: auto; width: 100%; }
.plans-note { margin-top: 32px; text-align: center; color: var(--faint); font-size: .92rem; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 30px; } }

/* ---------------------------------------- about */
.about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 6vw, 80px); align-items: center; }
.about-h { margin-bottom: 22px; font-size: clamp(2.2rem, 5vw, 4.4rem); font-weight: 800; line-height: 1.02; text-transform: uppercase; color: var(--faint); }
.about-h span { color: var(--text); }
.about-h .m { color: var(--lime); }
.about-h .d { color: var(--melon); }
.about-lead { max-width: 40ch; color: var(--soft); font-size: 1.05rem; }
.people { display: grid; gap: 16px; }
.person {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface);
  transition: border-color .3s ease, transform .4s cubic-bezier(.2, .7, .2, 1);
}
.person:hover { border-color: rgba(162, 241, 77, .4); transform: translateX(6px); }
.avatar {
  flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  font-family: var(--display); font-size: 1.3rem; font-weight: 800;
}
.av-d { background: var(--melon); color: var(--text); box-shadow: 0 0 0 4px rgba(231, 111, 135, .2), 0 0 30px rgba(231, 111, 135, .45); }
.av-m { background: var(--lime); color: var(--bg); box-shadow: 0 0 0 4px rgba(162, 241, 77, .2), 0 0 30px rgba(162, 241, 77, .45); }
.person h3 { font-size: 1.1rem; }
.role { margin: 4px 0 8px; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.person p:last-child { color: var(--soft); font-size: .95rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------------------------------------- FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 70px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--lime); }
.pm { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; transition: background-color .3s ease, transform .4s ease, border-color .3s ease; }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s ease; }
.faq details[open] .pm { background: var(--lime); border-color: var(--lime); color: var(--bg); transform: rotate(180deg); }
.faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { overflow: hidden; }
.faq-a p { max-width: 60ch; padding-bottom: 24px; color: var(--soft); }
@media (max-width: 820px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .sec-h { margin-bottom: 16px; } }

/* ---------------------------------------- contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
.contact-h { margin-bottom: 24px; font-size: clamp(2.4rem, 6vw, 5.4rem); font-weight: 800; line-height: .98; text-transform: uppercase; }
.contact-copy > p { max-width: 38ch; color: var(--soft); font-size: 1.05rem; }
.contact-mail a { color: var(--lime); font-weight: 700; text-underline-offset: 4px; }
.cform {
  display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(160deg, rgba(254, 250, 250, .07), rgba(254, 250, 250, .02));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label, .pick legend { font-size: .82rem; font-weight: 700; color: var(--soft); }
.field input, .field textarea {
  width: 100%; padding: .85em 1em;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(254, 250, 250, .04); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(162, 241, 77, .16); }
.field.bad input, .field.bad textarea { border-color: var(--melon); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.pick legend { margin-bottom: 8px; padding: 0; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick label {
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 100px;
  font-size: .86rem; font-weight: 600; cursor: pointer; color: var(--soft);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pick label:hover { border-color: var(--lime); color: var(--text); }
.pick input:checked + label { background: var(--lime); border-color: var(--lime); color: var(--bg); }
.pick input:focus-visible + label { outline: 2.5px solid var(--lime); outline-offset: 2px; }
.cform .btn { justify-self: start; }
.form-note { min-height: 1.4em; font-size: .92rem; color: var(--mint); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }

/* ---------------------------------------- footer: an outlined wordmark with a light sweeping through */
.foot { padding: clamp(40px, 6vw, 80px) 0 26px; border-top: 1px solid var(--line); overflow: hidden; }
.mega {
  margin: 0 0 clamp(26px, 4vw, 44px);
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3rem, 24vw, 21rem); line-height: .86; letter-spacing: -.02em; text-align: center; text-transform: uppercase;
  /* ghost letters with a light sweeping through — outlines would show the
     font's overlapping shapes as stray lines inside the letters */
  color: transparent;
  background: linear-gradient(100deg, rgba(254, 250, 250, .09) 0%, rgba(254, 250, 250, .09) 36%, var(--lime) 46%, var(--mint) 54%, rgba(254, 250, 250, .09) 64%, rgba(254, 250, 250, .09) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: sweep 4.5s ease-in-out infinite alternate;
}
@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .94rem; font-weight: 600; }
.foot-links a { color: var(--soft); text-decoration: none; }
.foot-links a:hover { color: var(--lime); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--faint); }
.foot-base a { color: var(--text); text-decoration: none; font-weight: 700; }

/* ---------------------------------------- reveal */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 110ms); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .rv { opacity: 1; transform: none; }
  .tk-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding: 0 20px; }
  .ring-hint { display: none; }
  .mega { background: none; color: rgba(254, 250, 250, .2); }
}

/* without scripts the carousel can't turn — lay the previews out in a row instead */
html:not(.js) .ring-stage { height: auto; perspective: none; overflow-x: auto; padding-bottom: 20px; }
html:not(.js) .ring { position: static; display: flex; justify-content: center; gap: 16px; width: auto; height: auto; }
html:not(.js) .ring-card { position: static; flex: 0 0 var(--cw); }
html:not(.js) .ring-floor, html:not(.js) .ring-hint { display: none; }

/* ==========================================================================
   Additions for the app demo
   ========================================================================== */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.spread { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }

.byline { margin: 18px 0 0; font-size: .92rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }

/* the live countdown to launch day */
.launch { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin: 0 auto 30px; }
.launch-label { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.launch-count { display: flex; gap: 8px; }
.launch-count span {
  min-width: 72px; padding: 10px 10px 8px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.launch-count b {
  display: block; margin-bottom: 2px;
  font-family: var(--display); font-size: 1.6rem; font-weight: 700; line-height: 1.1; color: var(--lime);
  text-shadow: 0 0 18px rgba(162, 241, 77, .45); font-variant-numeric: tabular-nums;
}
@media (max-width: 420px) { .launch-count span { min-width: 62px; } .launch-count b { font-size: 1.3rem; } }

/* glowing sparks drifting through the hero */
.fireflies { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fireflies i {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 10px 3px rgba(162, 241, 77, .55);
  animation: firefly var(--t, 8s) ease-in-out var(--d, 0s) infinite;
}
@keyframes firefly {
  0%   { transform: translate(0, 0); opacity: .2; }
  25%  { transform: translate(18px, -22px); opacity: 1; }
  50%  { transform: translate(-10px, -40px); opacity: .35; }
  75%  { transform: translate(14px, -18px); opacity: .95; }
  100% { transform: translate(0, 0); opacity: .2; }
}

/* "this is a template demo" — with the way back to uxmnd.com */
.demo-pill {
  position: fixed; left: 14px; bottom: 14px; z-index: 300;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 100px;
  background: rgba(60, 60, 66, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--text); font-size: .78rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .6);
}
.demo-pill:hover { border-color: var(--lime); }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--melon); }
.demo-back { color: var(--lime); }
@media (max-width: 560px) { .demo-back { display: none; } }

/* small message for the pretend shop buttons */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 320;
  max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 16px;
  background: var(--lime); color: var(--bg); font-size: .92rem; font-weight: 700; text-align: center;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .fireflies i { animation: none; opacity: .7; }
  .logo-mark { animation: none; }
}
