:root {
  --ink: #f4f7fb;
  --soft: #d8e0ea;
  --muted: #98a7bb;
  --dim: #6d7b8e;
  --bg: #04070d;
  --panel: rgba(8, 12, 21, 0.74);
  --panel-strong: rgba(9, 14, 24, 0.9);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --cyan: #6ee7ff;
  --ice: #d9f6ff;
  --teal: #7ff5d2;
  --gold: #e8bd70;
  --shadow: 0 28px 120px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(4, 7, 13, 0.72) 0%, rgba(4, 7, 13, 0.45) 44%, rgba(4, 7, 13, 0.1) 100%),
    linear-gradient(180deg, rgba(4, 7, 13, 0.05) 0%, rgba(4, 7, 13, 0.68) 64%, #04070d 100%),
    url("eonstar-hero-v2.png") center top / cover no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, rgba(110, 231, 255, 0.1) 28%, transparent 44%),
    radial-gradient(circle at 84% 18%, rgba(232, 189, 112, 0.13), transparent 24rem),
    radial-gradient(circle at 12% 78%, rgba(127, 245, 210, 0.08), transparent 28rem);
  opacity: 0.76;
}

a {
  color: inherit;
}

.wrap {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  width: 42vw;
  height: 1px;
  left: -45vw;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 255, 0.72), rgba(232, 189, 112, 0.34), transparent);
  filter: blur(0.2px);
  opacity: 0.5;
  transform: rotate(-12deg);
  animation: scan 9s cubic-bezier(.22,.61,.36,1) infinite;
}

.scan-line-a { top: 28%; animation-delay: 0s; }
.scan-line-b { top: 48%; animation-delay: 2.8s; opacity: 0.34; }
.scan-line-c { top: 72%; animation-delay: 5.4s; opacity: 0.26; }

@keyframes scan {
  0% { translate: 0 0; opacity: 0; }
  12% { opacity: 0.58; }
  70% { opacity: 0.2; }
  100% { translate: 150vw 0; opacity: 0; }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 16px 0 0;
  background: linear-gradient(180deg, rgba(4, 7, 13, 0.82), rgba(4, 7, 13, 0));
  pointer-events: none;
}

.nav {
  width: min(1200px, calc(100% - 56px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(5, 9, 16, 0.64);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(145%);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: white;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 0 10px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.nav-links a {
  position: relative;
  padding: 10px 15px;
  border-radius: 10px;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 138px 0 80px;
}

.hero-shine {
  position: absolute;
  inset: 16% -20% auto auto;
  width: 54vw;
  height: 34vw;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 10%, rgba(110, 231, 255, 0.12), rgba(232, 189, 112, 0.1), transparent 74%);
  transform: rotate(-10deg);
  filter: blur(18px);
  animation: breathe 6.5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.35; translate: 0 0; }
  50% { opacity: 0.72; translate: 2.5vw -1vw; }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.45fr);
  gap: 48px;
  align-items: end;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(.22,.61,.36,1);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), transparent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.1rem, 6.4vw, 6.65rem);
  font-weight: 800;
  line-height: 1;
  text-wrap: balance;
}

.hero-copy {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--soft);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  color: #031018;
  background: linear-gradient(135deg, var(--ice), var(--teal));
  box-shadow: 0 20px 70px rgba(110, 231, 255, 0.22);
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.72) 42%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 90px rgba(127, 245, 210, 0.28);
}

.button:hover::before {
  transform: translateX(120%);
}

.button.secondary {
  color: white;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.submit-button {
  font-size: 1.08rem;
}

.command-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(5, 9, 16, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%);
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-dot {
  color: var(--teal);
}

.status-dot::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 18px var(--teal);
}

.panel-meter {
  display: grid;
  gap: 10px;
  padding: 22px 20px;
}

.panel-meter span {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.panel-meter span::after {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  animation: meter 2.8s cubic-bezier(.22,.61,.36,1) infinite alternate;
}

@keyframes meter {
  from { transform: scaleX(0.72); transform-origin: left; opacity: 0.7; }
  to { transform: scaleX(1); transform-origin: left; opacity: 1; }
}

.panel-grid {
  display: grid;
  border-top: 1px solid var(--line);
}

.panel-grid div {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-grid div:last-child {
  border-bottom: 0;
}

.panel-grid strong {
  display: block;
  margin-bottom: 4px;
  color: white;
}

.panel-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker span {
  padding: 18px 34px;
  color: var(--soft);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 800;
  white-space: nowrap;
}

.ticker span::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 34px;
  border-radius: 999px;
  background: var(--gold);
  vertical-align: middle;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.section {
  padding: 96px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 0.9fr 0.75fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

h2 {
  font-size: clamp(2rem, 3.7vw, 3.9rem);
  line-height: 1.04;
  max-width: 820px;
}

.section-lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.lux-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.lux-card {
  position: relative;
  min-height: 310px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.018)),
    rgba(8, 12, 21, 0.74);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}

.lux-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent, rgba(110, 231, 255, 0.14), transparent 62%);
  transform: translateX(-105%);
  transition: transform 900ms ease;
}

.lux-card:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 231, 255, 0.32);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    rgba(8, 12, 21, 0.82);
}

.lux-card:hover::before {
  transform: translateX(105%);
}

.card-kicker {
  display: block;
  margin-bottom: 80px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lux-card h3 {
  margin-bottom: 14px;
  font-size: 1.72rem;
}

.lux-card p,
.system-row p,
.contact-copy p,
.legal-content p {
  margin: 0;
  color: var(--muted);
}

.systems-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

.agentic-section {
  padding-top: 0;
}

.agentic-block {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 42px;
  padding: 34px;
  border: 1px solid rgba(110, 231, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(130deg, rgba(110, 231, 255, 0.11), rgba(232, 189, 112, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(8, 12, 21, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.agentic-copy {
  display: grid;
  gap: 24px;
  align-content: end;
}

.agentic-copy p {
  margin: 0;
  color: var(--soft);
  font-size: 1.08rem;
}

.agentic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agentic-tags span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.86rem;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 54px;
}

.system-stack {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(6, 10, 18, 0.72);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.system-row {
  display: grid;
  grid-template-columns: 54px 0.8fr 1fr;
  gap: 20px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.system-row:last-child {
  border-bottom: 0;
}

.system-row span {
  color: var(--gold);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 800;
}

.system-row strong {
  color: white;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.18rem;
}

.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 21, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.proof-item {
  min-height: 156px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-value {
  display: block;
  margin-bottom: 14px;
  color: white;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
}

.proof-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 16px;
}

.contact-copy,
.contact-form,
.legal-content {
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(8, 12, 21, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.contact-copy {
  padding: 34px;
}

.contact-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
}

.contact-meta {
  display: grid;
  gap: 10px;
  margin-top: 32px;
  color: var(--soft);
}

.contact-meta a,
.legal-content .link {
  color: var(--teal);
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 15px;
  padding: 26px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 0.92rem;
  font-weight: 800;
}

.hidden-field {
  display: none;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: white;
  font: inherit;
  padding: 15px 16px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:focus,
textarea:focus {
  border-color: rgba(110, 231, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.11);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.site-footer {
  padding: 28px 0 42px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--soft);
  text-decoration: none;
}

.legal-page {
  padding: 136px 0 72px;
}

.legal-content {
  max-width: 880px;
  padding: 40px;
}

.legal-content h1 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 4vw, 3.9rem);
}

.legal-content p + p {
  margin-top: 16px;
}

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

@media (max-width: 760px) {
  .nav {
    width: min(100% - 28px, 1200px);
    min-height: auto;
    padding: 14px;
    align-items: flex-start;
    flex-direction: column;
    border-radius: 14px;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
    gap: 4px;
    padding: 4px;
  }

  .nav-links a {
    padding: 8px 4px;
    text-align: center;
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    padding-top: 168px;
  }

  .hero-grid,
  .section-head,
  .agentic-block,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .command-panel {
    max-width: 560px;
  }

  .proof {
    grid-template-columns: 1fr;
  }

  .lux-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .system-row {
    grid-template-columns: 42px 1fr;
  }

  .system-row p {
    grid-column: 2;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 28px, 1200px);
  }

  body::before {
    background:
      linear-gradient(90deg, rgba(4, 7, 13, 0.8), rgba(4, 7, 13, 0.5)),
      linear-gradient(180deg, rgba(4, 7, 13, 0.08), rgba(4, 7, 13, 0.74) 64%, #04070d 100%),
      url("eonstar-hero-v2.png") 58% top / auto 100vh no-repeat;
  }

  h1 {
    font-size: clamp(3.35rem, 15vw, 4.6rem);
  }

  h2 {
    font-size: clamp(2rem, 9vw, 2.85rem);
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .hero-actions,
  .footer-links {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .ticker span {
    padding-inline: 22px;
  }

  .lux-card,
  .agentic-block,
  .contact-copy,
  .contact-form,
  .legal-content {
    padding: 22px;
  }

  .lux-grid {
    grid-template-columns: 1fr;
  }
}
