/* Octropy's landing, the first screen (section.hero), 2026-11-26, tenth pass. Kept apart from
   octropy.css so it can be reworked on its own; the tokens come from octropy.css. The sky and the
   ring of light round the title are drawn by sky.js; this gradient stands in where WebGL2 cannot. */

.hero {
  position: relative; isolation: isolate; overflow: hidden; height: 100svh; min-height: 700px; max-height: 1180px;
  background: radial-gradient(56% 50% at 50% 0%, #020a22 0 70%, #1a5cf0 86%, transparent 100%), linear-gradient(#071a4f, #2470ff 40%, #8bb8ff 65%, #eaf2ff 88%, #fff);
}
/* behind the sky: navy above, white below, as the sky itself ends, so a sub-pixel gap at the
   hero's foot (Zen/Firefox while scrolling, 2026-11-27) shows white on white, never a dark line */
.hero.lit { background: linear-gradient(#071a4f 0 50%, #fff 50%); }
.hero canvas.sky { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: -2; }
.hero-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(128px, 21vh, 210px) var(--gut) 0; }
.hero h1 { font: 500 clamp(40px, min(5.4vw, 8.6vh), 84px)/1 var(--sans); letter-spacing: -.055em; color: #fff; text-shadow: 0 0 22px rgba(200, 225, 255, .22); }
.hero h1 span { display: block; }
.hero .go { margin-top: clamp(28px, 4.4vh, 40px); }
.hero .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(6, 18, 60, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .btn.ghost:hover { background: rgba(6, 18, 60, .5); }

/* Built on Octropy: the apps, small and pale at the foot of the sky. */
.built { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(40px, 9vh, 100px); display: grid; justify-items: center; gap: 18px; padding: 0 var(--gut); }
.built p { font: 450 12px/1 var(--mono); letter-spacing: .02em; color: #6f8fc4; }
.built ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 6vw, 84px); }
.built li { display: flex; align-items: center; }
.built a { display: inline-flex; align-items: center; gap: 10px; color: #7e9fd6; text-decoration: none; transition: color .3s; }
.built a:hover { color: #2f6bff; }
.built svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.built svg circle { fill: currentColor; stroke: none; }
.built a span { font: 600 22px/1 var(--sans); letter-spacing: -.035em; }
.built .next { gap: 3px; font: 450 15px/1 var(--mono); color: #a7bfe6; }
.built .next i { width: .55em; height: 1.1em; background: #a7bfe6; animation: blink 1.1s steps(1) infinite; }

/* Phones (2026-11-27, Lars: "the same vibe"): the title one line per half, the two buttons at their
   own size side by side, the whole a little lower so it sits in the middle of the sky. */
@media (max-width: 560px) {
  .hero { min-height: 600px; }
  .hero-in { padding-top: clamp(150px, 31svh, 280px); }
  .hero h1 { font-size: min(10vw, 46px); }
  .hero .go { margin-top: 30px; }
  .built { gap: 14px; }
  .built svg { width: 30px; height: 30px; }
  .built a span { font-size: 19px; }
}
@media (max-height: 760px) and (min-width: 561px) { .built { bottom: 24px; } }
/* compact: the sky ends sooner, so the apps at its foot sit closer under the buttons (2026-11-27);
   drop the class in index.html for the full-screen sky again, e.g. once investors stand there too. */
.hero.compact { height: 80svh; min-height: 620px; max-height: 940px; }
@supports (height: round(down, 80svh, 1px)) { .hero.compact { height: round(down, 80svh, 1px); } }
.hero.compact .built { bottom: clamp(34px, 6vh, 72px); }
@media (max-width: 560px) { .hero.compact { height: 86svh; height: round(down, 86svh, 1px); min-height: 560px; } .hero.compact .hero-in { padding-top: clamp(140px, 27svh, 240px); } }

/* The one page-load moment: the words arrive as the light comes on (sky.js adds .on). */
.js .hero-in > * { opacity: 0; transform: translateY(10px); filter: blur(6px); transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1), filter 1s cubic-bezier(.2, .7, .2, 1); }
.js .hero.on .hero-in > * { opacity: 1; transform: none; filter: none; }
.js .hero.on h1 { transition-delay: .15s; }
.js .hero.on .go { transition-delay: .45s; }

@media (prefers-reduced-motion: reduce) { .js .hero-in > * { opacity: 1; transform: none; filter: none; transition: none; } .built .next i { animation: none; } }
