/* ============================================================
   Anim4X — landing page styles
   ============================================================ */

:root {
  --bg: #08080c;
  --surface: #101019;
  --surface-2: #16161f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4fa;
  --muted: #9a9ab0;
  --muted-2: #6f6f86;

  --violet: #8b5cf6;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --grad: linear-gradient(110deg, var(--violet), var(--pink) 55%, var(--cyan));

  --maxw: 1120px;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

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

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

h1, h2, h3, .brand {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

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

/* ---------- Animated background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.orb-1 { width: 540px; height: 540px; background: var(--violet); top: -160px; left: -120px; animation: drift1 22s ease-in-out infinite; }
.orb-2 { width: 460px; height: 460px; background: var(--pink); top: 10%; right: -140px; animation: drift2 26s ease-in-out infinite; }
.orb-3 { width: 520px; height: 520px; background: var(--cyan); bottom: -200px; left: 30%; opacity: 0.35; animation: drift3 30s ease-in-out infinite; }

.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.5;
}

@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(80px, 60px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-70px, 50px); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, -60px); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 24px;
  backdrop-filter: blur(12px);
}
.nav::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(8, 8, 12, 0.55);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 20px; font-weight: 700; color: var(--text);
}
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad); color: #fff;
}
.brand-4x { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s;
}
.btn.primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 30px -8px rgba(236, 72, 153, 0.5);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -8px rgba(236, 72, 153, 0.6); }
.btn.ghost { background: rgba(255,255,255,0.04); border-color: var(--line); color: var(--text); }
.btn.ghost:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }
.btn.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn.lg { padding: 16px 30px; font-size: 16px; }
.nav .btn-sm { margin-left: 4px; }

/* ---------- Layout ---------- */
main { display: block; }
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; }

.kicker {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 14px;
}
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(70px, 12vw, 130px) 24px clamp(50px, 8vw, 90px);
  text-align: center;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted); margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero-title { font-size: clamp(40px, 7.5vw, 76px); font-weight: 700; }
.lede {
  font-size: clamp(17px, 2.2vw, 21px); color: var(--muted);
  max-width: 620px; margin: 26px auto 0;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }

/* ---------- Value strip ---------- */
.strip {
  max-width: 880px; margin: 0 auto; padding: 0 24px;
  text-align: center;
}
.strip p {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(20px, 3vw, 30px); font-weight: 500; line-height: 1.4;
  color: var(--text);
}
.strip p::first-line { color: var(--text); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,0.45); box-shadow: 0 20px 50px -24px rgba(139,92,246,0.5); }
.card-num {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 16px;
}
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding-top: 8px; }
.step-dot {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.35);
  color: #c9b8ff; font-family: "Space Grotesk", sans-serif; font-weight: 700;
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Vision ---------- */
.vision { text-align: center; }
.vision-inner { max-width: 760px; margin: 0 auto; }
.vision h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 20px; }
.vision p { color: var(--muted); font-size: 18px; }

/* ---------- CTA ---------- */
.cta-section { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 110px; }
.cta-card {
  position: relative; overflow: hidden;
  border-radius: 26px; padding: clamp(40px, 7vw, 72px) 28px;
  text-align: center;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(139,92,246,0.22), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
}
.cta-card h2 { font-size: clamp(28px, 4.5vw, 44px); margin-bottom: 14px; }
.cta-card p { color: var(--muted); max-width: 460px; margin: 0 auto 30px; font-size: 17px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  max-width: var(--maxw); margin: 0 auto; padding: 44px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.footer-brand { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 22px; }
.footer p { color: var(--muted); max-width: 420px; }
.footer small { color: var(--muted-2); margin-top: 8px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 70px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
