/* Ink on paper: one warm neutral ramp, one ink-blue accent.
   Lime appears only inside the dark example card. */
:root {
  --paper: #F6F5F1;
  --white: #FFFFFF;
  --ink: #0E1116;
  --ink-2: #1A1F28;
  --muted: #3D4452;
  --faint: #5A6170;
  --line: rgba(14, 17, 22, 0.08);
  --accent: #2F5BFF;
  --accent-dark: #1C3FD1;
  --lime: #D7FF3A;
  --on-dark: #C9CEDA;
  --on-dark-2: #A3A9B6;
  --line-dark: rgba(255, 255, 255, 0.08);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; }
p { margin: 0; }
a { color: var(--accent-dark); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }

/* Nav */
.nav { padding-block: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand svg { color: var(--accent); }
.brand span { font-family: var(--display); font-weight: 600; font-size: 20px; }
.brand em { font-style: normal; color: var(--faint); }
.nav nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 12px; border-radius: 8px; transition: color .15s var(--ease); }
.nav nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: 72px 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.status { font-family: var(--mono); font-size: 13px; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h1 { font-weight: 600; font-size: clamp(44px, 7vw, 76px); line-height: 1.04; letter-spacing: -0.03em; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { text-decoration: none; font-weight: 500; font-size: 16px; padding: 16px 24px; border-radius: 10px; transition: background-color .15s var(--ease), box-shadow .15s var(--ease), transform .1s var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(14, 17, 22, 0.16); }
.btn-ghost:hover { color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1px rgba(14, 17, 22, 0.32); }

/* Example card: the one bright moment */
.demo { flex: 1 1 420px; min-width: 0; margin: 0; background: var(--ink); color: var(--white); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 24px 48px -24px rgba(14, 17, 22, 0.4); }
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 13px; color: var(--on-dark-2); }
.long { font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--on-dark); background: var(--ink-2); border-radius: 12px; padding: 16px; overflow-wrap: anywhere; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.24); }
.arrow { align-self: center; color: var(--on-dark-2); }
.short { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--lime); border-radius: 12px; padding: 8px 8px 8px 20px; }
.short-url { font-family: var(--display); font-weight: 500; font-size: 26px; color: var(--white); text-decoration: none; }
.short-url:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 6px; }
.label-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.try { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--lime); }
.short-actions { display: flex; align-items: center; gap: 8px; }
.open { display: inline-flex; align-items: center; min-height: 44px; padding: 12px 16px; border-radius: 4px; font-size: 14px; font-weight: 500; color: var(--white); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); transition: background-color .15s var(--ease); }
.open:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.open:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.open[hidden] { display: none; }

/* Draw the eye to Copy a few times after load, then stop */
.copy.nudge { animation: nudge 1.6s var(--ease) 1.8s 3; }
@keyframes nudge {
  0% { box-shadow: 0 0 0 0 rgba(215, 255, 58, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(215, 255, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(215, 255, 58, 0); }
}
@media (prefers-reduced-motion: reduce) { .copy.nudge { animation: none; } }
.short-url em { font-style: normal; color: var(--lime); }
.copy { font: 500 14px/1 var(--body); color: var(--ink); background: var(--lime); border: 0; min-width: 80px; min-height: 44px; padding: 12px 16px; border-radius: 4px; cursor: pointer; transition: background-color .15s var(--ease), transform .1s var(--ease); }
.copy:hover { background: #E4FF70; }
.copy:active { transform: scale(0.98); }
.copy:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.copy-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--on-dark-2); }
.count { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--on-dark); }
.count em { font-style: normal; color: var(--lime); }

/* Sections */
.band { background: var(--white); border-block: 1px solid var(--line); }
.section { padding-block: 96px; display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 40rem; }
h2 { font-size: clamp(32px, 4.5vw, 44px); letter-spacing: -0.02em; line-height: 1.1; }
.section-head p { font-size: 18px; line-height: 1.6; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--paper); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card svg { color: var(--faint); margin-bottom: 8px; }
h3 { font-size: 20px; }
.card p, .steps p { font-size: 16px; line-height: 1.6; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--ink); padding-top: 20px; }
.steps span { font-family: var(--mono); font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* Closing banner */
.cta-wrap { padding-bottom: 96px; }
.cta { background: var(--ink); color: var(--white); border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; overflow: hidden; }
.cta-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding-block: 16px; }
.cta-scene { flex: 1 1 320px; min-width: 0; height: 240px; }
.cta-scene canvas { display: block; width: 100%; height: 100%; }

/* Hidden only until the GSAP entrance runs; a timer in the head clears it as a fallback */
.motion .hero-copy > *, .motion .demo { opacity: 0; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); }
.cta p { font-size: 17px; line-height: 1.6; color: var(--on-dark); max-width: 36rem; }

/* Footer */
footer { border-top: 1px solid var(--line); }
.foot { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--faint); }

@media (max-width: 560px) {
  .hero { padding-block: 40px 64px; gap: 40px; }
  .section { padding-block: 72px; }
  .demo { padding: 24px; }
  .short-url { font-size: 22px; }
  .cta { padding: 24px; }
  .cta-scene { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav nav a { transition: none; }
}
