:root {
  --bg-primary: #050816;
  --bg-secondary: #09111f;
  --panel: rgba(7, 15, 31, 0.78);
  --panel-strong: rgba(10, 20, 38, 0.92);
  --border: rgba(116, 255, 192, 0.2);
  --border-strong: rgba(116, 255, 192, 0.45);
  --text-primary: #f5f7ff;
  --text-secondary: #96a4c3;
  --neon: #74ffc0;
  --neon-strong: #3ef4a2;
  --accent: #7cf6ff;
  --shadow: 0 0 30px rgba(62, 244, 162, 0.18);
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background:
    radial-gradient(circle at 160px 120px, rgba(62, 244, 162, 0.22), transparent 320px),
    radial-gradient(circle at calc(100% - 180px) 140px, rgba(124, 246, 255, 0.16), transparent 300px),
    linear-gradient(180deg, #04070f 0%, #07111e 52%, #04070f 100%);
  background-color: #04070f;
}

body.site-body {
  margin: 0;
  color: var(--text-primary);
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  isolation: isolate;
  background:
    radial-gradient(circle at 160px 120px, rgba(62, 244, 162, 0.22), transparent 320px),
    radial-gradient(circle at calc(100% - 180px) 140px, rgba(124, 246, 255, 0.16), transparent 300px),
    linear-gradient(180deg, #04070f 0%, #07111e 52%, #04070f 100%);
  background-color: #04070f;
  overflow-x: hidden;
  position: relative;
}

body.site-body::before,
body.site-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body.site-body::before {
  background-image:
    linear-gradient(rgba(124, 246, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 246, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.75;
}

body.site-body::after {
  z-index: -1;
  background:
    radial-gradient(circle at 180px 100px, rgba(116, 255, 192, 0.16), transparent 320px),
    radial-gradient(circle at calc(100% - 160px) 180px, rgba(124, 246, 255, 0.12), transparent 300px),
    radial-gradient(circle at 50% 76%, rgba(62, 244, 162, 0.1), transparent 22rem);
  filter: blur(12px);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.page-shell,
.top-nav,
.footer-bar,
.legal-nav-wrap,
.legal-shell {
  position: relative;
  z-index: 1;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  width: min(1200px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(4, 9, 19, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.top-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(116, 255, 192, 0.35);
  background: linear-gradient(135deg, rgba(116, 255, 192, 0.15), rgba(124, 246, 255, 0.08));
  box-shadow: 0 0 24px rgba(62, 244, 162, 0.2);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-kicker {
  color: var(--neon);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.brand-title,
.section-title,
.hero-title,
.legal-title,
.metric-value {
  font-family: 'Orbitron', 'Inter', sans-serif;
}

.brand-title {
  font-size: 0.98rem;
}

.nav-link {
  color: var(--text-secondary);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-primary);
  text-shadow: 0 0 18px rgba(116, 255, 192, 0.35);
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.button-primary {
  color: #04110b;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon) 0%, #b4ffe3 100%);
  box-shadow: 0 0 28px rgba(62, 244, 162, 0.35);
}

.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.button-secondary {
  color: var(--text-primary);
  border: 1px solid var(--border);
  background: rgba(10, 20, 38, 0.55);
}

.button-secondary:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
  min-height: calc(100vh - 9rem);
  padding: 3rem 0 5rem;
}

.hero-copy,
.glass-card,
.legal-card,
.project-card,
.feature-card,
.timeline-card,
.contact-panel {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(8, 18, 33, 0.82), rgba(6, 12, 24, 0.92));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2.25rem;
  border-radius: var(--radius-lg);
}

.eyebrow {
  color: var(--neon);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.76rem;
}

.hero-title {
  margin: 1rem 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-title span,
.section-title span,
.legal-title span {
  color: var(--neon);
  text-shadow: 0 0 22px rgba(116, 255, 192, 0.4);
}

.hero-text,
.section-text,
.legal-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.chip {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 246, 255, 0.16);
  background: rgba(124, 246, 255, 0.06);
  color: #d3faff;
}

.hero-visual {
  position: relative;
  padding: 1rem 2rem 2rem;
}

.logo-orb {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 30rem;
  border-radius: 36px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at center, rgba(116, 255, 192, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(7, 16, 30, 0.88), rgba(4, 10, 21, 0.96));
  overflow: hidden;
  box-shadow: 0 0 50px rgba(62, 244, 162, 0.2);
}

.logo-orb::before,
.logo-orb::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(116, 255, 192, 0.18);
}

.logo-orb::before {
  width: 75%;
  height: 75%;
}

.logo-orb::after {
  width: 92%;
  height: 92%;
}

.logo-image {
  width: min(100%, 28rem);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 0 35px rgba(116, 255, 192, 0.4));
  z-index: 1;
}

.hud-panel {
  position: absolute;
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(116, 255, 192, 0.2);
  background: rgba(5, 12, 24, 0.85);
  box-shadow: var(--shadow);
}

.hud-top {
  top: 1.5rem;
  right: 1.5rem;
}

.hud-bottom {
  left: 1.5rem;
  bottom: 1.5rem;
}

.section-block {
  padding: 2rem 0 0;
}

.section-head {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.section-title,
.legal-title {
  margin: 0.75rem 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-transform: uppercase;
}

.metrics-grid,
.features-grid,
.timeline-grid {
  display: grid;
  gap: 1.2rem;
}

.metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.glass-card,
.feature-card,
.timeline-card {
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.metric-value {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.25;
  word-break: break-word;
}

.metric-label {
  color: var(--text-secondary);
  margin-top: 0.45rem;
  font-size: 0.95rem;
}

.features-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  color: var(--neon);
  background: rgba(116, 255, 192, 0.08);
  border: 1px solid rgba(116, 255, 192, 0.2);
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.feature-text,
.timeline-text,
.project-card p,
.project-card li,
.project-card summary {
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  color: #03100a;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon), #b4ffe3);
  margin-bottom: 1rem;
}

.projects-shell {
  border-radius: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(7, 15, 31, 0.78), rgba(4, 10, 21, 0.94)),
    radial-gradient(circle at top, rgba(116, 255, 192, 0.09), transparent 42%);
  box-shadow: 0 0 48px rgba(62, 244, 162, 0.12);
}

.project-card {
  position: relative;
  border-radius: 1.4rem;
  padding: 1.45rem;
  overflow: hidden;
  border: 1px solid rgba(116, 255, 192, 0.18);
  background:
    linear-gradient(145deg, rgba(12, 22, 40, 0.95), rgba(6, 13, 27, 0.98)),
    radial-gradient(circle at top right, rgba(116, 255, 192, 0.08), transparent 35%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 30px rgba(62, 244, 162, 0.1);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(116, 255, 192, 0), rgba(116, 255, 192, 0.9), rgba(124, 246, 255, 0));
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(124, 246, 255, 0.06), transparent 20%);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 36px rgba(62, 244, 162, 0.22);
}

.project-card img {
  border: 1px solid rgba(116, 255, 192, 0.2);
  box-shadow: 0 0 22px rgba(62, 244, 162, 0.16);
  width: 3.4rem;
  height: 3.4rem;
}

.project-card details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(124, 246, 255, 0.12);
}

.project-card summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--text-primary);
}

.project-card summary::-webkit-details-marker {
  display: none;
}

.project-card summary::after {
  content: "+";
  float: right;
  color: var(--neon);
  font-size: 1.2rem;
}

.project-card details[open] summary::after {
  content: "-";
}

.contact-panel,
.legal-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-panel {
  text-align: center;
}

.contact-text {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.button-primary.button-large {
  min-width: min(100%, 420px);
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
}

.legal-nav-wrap {
  width: min(1200px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
}

.footer-bar {
  width: min(1200px, calc(100% - 2rem));
  margin: 3rem auto 2rem;
  padding: 1rem 1.25rem 2rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(124, 246, 255, 0.12);
}

.footer-link {
  color: var(--text-primary);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--neon);
}

.legal-shell {
  width: min(960px, calc(100% - 2rem));
  margin: 2rem auto 4rem;
}

.legal-card h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-family: 'Orbitron', 'Inter', sans-serif;
}

.legal-card a {
  color: var(--neon);
}

.legal-card a:hover {
  color: #b4ffe3;
}

.legal-card ul {
  color: var(--text-secondary);
}

@media (max-width: 980px) {
  .hero-grid {
    min-height: auto;
    padding-top: 2rem;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }

  .features-grid,
  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy,
  .contact-panel,
  .legal-card {
    padding: 1.6rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
  }

  .hero-text,
  .section-text,
  .legal-text {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .button-primary,
  .button-secondary {
    padding: 0.85rem 1.15rem;
    font-size: 0.92rem;
  }

  .logo-orb {
    min-height: 24rem;
  }

  .logo-image {
    width: min(100%, 22rem);
  }

  .hud-panel {
    padding: 0.8rem 0.9rem;
  }

  .project-card {
    padding: 1.15rem;
  }

  .project-card img {
    width: 2.8rem;
    height: 2.8rem;
  }

  .project-card h3 {
    font-size: 1rem;
  }

  .project-card p,
  .project-card li,
  .project-card summary {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .section-title,
  .legal-title {
    font-size: clamp(1.65rem, 4vw, 2.4rem);
  }
}

@media (max-width: 720px) {
  .top-nav {
    position: relative;
    top: auto;
    border-radius: 1.6rem;
    width: calc(100% - 1rem);
    margin-top: 0.5rem;
    padding: 0.85rem 0.9rem;
  }

  .top-nav-inner {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
  }

  .page-shell,
  .footer-bar,
  .legal-nav-wrap,
  .legal-shell {
    width: calc(100% - 1rem);
  }

  .brand-kicker {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
  }

  .brand-title {
    font-size: 0.8rem;
  }

  .brand-mark {
    width: 2.4rem;
    height: 2.4rem;
  }

  .top-nav .text-sm,
  .nav-link {
    font-size: 0.76rem;
  }

  .top-nav .button-primary {
    padding: 0.72rem 0.95rem;
    font-size: 0.76rem;
    gap: 0.35rem;
  }

  .top-nav .flex.flex-wrap.items-center.gap-5.text-sm.font-medium {
    width: 100%;
    justify-content: center;
    gap: 1rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1rem;
    padding: 1.05rem 0 2.4rem;
  }

  .hero-copy,
  .contact-panel,
  .legal-card {
    padding: 1.15rem;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-title {
    font-size: clamp(1.95rem, 9vw, 3.1rem);
    line-height: 0.9;
  }

  .hero-text,
  .section-text,
  .legal-text {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .chip-row {
    gap: 0.6rem;
  }

  .chip {
    padding: 0.55rem 0.8rem;
    font-size: 0.72rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .metric-value {
    font-size: 1rem;
  }

  .metric-label {
    font-size: 0.82rem;
  }

  .hero-visual {
    padding: 0;
    order: -1;
    align-self: start;
    width: 100%;
  }

  .logo-orb {
    min-height: 10.5rem;
    border-radius: 1.3rem;
  }

  .logo-orb::before,
  .logo-orb::after {
    display: none;
  }

  .logo-image {
    width: min(100%, 9.5rem);
  }

  .hud-panel {
    display: none;
  }

  .hud-top {
    top: 0.75rem;
    right: 0.75rem;
  }

  .hud-bottom {
    left: 0.75rem;
    bottom: 0.75rem;
  }

  .features-grid,
  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .feature-card,
  .timeline-card,
  .glass-card {
    padding: 1rem;
  }

  .feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.65rem;
  }

  .feature-title {
    font-size: 0.96rem;
  }

  .feature-text,
  .timeline-text {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .projects-shell {
    padding: 0.95rem;
  }

  .project-card {
    padding: 1rem;
  }

  .project-card img {
    width: 2.6rem;
    height: 2.6rem;
  }

  .project-card h3 {
    font-size: 0.96rem;
  }

  .project-card p,
  .project-card li,
  .project-card summary,
  .project-card span {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .projects-shell .grid.grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .button-primary.button-large {
    min-width: min(100%, 280px);
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
  }

  .section-title,
  .legal-title {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  .footer-bar {
    margin-top: 2rem;
    padding: 0.85rem 0.2rem 1.2rem;
    font-size: 0.8rem;
  }
}
