/* ============================================
   Carnelian Landing Page
   ============================================ */

:root {
  --cream: #faf5ee;
  --cream-dark: #f0e8da;
  --brown: #3e3229;
  --brown-light: #5c4a36;
  --brown-muted: #7a6652;
  --carnelian: #b8432a;
  --carnelian-hover: #9c3822;
  --carnelian-light: #d4683e;
  --link: #4a7a8a;
  --border: #d6cbba;
  --text-secondary: #6b5b4b;
}

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

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

body {
  font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--brown);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brown);
}

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

/* ============================================
   Fade-in animation
   ============================================ */

.section-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Layout
   ============================================ */

.hero,
.features,
.download,
.footer {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ============================================
   Navbar
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background-color: rgba(250, 245, 238, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(214, 203, 186, 0.4);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brown);
}

.navbar-brand:hover {
  color: var(--brown);
}

.navbar-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.navbar-title {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.navbar-download {
  font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--carnelian);
  text-decoration: none;
  transition: color 0.2s ease;
}

.navbar-download:hover {
  color: var(--carnelian-hover);
}

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

.hero {
  text-align: center;
  padding-top: 140px;
  padding-bottom: 80px;
  background: linear-gradient(180deg, rgba(244, 225, 200, 0.3) 0%, var(--cream) 100%);
}

.hero h1 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 3.8rem;
  letter-spacing: 0.03em;
  color: var(--brown);
  margin-bottom: 16px;
}

.tagline {
  font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  color: var(--brown-muted);
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

.hero-description {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px auto;
}

/* ============================================
   Download button
   ============================================ */

.download-button {
  display: inline-block;
  font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  background-color: var(--carnelian);
  padding: 14px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(184, 67, 42, 0.2);
  letter-spacing: 0.01em;
}

.download-button:hover {
  background-color: var(--carnelian-hover);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 67, 42, 0.3);
}

.download-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(184, 67, 42, 0.2);
}

/* ============================================
   Carousel
   ============================================ */

.carousel {
  width: 100%;
  max-width: 720px;
  margin: 48px auto 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow:
    0 8px 30px rgba(61, 46, 30, 0.12),
    0 20px 60px rgba(61, 46, 30, 0.08);
  transition: box-shadow 0.3s ease;
}

.carousel:hover {
  box-shadow:
    0 12px 40px rgba(61, 46, 30, 0.15),
    0 24px 70px rgba(61, 46, 30, 0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  display: block;
  border-radius: 0;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.15);
}

.carousel-dot.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.95);
  transform: scale(1.15);
}

.feature-screenshot {
  aspect-ratio: 16 / 9;
  max-width: 720px;
  margin-top: 28px;
}

/* ============================================
   Features — split layout
   ============================================ */

.features-split {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 72px 24px;
  background-color: var(--cream-dark);
}

.features-split-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

.features-split-text {
  flex: 1;
  min-width: 0;
}

.feature-block {
  padding: 28px 32px;
  border-radius: 12px;
  background-color: var(--cream);
  box-shadow: 0 2px 12px rgba(61, 46, 30, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 46, 30, 0.1);
}

.feature-block h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--brown);
}

.feature-block p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.feature-divider {
  border: none;
  margin: 16px 0;
}

.features-split-sidebar {
  flex-shrink: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.features-split-logo {
  width: 140px;
  height: auto;
}

.features-split-download {
  font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--carnelian);
  text-decoration: none;
  transition: color 0.2s ease;
}

.features-split-download:hover {
  color: var(--carnelian-hover);
}

/* ============================================
   Features — stacked
   ============================================ */

.features {
  padding-top: 72px;
  padding-bottom: 72px;
}

.feature {
  padding: 48px 0;
}

.feature + .feature {
  border-top: none;
}

.feature h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--brown);
}

.feature-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 660px;
}

.signoff {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.signoff-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(61, 46, 30, 0.1);
}

.signoff-name {
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 300;
  color: var(--brown-muted);
}

/* ============================================
   Download section
   ============================================ */

.download {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 96px;
  border-top: none;
  background: linear-gradient(180deg, var(--cream) 0%, rgba(244, 225, 200, 0.35) 100%);
}

.download h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.download p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px auto;
}

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

.footer {
  padding-top: 32px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(214, 203, 186, 0.5);
}

.footer-content {
  text-align: center;
  font-size: 0.88rem;
  color: var(--brown-muted);
}

.footer-content a {
  color: var(--brown-muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.footer-content a:hover {
  color: var(--brown);
  text-decoration-color: var(--brown-muted);
}

.footer-separator {
  margin: 0 10px;
}

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

@media (max-width: 768px) {
  body {
    font-size: 17px;
  }

  .navbar {
    padding: 10px 16px;
    gap: 16px;
  }

  .navbar-download {
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 110px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .download-button {
    font-size: 1rem;
    padding: 14px 36px;
  }

  .features-split {
    padding: 48px 24px;
  }

  .features-split-inner {
    flex-direction: column;
    gap: 24px;
  }

  .features-split-sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    align-items: center;
    position: static;
  }

  .features-split-logo {
    width: 80px;
  }

  .feature-block {
    padding: 22px 20px;
  }

  .feature-block h2 {
    font-size: 1.2rem;
  }

  .feature-block p {
    font-size: 0.95rem;
  }

  .feature h2 {
    font-size: 1.4rem;
  }

  .feature {
    padding: 36px 0;
  }

  .features {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .download {
    padding-top: 60px;
    padding-bottom: 72px;
  }

  .download h2 {
    font-size: 1.7rem;
  }
}

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

  .tagline {
    font-size: 1.05rem;
  }

  .hero {
    padding-top: 96px;
  }

  .footer-separator {
    display: none;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
}
