:root {
  --bg: #06070d;
  --bg-elevated: #0d0f1a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef1fb;
  --text-dim: #9aa1b8;
  --text-dimmer: #6b7189;
  --cyan: #38e8e0;
  --violet: #9b7bff;
  --emerald: #34d399;
  --amber: #f5b95c;
  --gradient: linear-gradient(120deg, var(--cyan), var(--violet));
  --shadow-glow: 0 0 60px rgba(56, 232, 224, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(56, 232, 224, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(155, 123, 255, 0.06), transparent),
    var(--bg);
  pointer-events: none;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 250ms ease, border-color 250ms ease, padding 250ms ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(6, 7, 13, 0.85);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  padding: 14px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  font-size: 1.3rem;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(56, 232, 224, 0.6));
}

.brand-text span { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

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

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text) !important;
  transition: border-color 200ms ease, background 200ms ease;
}

.nav-cta:hover {
  border-color: var(--cyan);
  background: rgba(56, 232, 224, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

@media (max-width: 900px) {
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: #06070d;
    font-size: 1.15rem;
  }

  .nav-links.open .nav-cta {
    margin-top: 12px;
    padding: 14px 32px;
  }
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  z-index: 1;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-canvas canvas { display: block; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 900px;
}

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

.hero-sub {
  margin: 26px auto 0;
  max-width: 560px;
  color: var(--text-dim);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.btn-primary {
  background: var(--gradient);
  color: #06070d;
  box-shadow: 0 8px 30px rgba(56, 232, 224, 0.25);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(56, 232, 224, 0.35); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--cyan); background: rgba(56, 232, 224, 0.06); }

.btn-lg { padding: 16px 34px; font-size: 1.02rem; }

.btn-arrow { transition: transform 200ms ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.scroll-hint {
  position: absolute;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dimmer);
}

.scroll-hint span {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--cyan), transparent);
  animation: scrollpulse 1.8s ease-in-out infinite;
}

@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 18px 0;
  background: var(--bg-elevated);
}

.marquee-track {
  display: flex;
  gap: 20px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: 0.95rem;
  color: var(--text-dimmer);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.marquee-track span:nth-child(2n) { color: var(--cyan); }

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

/* ---------- Sections ---------- */
.section { position: relative; z-index: 1; padding: 130px 24px; }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 620px;
  margin-bottom: 18px;
}

.section-lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 60px;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 232, 224, 0.35);
  box-shadow: var(--shadow-glow);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 18px;
  display: inline-block;
}

.card h3 { font-size: 1.15rem; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Product ---------- */
.product { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.product-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.product-copy p { color: var(--text-dim); font-size: 1.02rem; margin-bottom: 26px; }
.product-copy h2 { max-width: 100%; }

.feature-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; }

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.98rem;
}

.feature-list li span {
  color: var(--emerald);
  font-weight: 700;
}

.product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-frame {
  position: relative;
  width: 280px;
  height: 280px;
}

.orb-core {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(56, 232, 224, 0.9), rgba(155, 123, 255, 0.5) 70%, transparent);
  filter: blur(0.5px);
  animation: orbpulse 3.4s ease-in-out infinite;
}

@keyframes orbpulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(56, 232, 224, 0.35);
}

.orb-ring-1 { animation: spin 16s linear infinite; border-style: dashed; }
.orb-ring-2 { inset: 12%; animation: spin 22s linear infinite reverse; border-color: rgba(155, 123, 255, 0.35); }
.orb-ring-3 { inset: 22%; animation: spin 10s linear infinite; border-color: rgba(52, 211, 153, 0.3); border-style: dotted; }

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

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 20px;
}

.about-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
}

.about-item h3 { margin: 14px 0 10px; font-size: 1.15rem; font-weight: 700; }
.about-item p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-inner .eyebrow { }
.contact-inner h2 { max-width: 100%; }
.contact-inner .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dimmer);
  font-size: 0.88rem;
}

.footer-inner a:hover { color: var(--cyan); }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .cards { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { justify-content: center; }
}

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