/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #D42B2B;
  --red-dark:  #A82020;
  --red-glow:  rgba(212, 43, 43, 0.25);
  --blue:      #1E6CB5;
  --blue-dark: #174F87;
  --blue-glow: rgba(30, 108, 181, 0.25);
  --bg:        #0E0E0E;
  --bg-card:   #181818;
  --bg-border: #2A2A2A;
  --text:      #F0F0F0;
  --text-muted:#9A9A9A;
  --white:     #FFFFFF;
  --radius:    12px;
  --radius-lg: 20px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p  { color: var(--text-muted); }

.gradient-text {
  background: linear-gradient(135deg, var(--red) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section--sm { padding: 48px 0; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-border);
  padding: 16px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}
.nav__logo img { height: 40px; width: 40px; border-radius: 50%; }
.nav__cta {
  background: var(--red);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}
.nav__cta:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, var(--red-glow) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, var(--blue-glow) 0%, transparent 65%);
  pointer-events: none;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--bg-border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.hero__eyebrow span { color: var(--red); font-weight: 600; }
.hero h1 { margin-bottom: 24px; color: var(--white); }
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 620px;
  margin: 0 auto 48px;
  color: var(--text-muted);
}
.hero__form-wrap {
  max-width: 520px;
  margin: 0 auto;
}
.hero__form-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.hero__form-label strong { color: var(--text); }

/* ===== SIGNUP FORM ===== */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signup-form__row {
  display: flex;
  gap: 10px;
}
.signup-form input[type="text"],
.signup-form input[type="email"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}
.signup-form input::placeholder { color: var(--text-muted); }
.signup-form input:focus { border-color: var(--blue); }
.signup-form button,
.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, #c0231c 100%);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
  width: 100%;
}
.signup-form button:hover,
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.form__consent {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: left;
}
.form__consent a { color: var(--blue); text-decoration: underline; }

/* Consent checkbox */
.form__checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  text-align: left;
}
.form__checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 1px;
  accent-color: var(--blue);
  cursor: pointer;
  flex: none;
}
.form__checkbox-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.form__checkbox-text a { color: var(--blue); text-decoration: underline; }

/* ===== SOCIAL PROOF ===== */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.social-proof__avatars {
  display: flex;
}
.social-proof__avatars span {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: -10px;
}
.social-proof__avatars span:first-child { margin-left: 0; }
.social-proof__avatars span:nth-child(1) { background: var(--red); }
.social-proof__avatars span:nth-child(2) { background: var(--blue); }
.social-proof__avatars span:nth-child(3) { background: #6B3FA0; }
.social-proof__avatars span:nth-child(4) { background: #1A8754; }
.social-proof__text { font-size: 0.9rem; color: var(--text-muted); }
.social-proof__text strong { color: var(--text); }

/* ===== PROBLEM SECTION ===== */
.problem { background: var(--bg-card); border-top: 1px solid var(--bg-border); border-bottom: 1px solid var(--bg-border); }
.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.problem__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.problem h2 { color: var(--white); margin-bottom: 20px; }
.problem p  { margin-bottom: 16px; font-size: 1.05rem; }
.pain-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.pain-list li {
  background: var(--bg);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.pain-list li .icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.pain-list li p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }
.pain-list li strong { display: block; color: var(--text); margin-bottom: 4px; }

/* ===== SOLUTION SECTION ===== */
.solution__intro { text-align: center; margin-bottom: 60px; }
.solution__intro .label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.solution__intro h2 { color: var(--white); margin-bottom: 16px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}
.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}
.feature-card h3 { color: var(--white); margin-bottom: 10px; }
.feature-card p  { font-size: 0.95rem; }

/* ===== HOW IT WORKS ===== */
.how { background: var(--bg-card); border-top: 1px solid var(--bg-border); border-bottom: 1px solid var(--bg-border); }
.how__intro { text-align: center; margin-bottom: 56px; }
.how__intro .label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.how__intro h2 { color: var(--white); margin-bottom: 12px; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  position: relative;
}
.step {
  text-align: center;
  padding: 24px 20px;
}
.step__number {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem;
  margin: 0 auto 16px;
}
.step:nth-child(1) .step__number { background: var(--red-glow); color: var(--red); border: 1px solid var(--red); }
.step:nth-child(2) .step__number { background: var(--blue-glow); color: var(--blue); border: 1px solid var(--blue); }
.step:nth-child(3) .step__number { background: rgba(107,63,160,0.2); color: #9B59B6; border: 1px solid #9B59B6; }
.step:nth-child(4) .step__number { background: rgba(26,135,84,0.2); color: #2ECC71; border: 1px solid #2ECC71; }
.step h3 { color: var(--white); margin-bottom: 8px; }
.step p  { font-size: 0.9rem; }

/* ===== WHO IS IT FOR ===== */
.roles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  justify-content: center;
}
.role-tag {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}
.role-tag:hover { border-color: var(--blue); color: var(--text); }
.who__intro { text-align: center; }
.who__intro .label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.who__intro h2 { color: var(--white); margin-bottom: 12px; }

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,43,43,0.12) 0%, rgba(30,108,181,0.08) 50%, transparent 75%);
  pointer-events: none;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p  { max-width: 500px; margin: 0 auto 40px; font-size: 1.05rem; }
.cta-section .hero__form-wrap { max-width: 480px; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--bg-border);
  padding: 40px 0 32px;
  text-align: center;
}
.footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 20px;
}
.footer__logo img { height: 36px; width: 36px; border-radius: 50%; }
.footer__links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--text); }
.footer__copy { font-size: 0.8rem; color: var(--text-muted); }

/* ===== INNER PAGES (Privacy, Terms, etc.) ===== */
.page-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--bg-border);
}
.page-hero .label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p  { font-size: 1rem; }
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.prose h2 {
  color: var(--white);
  font-size: 1.35rem;
  margin: 40px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--bg-border);
}
.prose h2:first-of-type { border-top: none; margin-top: 0; }
.prose p  { margin-bottom: 16px; font-size: 0.98rem; line-height: 1.75; }
.prose ul { margin: 12px 0 20px 20px; }
.prose ul li { color: var(--text-muted); margin-bottom: 8px; font-size: 0.98rem; }
.prose a  { color: var(--blue); text-decoration: underline; }
.prose strong { color: var(--text); }

/* ===== THANK YOU PAGE ===== */
/* ===== THANK-YOU ANIMATIONS ===== */
@keyframes ty-pop {
  0%   { opacity: 0; transform: scale(0.4); }
  70%  { transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes ty-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,204,113,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(46,204,113,0); }
}
@keyframes ty-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ty-anim-pop {
  animation: ty-pop 0.55s cubic-bezier(0.34,1.56,0.64,1) both,
             ty-pulse 2.4s ease 0.8s infinite;
}
.ty-anim-fade {
  opacity: 0;
  animation: ty-fade-up 0.5s ease both;
  animation-delay: var(--delay, 0s);
}

.ty-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.ty-hero { margin-bottom: 28px; }
.ty-page .check {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(26,135,84,0.15);
  border: 2px solid #2ECC71;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 28px;
}
.ty-page h1 { color: var(--white); margin-bottom: 16px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.ty-page p  { max-width: 480px; margin: 0 auto 0; font-size: 1.05rem; }

.ty-confirm-alert {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  background: rgba(30,108,181,0.08);
  border: 1px solid rgba(30,108,181,0.35);
  border-radius: var(--radius);
  padding: 18px 20px;
  max-width: 460px;
  width: 100%;
  margin-bottom: 28px;
}
.ty-confirm-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.ty-confirm-alert strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.ty-confirm-alert p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--text-muted);
}

.ty-next {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 40px;
}
.ty-next li {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  max-width: 460px;
  width: 100%;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.ty-next li .num {
  background: var(--blue-glow);
  color: var(--blue);
  border: 1px solid var(--blue);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.btn-secondary {
  border: 1px solid var(--bg-border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 10px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--bg-card);
  border-top: 1px solid var(--bg-border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
#cookie-banner.hidden { display: none; }
.cookie-banner__text {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 640px;
  flex: 1;
}
.cookie-banner__text a { color: var(--blue); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: opacity var(--transition);
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn--accept { background: var(--blue); color: var(--white); }
.cookie-btn--decline { background: #3A3A3A; color: var(--text); border: 1px solid #3A3A3A; }

/* ===== PAGE ENTRANCE — HERO ===== */
@keyframes lp-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow   { animation: lp-fade-up 0.6s  ease both 0.05s; opacity: 0; }
.hero h1         { animation: lp-fade-up 0.65s ease both 0.18s; opacity: 0; }
.hero__sub       { animation: lp-fade-up 0.65s ease both 0.30s; opacity: 0; }
.hero__form-wrap { animation: lp-fade-up 0.65s ease both 0.44s; opacity: 0; }
.social-proof    { animation: lp-fade-up 0.6s  ease both 0.60s; opacity: 0; }

/* Hero background — subtle breathing glow */
@keyframes glow-breathe {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}
.hero::before { animation: glow-breathe 9s  ease-in-out infinite; }
.hero::after  { animation: glow-breathe 11s ease-in-out infinite 3s; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: calc(var(--ri, 0) * 80ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== NAV — transparent at top ===== */
.nav { transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease; }
.nav--at-top {
  background: rgba(14, 14, 14, 0) !important;
  border-bottom-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero h1, .hero__sub, .hero__form-wrap, .social-proof {
    animation: none; opacity: 1;
  }
  .hero::before, .hero::after { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .problem__grid { grid-template-columns: 1fr; }
  .signup-form__row { flex-direction: column; }
  .nav__cta { display: none; }
  #cookie-banner { flex-direction: column; text-align: center; }
  .cookie-banner__actions { width: 100%; }
  .cookie-btn { flex: 1; }
}
