/* ============================================================
   Survibe — landing page
   Static CSS, no build step, no external dependencies.
   ============================================================ */

:root {
  --ink:        #0c0c0f;
  --ink-2:      #131319;
  --ink-3:      #1b1b23;
  --line:       #2a2a35;
  --ivory:      #f4efe6;
  --muted:      #9d9aa7;
  --accent:     #e8b44a;
  --accent-2:   #f0cd82;
  --accent-dim: rgba(232, 180, 74, .14);

  --wrap:  1140px;
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-serif, Georgia, "Times New Roman", serif;
}

/* ── Base ─────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
img, svg { max-width: 100%; }

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 200;
  background: var(--accent); color: var(--ink);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap--narrow { max-width: 760px; }

/* ── Buttons ──────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #14110a;
  font: inherit; font-weight: 650;
  padding: 14px 26px;
  border: 0; border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
  box-shadow: 0 6px 22px -8px rgba(232, 180, 74, .55);
}
.btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 10px 20px; font-size: 15px; }

/* ── Nav ──────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(12, 12, 15, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(12, 12, 15, .92);
}
.nav__inner {
  display: flex; align-items: center; gap: 32px;
  height: 72px;
}
.nav__links { display: flex; gap: 30px; margin-left: auto; font-size: 15.5px; }
.nav__links a { color: var(--muted); transition: color .16s ease; }
.nav__links a:hover { color: var(--ivory); }

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark { width: 27px; height: 27px; fill: var(--ivory); flex: none; }
.logo__key--accent { fill: var(--accent); }
.logo__word { font-size: 20px; font-weight: 680; letter-spacing: -.03em; }
.logo--sm .logo__mark { width: 23px; height: 23px; }
.logo--sm .logo__word { font-size: 17.5px; }

/* ── Hero ─────────────────────────────────────────────── */

.hero { position: relative; padding-top: 76px; padding-bottom: 40px; }

.hero__glow {
  position: absolute; inset: -180px 0 auto 0; height: 620px; z-index: 0;
  background:
    radial-gradient(680px 340px at 22% 28%, rgba(232,180,74,.16), transparent 70%),
    radial-gradient(520px 300px at 78% 12%, rgba(120,110,255,.10), transparent 72%);
  pointer-events: none;
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 60px; align-items: center;
}

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent-dim);
  border: 1px solid rgba(232,180,74,.3);
  color: var(--accent-2);
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  padding: 7px 15px; border-radius: 999px;
  margin-bottom: 26px;
}
.badge__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(232,180,74,.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(232,180,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,180,74,0); }
}

.hero__title {
  font-size: clamp(2.6rem, 5.6vw, 4.15rem);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero__title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero__sub {
  color: var(--muted);
  font-size: 18.5px;
  max-width: 30em;
  margin-bottom: 32px;
}

.hero__note { color: #6f6c7a; font-size: 14px; margin-top: 15px; }

/* ── Hero actions ─────────────────────────────────────── */

.hero__actions {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}

.link-arrow {
  color: var(--muted);
  font-size: 16px; font-weight: 550;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color .16s ease, gap .16s ease;
}
.link-arrow::after { content: "→"; transition: transform .16s ease; }
.link-arrow:hover { color: var(--accent); gap: 10px; }

/* ── iPad mockup ──────────────────────────────────────── */

.hero__device { display: flex; justify-content: center; }

.ipad {
  width: min(100%, 430px);
  aspect-ratio: 4 / 3.1;
  background: linear-gradient(150deg, #2e2e38, #16161c);
  border-radius: 26px;
  padding: 13px;
  box-shadow:
    0 40px 80px -28px rgba(0,0,0,.85),
    0 0 0 1px rgba(255,255,255,.07) inset;
  transform: perspective(1400px) rotateY(-11deg) rotateX(3deg);
}

.ipad__screen {
  width: 100%; height: 100%;
  background: #08080b;
  border-radius: 15px;
  overflow: hidden;
}

.app { display: flex; flex-direction: column; height: 100%; }

.app__top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 15px;
  font-size: 12.5px;
  border-bottom: 1px solid #191922;
}
.app__song { font-weight: 600; }
.app__bar { color: #6b6877; font-weight: 400; margin-left: 5px; }
.app__acc { color: var(--accent); font-weight: 700; }

.app__stage {
  position: relative; flex: 1; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 13.5%, rgba(255,255,255,.035) 13.5% 14%);
}

.hitline {
  position: absolute; left: 0; right: 0; bottom: 22px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .8;
}

.note {
  position: absolute; width: 8.5%; border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 16px rgba(232,180,74,.4);
  animation: fall 3.6s linear infinite;
}
.note--1 { left: 7%;  height: 15%; animation-delay: 0s;    }
.note--2 { left: 22%; height: 22%; animation-delay: -.75s; background: linear-gradient(180deg,#9b8bff,#6d5ce0); box-shadow: 0 0 16px rgba(122,104,240,.4); }
.note--3 { left: 41%; height: 12%; animation-delay: -1.5s; }
.note--4 { left: 58%; height: 26%; animation-delay: -2.2s; }
.note--5 { left: 77%; height: 17%; animation-delay: -2.9s; background: linear-gradient(180deg,#9b8bff,#6d5ce0); box-shadow: 0 0 16px rgba(122,104,240,.4); }

@keyframes fall {
  from { top: -28%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  to   { top: 100%; opacity: 0; }
}

.app__keys { display: flex; height: 27%; gap: 1.5px; padding: 0 4px 5px; }
.wk {
  flex: 1;
  background: linear-gradient(180deg, #ece7dd, #cfc9bd);
  border-radius: 0 0 3px 3px;
}
.wk--lit {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 14px rgba(232,180,74,.55);
}

/* ── Playable keyboard ────────────────────────────────── */

.playable {
  margin-top: 68px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 26px 28px;
}
.playable__label {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  color: var(--muted); font-size: 14.5px; margin-bottom: 18px;
}
.playable__icon { color: var(--accent); font-size: 17px; }

kbd {
  font: inherit; font-size: 11.5px; font-weight: 600;
  background: var(--ink-3); border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px; padding: 2px 7px; color: var(--ivory);
  margin-left: 3px;
}

.keyboard {
  position: relative;
  display: flex;
  height: 158px;
  user-select: none;
  touch-action: manipulation;
}

.key {
  border: 0; padding: 0; font: inherit; cursor: pointer;
  transition: transform .06s ease, filter .06s ease;
}

.key--white {
  flex: 1;
  background: linear-gradient(180deg, #f6f2ea 0%, #ddd7cb 100%);
  border-radius: 0 0 7px 7px;
  margin-right: 2px;
  box-shadow: 0 4px 0 #a9a294, 0 8px 16px rgba(0,0,0,.4);
}
.key--white.is-down {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 1px 0 #a9a294, 0 3px 9px rgba(0,0,0,.4);
  transform: translateY(3px);
}

.key--black {
  position: absolute; top: 0; z-index: 2;
  width: 4.4%; height: 62%;
  background: linear-gradient(180deg, #34343f 0%, #131318 100%);
  border-radius: 0 0 5px 5px;
  box-shadow: 0 4px 0 #000, 0 8px 14px rgba(0,0,0,.55);
}
.key--black.is-down {
  background: linear-gradient(180deg, #6d5ce0, #4a3db3);
  box-shadow: 0 1px 0 #000, 0 3px 8px rgba(0,0,0,.5);
  transform: translateY(3px);
}

/* ── Sections ─────────────────────────────────────────── */

.section { padding: 108px 0; }
.section--alt {
  background: var(--ink-2);
  border-block: 1px solid var(--line);
}

.eyebrow {
  color: var(--accent);
  font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 54px;
  max-width: 20em;
}
.section__title em {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  color: var(--accent);
}

/* ── Cards ────────────────────────────────────────────── */

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover {
  border-color: rgba(232,180,74,.42);
  background: var(--ink-3);
  transform: translateY(-3px);
}
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--accent-dim);
  border-radius: 13px;
  margin-bottom: 20px;
}
.card__icon svg {
  width: 23px; height: 23px;
  fill: none; stroke: var(--accent);
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 20.5px; margin-bottom: 11px; }
.card p { color: var(--muted); font-size: 16px; }

/* ── Steps ────────────────────────────────────────────── */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 42px; font-weight: 400;
  color: var(--accent);
  opacity: .5;
  margin-bottom: 12px;
  line-height: 1;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }

/* ── Quote ────────────────────────────────────────────── */

.quote-sec { padding-block: 96px; }
.quote {
  margin: 0; max-width: 900px;
  border-left: 3px solid var(--accent);
  padding-left: 34px;
}
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.05rem);
  line-height: 1.36;
  font-style: italic;
}
.quote footer { color: var(--muted); font-size: 15px; margin-top: 20px; font-style: normal; }

/* ── FAQ ──────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 22px 40px 22px 0;
  font-size: 17.5px; font-weight: 600;
  position: relative;
  transition: color .16s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }

.faq__item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }

.faq__item p { color: var(--muted); padding-bottom: 24px; max-width: 62ch; font-size: 16px; }

/* ── Final CTA ────────────────────────────────────────── */

.cta {
  padding: 104px 0;
  background:
    radial-gradient(760px 320px at 50% 0%, rgba(232,180,74,.15), transparent 70%),
    var(--ink-2);
  border-top: 1px solid var(--line);
}
.cta__inner { text-align: center; }
.cta h2 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  margin-bottom: 16px;
}
.cta p { color: var(--muted); margin-bottom: 32px; font-size: 17.5px; }

/* ── 404 page ─────────────────────────────────────────── */

.notfound {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 40px 24px;
  background: radial-gradient(680px 340px at 50% 22%, rgba(232,180,74,.13), transparent 70%);
}
.notfound .logo { margin-bottom: 34px; }

.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 13vw, 7rem);
  line-height: 1;
  color: var(--accent);
  opacity: .32;
}
.notfound__title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin-top: 6px;
}
.notfound__sub {
  color: var(--muted);
  max-width: 34em;
  margin: 14px 0 32px;
}

/* ── Footer ───────────────────────────────────────────── */

.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.footer__copy { color: #6b6877; font-size: 14.5px; }

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .ipad { transform: none; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .nav__links { display: none; }
  .section { padding: 76px 0; }
  .keyboard { height: 130px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 52px; }
  .hero__actions { gap: 16px; }
  .playable { padding: 20px 16px 22px; }
  .keyboard { height: 112px; }
  .quote { padding-left: 22px; }
}

/* ── Motion preferences ───────────────────────────────── */

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