:root {
  color-scheme: dark;
  --home-bg: #080b10;
  --home-ink: #f3f4f6;
  --home-muted: #a0a6b1;
  --home-subtle: #848d9b;
  --home-line: #242931;
  --home-orange: #ff8a45;
  --home-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--home-bg); color: var(--home-ink); font-family: Inter, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--home-orange); outline-offset: 6px; }
::selection { color: var(--home-bg); background: var(--home-orange); }
[hidden] { display: none !important; }
.site-frame { width: min(100% - 6rem, 1320px); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -6rem; z-index: 10; padding: 1rem; background: var(--home-orange); color: var(--home-bg); }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--home-line); }
.site-brand { display: inline-flex; flex: 0 0 auto; }
.site-brand img { display: block; width: 153px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 2.5rem; font-size: .875rem; }
.nav-explore { color: #b8bdc6; transition: color .18s ease; }
.nav-explore:hover, .text-link:hover, .site-footer a:hover { color: var(--home-orange); }
.button { min-height: 52px; display: inline-flex; justify-content: center; align-items: center; gap: 2rem; padding: .875rem 1.35rem; font-size: .9375rem; font-weight: 600; border: 1px solid transparent; border-radius: 5px; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.arrow-icon { display: block; width: 1rem; height: 1rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.button .arrow-icon { width: 1.25rem; height: 1.25rem; }
.button-small { min-height: 44px; padding: .65rem 1.1rem; font-size: .875rem; gap: 1.6rem; }
.button-outline { border-color: #444a54; background: #11151b; }
.button-outline:hover { background: #20262e; border-color: #8c929b; }
.button-primary { color: #14100c; background: var(--home-orange); border-color: var(--home-orange); box-shadow: 0 0 30px #fa7b2712; }
.button-primary:hover { background: #ffa36e; border-color: #ffa36e; transform: translateY(-2px); }

.home-hero { position: relative; isolation: isolate; min-height: 600px; display: flex; align-items: center; padding: 84px 0; }
.hero-copy { position: relative; z-index: 2; width: 680px; max-width: 62%; }
.eyebrow { margin: 0; color: var(--home-orange); font: 500 .75rem/1.6 var(--home-mono); letter-spacing: .12em; }
.hero-copy .eyebrow { display: flex; gap: .7rem; align-items: center; margin-bottom: 30px; }
.signal-mark { width: 7px; height: 7px; background: var(--home-orange); box-shadow: 0 0 14px #ff8a4580; }
h1 { margin: 0; font-size: clamp(3.5rem, 6.05vw, 5.65rem); font-weight: 500; line-height: 1.055; letter-spacing: -.065em; }
.title-accent { color: var(--home-orange); white-space: nowrap; }
.hero-description { max-width: 490px; margin: 28px 0 0; color: #b4bac3; font-size: 1.125rem; line-height: 1.75; letter-spacing: -.015em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.65rem; align-items: center; margin-top: 34px; }
.text-link { display: inline-flex; align-items: center; gap: .8rem; min-height: 44px; font-size: .875rem; color: #c0c5cf; transition: color .18s ease; }
.hero-art { position: absolute; z-index: -1; top: 8px; bottom: 8px; left: 37%; right: -3rem; overflow: hidden; }
.orbit-motion { position: absolute; inset: 0; animation: orbit-drift 18s ease-in-out infinite alternate; animation-play-state: paused; }
.home-hero[data-motion="running"] .orbit-motion { animation-play-state: running; }
.orbit-image { position: absolute; height: 100%; width: 135%; max-width: none; object-fit: cover; object-position: 60% 50%; top: 0; left: -19%; opacity: .88; mask-image: linear-gradient(to right, transparent, #000 23%, #000 89%, transparent), linear-gradient(to bottom, transparent, #000 15%, #000 82%, transparent); mask-composite: intersect; }
.art-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#b9c2d20a 1px, transparent 1px), linear-gradient(90deg, #b9c2d20a 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse at 62% 48%, #000 10%, transparent 70%); }
.signal-node { position: absolute; display: flex; align-items: center; gap: .6rem; padding: .45rem .65rem; border: 1px solid #8c6b493d; border-radius: 3px; background: #080b10d9; color: #dbc9b7; font: .75rem/1.5 var(--home-mono); }
.signal-node i { width: 5px; height: 5px; flex: 0 0 auto; background: #ffbd80; border-radius: 50%; box-shadow: 0 0 10px #ff8a4580; }
.node-visibility { right: 12%; top: 31%; }
.node-sentiment { left: 42%; top: 59%; }
.node-sources { right: 14%; bottom: 22%; }

.signals-section { padding: 56px 0; border-top: 1px solid var(--home-line); }
.section-intro { margin-bottom: 32px; }
h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 500; line-height: 1.2; letter-spacing: -.045em; }
.signal-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--home-line); background: #0c1016; }
.signal-card { min-width: 0; padding: 28px 30px; }
.signal-card + .signal-card { border-left: 1px solid var(--home-line); }
.card-top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.card-number { color: var(--home-subtle); font: .75rem/1.6 var(--home-mono); letter-spacing: .08em; }
.card-top svg { color: var(--home-orange); width: 26px; height: 26px; flex: 0 0 auto; }
h3 { margin: 29px 0 12px; font-size: 1.25rem; font-weight: 500; line-height: 1.3; letter-spacing: -.03em; }
.signal-card p { margin: 0; font-size: 1rem; color: var(--home-muted); line-height: 1.7; }
.site-footer { min-height: 95px; padding-block: 1.25rem; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; border-top: 1px solid var(--home-line); color: var(--home-subtle); font-size: .8125rem; line-height: 1.8; }
.site-footer a { display: flex; align-items: center; gap: 1rem; min-height: 44px; flex-shrink: 0; color: #c4cad2; }
.site-footer { flex-wrap: wrap; }
.site-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }

/* Sign-in shares the public site's visual language and existing OTP flow. */
.login-main { position: relative; isolation: isolate; min-height: calc(100svh - 196px); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem; padding: 5rem 0; }
.login-intro { position: relative; padding: 3rem 0; }
.login-intro h1 { margin: 0; font-size: clamp(2.8rem, 4.5vw, 4.75rem); }
.login-art { position: absolute; z-index: -1; width: 100%; height: 180%; left: 0; top: -40%; object-fit: cover; opacity: .25; mask-image: radial-gradient(ellipse, #000 15%, transparent 65%); pointer-events: none; }
.login-card { width: 100%; max-width: 460px; justify-self: end; border: 1px solid #32363e; border-radius: 8px; padding: 38px; background: #0e1219; }
.login-card h2 { font-size: 1.875rem; }
.login-card > p { margin: 14px 0 28px; color: var(--home-muted); line-height: 1.7; font-size: 1rem; }
.login-card form { display: grid; gap: 20px; }
.login-card label { display: grid; gap: 10px; color: #ced2d9; font-size: .875rem; }
.login-card input { min-width: 0; width: 100%; min-height: 50px; border: 1px solid #444b58; border-radius: 4px; padding: 12px; background: var(--home-bg); color: var(--home-ink); font-size: 1rem; }
.login-card button { cursor: pointer; }
.login-card .auth-link-button { min-height: 44px; border: 0; background: transparent; color: var(--home-muted); font-size: .875rem; }
.login-card .auth-link-button:hover { color: var(--home-orange); }
.login-card .auth-status { min-height: 24px; margin: 20px 0 0; font-size: .875rem; overflow-wrap: anywhere; }
.login-card .auth-status.error { color: #ffa391; }

@keyframes orbit-drift { from { transform: translate3d(0, 0, 0) rotate(-.6deg); } to { transform: translate3d(-6px, -9px, 0) rotate(.6deg); } }
@media (min-width: 1600px) { .home-hero { min-height: 660px; } }
@media (max-width: 1100px) {
  .site-frame { width: calc(100% - 4rem); }
  .home-hero { min-height: 580px; }
  .hero-copy { max-width: 68%; }
  .hero-art { left: 31%; right: -2rem; }
  .node-sentiment { left: 55%; }
  .node-visibility { right: 6%; }
  .signal-card { padding: 25px 22px; }
  .login-main { gap: 3rem; }
  .login-card { padding: 28px; }
}
@media (max-width: 900px) {
  .site-frame { width: calc(100% - 2.5rem); }
  .site-header { min-height: 84px; gap: 1rem; }
  .site-brand img { width: 132px; }
  .site-nav { gap: 1.5rem; }
  .nav-explore { display: none; }
  .home-hero { min-height: 0; padding: 44px 0 0; flex-direction: column; align-items: stretch; }
  .hero-copy { width: 100%; max-width: 100%; order: -1; }
  .hero-copy .eyebrow { margin-bottom: 20px; }
  h1 { font-size: clamp(2.25rem, 10.5vw, 4.3rem); letter-spacing: -.06em; }
  .hero-description { margin-top: 20px; max-width: 480px; font-size: 1rem; line-height: 1.65; }
  .hero-actions { gap: .5rem 1.5rem; margin-top: 24px; }
  .hero-art { position: relative; inset: auto; align-self: center; width: calc(100% + 2.5rem); max-width: 640px; height: clamp(240px, 70vw, 400px); }
  .orbit-image { width: 120%; left: -24%; object-position: 50% 48%; }
  .signal-node { display: none; }
  .signals-section { padding-block: 36px; }
  .section-intro { margin-bottom: 25px; }
  h3 { margin-top: 22px; }
  .site-footer { font-size: .75rem; align-items: flex-start; }
  .site-footer > span { max-width: 230px; }
  .login-main { min-height: calc(100svh - 180px); grid-template-columns: 1fr; gap: 20px; padding: 38px 0; }
  .login-intro { padding: 0; }
  .login-intro h1 { font-size: 2.75rem; }
  .login-card { justify-self: start; max-width: 100%; padding: 26px; }
}
@media (max-width: 600px) {
  /* Keep the planet in the same composition as the headline on phones. */
  .home-hero { min-height: 500px; padding: 44px 0 80px; justify-content: flex-start; }
  .hero-art { position: absolute; inset: 0 -1.25rem; align-self: auto; width: auto; max-width: none; height: 100%; pointer-events: none; }
  .hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--home-bg), #080b10b3 35%, #080b1000 85%), linear-gradient(0deg, var(--home-bg), #080b1000 65%); }
  .orbit-image { width: 920px; height: auto; top: -20px; left: calc(100% - 690px); opacity: .85; mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 78%, transparent); }
  .hero-copy { text-shadow: 0 2px 20px var(--home-bg); }
  .hero-description { max-width: 270px; }
  .hero-actions { display: grid; gap: 4px; margin-top: 24px; text-shadow: none; }
  .hero-actions .text-link { justify-content: center; }
  .signal-cards { grid-template-columns: 1fr; }
  .signal-card { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; padding: 24px 20px; }
  .signal-card + .signal-card { border-left: 0; border-top: 1px solid var(--home-line); }
  .card-top { display: contents; }
  .card-number { grid-column: 1; grid-row: 1; align-self: center; }
  .card-top svg { display: none; }
  .signal-card h3 { grid-column: 2; margin: 0; }
  .signal-card p { grid-column: 2; margin-top: 10px; font-size: .9375rem; }
}
@media (max-width: 380px) {
  .site-frame { width: calc(100% - 2rem); }
  .button-small { gap: 1rem; }
  .hero-art { inset-inline: -1rem; }
  .signal-card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
