/* ── Design Tokens ── */
:root {
  --bg: #050a14;
  --bg-card: rgba(15, 25, 40, 0.65);
  --bg-card-hover: rgba(22, 35, 55, 0.75);
  --border: rgba(100, 140, 190, 0.15);
  --border-hover: rgba(100, 140, 190, 0.35);
  --text: #e8eef5;
  --text-muted: #8a9bb5;
  --accent: #7c3aed;
  --accent-glow: rgba(124, 58, 237, 0.4);
  --blue: #3b82f6;
  --radius: 16px;
  --max-w: 1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Ambient glow ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(124, 58, 237, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(59, 130, 246, 0.10), transparent);
  pointer-events: none;
  z-index: 0;
}

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

/* ── Shell ── */
.page-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 28px 48px;
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  margin-bottom: 48px;
  border-radius: 999px;
  background: rgba(8, 14, 24, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 16px;
  z-index: 100;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--accent-glow));
  transition: transform 0.3s ease;
}
.brand:hover .brand-mark { transform: scale(1.1) rotate(10deg); }

.brand-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-links a {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.top-links a:hover {
  background: rgba(255, 255, 255, 0.07);
}

/* ── Cards (shared) ── */
.hero-copy,
.hero-preview,
.feature,
.content-card,
.beta-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  position: relative;
}

.hero-copy:hover,
.feature:hover,
.content-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background: var(--bg-card-hover);
}

/* Mouse-follow glow on cards */
.hero-copy::after,
.feature::after,
.content-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.035), transparent 40%);
  pointer-events: none;
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 40px;
}

.hero-copy {
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-preview {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.content-card h2,
.beta-card h2,
.feature h2 {
  font-family: "Space Grotesk", sans-serif;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 30%, #a5b4fc);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.button:hover { transform: translateY(-2px); }

.button-primary {
  background: linear-gradient(135deg, var(--blue), var(--accent));
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.button-primary:hover {
  box-shadow: 0 6px 24px var(--accent-glow);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── Content Grid (About + Workflow) ── */
.content-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}
.content-grid-split {
  grid-template-columns: 1fr 1fr;
}

.content-card {
  padding: 36px;
}

.content-card h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.content-card p,
.steps {
  color: var(--text-muted);
  line-height: 1.7;
}

.steps {
  padding-left: 20px;
  list-style: decimal;
}
.steps li {
  margin-bottom: 10px;
  padding-left: 6px;
}
.steps li::marker {
  color: var(--accent);
  font-weight: 700;
}

/* ── Feature Strip ── */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.feature {
  padding: 28px 22px;
}

.feature h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Beta CTA ── */
.beta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px;
  margin-bottom: 32px;
  border-color: rgba(124, 58, 237, 0.25);
}
.beta-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.beta-card h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.beta-card p {
  color: var(--text-muted);
}

/* ── Legal Notice ── */
.legal-notice {
  padding: 18px 24px;
  margin-bottom: 0;
  border-left: 3px solid rgba(124, 58, 237, 0.35);
  border-radius: 4px;
  background: rgba(8, 14, 24, 0.4);
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(138, 155, 181, 0.65);
}
.legal-notice p { margin: 0; }
.legal-notice strong { color: rgba(232, 238, 245, 0.75); }

/* ── Footer ── */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 0 0;
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-left span { opacity: 0.55; }

.footer-right a {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  transition: all 0.25s ease;
}
.footer-right a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-preview {
    order: -1;
  }
  .hero-image {
    max-height: 360px;
  }
  .content-grid-split {
    grid-template-columns: 1fr;
  }
  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px 16px 36px;
  }
  .site-header {
    flex-direction: column;
    border-radius: 16px;
    padding: 14px 18px;
    gap: 10px;
  }
  .hero-copy {
    padding: 28px 20px;
  }
  .hero-image {
    max-height: 260px;
  }
  .feature-strip {
    grid-template-columns: 1fr;
  }
  .feature {
    padding: 22px 18px;
  }
  .content-card {
    padding: 28px 20px;
  }
  .beta-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
  .beta-card .button { align-self: center; }
  .legal-notice {
    font-size: 0.78rem;
    padding: 14px 16px;
  }
  .site-footer {
    flex-direction: column;
    text-align: center;
  }
  .footer-left, .footer-right {
    justify-content: center;
    flex-wrap: wrap;
  }
}
