@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700;800&display=swap');

/* The die photograph is fixed; everything scrolls over it. Colours are the
   house set - the same four /pages, /careers and the decks use - so the whole
   site reads as one thing. */

:root {
  --title:    #9cdcfe;   /* blue   */
  --subtitle: #e8e6a0;   /* yellow */
  --heading:  #c792ea;   /* purple */
  --teal:     #5fd7bf;
  --body:     #d4d4d4;
  --muted:    #a0a0a0;
  --faint:    #7a7a7a;
  --rule:     rgba(255,255,255,.15);
  --veil:     rgba(20,14,18,.84);
  --mono: 'Inconsolata', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.55;
  color: #ffffff;
  background: #14100f url('background.jpg') no-repeat center center fixed;
  background-size: cover;
  -webkit-font-smoothing: antialiased;
}

.container { padding: 0 8%; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 3px;
}

/* ---------- top bar: same veil as the panels, always ---------- */

.nav {
  position: sticky; top: 0; z-index: 30;
  background: var(--veil);
  backdrop-filter: blur(7px) saturate(.85);
  -webkit-backdrop-filter: blur(7px) saturate(.85);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  min-height: 64px; padding: 0 8%;
}
.nav-mark { font-size: 21px; font-weight: 700; text-decoration: none; margin-right: auto; }
.nav-mark .gen { color: var(--heading); }
.nav-mark .alpha { color: var(--teal); }
.nav-links { display: flex; gap: 24px; flex-wrap: wrap; }
.nav-links a {
  font-size: 16px; color: #fff; text-decoration: none;
  padding: 3px 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--teal); border-bottom-color: var(--teal); }

/* ---------- hero: the photograph, type sitting low like the booth backdrop ---------- */

.hero {
  min-height: calc(100svh - 64px);
  display: flex; flex-direction: column; justify-content: flex-start;
  position: relative;
  padding-top: 30svh;   /* booth backdrop puts the wordmark at 43%; a little higher here */
  padding-bottom: 6svh;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,8,12,.55) 0%, rgba(14,8,12,.22) 46%, rgba(14,8,12,0) 76%);
}
.hero .container { position: relative; width: 100%; }

h1 {
  font-size: clamp(76px, min(13vw, 13vh), 210px);
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.06;
  text-align: left;
}
h1 .tag {
  display: inline-block;
  font-size: 0.32em;      /* about half what it was */
  margin-top: 0.5em;
  color: #fff;            /* white, as on the booth backdrop */
}

.hero-cta { margin: 34px 0 0; }

.btn-demo {
  display: inline-block;
  background: var(--teal); color: #14100f;
  font-family: var(--mono); font-size: 17px; font-weight: 700;
  padding: 13px 26px; border-radius: 50px; text-decoration: none;
  border: 2px solid var(--teal); cursor: pointer;
}
.btn-demo:hover { background: transparent; color: var(--teal); }

.scroll-cue {
  display: inline-block; margin-top: 40px; font-size: 24px;
  color: rgba(255,255,255,.85); text-decoration: none;
}
.scroll-cue:hover { color: #fff; }
.scroll-cue .arr { display: inline-block; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0) } 50% { transform: translateY(5px) } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .arr { animation: none } }

/* ---------- panels: photo still visible, words still legible ---------- */

.panel {
  position: relative;
  background: var(--veil);
  backdrop-filter: blur(7px) saturate(.85);
  -webkit-backdrop-filter: blur(7px) saturate(.85);
  border-top: 1px solid var(--rule);
  padding: clamp(46px, 6vw, 82px) 0;
  scroll-margin-top: 64px;
}

h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15;
     margin: 0 0 26px; letter-spacing: -.01em; }
.p-updates h2 { color: var(--title); }
.p-careers h2 { color: var(--heading); }
.p-investors h2 { color: var(--teal); }
.p-contact h2 { color: var(--subtitle); }

.panel p { color: var(--body); max-width: 62ch; margin: 0 0 18px; }
/* one sentence, meant to hold one line until the viewport says otherwise */
.panel.p-careers p { max-width: none; }
.more { margin: 26px 0 0; }
.more a { color: var(--teal); font-weight: 700; text-decoration: none; }
.more a:hover { text-decoration: underline; text-underline-offset: 4px; }

.rows { display: flex; flex-direction: column; max-width: 860px; }
.row { display: block; text-decoration: none; color: inherit;
       padding: 17px 0; border-top: 1px solid var(--rule); }
.row:first-child { border-top: 0; padding-top: 0; }
.row-title { display: block; color: #fff; font-weight: 700; font-size: 19px; line-height: 1.3; }
.row:hover .row-title { color: var(--teal); }
.row-meta { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- investor wall: the deck's chip treatment, on a translucent card ---------- */

.wall { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.chip {
  display: flex; align-items: center; justify-content: center; flex: none;
  height: 84px; width: 240px; max-width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--rule); border-radius: 8px; padding: 12px 16px;
}
.chip img {
  max-height: 100%; max-width: 100%; object-fit: contain;
  filter: brightness(0) invert(1);   /* normalised to white, exactly as the decks do */
  opacity: .92; transition: opacity .18s;
}
a.chip { text-decoration: none; transition: border-color .18s, background-color .18s; }
a.chip:hover { border-color: var(--teal); background: rgba(255,255,255,.10); }
a.chip:hover img { opacity: 1; }
@media (max-width: 520px) { .chip { height: 68px; width: 100%; } }

/* ---------- email capture ---------- */

.signup { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--rule); }
.signup-lede { color: var(--subtitle); margin: 0 0 14px; }

.form-row { display: flex; flex-direction: row; align-items: center; gap: 15px; flex-wrap: wrap; margin: 0; }
.email-group {
  display: flex; align-items: center; width: 420px; max-width: 100%;
  border: 2px solid #fff; border-radius: 50px;
}
.email-group input[type="email"] {
  flex: 1; min-width: 0; background: transparent; color: #fff;
  font-size: 18px; font-family: var(--mono);
  padding: 10px 15px; border: none; outline: none; text-align: center;
}
.email-group input::placeholder { color: rgba(255,255,255,.8); }
.email-group .divider { width: 1px; height: 30px; background-color: #fff; }
.email-group .learn-more {
  background: transparent; color: #fff; font-size: 18px; font-family: var(--mono);
  padding: 10px 20px; border: none; cursor: pointer; border-radius: 0 50px 50px 0;
}
.email-group:hover { background-color: rgba(255,255,255,.2); }

.form-message {
  font-size: 16px; color: var(--teal); margin: 14px 0 0;
  opacity: 0; transition: opacity .4s ease;
}
.form-message.show { opacity: 1; }

/* ---------- footer ---------- */

.foot { padding: 44px 0 56px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 18px; }
.foot-links a { color: #fff; text-decoration: none; font-size: 16px; }
.foot-links a:hover { color: var(--teal); }
.panel p.legal { color: var(--faint); font-size: 14px; margin: 0; max-width: none; }

/* ---------- narrow viewports ---------- */

@media (max-width: 860px) {
  /* iOS ignores fixed attachment and janks, so let it scroll there */
  body { background-attachment: scroll; background-position: center top; }
  .hero { padding-top: 24svh; }
  .hero::before {
    background: linear-gradient(180deg, rgba(14,8,12,.5) 0%, rgba(14,8,12,.7) 55%, rgba(14,8,12,.8) 100%);
  }
  .panel, .nav { background: rgba(20,14,18,.9); }
  .container, .nav-inner { padding-left: 22px; padding-right: 22px; }
  .form-row, .email-group { width: 100%; }
  .btn-demo { width: 100%; text-align: center; }
}
