/* ============================================================
   SidelineIQ — Landing Page Styles
   ============================================================ */

:root {
  --bg:        #0a0e16;
  --bg-soft:   #111827;
  --surface:   #151b29;
  --surface-2: #1b2333;
  --border:    rgba(255, 255, 255, 0.08);
  --text:      #e8edf5;
  --muted:     #9aa6b8;
  --accent:    #f97316;   /* basketball orange */
  --accent-2:  #fb923c;
  --cool:      #38bdf8;    /* cool counter-accent */
  --radius:    16px;
  --maxw:      1120px;
  --shadow:    0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, .brand-name { font-family: 'Sora', 'Inter', sans-serif; letter-spacing: -0.02em; }

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

.accent { color: var(--accent); }

/* Background glow */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 75% -5%, rgba(249, 115, 22, 0.16), transparent 55%),
    radial-gradient(700px circle at 10% 10%, rgba(56, 189, 248, 0.10), transparent 50%);
  pointer-events: none;
}

/* ---------- NAV ---------- */
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { color: var(--accent); display: grid; place-items: center; }
.brand-name { font-size: 1.25rem; font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* Sprach-Umschalter */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.lang-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); border-color: rgba(249, 115, 22, 0.4); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-family: inherit;
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
  font-size: 0.98rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1006;
  box-shadow: 0 8px 24px -8px rgba(249, 115, 22, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(249, 115, 22, 0.7); }
.btn-ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 10px 18px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- HERO ---------- */
.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 24px 90px;
  text-align: center;
}
.badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--accent-2);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 22px;
}
.gradient {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 40%, var(--cool));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
}
.lead strong { color: var(--text); font-weight: 600; }

/* ---------- WAITLIST FORM ---------- */
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.waitlist-form input[type="email"] {
  flex: 1 1 240px;
  padding: 13px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.waitlist-form input::placeholder { color: #647084; }
.waitlist-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}
.form-note { color: #647084; font-size: 0.85rem; margin-top: 14px; }
.consent { color: #56627a; font-size: 0.78rem; margin-top: 8px; max-width: 460px; margin-left: auto; margin-right: auto; }
.consent a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--accent); }
.form-note.success { color: #4ade80; font-weight: 600; }
.form-note.error { color: #f87171; }

.trust { margin-top: 48px; color: #56627a; font-size: 0.9rem; }

/* ---------- SECTION HEADINGS ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-top: 12px;
  font-weight: 800;
}

/* ---------- FEATURES ---------- */
.features { max-width: var(--maxw); margin: 0 auto; padding: 60px 24px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: var(--shadow);
}
.card-icon {
  font-size: 1.8rem;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- HOW IT WORKS ---------- */
.how { max-width: var(--maxw); margin: 0 auto; padding: 60px 24px; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.step { position: relative; padding: 8px 4px; }
.step-num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1006;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---------- CTA ---------- */
.cta { max-width: var(--maxw); margin: 40px auto 80px; padding: 0 24px; }
.cta-inner {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(56, 189, 248, 0.08));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px 32px;
  text-align: center;
}
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 14px; }
.cta-inner p { color: var(--muted); max-width: 520px; margin: 0 auto 32px; }

/* ---------- FOOTER ---------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-tag { color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: #56627a; font-size: 0.85rem; width: 100%; }

/* ---------- LEGAL PAGES ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.legal .back:hover { color: var(--accent); }
.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}
.legal .updated { color: #56627a; font-size: 0.88rem; margin-bottom: 36px; }
.legal h2 {
  font-size: 1.3rem;
  margin: 36px 0 12px;
  padding-top: 8px;
}
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent); }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal .placeholder {
  background: rgba(249, 115, 22, 0.1);
  border: 1px dashed rgba(249, 115, 22, 0.5);
  color: var(--accent-2);
  padding: 1px 7px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.95em;
}
.legal .box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0;
}

/* ---------- REVEAL ANIMATION ---------- */
.card, .step, .section-head { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal { opacity: 1 !important; transform: none !important; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .card, .step, .section-head { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
