/* ── Reset & base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #07070f;
  --bg-card:   #0d0d1a;
  --bg-card-h: #111126;
  --accent:    #7c6aff;
  --accent-2:  #a78bfa;
  --text:      #e8e8f0;
  --muted:     #6b6b88;
  --border:    rgba(124, 106, 255, 0.15);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max:  1200px;
  --r:    12px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(7, 7, 15, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.3rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(124, 106, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 8rem 2.5rem 4rem;
  max-width: var(--max);
  margin: 0 auto;
}

.hero-headline {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Video blends black away — particles float on page */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  width: 100%;
  max-width: 600px;
  border-radius: var(--r);
  mix-blend-mode: screen;
  opacity: 0.92;
  /* Soft glow from the purple pressure field */
  filter: drop-shadow(0 0 60px rgba(124, 106, 255, 0.25));
}

/* ── Sections ─────────────────────────────────────────── */
.section {
  padding: 6rem 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}
.section-label.centered { text-align: center; }

/* Divider between sections */
.section + .section {
  border-top: 1px solid var(--border);
}

/* ── Prose section ───────────────────────────────────── */
.section-prose { }

.prose {
  max-width: 680px;
}

.prose p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.prose p:last-child { margin-bottom: 0; }

/* ── Application cards ───────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem 1.5rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  background: var(--bg-card-h);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(124, 106, 255, 0.12);
}

.card-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
  line-height: 1;
}

.card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── How it works ────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  padding: 0 2rem;
}
.step:first-child { padding-left: 0; }
.step:last-child  { padding-right: 0; }

.step-number {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

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

.step-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  margin-top: 0.5rem;
}

/* ── Why MageHand ────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-card);
}

.pillar h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--accent-2);
}

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

/* ── Current status ──────────────────────────────────── */
.section-status {
  text-align: center;
}

.status-block {
  max-width: 560px;
  margin: 0 auto;
}

.status-text {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.status-raise {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: var(--max);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.15s;
  display: flex;
  align-items: center;
}
.footer-links a:hover { color: var(--text); }

/* ── Scroll reveal ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 6rem;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; }
  .hero-video { max-width: 420px; }

  .steps {
    flex-direction: column;
    gap: 2rem;
  }
  .step { padding: 0; }
  .step-divider { width: 100%; height: 1px; align-self: auto; }

  .pillars { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 600px) {
  .nav { padding: 1rem 1.25rem; }
  .section { padding: 4rem 1.25rem; }
  .footer { flex-direction: column; gap: 1rem; text-align: center; }
  .cards { grid-template-columns: 1fr; }
}
