/* ===================================================
   RABBIT LENS — Landing Page
   Paleta (app tokens):
     background   #EAD7C6  warm cream
     card         #FDFAF7  warm white
     foreground   #73350C  dark brown
     green        #517245  forest green
     golden       #F6B72A  golden yellow
     terracotta   #B75538  terracotta
   =================================================== */

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

:root {
  --bg:          #EAD7C6;
  --card:        #FDFAF7;
  --brown:       #73350C;
  --brown-deep:  #2C1A0E;
  --green:       #517245;
  --golden:      #F6B72A;
  --terracotta:  #B75538;
  --muted:       #7A5C42;
  --bg-dark:     #2C1A0E;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:    18px;
  --radius-sm: 10px;
  --shadow:    0 8px 32px rgba(115, 53, 12, 0.10);
  --shadow-lg: 0 24px 64px rgba(115, 53, 12, 0.16);
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

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

/* ---------- Container ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section header ---------- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--brown);
  line-height: 1.2;
}

.section-title em {
  font-style: italic;
  color: var(--green);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

/* Nav green CTA */
.btn--green {
  background-color: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(81, 114, 69, 0.32);
}

.btn--green:hover {
  background-color: #3f5a35;
  box-shadow: 0 8px 22px rgba(81, 114, 69, 0.45);
}

/* App Store button — hero */
.btn--appstore {
  background-color: var(--brown);
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(115, 53, 12, 0.28);
  padding: 12px 24px;
}

.btn--appstore:hover {
  background-color: #5c2909;
  box-shadow: 0 8px 28px rgba(115, 53, 12, 0.42);
}

.btn--appstore span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn--appstore small,
.btn--appstore-dark small {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: 0.03em;
}

.btn--appstore svg,
.btn--appstore-dark svg {
  flex-shrink: 0;
}

/* App Store button — download section */
.btn--appstore-dark {
  background-color: var(--bg);
  color: var(--brown);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 12px 24px;
}

.btn--appstore-dark:hover {
  background-color: #f5e9db;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.btn--appstore-dark span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn--outline {
  background-color: transparent;
  color: var(--brown);
  border-color: rgba(115, 53, 12, 0.35);
}

.btn--outline:hover {
  background-color: rgba(115, 53, 12, 0.06);
  border-color: var(--brown);
}

.btn--outline-dark {
  background-color: transparent;
  color: var(--bg);
  border-color: rgba(234, 215, 198, 0.4);
}

.btn--outline-dark:hover {
  background-color: rgba(234, 215, 198, 0.08);
  border-color: rgba(234, 215, 198, 0.7);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.84rem;
}

/* ===================================================
   NAV
   =================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background-color: rgba(234, 215, 198, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 24px rgba(115, 53, 12, 0.10);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brown);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform var(--transition);
}

.nav__logo:hover .nav__logo-icon {
  transform: rotate(-6deg) scale(1.05);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--green);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
  border-radius: 2px;
}

.nav__link:hover { color: var(--green); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--brown);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(81, 114, 69, 0.10);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 22px;
  border: 1px solid rgba(81, 114, 69, 0.22);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  color: var(--brown);
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero__title em {
  font-style: italic;
  color: var(--terracotta);
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 460px;
  line-height: 1.75;
}

.hero__subtitle strong {
  color: var(--brown);
  font-weight: 600;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero__note {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.7;
}

/* Hero visual */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__icon-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__app-icon {
  position: relative;
  z-index: 2;
  width: 180px;
  height: 180px;
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}

/* Decorative orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  z-index: 1;
}

.hero__orb--green {
  width: 180px;
  height: 180px;
  background: var(--green);
  top: -20px;
  right: -30px;
  opacity: 0.18;
}

.hero__orb--golden {
  width: 140px;
  height: 140px;
  background: var(--golden);
  bottom: 20px;
  right: 10px;
  opacity: 0.22;
}

.hero__orb--terracotta {
  width: 120px;
  height: 120px;
  background: var(--terracotta);
  bottom: -10px;
  left: -20px;
  opacity: 0.18;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ===================================================
   VALUE PROP
   =================================================== */
.value-prop {
  background-color: var(--green);
  padding: 64px 0;
}

.value-prop__text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.9rem);
  color: var(--bg);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.55;
  font-style: italic;
}

.value-prop__text strong {
  color: var(--golden);
  font-style: normal;
}

/* ===================================================
   FEATURES
   =================================================== */
.features {
  padding: 100px 0;
  background-color: var(--card);
}

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

.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(115, 53, 12, 0.06);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card__icon--terracotta {
  background: rgba(183, 85, 56, 0.12);
  color: var(--terracotta);
}

.feature-card__icon--green {
  background: rgba(81, 114, 69, 0.12);
  color: var(--green);
}

.feature-card__icon--golden {
  background: rgba(246, 183, 42, 0.15);
  color: #a07800;
}

.feature-card__icon--brown {
  background: rgba(115, 53, 12, 0.10);
  color: var(--brown);
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--brown);
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-card__text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.features__grid .feature-card:nth-child(2).reveal { transition-delay: 0.08s; }
.features__grid .feature-card:nth-child(3).reveal { transition-delay: 0.16s; }
.features__grid .feature-card:nth-child(4).reveal { transition-delay: 0.24s; }

/* ===================================================
   HOW IT WORKS
   =================================================== */
.how-it-works {
  padding: 100px 0;
  background-color: var(--bg);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px 28px;
  flex: 1;
  max-width: 280px;
  border: 1px solid rgba(115, 53, 12, 0.06);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition);
}

.step:hover { transform: translateY(-4px); }

.step__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(115, 53, 12, 0.08);
  line-height: 1;
  margin-bottom: 12px;
}

.step__icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(183, 85, 56, 0.10);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.step:nth-child(3) .step__icon {
  background: rgba(81, 114, 69, 0.10);
  color: var(--green);
}

.step:nth-child(5) .step__icon {
  background: rgba(246, 183, 42, 0.15);
  color: #a07800;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brown);
  margin-bottom: 10px;
}

.step__text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.step__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(115, 53, 12, 0.2);
  flex-shrink: 0;
  padding: 0 8px;
  margin-top: 80px;
}

.steps .step:nth-child(3).reveal { transition-delay: 0.1s; }
.steps .step:nth-child(5).reveal { transition-delay: 0.2s; }

/* ===================================================
   DOWNLOAD CTA
   =================================================== */
.download {
  background: linear-gradient(135deg, var(--brown) 0%, #3d1a06 100%);
  padding: 88px 0;
}

.download__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.download__text { max-width: 540px; }

.download__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--bg);
  margin-bottom: 14px;
  line-height: 1.2;
}

.download__sub {
  color: rgba(234, 215, 198, 0.65);
  font-size: 1rem;
  margin-bottom: 36px;
  line-height: 1.65;
}

.download__ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.download__visual { flex-shrink: 0; }

.download__icon-wrap {
  width: 180px;
  height: 180px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: float 5s ease-in-out infinite;
  animation-delay: 0.6s;
}

.download__app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background-color: var(--brown-deep);
  padding: 36px 0;
}

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

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.footer__logo:hover { opacity: 1; }

.footer__logo-img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  opacity: 0.85;
}

.footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__link {
  color: rgba(234, 215, 198, 0.55);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color var(--transition);
}

.footer__link:hover { color: var(--bg); }

.footer__copy {
  color: rgba(234, 215, 198, 0.35);
  font-size: 0.78rem;
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ===================================================
   RESPONSIVE — 1040px (4→2 feature cols)
   =================================================== */
@media (max-width: 1040px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================================
   RESPONSIVE — 860px
   =================================================== */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 110px;
    text-align: center;
    gap: 40px;
  }

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

  .hero__subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }

  .hero__ctas { justify-content: center; }

  .hero__note { text-align: center; }

  .hero__visual { order: -1; }

  .hero__icon-wrap {
    width: 200px;
    height: 200px;
  }

  .hero__app-icon {
    width: 140px;
    height: 140px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .step { max-width: 420px; width: 100%; }

  .step__connector {
    transform: rotate(90deg);
    margin-top: 0;
  }

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

  .download__ctas { justify-content: center; }

  .download__visual { display: none; }
}

/* ===================================================
   RESPONSIVE — 600px
   =================================================== */
@media (max-width: 600px) {
  .nav__links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--bg);
    flex-direction: column;
    align-items: center;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(115, 53, 12, 0.12);
    transform: translateY(-110%);
    transition: transform var(--transition);
    z-index: 99;
  }

  .nav__links.open { transform: translateY(0); }

  .nav__hamburger { display: flex; }

  .nav__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__hamburger.active span:nth-child(2) { opacity: 0; }
  .nav__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .features__grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

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

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
    max-width: 300px;
  }

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

  .footer__copy { margin-top: 0; }

  .footer__links { justify-content: center; }
}
