/* ============================================================
   Launchpad OS Showcase Site - main.css
   Session 5 - HTML structure and CSS
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=IBM+Plex+Serif:ital,wght@0,300;0,400;1,300&display=swap');

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  /* Palette */
  --basalt:      #2F3437;
  --alpenglow:   #C8623A;
  --sage:        #7A8F7B;
  --forest:      #2D5240;
  --off-white:   #F8F8F6;
  --warm-gray:   #EDEAE3;
  --warm-white:  #FFFFFF;
  --text-1:      #2F3437;
  --text-2:      #5A5E61;
  --text-3:      #8A8E91;

  /* Type scale */
  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-lg:   20px;
  --text-xl:   clamp(28px, 3.5vw, 42px);
  --text-h2:   clamp(20px, 2.2vw, 28px);

  /* Spacing */
  --space-1:   8px;
  --space-2:   16px;
  --space-3:   24px;
  --space-4:   32px;
  --space-5:   48px;
  --space-6:   64px;
  --space-7:   80px;
  --space-8:   96px;

  /* Layout */
  --max-w:       860px;
  --max-w-wide: 1100px;
  --nav-h:       64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-1);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 0.5px solid transparent;
}

.nav.nav--solid {
  background: var(--off-white);
  border-bottom-color: rgba(47, 52, 55, 0.15);
}

.nav__inner {
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav__logo {
  height: 60px;
  width: auto;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

/* Transparent state: logo inverted to white */
.nav:not(.nav--solid) .nav__logo {
  filter: brightness(0) invert(1);
}

/* Solid state: logo at natural basalt color */
.nav--solid .nav__logo {
  filter: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  padding: 4px 8px;
  background: transparent;
}

.nav__links a:hover {
  color: white;
  background: rgba(122, 143, 123, 0.8);
}

.nav--solid .nav__links a {
  color: var(--text-2);
  text-shadow: none;
}

.nav--solid .nav__links a:hover {
  color: var(--alpenglow);
  background: transparent;
}

.nav__links a.nav__link--active {
  color: white;
  opacity: 1;
}

.nav--solid .nav__links a.nav__link--active {
  color: var(--basalt);
  font-weight: 500;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.55) 35%,
      rgba(0, 0, 0, 0.18) 65%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.25) 0%,
      transparent 30%
    ),
    url('../hero.png') center / cover no-repeat;
}

.hero__inner {
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--space-4);
  padding-top: var(--nav-h);
}

.hero__headline {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 300;
  font-size: var(--text-xl);
  line-height: 1.2;
  color: white;
  max-width: 560px;
  margin-bottom: var(--space-3);
}

.hero__subhead {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  max-width: 420px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero__subhead em {
  font-style: normal;
  color: var(--alpenglow);
}

.hero__subhead--gap {
  margin-bottom: var(--space-3);
}

/* ── Section shared ───────────────────────────────────────── */
.section {
  padding: var(--space-7) 0;
}

.section__inner {
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section__inner--narrow {
  max-width: var(--max-w);
}

.section-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: var(--space-2);
}

.section-label--center {
  text-align: center;
}

.alpenglow-rule {
  width: 32px;
  height: 1.5px;
  background: var(--alpenglow);
  margin-bottom: var(--space-3);
}

.alpenglow-rule--center {
  margin-left: auto;
  margin-right: auto;
}

.section__h2 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: var(--text-h2);
  font-weight: 400;
  color: var(--basalt);
  line-height: 1.3;
  margin-bottom: var(--space-3);
}

.section__h2--center {
  text-align: center;
}

/* ── What is Launchpad OS ─────────────────────────────────── */
.what {
  background: var(--off-white);
}

.what__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.what__prose {
  color: var(--text-2);
}

.what__prose p {
  margin-bottom: var(--space-3);
}

.what__prose p:last-child {
  margin-bottom: 0;
}

.what__checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: 6px;
}

.what__check-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-base);
  color: var(--text-1);
  line-height: 1.6;
}

.check-circle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.check-circle svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: white;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Proofs section ───────────────────────────────────────── */
.proofs {
  background: var(--warm-white);
}

.proofs__header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.proofs__stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* ── Proof card ───────────────────────────────────────────── */
.proof-card {
  background: var(--warm-white);
  border: 0.5px solid rgba(47, 52, 55, 0.10);
  border-left: 3px solid var(--forest);
  border-radius: 2px;
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}

.proof-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.proof-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
}

.proof-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: white;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proof-card__number {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  display: block;
  margin-bottom: 2px;
}

.proof-card__title {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--basalt);
  line-height: 1.2;
}

.proof-card__body {
  color: var(--text-2);
  margin-bottom: var(--space-3);
}

.proof-card__body p {
  margin-bottom: var(--space-2);
}

.proof-card__body p:last-child {
  margin-bottom: 0;
}

.proof-card__body strong {
  color: var(--text-1);
  font-weight: 500;
}

.proof-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-3);
}

.tag-pill {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--alpenglow);
  color: var(--alpenglow);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  background: transparent;
  border-radius: 2px;
}

.proof-card__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.proof-card__link:hover {
  color: var(--alpenglow);
}

.proof-card__right {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: calc(var(--text-lg) * 1.2 + var(--space-3) + 4px);
}

.proof-card__screenshot {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 16px rgba(47, 52, 55, 0.10);
  border: 0.5px solid rgba(47, 52, 55, 0.08);
}

/* ── How it Works ─────────────────────────────────────────── */
.how {
  background: var(--warm-gray);
}

.how__header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.how-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.how-card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: white;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-card__title {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--basalt);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.how-card__body {
  color: var(--text-2);
  font-size: var(--text-base);
  line-height: 1.75;
}

.how-card__list {
  list-style: none;
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.how-card__list li {
  font-size: 14px;
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
}

.how-card__list li::before {
  content: '';
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--forest);
  margin-top: 8px;
}

/* ── CTA / Footer ─────────────────────────────────────────── */
.cta {
  background: var(--basalt);
  padding: var(--space-7) 0;
}

.cta__inner {
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta__headline {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 400;
  color: white;
  line-height: 1.3;
  max-width: 640px;
  margin-bottom: var(--space-5);
}

.cta__headline em {
  font-style: normal;
  color: var(--alpenglow);
}

.cta__button {
  display: inline-block;
  background: var(--alpenglow);
  color: white;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 13px 28px;
  border-radius: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
  margin-bottom: var(--space-3);
}

.cta__button:hover {
  opacity: 0.85;
}

.cta__support {
  font-size: var(--text-sm);
  color: rgba(248, 248, 246, 0.6);
  max-width: 480px;
  line-height: 1.7;
}

/* ── Footer identity ──────────────────────────────────────── */
.footer {
  background: var(--basalt);
  border-top: 0.5px solid rgba(255, 255, 255, 0.10);
  padding: var(--space-4) 0;
}

.footer__inner {
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer__logo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer__note {
  font-size: 12px;
  color: rgba(248, 248, 246, 0.4);
}

/* ── Responsive ───────────────────────────────────────────── */
/* ── Lightbox ─────────────────────────────────────────────── */
.proof-card__screenshot {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 52, 55, 0.88);
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  cursor: zoom-out;
}

.lightbox.lightbox--open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform 0.2s ease;
  cursor: zoom-out;
}

.lightbox--open .lightbox__img {
  transform: scale(1);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 700px) {
  /* Nav */
  .nav__links {
    gap: var(--space-2);
  }

  .nav__links li:last-child a {
    display: none; /* Hide "Work with me on Upwork" - too long on mobile */
  }

  .nav__links li:nth-last-child(2) a {
    display: none; /* Hide "How it works" on portrait mobile to prevent overflow */
  }

  .nav__logo {
    height: 28px;
  }

  /* Hero */
  .hero {
    height: auto;
    min-height: 480px;
    padding-top: var(--nav-h);
    padding-bottom: var(--space-6);
    background-position: 65% center;
  }

  .hero__inner {
    padding-top: var(--space-5);
  }

  /* Sections */
  .section {
    padding: var(--space-5) 0;
  }

  /* What is */
  .what__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Proof cards */
  .proof-card {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .proof-card__right {
    order: 1;
    padding-top: 0;
  }

  /* How it Works */
  .how__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* CTA */
  .cta__headline {
    font-size: clamp(22px, 5vw, 28px);
  }

  /* Footer */
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer__logo {
    height: 36px;
  }

  .proof-card__elapsed {
  font-size: var(--text-xs);
  color: var(--text-3);
  margin-top: var(--space-2);
  letter-spacing: 0.02em;
  }
}
