/* ---------- Base ---------- */
:root {
  --bg: #060609;
  --bg-elevated: #0d0d14;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f7;
  --text-dim: #9a9ab0;
  --text-dimmer: #6b6b80;
  --blue: #5b8cff;
  --purple: #a855f7;
  --gradient: linear-gradient(120deg, var(--blue), var(--purple));
  --glow: 0 0 40px rgba(139, 120, 255, 0.35);
  --radius: 16px;
  --max-width: 1160px;
}

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

/* ---------- Global animated background ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

#starfield {
  position: absolute;
  inset: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.orb-a {
  width: 34rem; height: 34rem;
  left: -9rem; top: -8rem;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.35), transparent 70%);
  animation: driftA 26s ease-in-out infinite;
}
.orb-b {
  width: 30rem; height: 30rem;
  right: -8rem; top: 18%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.30), transparent 70%);
  animation: driftB 30s ease-in-out infinite;
}
.orb-c {
  width: 28rem; height: 28rem;
  left: 30%; bottom: -12rem;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.20), transparent 70%);
  animation: driftA 34s ease-in-out infinite reverse;
}

@keyframes driftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, 50px) scale(1.08); }
}
@keyframes driftB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 70px) scale(1.05); }
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient);
  z-index: 200;
  transition: width 0.12s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
}

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;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; padding: 120px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(91, 140, 255, 0.1);
  border: 1px solid rgba(91, 140, 255, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  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;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 0 rgba(139, 120, 255, 0);
}
.btn-primary:hover { box-shadow: var(--glow); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--card-border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(6, 6, 9, 0.7);
  border-bottom: 1px solid var(--card-border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.05rem; }
.brand img { width: 30px; height: 30px; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 200px;
  padding-bottom: 140px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.25), rgba(168, 85, 247, 0.12) 45%, transparent 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

.hero-helix {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  max-width: 900px;
  margin: 0 auto 24px;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 40px;
  color: var(--text-dim);
  font-size: 1.15rem;
}

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

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-dimmer);
}
.hero-note .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}

/* ---------- Marquee / niche strip ---------- */
.niche-strip {
  padding: 32px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.niche-strip .container {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.niche-strip span.label { color: var(--text-dimmer); font-size: 0.85rem; }
.niche-pill {
  font-size: 0.85rem;
  color: var(--text-dim);
  border: 1px solid var(--card-border);
  padding: 6px 16px;
  border-radius: 999px;
}
.niche-pill.active {
  color: var(--blue);
  border-color: rgba(91, 140, 255, 0.4);
  background: rgba(91, 140, 255, 0.08);
}

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

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: rgba(168, 85, 247, 0.35); transform: translateY(-4px); }

.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

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

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}
.step .num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
  display: block;
}
.step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- About / founder ---------- */
.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.about-copy p { color: var(--text-dim); margin-bottom: 18px; font-size: 1rem; }
.about-copy p strong { color: var(--text); }

.about-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
}
.about-card .stat { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--card-border); }
.about-card .stat:last-child { border-bottom: none; }
.about-card .stat .label { color: var(--text-dim); font-size: 0.9rem; }
.about-card .stat .value { font-family: "Space Grotesk", sans-serif; font-weight: 600; }

/* ---------- CTA ---------- */
.cta {
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(91,140,255,0.15), rgba(168,85,247,0.08) 60%, transparent), var(--bg-elevated);
  border: 1px solid var(--card-border);
  padding: 72px 48px;
  text-align: center;
}
.cta h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; }
.cta p { color: var(--text-dim); max-width: 520px; margin: 0 auto 36px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Contact form ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; }
.contact-info p { color: var(--text-dim); margin-bottom: 28px; }
.contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--text-dim); font-size: 0.95rem; }
.contact-item .icon-sm {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(91,140,255,0.1);
  border: 1px solid rgba(91,140,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

form.card { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.85rem; color: var(--text-dim); }
.field input, .field textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(91,140,255,0.15);
}
.form-note { font-size: 0.8rem; color: var(--text-dimmer); }
.form-note a { color: var(--blue); text-decoration: underline; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--card-border);
  padding: 48px 0;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
footer .brand { font-size: 0.95rem; }
footer .foot-links { display: flex; gap: 24px; }
footer .foot-links a { color: var(--text-dimmer); font-size: 0.85rem; }
footer .foot-links a:hover { color: var(--text-dim); }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
  .about, .contact-wrap { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 520px) {
  section { padding: 80px 0; }
  .hero { padding-top: 160px; }
  .cta { padding: 48px 24px; }
}
