/* =========================================================
   LaunchDeck SaaS — Landing Page CSS v1
   File: landing-pages/saas-beta-waitlist/styles.css
   Design: Near-black base, indigo accents, cinematic hero
           overlay, clean SaaS tech aesthetic
========================================================= */

/* =========================================================
   1) THEME TOKENS
========================================================= */
:root {
  --bg:            #09090f;
  --bg-alt:        #0f0f18;
  --bg-card:       rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);

  --text:          #f1f5f9;
  --muted:         #94a3b8;
  --muted-2:       #64748b;
  --line:          rgba(255, 255, 255, 0.08);

  --cta:           #6366f1;
  --cta-hover:     #818cf8;
  --cta-dark:      #ffffff;
  --cta-glow:      rgba(99, 102, 241, 0.3);
  --cta-border:    rgba(99, 102, 241, 0.4);

  --accent-line:   3px solid #6366f1;
  --radius:        10px;
  --radius-lg:     16px;

  --font-display:  'Oswald', sans-serif;
  --font-body:     system-ui, -apple-system, sans-serif;

  --container:     1140px;
  --section-pad:   96px 0;
  --section-pad-sm: 64px 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cta);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--cta-hover);
}

ul, ol {
  list-style: none;
}

/* =========================================================
   3) CONTAINER
========================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   4) BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn--cta {
  background: var(--cta);
  color: var(--cta-dark);
  border-color: var(--cta);
  font-weight: 700;
}

.btn--cta:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  color: var(--cta-dark);
  box-shadow: 0 0 24px var(--cta-glow);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

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

/* =========================================================
   5) HEADER
========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 15, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__icon {
  font-size: 1.6rem;
  color: var(--cta);
  line-height: 1;
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.brand__sub {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link--cta {
  background: var(--cta);
  color: var(--cta-dark);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  padding: 9px 16px;
}

.nav__link--cta:hover {
  background: var(--cta-hover);
  color: var(--cta-dark);
}

/* =========================================================
   6) HERO
========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(9, 9, 15, 0.92) 0%,
    rgba(9, 9, 15, 0.80) 45%,
    rgba(9, 9, 15, 0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--cta);
}

.hero-subhead {
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.7;
}

/* =========================================================
   7) TRUST STRIP
========================================================= */
.trust-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--cta-border);
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
}

.trust-strip__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 28px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.trust-strip__icon {
  font-size: 1rem;
  color: var(--cta);
}

.trust-strip__divider {
  width: 1px;
  height: 24px;
  background: var(--line);
}

/* =========================================================
   8) SECTION SYSTEM
========================================================= */
.section {
  padding: var(--section-pad);
}

.section--alt {
  background: var(--bg-alt);
}

.section__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cta);
  margin-bottom: 12px;
}

.section__label--light {
  color: rgba(99, 102, 241, 0.7);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 40px;
}

.section__lead--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* =========================================================
   9) BENEFITS / FEATURE CARDS
========================================================= */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.benefit {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px 28px 32px;
  position: relative;
  transition: background 0.2s, transform 0.2s;
  overflow: hidden;
}

.benefit:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.benefit__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cta);
}

.benefit__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.benefit__text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================================
   10) PROCESS / STEP CARDS
========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  margin-top: 56px;
  text-align: left;
}

.steps--three {
  grid-template-columns: repeat(3, 1fr);
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: var(--accent-line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: background 0.2s;
}

.step:hover {
  background: var(--bg-card-hover);
}

.step__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--cta);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 16px;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.step__text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* =========================================================
   11) FAQ
========================================================= */
.faq__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.faq__inner .section__title {
  text-align: left;
  margin-left: 0;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq__item[open] {
  border-color: var(--cta-border);
}

.faq__item summary {
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '+';
  color: var(--cta);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item summary:hover {
  color: var(--cta);
}

.faq__content {
  padding: 0 24px 20px;
  border-top: 1px solid var(--line);
}

.faq__content p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  padding-top: 16px;
}

/* =========================================================
   12) FINAL CTA
========================================================= */
.final-cta {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.final-cta__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, transparent 60%);
  border-top: 1px solid var(--cta-border);
  border-bottom: 1px solid var(--cta-border);
}

.final-cta__inner {
  position: relative;
  z-index: 1;
}

.final-cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
}

.final-cta__text {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 40px;
}

.final-cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   13) CONTACT / WAITLIST FORM
========================================================= */
.contact {
  background: var(--bg-alt);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact__inner--center {
  max-width: 560px;
  margin: 0 auto;
  display: block;
}

.contact__inner--center .contact__content {
  text-align: center;
  margin-bottom: 32px;
}

.contact__inner--center .section__title {
  text-align: center;
}

.contact__inner--center .section__lead {
  margin-left: auto;
  margin-right: auto;
}

.contact__content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact__formwrap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: var(--accent-line);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__row label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form__row input,
.form__row textarea,
.form__row select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.form__row input::placeholder,
.form__row textarea::placeholder {
  color: var(--muted-2);
}

.form__row input:focus,
.form__row textarea:focus,
.form__row select:focus {
  border-color: var(--cta);
  background: rgba(99, 102, 241, 0.05);
}

.form__row textarea {
  resize: vertical;
  min-height: 110px;
}

.form__row select {
  appearance: none;
  cursor: pointer;
}

.form__row select option {
  background: var(--bg-alt);
  color: var(--text);
}

.form__note {
  font-size: 0.75rem;
  color: var(--muted-2);
  line-height: 1.5;
  text-align: center;
}

/* =========================================================
   14) FOOTER
========================================================= */
.footer {
  background: #000000;
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__brand .brand__icon {
  color: var(--cta);
  font-size: 1.2rem;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.footer__small {
  font-size: 0.8rem;
  color: var(--muted-2);
}

.footer__link {
  font-size: 0.82rem;
  color: var(--cta);
  font-weight: 500;
}

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

/* =========================================================
   15) RESPONSIVE
========================================================= */
@media (max-width: 900px) {
  .steps,
  .steps--three {
    grid-template-columns: 1fr 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }

  .faq__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__formwrap {
    padding: 28px 20px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  :root {
    --section-pad: 64px 0;
    --section-pad-sm: 48px 0;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .nav .nav__link:not(.nav__link--cta) {
    display: none;
  }

  .steps,
  .steps--three {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip__inner {
    gap: 8px;
  }

  .trust-strip__item {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .trust-strip__divider {
    display: none;
  }

  .final-cta__actions {
    flex-direction: column;
    align-items: center;
  }
}
