/* ===================================================================
   TRINIVERSE — Design tokens
=================================================================== */
:root {
  --bg: #05060f;
  --bg-soft: #0a0d1c;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.09);
  --cyan: #5df2ff;
  --violet: #9b6bff;
  --magenta: #c56bff;
  --text: #eef1fb;
  --text-dim: #9aa3c0;
  --text-dimmer: #6b7395;
  --grad: linear-gradient(120deg, var(--cyan), var(--violet) 55%, var(--magenta));
  --radius: 18px;
  --maxw: 1200px;
  --shadow-glow: 0 0 60px rgba(93, 242, 255, 0.08);
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4 {
  font-family: "Orbitron", "Space Grotesk", sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.15;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan), 0 0 20px var(--cyan);
  flex-shrink: 0;
}

/* ===================================================================
   BACKGROUND LAYERS
=================================================================== */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(93, 242, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 242, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

#net {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ===================================================================
   NAV
=================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 6, 15, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--panel-border);
  padding: 12px 0;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.logo-mark { display: flex; filter: drop-shadow(0 0 8px rgba(93,242,255,0.5)); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a { color: var(--text-dim); transition: color 0.2s ease; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--grad);
  color: #05060f !important;
  font-weight: 700;
}
.nav-cta:hover { color: #05060f !important; filter: brightness(1.08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===================================================================
   HERO
=================================================================== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 32px 100px;
  text-align: center;
  overflow: hidden;
}
.hero-inner { max-width: 880px; margin: 0 auto; position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 70px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn svg { transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--grad);
  color: #05060f;
  box-shadow: 0 0 0 rgba(93,242,255,0);
}
.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(155, 107, 255, 0.35), 0 0 30px rgba(93,242,255,0.25);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: var(--panel-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(93,242,255,0.06);
  transform: translateY(-2px);
}
.btn-block { width: 100%; justify-content: center; }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}
.orb-a {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(93,242,255,0.35), transparent 70%);
  top: -140px; left: -120px;
  animation: float-a 14s ease-in-out infinite;
}
.orb-b {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(155,107,255,0.35), transparent 70%);
  bottom: -160px; right: -100px;
  animation: float-b 16s ease-in-out infinite;
}
@keyframes float-a {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(40px, 30px); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-30px, -40px); }
}

.scroll-cue {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1.5px solid var(--panel-border);
  border-radius: 20px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--cyan);
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { top: 6px; opacity: 1; }
  70% { opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

/* ===================================================================
   MARQUEE
=================================================================== */
.marquee-wrap {
  position: relative;
  z-index: 1;
  padding: 26px 0;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  background: var(--bg-soft);
}
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 18px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--text-dimmer);
}
.marquee-track span:nth-child(2n) { color: var(--cyan); opacity: 0.6; font-size: 0.7rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================================================================
   SECTIONS (shared)
=================================================================== */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 130px 32px;
}
.section-head { max-width: 680px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.section-sub { color: var(--text-dim); font-size: 1.02rem; }

/* ===================================================================
   CARDS / SOLUTIONS
=================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(93,242,255,0.35);
  box-shadow: var(--shadow-glow);
  background: rgba(255,255,255,0.055);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(93,242,255,0.12), rgba(155,107,255,0.12));
  color: var(--cyan);
  margin-bottom: 22px;
  border: 1px solid var(--panel-border);
}
.card h3 { font-size: 1.18rem; margin-bottom: 12px; }
.card p { color: var(--text-dim); font-size: 0.94rem; margin-bottom: 18px; }
.card-list li {
  font-size: 0.86rem;
  color: var(--text-dimmer);
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

/* ===================================================================
   APPROACH / TIMELINE
=================================================================== */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.timeline-line {
  position: absolute;
  top: 26px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--panel-border) 10%, var(--panel-border) 90%, transparent);
  z-index: 0;
}
.timeline-item {
  position: relative;
  z-index: 1;
  padding: 0 8px;
}
.timeline-index {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--bg);
  border: 1px solid var(--panel-border);
  color: var(--cyan);
  margin-bottom: 22px;
  box-shadow: 0 0 0 6px var(--bg);
}
.timeline-item:hover .timeline-index {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(93,242,255,0.35), 0 0 0 6px var(--bg);
}
.timeline-item h3 { font-size: 1.05rem; margin-bottom: 10px; }
.timeline-item p { font-size: 0.88rem; color: var(--text-dim); }

/* ===================================================================
   STACK
=================================================================== */
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.stack-chip {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: all 0.25s ease;
  cursor: default;
}
.stack-chip:hover {
  color: var(--text);
  border-color: transparent;
  background: var(--grad);
  color: #05060f;
  transform: translateY(-3px);
}

/* ===================================================================
   INSIGHTS / QUOTE
=================================================================== */
.quote-panel {
  max-width: 780px;
  margin: 0 auto 80px;
  text-align: center;
  padding: 50px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: linear-gradient(160deg, rgba(93,242,255,0.05), rgba(155,107,255,0.05));
  backdrop-filter: blur(10px);
}
.quote-mark { margin: 0 auto 20px; display: block; }
.quote-text {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 22px;
}
.quote-author { color: var(--text-dimmer); font-size: 0.88rem; letter-spacing: 0.04em; }

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.insight-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.insight-card:hover { transform: translateY(-5px); border-color: rgba(155,107,255,0.35); }
.insight-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border: 1px solid rgba(93,242,255,0.3);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.insight-card h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.4; }
.insight-card p { font-size: 0.9rem; color: var(--text-dim); }

/* ===================================================================
   CTA BAND
=================================================================== */
.cta-band {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 70px 48px;
  border-radius: 28px;
  text-align: center;
  border: 1px solid var(--panel-border);
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(93,242,255,0.09), transparent 60%),
    var(--panel);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.cta-sub { color: var(--text-dim); margin-bottom: 40px; }

.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
}
.cta-form textarea { grid-column: 1 / -1; resize: vertical; }
.cta-form input, .cta-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cta-form input::placeholder, .cta-form textarea::placeholder { color: var(--text-dimmer); }
.cta-form input:focus, .cta-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(93,242,255,0.05);
}
.cta-form button { grid-column: 1 / -1; margin-top: 6px; }
.form-note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.85rem;
  color: var(--cyan);
  min-height: 20px;
}

/* ===================================================================
   FOOTER
=================================================================== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--panel-border);
  padding: 70px 32px 30px;
  background: var(--bg-soft);
}
.footer-top {
  max-width: var(--maxw);
  margin: 0 auto 50px;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 60px;
}
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; margin-top: 16px; max-width: 320px; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-links h4 {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text-dimmer);
  margin-bottom: 16px;
  font-family: "Space Grotesk", sans-serif;
}
.footer-links a {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 26px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dimmer);
}
.footer-bottom a {
  color: var(--cyan);
  transition: color 0.2s ease;
}
.footer-bottom a:hover { color: var(--text); }

/* ===================================================================
   REVEAL ANIMATIONS
=================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===================================================================
   RESPONSIVE
=================================================================== */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .insight-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .timeline-line { display: none; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 66px; left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(5,6,15,0.96);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 14px;
    backdrop-filter: blur(16px);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 10px; border-radius: 10px; }
  .nav-links a:hover { background: rgba(255,255,255,0.05); }
  .nav-cta { text-align: center; }
  .nav-toggle { display: flex; }

  .card-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-links { grid-template-columns: 1fr; }
  .cta-form { grid-template-columns: 1fr; }
  .cta-band { padding: 50px 26px; }
}

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