/* ===== Base ===== */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

/* ===== Nav ===== */
.nav-inner {
  border: 1px solid transparent;
  background: transparent;
}
#nav.scrolled .nav-inner {
  border-color: #eceef6;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 8px 30px -12px rgba(20, 23, 34, 0.15);
}
.nav-link {
  padding: 0.5rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5266;
  transition: color .2s, background-color .2s;
}
.nav-link:hover { color: #232838; background: #f6f7fb; }
.mobile-link {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #363c4d;
}
.mobile-link:hover { background: #f6f7fb; }

/* ===== Hero ===== */
.text-gradient {
  background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 50%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 120vw;
  height: 700px;
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.18), rgba(124, 58, 237, 0.08) 60%, transparent 75%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(20, 23, 34, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 23, 34, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

/* ===== Section headings ===== */
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4f46e5;
}
.section-title {
  margin-top: 0.6rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #232838;
}
.section-sub {
  margin: 1rem auto 0;
  max-width: 42rem;
  font-size: 1.075rem;
  color: #4b5266;
}

/* ===== Feature cards ===== */
.feature-card {
  padding: 1.75rem;
  border: 1px solid #eceef6;
  border-radius: 1.25rem;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: #d5d9ea;
  box-shadow: 0 22px 40px -20px rgba(20, 23, 34, 0.18);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: #eef2ff;
  color: #4f46e5;
}
.feature-icon svg { width: 1.5rem; height: 1.5rem; }
.feature-title { margin-top: 1.1rem; font-size: 1.15rem; font-weight: 700; color: #232838; }
.feature-text { margin-top: 0.5rem; font-size: 0.975rem; line-height: 1.6; color: #4b5266; }

/* ===== Steps ===== */
.steps-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.35), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.step {
  position: relative;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  transition: background .25s, border-color .25s;
}
.step:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.2); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: 0.9rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 10px 25px -8px rgba(99, 102, 241, 0.6);
}

/* ===== Platform ===== */
.platform-item { display: flex; gap: 0.85rem; font-size: 1rem; line-height: 1.55; color: #4b5266; }
.platform-check {
  flex: none;
  display: grid; place-items: center;
  width: 1.6rem; height: 1.6rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ===== Use cases ===== */
.use-card {
  padding: 1.5rem;
  border: 1px solid #eceef6;
  border-radius: 1.15rem;
  background: #fff;
  transition: transform .25s, box-shadow .25s;
}
.use-card:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -22px rgba(20,23,34,0.2); }
.use-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.use-title { margin-top: 0.9rem; font-size: 1.1rem; font-weight: 700; color: #232838; }
.use-text { margin-top: 0.4rem; font-size: 0.95rem; line-height: 1.55; color: #4b5266; }

/* ===== FAQ ===== */
.faq-q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: #232838;
  cursor: pointer;
}
.faq-chevron { flex: none; width: 1.35rem; height: 1.35rem; color: #818cf8; transition: transform .3s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a p {
  padding: 0 1.5rem 1.4rem;
  font-size: 0.975rem;
  line-height: 1.65;
  color: #4b5266;
}

/* ===== Form ===== */
.form-label { display: block; margin-bottom: 0.4rem; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.form-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1rem;
  font-size: 0.975rem;
  color: #fff;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-input::placeholder { color: rgba(255, 255, 255, 0.55); }
.form-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}
.form-input option { color: #232838; }
.form-input.invalid { border-color: #fca5a5; box-shadow: 0 0 0 3px rgba(252, 165, 165, 0.25); }

/* ===== Reveal animation ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
