/* ============================================
   LEXEGIA — Main Stylesheet
   ============================================ */

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

:root {
  --ink:          #1C1714;
  --ink-2:        #4A3F35;
  --ink-3:        #8C7B6E;
  --cream:        #FAF7F2;
  --parchment:    #F0E9DC;
  --burnt:        #C4551A;
  --burnt-light:  #E8896A;
  --burnt-bg:     #FDF1EB;
  --rule:         rgba(196, 85, 26, 0.15);
  --rule-dark:    rgba(255, 255, 255, 0.08);
  --serif:        'Playfair Display', Georgia, serif;
  --sans:         'Outfit', system-ui, sans-serif;
  --max-w:        1100px;
  --nav-h:        72px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  height: var(--nav-h);
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 2px 20px rgba(28, 23, 20, 0.06);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-diamond {
  width: 8px;
  height: 8px;
  background: var(--burnt);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--burnt);
}

.nav-cta {
  background: var(--burnt);
  color: white;
  border: none;
  padding: 0.6rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--ink);
}

.nav-cta:active {
  transform: scale(0.97);
}

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.hero-left {
  padding: 7rem 4rem 7rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burnt);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.1s forwards;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.2vw, 4rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--burnt);
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.8;
  max-width: 430px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.35s forwards;
}

.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: sepia(15%) brightness(0.9);
}

.hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--cream) 0%, transparent 25%);
  pointer-events: none;
}

/* ============================================
   FORMS — Shared
   ============================================ */
.waitlist-form {
  display: flex;
  border: 1px solid rgba(28, 23, 20, 0.2);
  overflow: hidden;
  max-width: 410px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}

.waitlist-form input {
  flex: 1;
  padding: 0.88rem 1.1rem;
  border: none;
  background: white;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  min-width: 0;
}

.waitlist-form input::placeholder {
  color: var(--ink-3);
}

.waitlist-form input:focus {
  background: #fff;
  outline: none;
  box-shadow: inset 0 0 0 1px var(--burnt);
}

.waitlist-form button {
  padding: 0.88rem 1.3rem;
  background: var(--burnt);
  color: white;
  border: none;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}

.waitlist-form button:hover {
  background: var(--ink);
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.6s forwards;
}

.success-msg {
  display: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--burnt);
  padding: 0.75rem 0;
}

/* ============================================
   SHARED SECTION STYLES
   ============================================ */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--burnt);
  margin-bottom: 1.25rem;
  display: block;
}

.section-headline {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.section-sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.85;
  max-width: 560px;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem {
  background: white;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 7rem 4rem;
}

.problem-header {
  margin-bottom: 4rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.problem-card {
  padding: 2.5rem;
  border: 1px solid var(--rule);
  position: relative;
  transition: border-color 0.2s;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--burnt);
  opacity: 0.4;
}

.problem-card:hover {
  border-color: rgba(196, 85, 26, 0.3);
}

.problem-card-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  font-style: italic;
  color: var(--parchment);
  line-height: 1;
  margin-bottom: 1rem;
  user-select: none;
}

.problem-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.problem-card p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.8;
}

/* ============================================
   SOLUTION / METHOD SECTION
   ============================================ */
.solution {
  padding: 7rem 4rem;
  background: var(--cream);
}

.solution-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}

.solution-header .section-sub {
  padding-top: 0.25rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.step {
  background: var(--cream);
  padding: 2.25rem 1.75rem;
  position: relative;
  transition: background 0.2s;
}

.step:hover {
  background: white;
}

.step-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--parchment);
  line-height: 1;
  margin-bottom: 1.25rem;
  user-select: none;
}

.step h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.75;
}

.step-accent {
  background: var(--burnt-bg) !important;
  border-left: 3px solid var(--burnt);
}

.step-accent:hover {
  background: #fce8dc !important;
}

/* ============================================
   PULL QUOTE
   ============================================ */
.quote-section {
  background: var(--parchment);
  padding: 6rem 4rem;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.quote-mark {
  display: block;
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--burnt);
  opacity: 0.25;
  line-height: 0.5;
  margin-bottom: 2rem;
  user-select: none;
}

blockquote {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.quote-attr {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============================================
   BOTTOM CTA
   ============================================ */
.cta-section {
  background: var(--ink);
  padding: 8rem 4rem;
  text-align: center;
}

.cta-label {
  color: var(--burnt-light) !important;
}

.cta-section h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 400;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-section h2 em {
  font-style: italic;
  color: var(--burnt-light);
}

.cta-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.cta-form {
  margin: 0 auto;
  border-color: rgba(255, 255, 255, 0.15) !important;
  animation: none !important;
  opacity: 1 !important;
}

.cta-form input {
  background: rgba(255, 255, 255, 0.06) !important;
  color: white !important;
}

.cta-form input::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
}

.cta-form input:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 0 0 1px var(--burnt-light) !important;
}

.cta-note {
  color: rgba(255, 255, 255, 0.3) !important;
  animation: none !important;
  opacity: 1 !important;
}

.cta-success-msg {
  color: var(--burnt-light) !important;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 2rem 4rem;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo .nav-logo-diamond {
  background: var(--burnt);
  opacity: 0.5;
}

footer p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: 0.05em;
}

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

/* Intersection observer fade-ins */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
  nav {
    padding: 0 2.5rem;
  }

  .hero-left {
    padding: 5rem 2.5rem;
  }

  .problem,
  .solution,
  .quote-section,
  .cta-section {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  footer {
    padding: 2rem 2.5rem;
  }

  .solution-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

/* ============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  /* Nav */
  nav {
    padding: 0 1.5rem;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 199;
    border-top: 1px solid var(--rule);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .nav-cta {
    padding: 0.8rem 2rem;
    font-size: 0.85rem;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left {
    padding: 4rem 1.5rem 3rem;
    order: 2;
  }

  .hero-right {
    order: 1;
    height: 280px;
  }

  .hero-right::after {
    background: linear-gradient(to bottom, transparent 60%, var(--cream) 100%);
  }

  .waitlist-form {
    flex-direction: column;
    max-width: 100%;
  }

  .waitlist-form input,
  .waitlist-form button {
    width: 100%;
    text-align: center;
  }

  .waitlist-form button {
    padding: 1rem;
  }

  /* Sections */
  .problem,
  .solution,
  .quote-section,
  .cta-section {
    padding: 4rem 1.5rem;
  }

  footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .step-accent {
    border-left: 3px solid var(--burnt);
  }

  .solution-header {
    margin-bottom: 2.5rem;
  }

  blockquote {
    font-size: 1.2rem;
  }

  .cta-form {
    flex-direction: column;
    max-width: 100%;
  }

  .cta-form input,
  .cta-form button {
    width: 100%;
    text-align: center;
  }

  .cta-form button {
    padding: 1rem;
  }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  nav, .hero-right, .waitlist-form, .form-note, footer { display: none; }
  body { background: white; color: black; }
}
