@import "tokens.css";

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

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─────────────────────────────────────────── */
.nav {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 56px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .nav {
    padding: 0 20px;
    height: 52px;
  }
  .nav-logo.markcom-logo {
    height: 20px;
  }
  .nav-x {
    font-size: 16px;
  }
  .nav-logo.letzai-logo {
    height: 14px;
  }
  .letzai-pill-nav {
    padding: 5px 10px;
  }
}

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

.nav-logo-wrap {
  display: flex;
  align-items: center;
}

.nav-logo.markcom-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
}

.letzai-pill-nav {
  background: #0a0a0a;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  display: flex;
  align-items: center;
}

.nav-logo.letzai-logo {
  height: 18px;
  width: auto;
  object-fit: contain;
}

.nav-x {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1;
  letter-spacing: -0.02em;
  user-select: none;
}

/* Desktop: show full headline, hide mobile shorthand */
.hero-hl-desktop { display: block; }
.hero-hl-mobile   { display: none; }

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  width: 100%;
  padding: 24px 56px 0;
  flex-shrink: 0;
  /* Ensure rounded card corners are never clipped by overflow:hidden on body */
  isolation: isolate;
}

.hero-card {
  position: relative;
  width: 100%;
  height: 418px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #111;
  /* Prevent subpixel clipping of border-radius on some browsers */
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.28) 0%,
    rgba(0,0,0,0.62) 55%,
    rgba(0,0,0,0.88) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 52px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}

.hero-headline {
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-wrap: balance;
}

/* Hero mobile — placed AFTER base rules so cascade order is correct */
@media (max-width: 768px) {
  .hero {
    padding: 16px 16px 0;
  }
  .hero-card {
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
  }
  .hero-overlay {
    padding: 16px;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.0) 0%,
      rgba(0,0,0,0.45) 55%,
      rgba(0,0,0,0.80) 100%
    );
  }
  .hero-eyebrow {
    display: none;
  }
  .hero-hl-desktop { display: none; }
  .hero-hl-mobile   { display: block; }
  .hero-headline {
    font-size: 13px;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }
}

/* ─── SUB-HERO ─────────────────────────────────────── */
.subhero {
  width: 100%;
  padding: 22px 56px 0;
  display: flex;
  justify-content: center;
}

.subhero-text {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.55;
  max-width: 600px;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .subhero {
    padding: 16px 20px 0;
  }
  .subhero-text {
    font-size: 15px;
  }
}

/* ─── COUPON ───────────────────────────────────────── */
.coupon-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 56px 0;
}

.coupon-pill {
  background: #0a0a0a;
  border-radius: var(--radius-pill);
  padding: 14px 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.coupon-code {
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ffffff;
}

@media (max-width: 768px) {
  .coupon-block {
    padding: 16px 20px 0;
  }
  .coupon-pill {
    padding: 12px 20px;
    max-width: 100%;
  }
  .coupon-code {
    font-size: 20px;
    letter-spacing: 0.1em;
  }
  .coupon-label {
    font-size: 12px;
  }
}

.coupon-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ─── CTA ──────────────────────────────────────────── */
.cta-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 56px 64px;
}

@media (max-width: 768px) {
  .cta-wrap {
    padding: 16px 20px 48px;
  }
  .cta-btn {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 14px 24px;
  }
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  background: #0a0a0a;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  transition: background 0.18s ease, transform 0.14s ease;
  cursor: pointer;
}

.cta-btn:hover {
  background: #222;
  transform: translateY(-1px);
}

.cta-btn:active {
  transform: translateY(0);
}

/* ─── FOOTER ───────────────────────────────────────── */
.footer {
  width: 100%;
  padding: 18px 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--hairline);
  margin-top: 20px;
}

@media (max-width: 768px) {
  .footer {
    padding: 24px 20px 40px;
    margin-top: 0;
  }
  .footer-logo.markcom-footer {
    height: 26px;
  }
  .footer-logo.letzai-footer {
    height: 16px;
  }
  .letzai-pill-footer {
    padding: 6px 12px;
  }
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo.markcom-footer {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}

.letzai-pill-footer {
  background: #0a0a0a;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  opacity: 0.85;
}

.footer-logo.letzai-footer {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.footer-x {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  user-select: none;
}

.footer-note {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
