@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/inter-tight-700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #061210;
  --bg-2: #0a1f1c;
  --ink: #eef7f5;
  --ink-2: #b9cfca;
  --ink-3: #7f9a94;
  --tone: 79 209 197;
  --accent: rgb(var(--tone));
  --accent-deep: #0f766e;
  --line: rgba(238, 247, 245, 0.1);
  --card: rgba(14, 38, 34, 0.55);
  --card-line: rgb(var(--tone) / 0.16);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 40px -18px rgba(0, 0, 0, 0.75), 0 2px 8px rgba(0, 0, 0, 0.3);
  --head: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(110% 80% at 50% 35%, color-mix(in srgb, rgb(var(--tone)) 9%, var(--bg-2)), var(--bg) 65%);
  background-color: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

a { color: inherit; }

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.ready #scene { opacity: 1; }

/* Darker edges keep the words readable over the 3D scene. */
.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(3, 10, 9, 0.7)),
    linear-gradient(to bottom, rgba(3, 10, 9, 0.55), transparent 18%, transparent 78%, rgba(3, 10, 9, 0.6));
}

.progress {
  position: fixed;
  z-index: 6;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(238, 247, 245, 0.06);
}

.progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  box-shadow: 0 0 12px rgb(var(--tone) / 0.6);
}

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: max(18px, env(safe-area-inset-top)) clamp(16px, 4vw, 48px) 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.brand img { border-radius: 7px; box-shadow: 0 4px 14px rgba(15, 118, 110, 0.45); }

.count {
  font: 500 13px/1 var(--mono);
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.count b { color: var(--ink); font-weight: 600; }

.bar-cta {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}

.bar-cta:hover { border-color: var(--accent); transform: translateY(-1px); }

#stage {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 104px clamp(16px, 6vw, 104px) 72px;
  visibility: hidden;
}

.scene.on { visibility: visible; }
.scene.on a, .scene.on .term code { pointer-events: auto; }

.scene[data-side="left"] { align-items: flex-start; }
.scene[data-side="right"] { align-items: flex-end; }
.scene[data-side="left"] > *, .scene[data-side="right"] > * { width: min(580px, 46vw); }
.scene[data-side="center"] { align-items: center; text-align: center; justify-content: flex-end; padding-bottom: max(96px, 12vh); }
.scene[data-side="center"] > * { max-width: 780px; }

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 6px 12px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: rgb(var(--tone) / 0.08);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.scene[data-side] > .eyebrow { width: fit-content; max-width: 100%; }

.headline {
  margin: 0;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(52px, 7.6vw, 124px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.scene[data-side="left"] .headline,
.scene[data-side="right"] .headline { font-size: clamp(40px, 4.6vw, 76px); }

.headline .w { display: inline-block; white-space: nowrap; }
.headline .c { display: inline-block; will-change: transform, opacity; }

.lede {
  margin: 20px 0 0;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-2);
}

/* Feature cards. */
.facts {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.facts li {
  position: relative;
  padding: 14px 14px 14px 38px;
  border: 1px solid var(--card-line);
  border-radius: 14px;
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 17px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px rgb(var(--tone) / 0.55);
}

.facts strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
}

.facts.tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts.tools li { padding: 12px 12px 12px 34px; font-size: 13px; }
.facts.tools li::before { left: 12px; top: 15px; width: 10px; height: 10px; }

/* The terminal card in the AI scene. */
.term {
  margin-top: 22px;
  border: 1px solid var(--card-line);
  border-radius: 14px;
  background: rgba(3, 12, 11, 0.78);
  box-shadow: var(--shadow), 0 0 60px -20px rgb(var(--tone) / 0.45);
  overflow: hidden;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}

.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(238, 247, 245, 0.16); }
.term-bar span { margin-left: 8px; }

.term code {
  display: block;
  padding: 14px 14px 6px;
  font: 13.5px/1.5 var(--mono);
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
}

.term code b { color: var(--accent); font-weight: 400; margin-right: 6px; }
.term small { display: block; padding: 0 14px 12px; font-size: 12.5px; color: var(--ink-3); }

.numbers {
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.numbers div {
  padding: 16px;
  border: 1px solid var(--card-line);
  border-radius: 14px;
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.numbers dt { font-family: var(--head); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(32px, 3.2vw, 52px); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.numbers dd { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-3); }

.actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--card-line);
  text-decoration: none;
  font-weight: 600;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn.primary { background: var(--accent); color: #04211e; border-color: var(--accent); box-shadow: var(--shadow), 0 10px 40px -10px rgb(var(--tone) / 0.8); }
.btn.primary:hover { background: #72e3d8; }

.fine { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.fine a { color: var(--ink-2); }

.btn:focus-visible, .bar a:focus-visible, .dots button:focus-visible, .fine a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.dots {
  position: fixed;
  z-index: 5;
  right: clamp(10px, 2vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 0;
  justify-items: center;
}

/* A 24px target around a small mark. */
.dots button {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.dots button::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(238, 247, 245, 0.25);
  transition: background 0.25s, height 0.25s, top 0.25s;
}

.dots button:hover::after { background: var(--ink-2); }
.dots button[aria-current="true"]::after { top: 2px; height: 20px; background: var(--accent); box-shadow: 0 0 10px rgb(var(--tone) / 0.6); }

.hint {
  position: fixed;
  z-index: 3;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: opacity 0.4s;
}

.hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 26px;
  margin: 8px auto 0;
  background: linear-gradient(var(--accent), transparent);
  animation: drip 1.8s ease-in-out infinite;
  transform-origin: top;
}

@keyframes drip {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hint::after { animation: none; }
}

@media (max-width: 1100px) {
  .facts.tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones: the seal sits on top, the words below it. */
@media (max-width: 760px) {
  .scene,
  .scene[data-side="left"],
  .scene[data-side="right"] {
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
    padding: 88px 16px max(36px, env(safe-area-inset-bottom));
  }
  .scene[data-side] > * { width: 100%; max-width: calc(100vw - 32px); min-width: 0; }
  .scene[data-side] > .eyebrow { width: fit-content; }
  .scene[data-side="center"] { align-items: center; text-align: center; }
  .headline, .scene[data-side] .headline { font-size: clamp(36px, 10.5vw, 56px); }
  .eyebrow { margin-bottom: 10px; font-size: 11px; }
  .lede { font-size: 15px; margin-top: 10px; }
  .facts, .facts.tools { margin-top: 12px; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li, .facts.tools li { padding: 9px 9px 9px 26px; font-size: 12.5px; border-radius: 11px; }
  .facts li::before, .facts.tools li::before { left: 9px; top: 13px; width: 9px; height: 9px; }
  .facts strong { font-size: 13px; }
  .facts.tools li:nth-child(n + 5) { display: none; }
  .term { margin-top: 12px; }
  .term-bar { display: none; }
  .term code { font-size: 11.5px; padding: 10px 12px 4px; }
  .term small { font-size: 11.5px; padding: 0 12px 10px; }
  .numbers { gap: 6px; margin-top: 14px; }
  .numbers div { padding: 10px; }
  .numbers dd { font-size: 12px; }
  .count, .dots, .hint { display: none; }
}

@media (max-width: 760px) and (max-height: 760px) {
  #s2 .lede { display: none; }
  .facts li:nth-child(n + 3) { display: none; }
}

/* Without JavaScript: a plain page that scrolls. */
html:not(.js), html:not(.js) body { overflow: auto; height: auto; }
html:not(.js) #stage { position: static; pointer-events: auto; }
html:not(.js) .scene { position: relative; visibility: visible; min-height: 80vh; }
html:not(.js) #scene, html:not(.js) .dots, html:not(.js) .hint, html:not(.js) .veil, html:not(.js) .progress, html:not(.js) .count { display: none; }

/* Film grain over everything, very light. */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 4;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* The browser scene: a login field with Sealkey's suggestions. */
.fill {
  margin-top: 22px;
  border: 1px solid var(--card-line);
  border-radius: 14px;
  background: rgba(3, 12, 11, 0.72);
  box-shadow: var(--shadow), 0 0 60px -24px rgb(var(--tone) / 0.5);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.fill-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font: 12px/1 var(--mono);
  color: var(--ink-3);
}

.fill-bar i { width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid var(--ink-3); }

.fill-field {
  position: relative;
  margin: 14px 14px 0;
  padding: 11px 12px;
  border: 1.5px solid rgb(var(--tone) / 0.7);
  border-radius: 9px;
  box-shadow: 0 0 0 4px rgb(var(--tone) / 0.12);
  font-size: 13px;
  color: var(--ink-3);
}

.fill-caret {
  display: inline-block;
  width: 1.5px;
  height: 15px;
  margin-left: 10px;
  vertical-align: -3px;
  background: var(--ink);
  animation: caret 1.1s steps(1) infinite;
}

@keyframes caret { 50% { opacity: 0; } }

.fill-menu {
  margin: 8px 14px 14px;
  padding: 4px;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  background: rgba(10, 28, 25, 0.95);
}

.fill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.fill-item.on { background: rgb(var(--tone) / 0.12); }
.fill-item span { flex: 1; min-width: 0; }
.fill-item strong { display: block; color: var(--ink); font-weight: 600; font-size: 13px; }

.fill-mono {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #1f2328;
  color: #fff;
  font: 700 13px/1 var(--body);
}

.fill-item kbd {
  padding: 3px 6px;
  border: 1px solid var(--card-line);
  border-radius: 5px;
  font: 11px/1 var(--mono);
  color: var(--ink-3);
}

@media (prefers-reduced-motion: reduce) {
  .fill-caret { animation: none; }
}

@media (max-width: 760px) {
  .fill { margin-top: 12px; }
  .fill-bar { display: none; }
  .fill-item:nth-child(2) { display: none; }
  #s1 .facts li:nth-child(n + 3) { display: none; }
}
