/* ============================================
   HEIRLOOM — Teaser Landing Page
   ============================================ */

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

:root {
  --color-primary: #E84316;
  --color-primary-dark: #c9370f;
  --color-primary-light: #ff6b42;
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-surface-alt: #f4f2ef;
  --color-text: #1a1a1a;
  --color-text-secondary: #6b6b6b;
  --color-text-muted: #9a9a9a;
  --color-border: #e8e5e0;
  --color-dark: #0f0f0f;
  --color-purple: #6b4c9a;
  --color-gold: #c4952d;
  --color-green: #2a7d4f;
  --color-blue: #2d6bcf;
  --color-rose: #c44d6e;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232, 67, 22, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn--outline:hover {
  border-color: var(--color-text);
  background: rgba(0,0,0,0.02);
}

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

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.nav--scrolled {
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  height: 32px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: var(--transition);
}
.nav__link:hover {
  color: var(--color-text);
}

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

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

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

.hero__gradient {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 67, 22, 0.06) 0%, transparent 70%);
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, black 20%, transparent 70%);
}

.hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.hero__container--centered {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.hero__content--centered .hero__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero__content--centered .hero__cta {
  justify-content: center;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  gap: 12px;
}

/* Hero Screenshot */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__screenshot {
  width: 100%;
  max-width: 560px;
}

/* --- Screenshot Placeholders --- */
.screenshot-placeholder {
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 80px 32px;
  min-height: 400px;
  box-shadow: var(--shadow-xl);
}

.screenshot-placeholder--wide {
  min-height: 360px;
  border-radius: var(--radius-lg);
}

.screenshot-placeholder__icon {
  color: rgba(255,255,255,0.15);
}

.screenshot-placeholder__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.screenshot-placeholder__sublabel {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.12);
  max-width: 300px;
}

/* When you replace placeholders with real screenshots, use this class */
.screenshot-placeholder--has-image {
  padding: 0;
  min-height: 0;
  overflow: hidden;
}

.screenshot-placeholder--has-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-header__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.section-header__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-header__subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* --- Features --- */
.features {
  padding: 120px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(232, 67, 22, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(232, 67, 22, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__icon--purple { background: rgba(107, 76, 154, 0.08); color: var(--color-purple); }
.feature-card__icon--gold   { background: rgba(196, 149, 45, 0.08); color: var(--color-gold); }
.feature-card__icon--green  { background: rgba(42, 125, 79, 0.08);  color: var(--color-green); }
.feature-card__icon--blue   { background: rgba(45, 107, 207, 0.08); color: var(--color-blue); }
.feature-card__icon--rose   { background: rgba(196, 77, 110, 0.08); color: var(--color-rose); }

.feature-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* --- App Preview --- */
.preview {
  padding: 120px 0;
  background: var(--color-surface-alt);
}

.preview__showcase {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.preview__item {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

.preview__item--reverse {
  direction: rtl;
}

.preview__item--reverse > * {
  direction: ltr;
}

.preview__title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.preview__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.preview__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* --- Who It's For --- */
.who {
  padding: 120px 0;
}

.who__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.who__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.who__card:hover {
  border-color: rgba(232, 67, 22, 0.15);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.who__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(232, 67, 22, 0.06);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.who__icon--purple { background: rgba(107, 76, 154, 0.06); color: var(--color-purple); }
.who__icon--gold   { background: rgba(196, 149, 45, 0.06); color: var(--color-gold); }
.who__icon--green  { background: rgba(42, 125, 79, 0.06);  color: var(--color-green); }

.who__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.who__desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* --- CTA / Waitlist --- */
.cta {
  padding: 120px 0;
  background: var(--color-dark);
}

.cta__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.cta__bg-pattern {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 67, 22, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(232, 67, 22, 0.3);
  margin-bottom: 24px;
  position: relative;
}

.cta__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
}

.cta__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
  position: relative;
}

.cta__form {
  position: relative;
}

.cta__input-wrap {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.1);
}

.cta__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #fff;
}

.cta__input::placeholder {
  color: rgba(255,255,255,0.3);
}

.cta__disclaimer {
  margin-top: 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.cta__success {
  position: relative;
}

.cta__success h3 {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 16px 0 8px;
}

.cta__success p {
  color: rgba(255,255,255,0.5);
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

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

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

.footer__brand img {
  height: 24px;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  color: var(--color-text-muted);
  transition: var(--transition);
}

.footer__social a:hover {
  color: var(--color-primary);
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ============================================
   Animations
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__screenshot {
    max-width: 480px;
    margin: 0 auto;
  }

  .preview__item,
  .preview__item--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
  }

  .who__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__actions {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav.nav--open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav.nav--open .nav__actions {
    display: flex;
    position: absolute;
    top: calc(100% + 120px);
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero__title {
    font-size: 2.8rem;
  }

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

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

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

  .screenshot-placeholder {
    min-height: 280px;
    padding: 60px 24px;
  }

  .screenshot-placeholder--wide {
    min-height: 240px;
  }

  .cta__input-wrap {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 8px;
  }

  .cta__input {
    text-align: center;
  }

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

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

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.2rem;
  }

  .preview__title {
    font-size: 1.4rem;
  }
}
