/* Looptara – pre-launch site. Hand-written CSS, no framework, no external fonts. */
:root {
  --bg: #070b14;
  --bg-2: #0b1224;
  --panel: #0f172b;
  --line: rgba(160, 185, 220, 0.16);
  --text: #eaeef6;
  --muted: #a3adc2;
  --gold: #e8b64c;
  --gold-2: #f5d489;
  --teal: #3fd0c0;
  --danger: #ff8f8f;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans); min-height: 100vh;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #111; padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* Header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; padding: 1.1rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; font: 600 1.25rem var(--serif); letter-spacing: .06em; }
.brand svg { width: 34px; height: 34px; }
.nav-cta { font-size: .95rem; text-decoration: none; color: var(--text); border: 1px solid var(--line); padding: .5rem 1rem; border-radius: 999px; background: rgba(15,23,43,.6); backdrop-filter: blur(6px); transition: border-color .2s, background .2s; }
.nav-cta:hover { border-color: var(--gold); background: rgba(232,182,76,.12); color: #fff; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 7.5rem 0 4.5rem; min-height: 100svh; display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: -5%; z-index: -2; background: url("../img/topo.svg") center/cover no-repeat; opacity: .55; animation: drift 60s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 60% 50% at 78% 35%, rgba(232,182,76,.14), transparent 70%),
  radial-gradient(ellipse 50% 45% at 12% 85%, rgba(63,208,192,.10), transparent 70%),
  linear-gradient(180deg, rgba(7,11,20,.2), var(--bg) 96%); }
@keyframes drift { from { transform: scale(1.04) translate3d(-1.5%, -1%, 0); } to { transform: scale(1.12) translate3d(1.5%, 1.5%, 0); } }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); margin: 0 0 1.25rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1 { font: 700 clamp(2.6rem, 8.5vw, 5.4rem)/1.02 var(--serif); letter-spacing: -.01em; margin: 0 0 1.25rem; }
h1 .accent { display: block; background: linear-gradient(100deg, var(--gold-2), var(--gold) 55%, #c98a2b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.35rem); color: var(--muted); max-width: 34rem; margin: 0 0 2rem; }
.lead strong { color: var(--text); font-weight: 500; }

/* Waitlist form */
.join { background: linear-gradient(180deg, rgba(18,28,52,.92), rgba(12,19,36,.92)); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; max-width: 33rem; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04); }
.join h2 { font: 600 1.35rem var(--serif); margin: 0 0 .25rem; }
.join .sub { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .9rem; }
.field label { font-size: .85rem; color: var(--muted); }
.row { display: flex; gap: .6rem; flex-direction: column; }
input[type=email] { width: 100%; font: inherit; color: var(--text); background: #060b18; border: 1px solid rgba(160,185,220,.28); border-radius: 10px; padding: .85rem 1rem; min-height: 3.1rem; }
input[type=email]::placeholder { color: #6c7790; }
input[type=email]:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(232,182,76,.25); }
input[aria-invalid=true] { border-color: var(--danger); }
.btn { font: 600 1rem var(--sans); color: #1a1204; background: linear-gradient(180deg, var(--gold-2), var(--gold)); border: 0; border-radius: 10px; padding: .85rem 1.4rem; min-height: 3.1rem; cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .2s, filter .2s; box-shadow: 0 8px 24px -10px rgba(232,182,76,.7); }
.btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: .4rem 0 .9rem; line-height: 1.5; }
.consent input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--gold); flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts { min-height: 65px; margin-bottom: .6rem; }
.status { margin: .8rem 0 0; font-size: .95rem; border-radius: 10px; padding: 0; }
.status:not(:empty) { padding: .8rem 1rem; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.status.ok { border-color: rgba(63,208,192,.5); background: rgba(63,208,192,.08); }
.status.err { border-color: rgba(255,143,143,.5); background: rgba(255,143,143,.08); }
.fine { font-size: .78rem; color: #7f8aa3; margin: .9rem 0 0; }
.join.done form > :not(.status) { display: none; }

/* Hero art */
.art { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 90px -35px rgba(0,0,0,.9); aspect-ratio: 640/520; background: #0a1020; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art figcaption { position: absolute; left: .8rem; bottom: .7rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #8f9bb4; background: rgba(7,11,20,.7); padding: .25rem .6rem; border-radius: 999px; }
.art-wrap { position: relative; }
.art-wrap::before { content: ""; position: absolute; inset: -10px; border: 1px dashed rgba(232,182,76,.25); border-radius: 30px; z-index: -1; }

/* Sections */
section { position: relative; }
.section { padding: 5.5rem 0; }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
h2.title { font: 700 clamp(1.9rem, 5vw, 3rem)/1.1 var(--serif); margin: 0 0 1rem; }
.section-head p { color: var(--muted); margin: 0; }
.pillars { display: grid; gap: 1.1rem; }
.pillar { background: linear-gradient(180deg, rgba(17,26,48,.9), rgba(10,16,32,.9)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; position: relative; overflow: hidden; }
.pillar::after { content: attr(data-n); position: absolute; right: 1rem; top: .2rem; font: 700 5rem/1 var(--serif); color: rgba(232,182,76,.07); }
.pillar svg { width: 44px; height: 44px; margin-bottom: 1rem; }
.pillar h3 { font: 600 1.45rem var(--serif); margin: 0 0 .5rem; }
.pillar p { margin: 0; color: var(--muted); }
.band { background: linear-gradient(180deg, var(--bg), var(--bg-2) 50%, var(--bg)); border-block: 1px solid var(--line); }
.split { display: grid; gap: 2.5rem; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.ticks li { display: flex; gap: .8rem; color: var(--text); }
.ticks li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: .55rem; transform: rotate(45deg); background: var(--gold); }
details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
details summary { cursor: pointer; font: 600 1.15rem var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--gold); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: .7rem 0 0; max-width: 42rem; }
.cta-final { text-align: center; padding: 5rem 0 6rem; }
.cta-final p { color: var(--muted); max-width: 34rem; margin: 0 auto 1.8rem; }
.btn-link { display: inline-block; text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; color: #7f8aa3; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Simple pages */
.page { padding: 8rem 0 5rem; }
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.prose h2 { font: 600 1.5rem var(--serif); margin: 2.4rem 0 .6rem; }
.prose p, .prose li { color: #c4ccdc; }
.prose ul { padding-left: 1.2rem; }
.todo { border: 1px dashed var(--gold); background: rgba(232,182,76,.07); padding: .15rem .5rem; border-radius: 6px; color: var(--gold-2); font-weight: 500; }
.center-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.center-page .card { max-width: 34rem; }
.center-page h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
.center-page p { color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 420px) { .join { padding: 1.1rem 1rem; } }
@media (min-width: 640px) { .row { flex-direction: row; } .row .field-grow { flex: 1; } }
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
