/* Chord Lens — design tokens, reset, shell chrome.
   Dark-committed: the product lives on YouTube and every screenshot is dark. */

:root {
  color-scheme: dark;

  --ink-900: #05060a;
  --ink-850: #08090e;
  --ink-800: #0d0f16;
  --ink-700: #12151e;
  --ink-600: #191d28;
  --line: #232936;
  --line-soft: #1b202b;

  --text: #eef0f5;
  --text-dim: #a4adbe;
  --text-faint: #6e7789;

  --accent: #e01432;
  --accent-hot: #ff2a45;
  --accent-soft: rgba(224, 20, 50, 0.14);
  --accent-line: rgba(224, 20, 50, 0.42);

  --amber: #ffdd00;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shell: min(1160px, 100% - 3rem);
  --gap: clamp(1rem, 2.5vw, 1.75rem);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink-850);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 4.4vw, 3.35rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.85rem, 4vw, 2.85rem); letter-spacing: -0.03em; }
h3 { font-size: 1.16rem; }

p { margin: 0; text-wrap: pretty; }

/* The UA default of `margin: 1em 40px` on figure silently inflates every
   card built from one. */
figure, figcaption, blockquote { margin: 0; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent-hot);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell { width: var(--shell); margin-inline: auto; }

.eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-hot);
}

.lede {
  font-size: clamp(1.02rem, 1.9vw, 1.22rem);
  color: var(--text-dim);
  max-width: 60ch;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1.15rem;
  background: var(--accent);
  color: #fff;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* ---- Brand mark ------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
}

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
}

/* ---- Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s, border-color 0.18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px -10px var(--accent-hot);
}
.btn--primary:hover { box-shadow: 0 12px 30px -10px var(--accent-hot); }

.btn--ghost {
  background: var(--ink-700);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: #313a4c; background: var(--ink-600); }

.btn--coffee {
  background: var(--amber);
  color: #14161c;
}

.btn[aria-disabled="true"] {
  cursor: default;
  opacity: 1;
}

.btn__note {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-faint);
  margin-top: 0.6rem;
}

/* ---- Header ----------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink-850) 82%, transparent);
  border-bottom: 1px solid var(--line-soft);
}

@supports (backdrop-filter: blur(1px)) {
  .nav { backdrop-filter: blur(14px) saturate(1.4); }
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 62px;
}

.nav__links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.nav__links a { transition: color 0.15s; }
.nav__links a:hover { color: var(--text); }

.nav__cta { flex: none; }
.nav .btn { padding: 0.5rem 1rem; font-size: 0.86rem; }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}

/* ---- Footer ----------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line-soft);
  background: var(--ink-900);
  padding: 3.5rem 0 2.5rem;
  margin-top: 5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 2.5rem;
}

.footer h4 {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}

.footer__list {
  display: grid;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.footer__list a:hover { color: var(--text); }

.footer__blurb {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-top: 0.9rem;
  max-width: 38ch;
}

.footer__base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-faint);
}

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---- Motion ----------------------------------------------------------- */

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