/* ============ Base ============ */
:root {
  --bg: #05060a;
  --bg-soft: #0a0c14;
  --text: #eef0f6;
  --text-dim: #9aa1b5;
  --line: rgba(255, 255, 255, 0.08);
  --violet: #7c6bff;
  --cyan: #38d6f5;
  --gold: #f5b638;
  --grad: linear-gradient(100deg, #7c6bff 0%, #38d6f5 55%, #7c6bff 100%);
  --radius: 20px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; }

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

::selection { background: rgba(124, 107, 255, 0.4); }

/* ============ Ambient background ============ */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.orb-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(124,107,255,0.5), transparent 65%);
  top: -180px; left: -120px;
  animation: drift1 22s ease-in-out infinite alternate;
}
.orb-2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(56,214,245,0.35), transparent 65%);
  top: 10%; right: -160px;
  animation: drift2 26s ease-in-out infinite alternate;
}
.orb-3 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(124,107,255,0.25), transparent 65%);
  bottom: -260px; left: 30%;
  animation: drift3 30s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(90px, 70px) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-70px, 110px) scale(0.95); } }
@keyframes drift3 { to { transform: translate(-110px, -70px) scale(1.08); } }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 28px;
  transition: padding 0.35s ease, background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 10px 28px;
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; }
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(124, 107, 255, 0.35));
  transition: filter 0.3s ease;
}
.brand:hover .brand-logo {
  filter: drop-shadow(0 0 20px rgba(124, 107, 255, 0.6));
}
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ============ Hero ============ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}
.hero-inner { max-width: 900px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 30px;
  backdrop-filter: blur(8px);
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 214, 245, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(56, 214, 245, 0); }
}
.hero-title {
  font-size: clamp(2.6rem, 7.2vw, 5.2rem);
  font-weight: 800;
  margin-bottom: 26px;
}
.gradient-text {
  background: var(--grad);
  background-size: 200% 200%;
  animation: gradShift 6s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.swap-word { display: inline-block; }
.swap-word.swapping { animation: wordSwap 0.5s ease; }
@keyframes wordSwap {
  0% { opacity: 1; transform: translateY(0); filter: blur(0); }
  45% { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  55% { opacity: 0; transform: translateY(-14px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.hero-sub {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 42px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 15px 32px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn-primary {
  background: var(--grad);
  background-size: 200% 200%;
  animation: gradShift 6s ease infinite;
  color: #060714;
  box-shadow: 0 8px 32px rgba(124, 107, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(124, 107, 255, 0.5); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.03);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); }

.hero-scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  display: block;
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5));
  overflow: hidden;
  position: relative;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--cyan));
  animation: scrollHint 2.2s ease-in-out infinite;
}
@keyframes scrollHint { to { top: 100%; } }

/* ============ Sections ============ */
.section {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 110px 24px;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}
.section-head { margin-bottom: 60px; }
.section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 700;
}
.section-intro {
  color: var(--text-dim);
  max-width: 620px;
  margin-top: 22px;
  font-size: 1.02rem;
}

/* ============ Product cards ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.product-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  padding: 34px 30px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
  will-change: transform;
}
.product-card:hover { border-color: rgba(255,255,255,0.18); }
.card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124,107,255,0.14), transparent 65%);
}
.product-card[data-accent="cyan"] .card-glow {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(56,214,245,0.13), transparent 65%);
}
.product-card[data-accent="gold"] .card-glow {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(245,182,56,0.13), transparent 65%);
}
.product-card:hover .card-glow { opacity: 1; }

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.product-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}
.product-icon img { max-width: 30px; max-height: 30px; width: auto; height: auto; }
.product-card[data-accent="gold"] .product-icon { box-shadow: 0 0 24px rgba(245,182,56,0.15); }
.product-card[data-accent="cyan"] .product-icon { box-shadow: 0 0 24px rgba(56,214,245,0.15); }

.product-status {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.03);
}
.product-status.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6fe3a5;
  border-color: rgba(111, 227, 165, 0.35);
  background: rgba(111, 227, 165, 0.07);
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6fe3a5;
  animation: pulseGreen 2.2s ease-in-out infinite;
}
@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(111, 227, 165, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(111, 227, 165, 0); }
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  transition: color 0.25s ease, gap 0.25s ease;
}
.product-link svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.product-card[data-accent="gold"] .product-link:hover { color: var(--gold); }
.product-card[data-accent="cyan"] .product-link:hover { color: var(--cyan); }
.product-link:hover svg { transform: translateX(4px); }
.product-card h3 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.product-tag {
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.product-card[data-accent="gold"] .product-tag { color: var(--gold); }
.product-card[data-accent="cyan"] .product-tag { color: var(--cyan); }
.product-desc { color: var(--text-dim); font-size: 0.97rem; margin-bottom: 22px; }
.product-points { list-style: none; display: grid; gap: 10px; }
.product-points li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.product-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--grad);
}

.product-card-next {
  display: grid;
  place-items: center;
  text-align: center;
  border-style: dashed;
  background: transparent;
}
.next-inner { padding: 20px; }
.next-plus {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.25);
  font-size: 1.6rem;
  color: var(--text-dim);
  transition: transform 0.4s ease, color 0.3s ease, border-color 0.3s ease;
}
.product-card-next:hover .next-plus {
  transform: rotate(90deg);
  color: var(--cyan);
  border-color: var(--cyan);
}
.product-card-next h3 { font-size: 1.2rem; margin-bottom: 8px; }
.product-card-next p { color: var(--text-dim); font-size: 0.92rem; max-width: 260px; margin: 0 auto; }

/* ============ Approach ============ */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.approach-item {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  transition: border-color 0.3s ease;
}
.approach-item:hover { border-top-color: var(--violet); }
.approach-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 14px;
}
.approach-item h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 10px; }
.approach-item p { color: var(--text-dim); font-size: 0.94rem; }

/* ============ About ============ */
.about-inner {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(600px circle at 15% 0%, rgba(124,107,255,0.12), transparent 60%),
    radial-gradient(600px circle at 90% 100%, rgba(56,214,245,0.09), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  padding: clamp(36px, 6vw, 72px);
}
.about-inner h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 20px; }
.about-text { color: var(--text-dim); max-width: 620px; font-size: 1.05rem; }
.about-text + .about-text { margin-top: 16px; }
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(30px, 6vw, 80px);
  margin-top: 48px;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.88rem; color: var(--text-dim); }

/* ============ Final CTA ============ */
.cta { padding-top: 40px; }
.cta-inner { text-align: center; padding: 40px 20px; }
.cta-inner h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 18px;
}
.cta-inner p {
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

/* ============ Footer ============ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-note { font-size: 0.85rem; color: var(--text-dim); }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

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

/* ============ Responsive ============ */
@media (max-width: 640px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 0.85rem; }
  .hero { padding-top: 140px; }
  .section { padding: 80px 20px; }
  .stats { gap: 34px; }
}
