/* ===== Unto Marketing Site ===== */

:root {
  --cream: #F7F3EE;
  --cream-dark: #EDE6DC;
  --gold: #C4A265;
  --gold-light: #D4B896;
  --brown-dark: #2C2418;
  --brown: #5C4E3C;
  --brown-light: #8B7E6A;
  --white: #FEFCF9;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* ===== Typography ===== */

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--brown-dark);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--brown);
}

/* ===== Nav ===== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 243, 238, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196, 162, 101, 0.1);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--brown-light);
  user-select: none;
}

/* ===== Hero ===== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 520px;
}

.hero-sub {
  margin: 1.5rem 0 2.5rem;
  font-size: 1.15rem;
  color: var(--brown-light);
}

.app-store-badge {
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-store-badge:hover {
  opacity: 0.8;
  transform: scale(1.03);
}

.hero-phone {
  flex-shrink: 0;
}

/* ===== Phone Frame ===== */

.phone-frame {
  width: 280px;
  height: 580px;
  border-radius: 36px;
  overflow: hidden;
  background: var(--white);
  box-shadow:
    0 2px 8px rgba(44, 36, 24, 0.04),
    0 12px 40px rgba(44, 36, 24, 0.08),
    0 40px 80px rgba(44, 36, 24, 0.06);
  position: relative;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.phone-frame.phone-sm {
  width: 190px;
  height: 396px;
  border-radius: 26px;
}

/* ===== Features ===== */

.features {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

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

.feature {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--gold);
}

.feature p {
  font-size: 0.95rem;
  color: var(--brown-light);
}

/* ===== Demo Section ===== */

.demo {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
}

.demo-text {
  flex: 1;
  max-width: 420px;
}

.demo-text h2 {
  margin-bottom: 1rem;
}

.demo-text p {
  color: var(--brown-light);
}

.demo-phones {
  flex: 1;
}

.phone-stack {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* ===== Reading Section ===== */

.reading {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.reading-phones {
  flex-shrink: 0;
}

.phone-pair {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.phone-connector {
  color: var(--gold-light);
  flex-shrink: 0;
}

.reading-text {
  flex: 1;
  max-width: 380px;
}

.reading-text h2 {
  margin-bottom: 1rem;
}

.reading-text p {
  color: var(--brown-light);
}

/* ===== Values ===== */

.values {
  padding: 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 4rem;
}

.value {
  padding: 1rem 0;
}

.value-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.value p {
  font-size: 0.95rem;
  color: var(--brown-light);
}

/* ===== CTA ===== */

.cta {
  padding: 8rem 2rem;
  text-align: center;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-verse {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-style: italic;
  font-weight: 300;
  color: var(--brown-dark);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.cta-ref {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3rem;
}

.cta h2 {
  margin-bottom: 2rem;
}

/* ===== Footer ===== */

footer {
  border-top: 1px solid rgba(196, 162, 101, 0.15);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--brown-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--brown-light);
}

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

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

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

.feature:nth-child(2) { transition-delay: 0.1s; }
.feature:nth-child(3) { transition-delay: 0.2s; }
.feature:nth-child(4) { transition-delay: 0.3s; }
.value:nth-child(2) { transition-delay: 0.1s; }
.value:nth-child(3) { transition-delay: 0.2s; }
.value:nth-child(4) { transition-delay: 0.3s; }

.phone-stack .phone-frame:nth-child(2) { transition-delay: 0.15s; }
.phone-stack .phone-frame:nth-child(3) { transition-delay: 0.3s; }
.phone-stack .phone-frame:nth-child(4) { transition-delay: 0.45s; }

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

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 7rem;
    gap: 3rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .demo-text {
    max-width: 100%;
  }

  .phone-stack {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .phone-frame.phone-sm {
    width: 160px;
    height: 333px;
  }

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

  .reading-text {
    max-width: 100%;
  }

  .phone-pair .phone-frame {
    width: 200px;
    height: 415px;
    border-radius: 26px;
  }

  .phone-pair {
    gap: 1rem;
  }

  .phone-connector svg {
    width: 28px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 400px;
    margin: 0 auto;
  }

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

@media (max-width: 500px) {
  .phone-frame {
    width: 240px;
    height: 500px;
    border-radius: 30px;
  }

  .phone-frame.phone-sm {
    width: 130px;
    height: 271px;
    border-radius: 18px;
  }

  .phone-stack {
    gap: 0.5rem;
  }

  .phone-pair .phone-frame {
    width: 155px;
    height: 322px;
    border-radius: 22px;
  }

  .phone-pair {
    gap: 0.5rem;
  }

  .phone-connector svg {
    width: 20px;
  }
}
