:root {
  --bg: #08111f;
  --bg-soft: #0d1830;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f6f8;
  --muted: #a8b3c8;
  --accent: #8fffd1;
  --accent-warm: #ffc883;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(143, 255, 209, 0.18), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(255, 200, 131, 0.2), transparent 24%),
    linear-gradient(180deg, #07101e 0%, #091426 38%, #07101c 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.site-header,
.section-grid,
.ticker {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand-logo {
  width: 40px;
  height: 40px;
}

.logo-stroke {
  fill: none;
  stroke-width: 3.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.logo-purple {
  stroke: #9e6bff;
}

.logo-cyan {
  stroke: #3ac9ff;
}

.logo-green {
  stroke: #52ecac;
}

.logo-red {
  stroke: #ff6358;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong,
.site-nav,
.header-cta,
.button,
.eyebrow,
.hero-metrics strong,
.card-index,
.platform-stack span,
.showcase-matrix span,
.vision-timeline span,
.panel-label,
.signal-card span,
.data-ribbon span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.brand-copy span,
.hero-text,
.company-card p,
.company-card li,
.platform-overview p,
.platform-stack p,
.showcase-panel p,
.vision-timeline p,
.contact-card p {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.78rem;
}

.site-nav a,
.header-cta,
.button {
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
}

.header-cta {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
}

.section-grid {
  padding: 48px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 88px);
  padding-top: 24px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
}

h1,
h2,
h3,
p,
ul,
blockquote {
  margin: 0;
}

h1,
h2 {
  line-height: 0.96;
  letter-spacing: -0.05em;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 8vw, 7.8rem);
  margin-top: 16px;
}

h1 span,
h2 span {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent-warm);
}

.hero-text {
  max-width: 62ch;
  margin-top: 22px;
  font-size: 1.04rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  min-width: 188px;
  padding: 16px 22px;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #5cc9ff);
  border-color: transparent;
  color: #04111c;
  font-weight: 700;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin-top: 34px;
  list-style: none;
}

.hero-metrics li,
.company-card,
.platform-stack article,
.showcase-panel,
.showcase-matrix div,
.vision-timeline article,
.contact-card,
.stage-panel,
.signal-card,
.data-ribbon {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero-metrics li {
  padding: 22px;
  border-radius: var(--radius-md);
}

.benova-chat,
.chat-message,
.chat-form textarea {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.benova-chat {
  margin-top: 22px;
  padding: 28px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.benova-chat::before {
  content: "";
  position: absolute;
  inset: auto -50px -50px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 201, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.benova-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.benova-chat-head h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.chat-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dffbf0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chat-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(143, 255, 209, 0.9);
}

.chat-window {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-top: 24px;
  max-height: 360px;
  padding-right: 8px;
  overflow: auto;
}

.chat-message {
  max-width: min(88%, 640px);
  padding: 18px 18px 16px;
  border-radius: 22px;
}

.chat-message p {
  color: #e9eef9;
  line-height: 1.75;
}

.chat-message-user {
  justify-self: end;
  background: linear-gradient(135deg, rgba(92, 201, 255, 0.16), rgba(143, 255, 209, 0.08));
}

.chat-message-assistant {
  justify-self: start;
}

.chat-role {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chat-form {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 138px;
  padding: 18px 20px;
  border-radius: 22px;
  color: var(--text);
  font: inherit;
}

.chat-form textarea::placeholder {
  color: #8f9bb0;
}

.chat-form textarea:focus {
  outline: 2px solid rgba(143, 255, 209, 0.28);
  outline-offset: 2px;
}

.chat-form-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
}

.chat-form-bar p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.chat-submit {
  min-width: 190px;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 1.35rem;
}

.hero-stage {
  position: relative;
  min-height: 640px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 40%, rgba(143, 255, 209, 0.22), transparent 22%),
    radial-gradient(circle at 30% 70%, rgba(92, 201, 255, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(9, 20, 38, 0.9), rgba(8, 17, 31, 0.84));
  overflow: hidden;
}

.logo-theater {
  position: absolute;
  inset: 56% auto auto 55%;
  width: min(82%, 520px);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  z-index: 2;
}

.logo-aura {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(143, 255, 209, 0.26), rgba(143, 255, 209, 0.08) 34%, transparent 68%),
    radial-gradient(circle at 30% 70%, rgba(92, 201, 255, 0.24), transparent 52%),
    radial-gradient(circle at 68% 28%, rgba(255, 99, 88, 0.2), transparent 44%);
  filter: blur(18px);
  animation: pulseGlow 5.2s ease-in-out infinite;
}

.logo-spinner {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-spinner-outer {
  width: 390px;
  height: 390px;
  border-top-color: rgba(143, 255, 209, 0.7);
  border-right-color: rgba(92, 201, 255, 0.28);
  animation: rotate 18s linear infinite;
}

.logo-spinner-inner {
  width: 290px;
  height: 290px;
  border-left-color: rgba(255, 99, 88, 0.48);
  border-bottom-color: rgba(158, 107, 255, 0.5);
  animation: rotateReverse 11s linear infinite;
}

.spark-ring {
  position: absolute;
  inset: 0;
  animation: rotate 10s linear infinite;
}

.spark-ring-two {
  animation-direction: reverse;
  animation-duration: 14s;
}

.spark-ring span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 3px;
  transform-origin: 0 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(143, 255, 209, 0.95), rgba(255, 255, 255, 0));
  box-shadow: 0 0 14px rgba(143, 255, 209, 0.7);
  opacity: 0.72;
}

.spark-ring-one span:nth-child(1) { transform: rotate(18deg) translateX(144px); }
.spark-ring-one span:nth-child(2) { transform: rotate(108deg) translateX(168px); }
.spark-ring-one span:nth-child(3) { transform: rotate(196deg) translateX(150px); }
.spark-ring-one span:nth-child(4) { transform: rotate(284deg) translateX(162px); }

.spark-ring-two span:nth-child(1) {
  transform: rotate(58deg) translateX(126px);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 99, 88, 0.95), rgba(255, 255, 255, 0));
  box-shadow: 0 0 16px rgba(255, 99, 88, 0.6);
}

.spark-ring-two span:nth-child(2) {
  transform: rotate(146deg) translateX(138px);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(158, 107, 255, 0.95), rgba(255, 255, 255, 0));
  box-shadow: 0 0 16px rgba(158, 107, 255, 0.55);
}

.spark-ring-two span:nth-child(3) {
  transform: rotate(232deg) translateX(132px);
}

.spark-ring-two span:nth-child(4) {
  transform: rotate(322deg) translateX(136px);
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  overflow: visible;
}

.hero-logo-emblem {
  transform-origin: 120px 88px;
  animation: logoFloat 6s ease-in-out infinite;
}

.logo-path,
.logo-glow {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.logo-path {
  stroke-width: 8;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: drawLogo 1.6s ease forwards;
}

.logo-glow {
  stroke-width: 12;
  opacity: 0.55;
  filter: url(#logoGlow);
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: drawLogo 1.6s ease forwards, shimmerPulse 2.8s ease-in-out infinite 1.6s;
}

.logo-path-purple,
.logo-glow.logo-path-purple {
  stroke: url(#strokePurple);
}

.logo-path-cyan,
.logo-glow.logo-path-cyan {
  stroke: url(#strokeCyan);
  animation-delay: 0.12s;
}

.logo-path-green,
.logo-glow.logo-path-green {
  stroke: url(#strokeGreen);
  animation-delay: 0.24s;
}

.logo-path-red,
.logo-glow.logo-path-red {
  stroke: url(#strokeRed);
  animation-delay: 0.36s;
}

.hero-wordmark text {
  fill: #f5f6f8;
  font-family: "Space Grotesk", sans-serif;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.22);
  opacity: 0;
  transform: translateX(16px);
  animation: wordmarkRise 800ms ease forwards 1.1s;
}

.logo-caption {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  color: rgba(245, 246, 248, 0.78);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

.stage-panel-main {
  position: absolute;
  top: 22px;
  left: 22px;
  width: min(38%, 228px);
  padding: 18px 18px 16px;
  border-radius: 22px;
  z-index: 3;
  background: linear-gradient(180deg, rgba(14, 23, 40, 0.72), rgba(14, 23, 40, 0.44));
}

.stage-panel-main strong {
  display: block;
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.35;
}

.stage-panel-main p {
  display: none;
}

.panel-label,
.signal-card span,
.data-ribbon span,
.card-index,
.platform-stack span,
.showcase-matrix span,
.vision-timeline span {
  color: var(--accent);
  font-size: 0.72rem;
}

.orbital {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: rotate 24s linear infinite;
}

.orbital::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--accent), #5cc9ff);
  box-shadow: 0 0 22px rgba(143, 255, 209, 0.8);
}

.orbital-one {
  inset: 110px;
}

.orbital-two {
  inset: 50px;
  animation-direction: reverse;
  animation-duration: 32s;
}

.signal-card,
.data-ribbon {
  position: absolute;
  padding: 18px 20px;
  border-radius: 20px;
}

.signal-card strong,
.data-ribbon strong {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
}

.signal-card-left {
  left: 26px;
  bottom: 92px;
  width: 220px;
  z-index: 3;
}

.signal-card-right {
  right: 24px;
  top: 54px;
  width: 230px;
  z-index: 3;
}

.data-ribbon {
  right: 48px;
  bottom: 34px;
  z-index: 3;
}

.ticker {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}

.ticker-track {
  display: flex;
  gap: 32px;
  min-width: max-content;
  animation: marquee 18s linear infinite;
}

.ticker-track span {
  color: #dce4f5;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.84rem;
}

.section-heading {
  max-width: 680px;
}

.section-heading h2,
.platform-overview h2,
.showcase-panel h2,
.vision-copy h2,
.contact-card h2 {
  margin-top: 14px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.company-grid,
.platform-section,
.showcase-section,
.vision-section {
  display: grid;
  gap: 22px;
}

.company-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px;
}

.company-card {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.company-card h3,
.platform-stack h3 {
  margin-top: 18px;
  font-size: 1.6rem;
}

.company-card p,
.platform-stack p,
.showcase-panel p,
.platform-overview p,
.contact-card p,
.vision-timeline p {
  line-height: 1.8;
}

.company-card p {
  margin-top: 14px;
}

.company-card ul {
  padding-left: 18px;
  margin-top: 18px;
  color: #dbe3f3;
  line-height: 1.9;
}

.platform-section,
.showcase-section,
.vision-section {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.platform-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.platform-stack article,
.showcase-panel,
.showcase-matrix div,
.vision-timeline article,
.contact-card {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.showcase-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.showcase-matrix strong {
  display: block;
  margin-top: 12px;
  font-size: 1.2rem;
}

.vision-timeline {
  display: grid;
  gap: 18px;
}

.manifesto {
  max-width: 980px;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.08;
  color: #f7f0e7;
}

.contact-card {
  position: relative;
  overflow: hidden;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 255, 209, 0.24), transparent 70%);
}

.contact-card .button-primary {
  margin-top: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes drawLogo {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes shimmerPulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.82;
  }
}

@keyframes wordmarkRise {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-7px);
  }
}

@media (max-width: 1080px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero,
  .platform-section,
  .showcase-section,
  .vision-section,
  .company-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-stage {
    min-height: 540px;
  }

  .logo-theater {
    inset: 58% auto auto 54%;
    width: min(90%, 520px);
  }

  .stage-panel-main {
    width: min(32%, 220px);
  }
}

@media (max-width: 760px) {
  .site-header,
  .section-grid,
  .ticker {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-nav {
    display: none;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .hero-metrics,
  .platform-stack,
  .showcase-matrix {
    grid-template-columns: 1fr;
  }

  .benova-chat-head,
  .chat-form-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .chat-message {
    max-width: 100%;
  }

  .hero-stage {
    min-height: 470px;
  }

  .logo-theater {
    inset: 56% auto auto 50%;
    width: calc(100% - 34px);
  }

  .hero-logo {
    width: 100%;
  }

  .hero-wordmark text {
    font-size: 42px;
  }

  .logo-spinner-outer {
    width: 300px;
    height: 300px;
  }

  .logo-spinner-inner {
    width: 220px;
    height: 220px;
  }

  .logo-aura {
    width: 240px;
    height: 240px;
  }

  .stage-panel-main {
    position: static;
    width: calc(100% - 40px);
    margin: 20px;
    padding: 18px 18px 16px;
  }

  .stage-panel-main p {
    display: block;
    margin-top: 12px;
    line-height: 1.55;
  }

  .signal-card-left,
  .signal-card-right,
  .data-ribbon {
    position: static;
    width: auto;
    margin: 16px 20px 0;
  }

  .orbital-one {
    inset: 100px 20px 30px;
  }

  .orbital-two {
    inset: 72px 42px 24px;
  }

  .manifesto {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

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