/* Repton Digital — Reportly waitlist page */

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

:root {
  --navy:         #0F172A;
  --indigo:       #6366F1;
  --indigo-dark:  #4F46E5;
  --indigo-glow:  rgba(99, 102, 241, 0.28);
  --white:        #FFFFFF;
  --slate:        #94A3B8;
  --slate-dim:    #64748B;
  --glass-bg:     rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-strong: rgba(255, 255, 255, 0.14);
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--navy);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.35); border-radius: 3px; }

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

/* ── Typography ───────────────────────────────── */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
p  { color: var(--slate); line-height: 1.75; }

/* ── Layout ───────────────────────────────────── */
.container {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px; position: relative; z-index: 1;
}
section { padding: 96px 0; position: relative; z-index: 1; }

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px;
  border-radius: var(--r-md); padding: 11px 22px;
  cursor: pointer; border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-lg { font-size: 15px; padding: 14px 28px; border-radius: var(--r-lg); }

.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 4px 20px var(--indigo-glow);
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0; left: -100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover { background: var(--indigo-dark); box-shadow: 0 6px 28px rgba(99,102,241,0.45); }
.btn-primary:hover::after { left: 100%; }

.btn-ghost {
  background: transparent;
  color: var(--slate);
  border: 1px solid var(--glass-border-strong);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); color: var(--white); }

.btn-white {
  background: #fff; color: var(--navy); font-weight: 700;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.btn-white:hover { background: rgba(255,255,255,0.92); box-shadow: 0 6px 32px rgba(0,0,0,0.3); }

/* ── Scroll animations ────────────────────────── */
.anim-fade {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.anim-fade.visible { opacity: 1; transform: translateY(0); }
.anim-delay-1 { transition-delay: 0.10s; }
.anim-delay-2 { transition-delay: 0.20s; }
.anim-delay-3 { transition-delay: 0.30s; }

/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}
nav.scrolled {
  background: rgba(15,23,42,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner  { display: flex; align-items: center; justify-content: space-between; }
.nav-left   { display: flex; align-items: center; gap: 12px; }
.nav-logo   { font-size: 15px; font-weight: 700; color: var(--white); letter-spacing: -0.01em; }
.nav-badge  {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2px;
  color: #A5B4FC;
  background: rgba(99,102,241,0.14); border: 1px solid rgba(99,102,241,0.28);
  padding: 4px 10px; border-radius: var(--r-pill);
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 100px; padding-bottom: 80px; overflow: hidden;
}
.hero-gradient {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(99,102,241,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 45% 45% at 15% 90%, rgba(99,102,241,0.07) 0%, transparent 65%);
  animation: hero-pulse 9s ease-in-out infinite alternate;
}
@keyframes hero-pulse {
  0%   { opacity: 0.75; }
  100% { opacity: 1.0;  }
}
.hero-inner    { max-width: 760px; }
.hero-headline { color: var(--white); margin-bottom: 24px; }
.hero-sub {
  font-size: 1.125rem; color: var(--slate); max-width: 600px;
  margin-bottom: 40px; line-height: 1.75;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════════ */
.section-header { margin-bottom: 56px; }
.section-header h2 { color: var(--white); }

/* ══════════════════════════════════════════════
   PROBLEM
══════════════════════════════════════════════ */
#problem {
  background: rgba(255,255,255,0.018);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pain-card {
  background: rgba(15,23,42,0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl); padding: 32px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.pain-card:hover {
  border-color: rgba(239,68,68,0.22);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.pain-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.pain-icon-red    { background: rgba(239,68,68,0.10);  border: 1px solid rgba(239,68,68,0.22);  color: #EF4444; }
.pain-icon-orange { background: rgba(249,115,22,0.10); border: 1px solid rgba(249,115,22,0.22); color: #F97316; }
.pain-card p { font-size: 15px; color: var(--slate); line-height: 1.72; }

/* ══════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════ */
#how-it-works { }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: start; gap: 0;
}
.step-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl); padding: 32px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.step-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-3px); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(99,102,241,0.14); border: 1px solid rgba(99,102,241,0.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--indigo);
  margin-bottom: 18px;
}
.step-card h3 { color: var(--white); font-size: 0.9375rem; margin-bottom: 10px; }
.step-card p  { font-size: 14px; color: var(--slate); line-height: 1.7; margin-bottom: 16px; }
.step-badges  { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25);
  color: #A5B4FC;
}
.step-connector {
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 56px;
}
.step-connector::before {
  content: '';
  display: block; width: 28px; height: 1px;
  background: linear-gradient(90deg, rgba(99,102,241,0.5), rgba(99,102,241,0.1));
}

/* ══════════════════════════════════════════════
   FEATURES GRID
══════════════════════════════════════════════ */
#features {
  background: rgba(255,255,255,0.018);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: rgba(15,23,42,0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); padding: 28px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  border-color: rgba(99,102,241,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(99,102,241,0.10); border: 1px solid rgba(99,102,241,0.20);
  display: flex; align-items: center; justify-content: center;
  color: var(--indigo); margin-bottom: 16px;
  transition: background 0.2s, box-shadow 0.2s;
}
.feature-card:hover .feature-icon {
  background: rgba(99,102,241,0.18);
  box-shadow: 0 0 16px rgba(99,102,241,0.15);
}
.feature-card h3 { color: var(--white); font-size: 0.9375rem; margin-bottom: 8px; }
.feature-card p  { font-size: 13.5px; color: var(--slate); line-height: 1.68; }

/* ══════════════════════════════════════════════
   WAITLIST
══════════════════════════════════════════════ */
#waitlist {
  background: linear-gradient(135deg, #3730A3 0%, var(--indigo) 55%, #4F46E5 100%);
  overflow: hidden;
}
.waitlist-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 65% 80% at 50% 0%, rgba(255,255,255,0.14) 0%, transparent 60%);
}
.waitlist-inner {
  max-width: 580px; margin: 0 auto;
  text-align: center; position: relative;
}
.waitlist-header { margin-bottom: 40px; }
.waitlist-header h2 { color: #fff; margin-bottom: 12px; }
.waitlist-header p  { color: rgba(255,255,255,0.75); font-size: 1.0625rem; }

.waitlist-form   { text-align: left; }
.form-fields     { display: flex; flex-direction: column; gap: 14px; }
.form-row        { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group      { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); }

.form-group input,
.form-group select {
  padding: 13px 16px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff; font-family: 'Inter', sans-serif; font-size: 14px;
  outline: none; transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none; appearance: none;
}
.form-group input::placeholder { color: rgba(255,255,255,0.40); }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='rgba%28255%2C255%2C255%2C0.5%29' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px; cursor: pointer;
}
.form-group select option { background: var(--navy); color: var(--white); }
.form-group input:focus,
.form-group select:focus {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.18);
}

.submit-btn { width: 100%; justify-content: center; margin-top: 4px; }

.form-success {
  display: none; flex-direction: column; align-items: center;
  text-align: center; gap: 14px; padding: 32px 0;
}
.form-success.show { display: flex; }
.success-icon { color: rgba(255,255,255,0.9); }
.form-success h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0; }
.form-success p  { color: rgba(255,255,255,0.72); font-size: 1rem; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 36px 0; position: relative; z-index: 1;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
}
.footer-inner > span { font-size: 13px; color: var(--slate-dim); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--slate-dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--slate); }
.footer-tagline { font-size: 12px; color: var(--slate-dim); opacity: 0.65; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 960px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .step-connector {
    height: 28px; padding-top: 0;
    justify-content: flex-start; padding-left: 28px;
  }
  .step-connector::before {
    width: 1px; height: 28px;
    background: linear-gradient(180deg, rgba(99,102,241,0.5), rgba(99,102,241,0.1));
  }
}

@media (max-width: 900px) {
  .pain-grid     { grid-template-columns: 1fr; max-width: 520px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-inner  { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
  .container  { padding: 0 16px; }
  .hero-btns  { flex-direction: column; align-items: stretch; }
  .btn-lg     { justify-content: center; }
  .nav-badge  { display: none; }
  .footer-inner { gap: 12px; }
}
