:root {
  color-scheme: dark;
  --bg: #050b12;
  --bg-deep: #020608;
  --ink: #effff9;
  --muted: rgb(212 231 224 / 68%);
  --muted-strong: rgb(232 249 243 / 84%);
  --mint: #7cf7c3;
  --mint-strong: #a4ffd9;
  --mint-soft: rgb(124 247 195 / 14%);
  --line: rgb(192 255 232 / 16%);
  --line-strong: rgb(164 255 217 / 38%);
  --panel: rgb(7 18 22 / 78%);
  --max: 1160px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgb(35 91 98 / 26%), transparent 34rem),
    linear-gradient(180deg, #06111b 0%, var(--bg-deep) 54%, #030706 100%);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: '';
  background-image:
    linear-gradient(rgb(124 247 195 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(124 247 195 / 4%) 1px, transparent 1px);
  background-position:
    0 0,
    0 0;
  background-size: 64px 64px;
  mask-image: linear-gradient(
    180deg,
    rgb(0 0 0 / 78%),
    rgb(0 0 0 / 18%) 70%,
    transparent
  );
  animation: grid-drift 28s linear infinite;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: '';
  background:
    linear-gradient(
      115deg,
      transparent 0 45%,
      rgb(124 247 195 / 6%) 50%,
      transparent 56%
    ),
    linear-gradient(180deg, transparent, rgb(124 247 195 / 4%), transparent);
  background-size:
    220% 220%,
    100% 160%;
  opacity: 0.72;
  animation: aurora-drift 24s ease-in-out infinite alternate;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

#field-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.82;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  left: var(--cursor-x, 50vw);
  top: var(--cursor-y, 45vh);
  z-index: -1;
  width: 32rem;
  height: 32rem;
  background: radial-gradient(circle, rgb(124 247 195 / 10%), transparent 62%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 500ms var(--ease);
}

body.has-pointer .cursor-glow {
  opacity: 1;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 48px 24px;
  overflow: hidden;
}

.hero-shell {
  display: grid;
  width: min(100%, var(--max));
  gap: 26px;
  justify-items: center;
  text-align: center;
}

.brand-mark {
  display: inline-grid;
  gap: 14px;
  justify-items: center;
}

.logo-ring {
  position: relative;
  display: grid;
  width: 100px;
  height: 100px;
  place-items: center;
}

.logo-ring::before,
.logo-ring::after {
  position: absolute;
  inset: 0;
  content: '';
  border: 1px solid rgb(124 247 195 / 30%);
  border-radius: 50%;
  animation: ring-breathe 6s ease-in-out infinite;
}

.logo-ring::after {
  inset: 11px;
  border-color: rgb(124 247 195 / 20%);
  animation-delay: -2.2s;
}

.logo-ring img {
  position: relative;
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 0 22px rgb(124 247 195 / 22%));
}

.brand-name {
  color: var(--muted-strong);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 700;
}

.hero-copy {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.eyebrow {
  margin: 0;
  color: rgb(164 255 217 / 72%);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 920px;
  color: #f4fffb;
  font-size: clamp(54px, 8.8vw, 122px);
  font-weight: 760;
  line-height: 0.92;
}

.subline {
  max-width: 680px;
  color: var(--muted-strong);
  font-size: clamp(19px, 2.4vw, 29px);
  line-height: 1.18;
}

.quiet-line {
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.primary-link,
.secondary-link,
.early-form button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition:
    transform 180ms var(--ease),
    border-color 180ms var(--ease),
    background 180ms var(--ease),
    color 180ms var(--ease);
}

.primary-link,
.early-form button {
  padding: 0 22px;
  color: #02100b;
  background: var(--mint);
  border: 1px solid rgb(164 255 217 / 68%);
  box-shadow: 0 0 26px rgb(124 247 195 / 16%);
  font-size: 14px;
  font-weight: 800;
}

.secondary-link {
  padding: 0 18px;
  color: rgb(236 255 248 / 78%);
  background: rgb(255 255 255 / 3%);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.primary-link:hover,
.primary-link:focus-visible,
.secondary-link:hover,
.secondary-link:focus-visible,
.early-form button:hover,
.early-form button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.secondary-link:hover,
.secondary-link:focus-visible {
  border-color: var(--line-strong);
  background: rgb(124 247 195 / 7%);
}

.hero-boundary {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 32px;
  left: max(24px, calc((100vw - var(--max)) / 2));
  height: 1px;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(124 247 195 / 20%),
    transparent
  );
}

.hero-boundary span {
  display: block;
  width: 30%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(164 255 217 / 90%),
    transparent
  );
  animation: scan-line 8s ease-in-out infinite;
}

.hint-section {
  display: grid;
  max-width: var(--max);
  min-height: 58svh;
  align-content: center;
  gap: 24px;
  margin: 0 auto;
  padding: 110px 24px;
}

.hint {
  color: rgb(245 255 251 / 92%);
  font-size: clamp(34px, 6vw, 84px);
  font-weight: 720;
  line-height: 1;
}

.hint:nth-child(2) {
  color: rgb(214 239 231 / 76%);
}

.hint:nth-child(3) {
  color: rgb(164 255 217 / 70%);
}

.teaser-section {
  display: grid;
  max-width: var(--max);
  gap: 42px;
  margin: 0 auto;
  padding: 110px 24px;
}

.section-heading {
  display: grid;
  max-width: 620px;
  gap: 14px;
}

.section-heading h2,
.early-copy h2 {
  color: #f1fff9;
  font-size: clamp(36px, 5.6vw, 82px);
  font-weight: 740;
  line-height: 0.98;
}

.teaser-stage {
  position: relative;
  display: grid;
  min-height: 440px;
  grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  overflow: hidden;
  padding: 22px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 4%), rgb(255 255 255 / 1%)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.teaser-stage::before {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(
    180deg,
    transparent 0 48%,
    rgb(124 247 195 / 9%) 50%,
    transparent 54%
  );
  background-size: 100% 210%;
  opacity: 0.42;
  animation: vertical-scan 9s ease-in-out infinite;
}

.human-field,
.ai-field,
.protective-boundary {
  position: relative;
  z-index: 1;
}

.human-field,
.ai-field {
  display: grid;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 6%);
  border-radius: 8px;
}

.field-label {
  align-self: start;
  color: rgb(232 249 243 / 44%);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.data-thread {
  position: absolute;
  left: 8%;
  display: inline-flex;
  min-width: max-content;
  padding: 8px 11px;
  color: rgb(238 255 248 / 76%);
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 999px;
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 680;
  animation: data-drift 9s var(--ease) infinite;
}

.thread-one {
  top: 28%;
}

.thread-two {
  top: 50%;
  animation-delay: -2.8s;
}

.thread-three {
  top: 68%;
  animation-delay: -5.4s;
}

.protective-boundary {
  display: grid;
  place-items: center;
}

.boundary-line {
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    rgb(124 247 195 / 46%),
    transparent
  );
}

.boundary-ring {
  position: relative;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  background: rgb(124 247 195 / 7%);
  border: 1px solid rgb(124 247 195 / 30%);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgb(124 247 195 / 9%),
    0 0 40px rgb(124 247 195 / 12%);
  animation: boundary-pulse 5.6s ease-in-out infinite;
}

.boundary-ring img {
  width: 52px;
  height: 52px;
  opacity: 0.94;
}

.ai-field {
  background:
    linear-gradient(90deg, rgb(124 247 195 / 5%), transparent),
    repeating-linear-gradient(
      135deg,
      rgb(164 255 217 / 8%) 0 1px,
      transparent 1px 18px
    );
}

.ai-trace {
  position: absolute;
  right: 10%;
  width: 58%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(164 255 217 / 70%),
    transparent
  );
  opacity: 0.42;
  animation: ai-trace 7s ease-in-out infinite;
}

.ai-trace:nth-of-type(2) {
  top: 34%;
}

.ai-trace:nth-of-type(3) {
  top: 53%;
  animation-delay: -2.2s;
}

.ai-trace:nth-of-type(4) {
  top: 72%;
  animation-delay: -4.4s;
}

.principles-section {
  display: grid;
  max-width: var(--max);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 auto;
  padding: 70px 24px 110px;
}

.principle {
  display: grid;
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.principle span {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--mint);
  box-shadow: 0 0 18px rgb(124 247 195 / 52%);
}

.principle strong {
  color: rgb(240 255 249 / 90%);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 720;
}

.early-section {
  display: grid;
  max-width: var(--max);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: 42px;
  align-items: end;
  margin: 0 auto;
  padding: 110px 24px 130px;
}

.early-copy {
  display: grid;
  gap: 16px;
}

.early-copy p:last-child {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.48;
}

.early-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: rgb(255 255 255 / 4%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.early-form label {
  color: rgb(232 249 243 / 62%);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.early-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  color: var(--ink);
  background: rgb(1 10 12 / 78%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  outline: none;
  transition:
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.early-form input:focus {
  border-color: rgb(124 247 195 / 72%);
  box-shadow: 0 0 0 4px rgb(124 247 195 / 10%);
}

.form-note {
  color: rgb(212 231 224 / 58%);
  font-size: 12px;
  line-height: 1.4;
}

.share-panel {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.share-panel[hidden] {
  display: none;
}

.share-panel p {
  color: rgb(232 249 243 / 76%);
  font-size: 13px;
  line-height: 1.42;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-actions a,
.share-actions button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: rgb(232 249 243 / 78%);
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  transition:
    color 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease),
    transform 180ms var(--ease);
}

.share-actions a:hover,
.share-actions a:focus-visible,
.share-actions button:hover,
.share-actions button:focus-visible {
  color: var(--ink);
  background: rgb(124 247 195 / 11%);
  border-color: rgb(124 247 195 / 34%);
  outline: none;
  transform: translateY(-1px);
}

.site-footer {
  display: flex;
  max-width: var(--max);
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 28px 24px 46px;
  color: rgb(232 249 243 / 62%);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  transition: color 180ms var(--ease);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--mint);
  outline: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 900ms var(--ease),
    transform 900ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes grid-drift {
  from {
    background-position:
      0 0,
      0 0;
  }
  to {
    background-position:
      64px 128px,
      128px 64px;
  }
}

@keyframes aurora-drift {
  from {
    background-position:
      0% 50%,
      0 0;
  }
  to {
    background-position:
      100% 45%,
      0 100%;
  }
}

@keyframes ring-breathe {
  0%,
  100% {
    opacity: 0.32;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.78;
    transform: scale(1.06);
  }
}

@keyframes scan-line {
  0% {
    transform: translateX(-110%);
  }
  48%,
  100% {
    transform: translateX(340%);
  }
}

@keyframes vertical-scan {
  0%,
  18% {
    background-position: 0 -90%;
  }
  54%,
  100% {
    background-position: 0 120%;
  }
}

@keyframes data-drift {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  18% {
    opacity: 0.78;
  }
  48% {
    color: rgb(4 18 14 / 90%);
    background: rgb(124 247 195 / 74%);
    border-color: rgb(164 255 217 / 72%);
    transform: translateX(calc(50vw - 170px));
  }
  62% {
    opacity: 0.56;
    color: rgb(230 255 247 / 66%);
    background: rgb(124 247 195 / 10%);
  }
  100% {
    opacity: 0;
    transform: translateX(calc(100vw - 250px));
  }
}

@keyframes boundary-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

@keyframes ai-trace {
  0%,
  100% {
    opacity: 0.18;
    transform: scaleX(0.7);
  }
  50% {
    opacity: 0.72;
    transform: scaleX(1);
  }
}

@media (max-width: 820px) {
  .hero {
    padding: 56px 18px;
  }

  .logo-ring {
    width: 98px;
    height: 98px;
  }

  .logo-ring img {
    width: 76px;
    height: 76px;
  }

  .teaser-stage {
    min-height: 500px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 96px 1fr;
  }

  .boundary-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgb(124 247 195 / 46%),
      transparent
    );
  }

  .data-thread {
    animation-name: data-drift-mobile;
  }

  .principles-section,
  .early-section {
    grid-template-columns: 1fr;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .early-form button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    width: 100%;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .hint-section,
  .teaser-section,
  .principles-section,
  .early-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-footer {
    display: grid;
  }
}

@keyframes data-drift-mobile {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  18% {
    opacity: 0.78;
  }
  48% {
    color: rgb(4 18 14 / 90%);
    background: rgb(124 247 195 / 74%);
    border-color: rgb(164 255 217 / 72%);
    transform: translateY(210px);
  }
  100% {
    opacity: 0;
    transform: translateY(360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #field-canvas,
  .cursor-glow {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
