:root {
  --ink: #1D1D1F;
  --graphite: #3A3A3C;
  --secondary: #6E6E73;
  --tertiary: #86868B;
  --quaternary: #AEAEB2;
  --separator: #D1D1D6;
  --border: #E5E5E7;
  --surface: #F5F5F7;
  --canvas: #FAFAF8;
  --white: #FFFFFF;
  --error: #FF6B6B;
  
  --font-inter: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, sans-serif;
  --font-lora: 'Lora', -apple-system, serif;
  
  --nav-height: 80px;
  --container-max: 1200px;
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--canvas);
  color: var(--ink);
  font-family: var(--font-inter);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════ TYPOGRAPHY ═══════════════════════════════════════ */

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.04em;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--tertiary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--ink);
  max-width: 900px;
}

.section-body {
  font-family: var(--font-lora);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--secondary);
  max-width: 650px;
  line-height: 1.6;
  margin: 0 auto;
  text-align: center;
}

/* ═══════════════════════════════════════ LAYOUT ═══════════════════════════════════════ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 12rem 0;
}

/* ═══════════════════════════════════════ BUTTONS ═══════════════════════════════════════ */

.btn-primary, .btn-light, .btn-ghost, .btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--graphite);
  transform: translateY(-2px);
}

.btn-light {
  background-color: var(--white);
  color: var(--ink);
}

.btn-light:hover {
  background-color: var(--surface);
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background-color: var(--surface);
  border-color: var(--tertiary);
}

.btn-ghost-light {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════ NAV ═══════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background-color: rgba(250, 250, 248, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

.nav.scrolled {
  border-bottom: 1px solid var(--border);
  background-color: rgba(250, 250, 248, 0.95);
}

.nav-inner {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink);
  text-decoration: none;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: var(--transition-smooth);
}

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

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--ink);
}

/* ═══════════════════════════════════════ HERO ═══════════════════════════════════════ */

.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  opacity: 0.4;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin-bottom: 4rem;
}

.hero-title {
  font-size: clamp(2rem, 2vw, 1rem);
  line-height: 1;
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-family: var(--font-lora);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--secondary);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-visual {
  width: 100%;
  max-width: 1000px;
  padding: 0 2rem;
}

.journal-card {
  position: relative;
  background-color: var(--white);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 40px 100px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  overflow: hidden;
}

.journal-image {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.journal-pill {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--ink);
}

.journal-pill-dot {
  width: 6px;
  height: 6px;
  background-color: var(--tertiary);
  border-radius: 50%;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  animation: bounce 2s infinite;
  color: var(--tertiary);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-8px);}
  60% {transform: translateY(-4px);}
}

/* ═══════════════════════════════════════ PROOF STRIP ═══════════════════════════════════════ */

.proof-strip {
  background-color: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}

.proof-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.proof-num {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--ink);
}

.proof-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border);
}

/* ═══════════════════════════════════════ MIRROR GRID ═══════════════════════════════════════ */

.mirror-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 5rem;
}

.mirror-card {
  padding: 3.5rem 2.5rem;
  background-color: var(--white);
  border-radius: 24px;
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mirror-card:hover {
  transform: translateY(-10px);
  border-color: var(--tertiary);
  box-shadow: 0 30px 60px rgba(0,0,0,0.03);
}

.mirror-letter {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.mirror-word {
  font-size: 1.25rem;
  color: var(--quaternary);
  margin-bottom: 1.5rem;
}

.mirror-desc {
  font-size: 0.95rem;
  color: var(--secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════ JOURNAL SECTION ═══════════════════════════════════════ */

.journal-container {
  display: flex;
  align-items: center;
  gap: 6rem;
}

.journal-visual-col, .journal-text-col {
  flex: 1;
}

.journal-feature-wrap {
  position: relative;
}

.journal-feature-img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 50px 100px rgba(0,0,0,0.08);
}

.journal-qr-badge {
  position: absolute;
  top: -2rem;
  right: -2rem;
  background-color: var(--ink);
  color: var(--white);
  padding: 2rem;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.journal-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin: 4rem auto;
  max-width: 1000px;
}

.jf-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.jf-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
  margin-bottom: 0.5rem;
}

.jf-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.jf-desc {
  font-size: 14px;
  color: var(--tertiary);
  line-height: 1.5;
}

/* ═══════════════════════════════════════ APP SECTION ═══════════════════════════════════════ */

.app-section {
  background-color: var(--ink);
  color: var(--white);
}

.app-section .section-title {
  color: var(--white);
}

.app-section .eyebrow {
  color: var(--separator);
}

.app-section .section-body {
  color: var(--quaternary);
}

.app-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-text-col, .app-visual-col {
  flex: 1;
}

.app-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem 3rem;
  margin: 4rem auto;
  max-width: 1100px;
}

.app-feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 1 300px;
}

.app-feat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--separator);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.app-feat-desc {
  font-size: 15px;
  color: var(--separator);
  line-height: 1.6;
  max-width: 320px;
}

.app-phone-wrap {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.app-phone-img {
  width: 100%;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.5));
}

.app-streak-badge {
  position: absolute;
  top: 10%;
  right: -20px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.app-streak-num {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.app-streak-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tertiary);
}

.journal-ctas, .app-ctas {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 4rem;
}

/* ═══════════════════════════════════════ PHASES ═══════════════════════════════════════ */

.phases-timeline {
  margin-top: 5rem;
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.phase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 6rem;
  position: relative;
}

.phase-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 2rem;
}

.phase-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--ink);
  position: relative;
  z-index: 2;
}

.phase-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  z-index: 1;
}

.phase-line {
  width: 1px;
  height: 4rem;
  background-color: var(--border);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.phase-body {
  max-width: 500px;
}

.phase-eyebrow {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--tertiary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.phase-name {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.phase-desc {
  font-family: var(--font-lora);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════ QUOTE ═══════════════════════════════════════ */

.quote-section {
  background-color: var(--surface);
  text-align: center;
  padding: 10rem 0;
}

.quote-mark {
  font-family: var(--font-lora);
  font-size: 8rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: -4rem;
}

.quote-text {
  font-family: var(--font-lora);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 3rem;
}

.quote-attribution {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--tertiary);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════ CTA SECTION ═══════════════════════════════════════ */

.cta-section {
  padding-bottom: 4rem;
}

.cta-card {
  background-color: var(--ink);
  border-radius: 40px;
  padding: 8rem 4rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 1.5rem 0 2rem;
}

.cta-body {
  font-family: var(--font-lora);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--quaternary);
  max-width: 700px;
  margin: 0 auto 4rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* ═══════════════════════════════════════ FOOTER ═══════════════════════════════════════ */

.footer {
  padding: 6rem 0 3rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6rem;
}

.footer-logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  display: block;
}

.footer-tagline {
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 6rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--tertiary);
  margin-bottom: 0.5rem;
}

.footer-link {
  font-size: 14px;
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--ink);
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--tertiary);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-legal-link {
  color: var(--tertiary);
  text-decoration: none;
}

/* ═══════════════════════════════════════ SYSTEM SHOWCASE ═══════════════════════════════════════ */

.system-showcase-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  margin: 6rem auto 2rem;
  max-width: 1000px;
}

.system-showcase-col {
  flex: 1;
  display: flex;
}

.system-showcase-col.left {
  justify-content: flex-end;
}

.system-showcase-col.right {
  justify-content: flex-start;
}

.system-journal-img {
  width: 100%;
  max-width: 300px;
  border-radius: 4px;
  box-shadow: 0 60px 120px -20px rgba(0,0,0,0.25), 0 20px 40px -10px rgba(0,0,0,0.1);
  transform: rotate(0deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.system-journal-img:hover {
  transform: translateY(-5px);
}

.iphone-mockup {
  position: relative;
  width: 320px;
  height: 650px;
  flex-shrink: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.iphone-mockup:hover {
  transform: translateY(-6px);
}

.iphone-frame-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 10;
}

.iphone-screen {
  position: absolute;
  top: 1.8%;
  bottom: 1.8%;
  left: 4.2%;
  right: 4.2%;
  background-color: #000;
  border-radius: 42px;
  overflow: hidden;
  z-index: 1;
}

.iphone-ui {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  .system-showcase-container {
    flex-direction: column;
    gap: 4rem;
  }
}

/* ═══════════════════════════════════════ ANIMATIONS ═══════════════════════════════════════ */

.fade-in {
  opacity: 0;
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}



@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hidden {
  display: none !important;
}

/* ═══════════════════════════════════════ MOBILE ═══════════════════════════════════════ */

@media (max-width: 1024px) {
  .journal-container, .app-container {
    flex-direction: column;
    gap: 4rem;
    text-align: center;
  }
  
  .journal-text-col .section-body, .app-text-col .section-body {
    margin-left: auto;
    margin-right: auto;
  }
  
  .journal-features, .app-features {
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .journal-ctas, .app-ctas {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }
  
  .nav-hamburger {
    display: flex;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    padding: 0 2rem;
  }
  
  .btn-primary, .btn-ghost {
    width: 100%;
  }

  .proof-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .proof-divider {
    display: none;
  }

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

  .journal-features {
    grid-template-columns: 1fr;
  }

  .app-features {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .iphone-mockup {
    width: 240px;
  }

  .system-journal-img {
    max-width: 240px;
  }

  .system-showcase-container {
    gap: 3rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 4rem;
  }
  
  .footer-links {
    gap: 4rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .proof-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
    padding: 0 1.5rem;
  }

  .proof-num {
    font-size: 2rem;
  }

  .proof-label {
    font-size: 10px;
  }
}

.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--canvas);
  padding: 2rem;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu.active {
  display: flex;
}

.mobile-link {
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 300;
}

.mobile-cta {
  background-color: var(--ink);
  color: var(--white);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
}
