:root {
  --bg: #04070f;
  --bg-elevated: rgba(9, 14, 25, 0.82);
  --bg-soft: rgba(255, 255, 255, 0.05);
  --text: #f5f7ff;
  --muted: #8d9cb8;
  --accent: #7c3aed;
  --accent-2: #22d3ee;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --max-width: 1200px;
}

body.light-mode {
  --bg: #f5f7ff;
  --bg-elevated: rgba(255, 255, 255, 0.86);
  --bg-soft: rgba(7, 17, 31, 0.05);
  --text: #07111f;
  --muted: #54627a;
  --accent: #6d28d9;
  --accent-2: #0f766e;
  --border: rgba(7, 17, 31, 0.12);
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.3), transparent 28%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.2), transparent 22%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

body.light-mode {
  background:
    radial-gradient(circle at top left, rgba(109, 40, 217, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 22%),
    var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
}

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

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1.2rem 0;
  background: rgba(4, 7, 15, 0.28);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

body.light-mode .site-header {
  background: rgba(255, 255, 255, 0.66);
}

.site-header.scrolled {
  background: rgba(4, 7, 15, 0.75);
  border-color: var(--border);
}

body.light-mode .site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-size: 1.1rem;
  letter-spacing: 0.28em;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}

.nav-links .theme-toggle {
  margin-left: 0.15rem;
}

body.light-mode .theme-toggle {
  background: rgba(255, 255, 255, 0.72);
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-2);
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  max-width: 14ch;
  margin-bottom: 0.9rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.03rem;
}

.hero-copy {
  margin: 1.3rem 0 1.6rem;
  font-size: 1.08rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #9f67ff);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

.btn-ghost {
  border-color: var(--border);
  background: transparent;
}

.btn-small {
  padding: 0.7rem 0.95rem;
  font-size: 0.95rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0;
  margin: 1.4rem 0 0;
  list-style: none;
}

.hero-points li {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--text);
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.45;
  pointer-events: none;
  animation: float 10s ease-in-out infinite;
}

.orb-one {
  inset: 0 auto auto 8%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.7), transparent 70%);
}

.orb-two {
  inset: auto 8% 8% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.5), transparent 70%);
  animation-delay: -4s;
}

.hero-card,
.card,
.info-card,
.metric-card,
.market-card,
.feature-card,
.tech-card,
.demo-card,
.team-card,
.timeline-card,
.investment-card,
.comparison-card,
.table-wrap {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero-card {
  padding: 1.35rem;
  margin-top: 3rem;
  transform-style: preserve-3d;
}

.hero-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.pill,
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.placeholder-box {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  color: var(--muted);
  background: linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
}

.hero-video-shell {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  min-height: 320px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(29, 78, 216, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-video-overlay {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(4, 7, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  color: var(--text);
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  background: transparent;
}

.placeholder-large {
  min-height: 320px;
}

.placeholder-medium {
  min-height: 150px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.hero-metrics div {
  padding: 0.8rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-metrics strong {
  display: block;
  font-size: 1.15rem;
  color: var(--text);
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.82rem;
}

.section-heading {
  margin-bottom: 2rem;
}

.problem-grid,
.solution-grid,
.tech-grid,
.demo-grid,
.team-grid,
.why-grid,
.stats-grid,
.market-grid {
  display: grid;
  gap: 1.3rem;
}

.card-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.info-card,
.metric-card,
.market-card,
.feature-card,
.tech-card,
.demo-card,
.team-card,
.timeline-card,
.comparison-card {
  padding: 1.35rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover,
.metric-card:hover,
.market-card:hover,
.feature-card:hover,
.tech-card:hover,
.demo-card:hover,
.team-card:hover,
.timeline-card:hover,
.comparison-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 25px 60px rgba(124, 58, 237, 0.17);
}

.comparison-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.comparison-divider {
  color: var(--accent-2);
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-card--software {
  border-color: rgba(34, 211, 238, 0.3);
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.08), rgba(124, 58, 237, 0.12));
}

.feature-card__icon {
  font-size: 1.8rem;
  margin-bottom: 0.95rem;
  color: var(--accent-2);
}

.feature-card ul,
.tech-card ul {
  padding-left: 1rem;
  color: var(--muted);
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}

.stats-grid, .market-grid, .why-grid, .team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  text-align: center;
  min-height: 190px;
}

.metric-value,
.market-value {
  font-size: clamp(2.2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.table-wrap {
  padding: 1rem;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.comparison-table th {
  color: var(--text);
  font-weight: 600;
}

.comparison-table td:first-child {
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

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

.demo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.demo-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-frame {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  align-items: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.flow-step {
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-arrow {
  color: var(--accent-2);
  font-size: 1.15rem;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.timeline-card {
  text-align: center;
  min-height: 100px;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(124,58,237,0.1), rgba(34,211,238,0.08));
}

.roadmap-step {
  padding: 1rem;
  text-align: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255,255,255,0.09);
  font-weight: 600;
}

.investment-section {
  padding-bottom: 7rem;
}

.investment-card {
  padding: 2.6rem;
  text-align: center;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  background: rgba(4, 7, 15, 0.6);
  position: relative;
  z-index: 1;
}

body.light-mode .site-footer {
  background: rgba(255, 255, 255, 0.76);
  border-top-color: rgba(7, 17, 31, 0.12);
}

body.light-mode .site-footer,
body.light-mode .site-footer h3,
body.light-mode .site-footer p {
  color: var(--text);
}

body.light-mode .site-footer a {
  color: var(--muted);
}

body.light-mode .site-footer a:hover {
  color: var(--text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr;
  gap: 1.2rem;
  align-items: start;
}

.site-footer h3 {
  margin-bottom: 0.7rem;
}

.site-footer a {
  display: inline-block;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .problem-grid,
  .stats-grid,
  .market-grid,
  .tech-grid,
  .demo-grid,
  .team-grid,
  .why-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .comparison-panel {
    grid-template-columns: 1fr;
  }

  .timeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .roadmap {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(4, 7, 15, 0.95);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-grid,
  .problem-grid,
  .stats-grid,
  .market-grid,
  .tech-grid,
  .demo-grid,
  .team-grid,
  .why-grid,
  .timeline-grid,
  .roadmap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-stack {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4.5rem 0;
  }
}
