/* Paste — marketing site. Self-contained, no remote assets (on brand: the
   product never phones home, neither does its website). Dark, fast, honest. */

:root {
  --bg: #07090c;
  --bg-2: #0b0d10;
  --surface: #0f1318;
  --surface-2: #141a21;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #e9eef3;
  --muted: #9aa6b2;
  --faint: #6b7682;
  --mint: #4ade80;
  --cyan: #22d3ee;
  --violet: #8b7bff;
  --accent: #43e0a0;
  --grad: linear-gradient(120deg, #4ade80 0%, #22d3ee 60%, #6aa9ff 100%);
  --grad-soft: linear-gradient(120deg, rgba(74, 222, 128, .16), rgba(34, 211, 238, .14));
  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .8);
  --ring: 0 0 0 1px var(--line) inset;
  --ff: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", sans-serif;
  --fm: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient aurora field */
.aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% -10%, rgba(34, 211, 238, .10), transparent 70%),
    radial-gradient(40% 40% at 85% 8%, rgba(139, 123, 255, .10), transparent 70%);
}
.aurora::before, .aurora::after {
  content: ""; position: absolute; width: 60vw; height: 60vw;
  border-radius: 50%; filter: blur(120px); opacity: .5;
}
.aurora::before {
  left: -18vw; top: -22vw;
  background: radial-gradient(circle, rgba(74, 222, 128, .35), transparent 60%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.aurora::after {
  right: -22vw; top: 12vh;
  background: radial-gradient(circle, rgba(34, 211, 238, .30), transparent 60%);
  animation: drift2 32s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate3d(8vw, 6vw, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-7vw, 4vw, 0) scale(1.1); } }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
}

/* Layout */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: clamp(64px, 11vh, 132px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); opacity: .6; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
h2.title { font-size: clamp(28px, 4.4vw, 46px); max-width: 16ch; }
.lede { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 60ch; margin-top: 16px; }
.gt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: linear-gradient(180deg, rgba(7, 9, 12, .82), rgba(7, 9, 12, .42));
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.brand svg { width: 28px; height: 28px; display: block; }
.brand .by { font-weight: 500; font-size: 11px; color: var(--faint); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }

/* Buttons */
.btn {
  --b: var(--surface-2);
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 12px 20px; border-radius: 12px; font-size: 14.5px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid var(--line-2);
  background: var(--b); color: var(--text); transition: transform .15s, border-color .2s, background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--line-2); }
.btn:active { transform: translateY(0); }
.btn.primary {
  border-color: transparent; color: #04130d;
  background: var(--grad); box-shadow: 0 14px 34px -14px rgba(46, 213, 162, .7);
}
.btn.primary:hover { box-shadow: 0 18px 42px -14px rgba(46, 213, 162, .85); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 9px 15px; font-size: 13.5px; }

/* Hero */
.hero { padding-top: clamp(48px, 8vh, 92px); padding-bottom: clamp(56px, 9vh, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6.6vw, 76px); letter-spacing: -.035em; }
.hero p.sub { color: var(--muted); font-size: clamp(16px, 1.5vw, 20px); margin-top: 20px; max-width: 52ch; }
.hero p.sub strong { color: var(--text); font-weight: 650; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  font-size: 12.5px; color: var(--muted); background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
}
.chip svg { width: 14px; height: 14px; color: var(--accent); }

/* Hero device demo */
.demo { position: relative; }
.devices { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; align-items: stretch; }
.device {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow); overflow: hidden;
}
.device .bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2a3139; }
.device .bar .t { margin-left: auto; font-size: 11.5px; color: var(--faint); font-family: var(--fm); }
.device .body { padding: 16px; }
.device.mac .body { min-height: 196px; }
.field-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 8px; }
.typed {
  font-family: var(--fm); font-size: 13.5px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; min-height: 80px;
  white-space: pre-wrap; word-break: break-word;
}
.caret { display: inline-block; width: 7px; height: 16px; background: var(--accent); vertical-align: -3px; margin-left: 1px; animation: blink 1.1s steps(1) infinite; border-radius: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.sealrow { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.sealrow .lock { width: 15px; height: 15px; color: var(--accent); }
.device.phone { display: flex; flex-direction: column; }
.device.phone .body { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.note-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: rgba(255, 255, 255, .02);
  display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted);
  transition: border-color .3s, background .3s;
}
.note-card.revealed { border-color: rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .06); color: var(--text); }
.note-card .ic { width: 16px; height: 16px; color: var(--accent); flex: none; }
.note-card .reveal-text { font-family: var(--fm); font-size: 12px; }
.demo-cap { text-align: center; margin-top: 16px; font-size: 12.5px; color: var(--faint); }
.demo-cap b { color: var(--muted); font-weight: 600; }

/* Section: stat band */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat .n { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.02em; }
.stat .n .gt { font-weight: 800; }
.stat .l { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* Cards / grids */
.grid { display: grid; gap: 18px; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(15, 19, 24, .55));
  padding: 26px; transition: transform .2s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card .ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line); color: var(--accent); margin-bottom: 16px;
}
.card .ico svg { width: 21px; height: 21px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* Security split */
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.sec-list { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.sec-item { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.sec-item .k { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); border: 1px solid var(--line); }
.sec-item .k svg { width: 17px; height: 17px; }
.sec-item h4 { font-size: 15.5px; margin-bottom: 3px; }
.sec-item p { color: var(--muted); font-size: 13.5px; }

/* Proof terminal */
.proof {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, #0a0f0d, #070b0a); box-shadow: var(--shadow);
  position: sticky; top: 86px;
}
.proof .bar { display: flex; align-items: center; gap: 7px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.proof .bar .t { margin-left: auto; font-size: 11.5px; color: var(--faint); font-family: var(--fm); }
.proof pre { margin: 0; padding: 20px; font-family: var(--fm); font-size: 12.8px; line-height: 1.85; color: #b9c4cd; overflow-x: auto; }
.proof .ok { color: var(--mint); }
.proof .dim { color: var(--faint); }
.proof .warn { color: #f1c47b; }
.proof .cmd { color: var(--cyan); }

/* Open-source strip (between hero & stat band) */
.open-strip {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 40px);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(74, 222, 128, .10), transparent 60%),
    radial-gradient(120% 100% at 100% 100%, rgba(34, 211, 238, .08), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow);
}
.open-strip-text h2 { font-size: clamp(24px, 3.2vw, 36px); margin-top: 6px; }
.open-strip-text p { color: var(--muted); margin: 12px 0 22px; font-size: 15px; max-width: 52ch; }
.open-strip-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.open-strip-tree {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #0a0f0d, #070b0a); overflow: hidden;
}
.tree-bar { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.tree-bar .t { font-family: var(--fm); font-size: 11.5px; color: var(--faint); }
.tree-bar .dot.ok { background: var(--mint); box-shadow: 0 0 0 3px rgba(74, 222, 128, .15); }
pre.tree { margin: 0; padding: 18px 20px; font-family: var(--fm); font-size: 12.6px; line-height: 1.8; color: #b9c4cd; overflow-x: auto; }
pre.tree .ok { color: var(--mint); }
pre.tree .dim { color: var(--faint); }
pre.tree .cmd { color: var(--cyan); }
@media (max-width: 940px) {
  .open-strip { grid-template-columns: 1fr; gap: 22px; }
}

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); position: relative; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: var(--fm); font-size: 13px; color: var(--accent); font-weight: 700;
}
.step h3 { font-size: 17px; margin: 10px 0 7px; }
.step p { color: var(--muted); font-size: 14px; }
.step .line { position: absolute; top: 38px; right: -10px; width: 20px; height: 1px; background: var(--line-2); }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.plat { border: 1px solid var(--line); border-radius: 14px; padding: 22px 16px; text-align: center; background: var(--surface); }
.plat svg { width: 30px; height: 30px; color: var(--text); }
.plat .nm { margin-top: 12px; font-weight: 600; font-size: 14.5px; }
.plat .badge { margin-top: 8px; display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.plat .badge.ready { color: var(--mint); border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .08); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
details.q { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
details.q summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary .pm { color: var(--accent); font-size: 22px; line-height: 1; transition: transform .25s; flex: none; }
details.q[open] summary .pm { transform: rotate(45deg); }
details.q .a { padding: 0 22px 22px; color: var(--muted); font-size: 14.5px; }
details.q .a b { color: var(--text); }

/* CTA */
.cta-final {
  border: 1px solid var(--line); border-radius: 26px; padding: clamp(40px, 7vw, 76px);
  text-align: center; background:
    radial-gradient(70% 120% at 50% 0%, rgba(34, 211, 238, .14), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow);
}
.cta-final h2 { font-size: clamp(28px, 4.6vw, 50px); }
.cta-final p { color: var(--muted); margin: 16px auto 30px; max-width: 52ch; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 44px; color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 14px; }
.foot a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; padding: 5px 0; transition: color .2s; }
.foot a:hover { color: var(--text); }
.foot .blurb { font-size: 13.5px; max-width: 36ch; margin-top: 14px; color: var(--faint); }
.foot-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }
.disclaimer { max-width: 70ch; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }

a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px;
}

/* Mobile nav drawer */
.drawer { display: none; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .sec-grid { grid-template-columns: 1fr; gap: 30px; }
  .proof { position: static; }
  .g-3, .steps { grid-template-columns: 1fr 1fr; }
  .platforms { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn:not(.menu-host) { display: none; }
  .menu-btn { display: inline-flex; }
  .drawer {
    display: block; position: fixed; inset: 66px 0 auto 0; z-index: 49;
    background: rgba(7, 9, 12, .97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
  }
  .drawer.open { transform: none; }
  .drawer nav { display: flex; flex-direction: column; padding: 14px 24px 26px; }
  .drawer nav a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; }
  .drawer nav .btn { margin-top: 18px; }
}
@media (max-width: 620px) {
  .g-3, .g-2, .steps, .platforms, .stats, .foot, .devices { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(34px, 11vw, 50px); }
  section { padding: 60px 0; }
  .step .line { display: none; }
}
