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

:root {
  --yellow: #F5A623;
  --yellow-dark: #d4861a;
  --dark-bg: #0D1117;
  --dark-card: #161B22;
  --dark-border: rgba(255,255,255,0.08);
  --light-bg: #F5F5F0;
  --light-text: #1A1A1A;
  --muted: #6B7280;
  --white: #FFFFFF;

  --icon-orange: #F97316;
  --icon-blue: #3B82F6;
  --icon-purple: #A855F7;
  --icon-green: #22C55E;

  --font: 'Inter', system-ui, sans-serif;
  --radius: 14px;
  --max-w: 480px;
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--dark-bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ===== UTILITIES ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  padding: 20px 0 28px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--white);
}

.nav__logo-img {
  width: 28px;
  height: 28px;
}

/* Placeholder until real meBible logo is ready */
.nav__logo-placeholder,
.footer__logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(245,200,66,0.15);
  border: 1px solid rgba(245,200,66,0.3);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--yellow);
  flex-shrink: 0;
}

.footer__logo-placeholder {
  width: 20px;
  height: 20px;
  font-size: 8px;
  border-radius: 5px;
}

.nav__logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* ===== HERO ===== */
.hero {
  background: var(--dark-bg);
  padding: 0 24px 40px;
  display: flex;
  flex-direction: column;
}

.hero__inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  background: rgba(245,200,66,0.12);
  border: 1px solid rgba(245,200,66,0.25);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
  width: fit-content;
}

.hero__badge-ref {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--yellow);
  text-transform: uppercase;
}

/* Quote card */
.hero__quote {
  background: #1a2035;
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 24px 28px 20px;
  margin-bottom: 36px;
  position: relative;
  text-align: center;
}

.hero__quote-ref {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero__quote-text {
  font-size: clamp(17px, 4.5vw, 21px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.5;
  color: var(--white);
  margin-bottom: 18px;
}

.hero__quote-you {
  font-style: italic;
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.hero__quote-footer {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-style: normal;
  font-weight: 400;
}

.hero__quote-footer strong {
  color: var(--white);
  font-weight: 700;
}

/* Headline */
.hero__headline {
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero__headline-highlight {
  font-style: italic;
  color: var(--yellow);
  -webkit-text-stroke: 0px;
}

/* Sub */
.hero__sub {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 420px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Form card */
.hero__form-card {
  width: 100%;
  background: #131929;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 20px;
}

/* ===== FORMS ===== */
.hero__form,
.cta__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.form-group {
  width: 100%;
}

.input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14.5px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

/* Dark variant (hero) */
.input:not(.input--light) {
  background: #0e1526;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
}

.input:not(.input--light)::placeholder { color: rgba(255,255,255,0.35); }

.input:not(.input--light):focus {
  border-color: rgba(245,200,66,0.4);
  box-shadow: 0 0 0 3px rgba(245,200,66,0.1);
}

/* Light variant (CTA) */
.input--light {
  background: var(--white);
  border: 1.5px solid #E5E7EB;
  color: var(--light-text);
}

.input--light::placeholder { color: #9CA3AF; }

.input--light:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245,200,66,0.15);
}

/* ===== BUTTON ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  border: none;
  border-radius: 10px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
}

.btn--primary {
  padding: 15px 28px;
  font-size: 15px;
  background: var(--yellow);
  color: #1A0E00;
  box-shadow: 0 4px 16px rgba(245,166,35,0.3);
}

.btn--primary:hover {
  background: #f0981a;
  box-shadow: 0 6px 24px rgba(245,166,35,0.45);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(245,166,35,0.2);
}

.btn--full {
  width: 100%;
}

/* ===== WHAT IS ===== */
.what {
  background: var(--white);
  padding: 24px 0;
}

.what .section-title {
  color: var(--light-text);
  margin-bottom: 20px;
}

.what__body {
  font-size: 15.5px;
  color: #374151;
  line-height: 1.8;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
  line-height: 1.2;
}

/* ===== FEATURES ===== */
.features {
  background: var(--light-bg);
  padding: 64px 0;
}

.features .section-title {
  color: var(--light-text);
}

.features__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Feature card */
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #E5E7EB;
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card__icon--orange { background: rgba(249,115,22,0.12); color: var(--icon-orange); }
.feature-card__icon--blue   { background: rgba(59,130,246,0.12);  color: var(--icon-blue);   }
.feature-card__icon--purple { background: rgba(168,85,247,0.12);  color: var(--icon-purple); }
.feature-card__icon--green  { background: rgba(34,197,94,0.12);   color: var(--icon-green);  }

.feature-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--light-text);
  line-height: 1.3;
}

.feature-card__body {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.65;
}

/* ===== CTA ===== */
.cta {
  background: var(--white);
  padding: 24px 0;
}

.cta__headline {
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 800;
  color: var(--light-text);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.cta__sub {
  font-size: 15px;
  color: #6B7280;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 380px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
  padding: 24px 24px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.footer__logo {
  width: 20px;
  height: 20px;
}

.footer__legal {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

.footer__link {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--yellow);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark-card);
  border: 1px solid rgba(245,200,66,0.25);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__badge     { animation: fadeUp 0.5s ease 0.05s both; }
.hero__quote     { animation: fadeUp 0.5s ease 0.15s both; }
.hero__headline  { animation: fadeUp 0.5s ease 0.25s both; }
.hero__sub       { animation: fadeUp 0.5s ease 0.35s both; }
.hero__form      { animation: fadeUp 0.5s ease 0.45s both; }

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .hero { padding: 0 32px 80px; }

  .features__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 900px) {
  :root { --max-w: 800px; }

  .hero {
    min-height: 100vh;
    align-items: center;
  }

  .hero__inner {
    align-items: flex-start;
    max-width: 560px;
  }
}
