:root {
  color-scheme: light dark;
  --bg: #f3f7f4;
  --bg-deep: #e5efe8;
  --surface: #ffffff;
  --text: #13241c;
  --muted: #4d6458;
  --primary: #1a7a4c;
  --primary-strong: #0f5132;
  --accent: #c9a227;
  --primary-soft: #e8f5ec;
  --border: #cfdcd3;
  --shadow: 0 18px 40px rgba(15, 81, 50, 0.12);
  --hero-overlay: linear-gradient(
    115deg,
    rgba(13, 40, 28, 0.88) 0%,
    rgba(15, 81, 50, 0.72) 48%,
    rgba(13, 27, 30, 0.55) 100%
  );
}

:root[data-theme="dark"] {
  --bg: #0d1b1e;
  --bg-deep: #12262b;
  --surface: #15282d;
  --text: #e8f5ec;
  --muted: #94a69d;
  --primary: #3db87a;
  --primary-strong: #e8f5ec;
  --accent: #d4b44a;
  --primary-soft: #1a333a;
  --border: #223b42;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --hero-overlay: linear-gradient(
    115deg,
    rgba(6, 16, 18, 0.92) 0%,
    rgba(15, 81, 50, 0.78) 52%,
    rgba(10, 22, 24, 0.62) 100%
  );
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(26, 122, 76, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(201, 162, 39, 0.1), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f7fbf8;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.02);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 120px 0 72px;
}

.hero-brand {
  margin: 0 0 18px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-headline {
  margin: 0 0 14px;
  max-width: 18ch;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.2;
  color: rgba(247, 251, 248, 0.95);
}

.hero-description {
  margin: 0;
  max-width: 38ch;
  color: rgba(232, 245, 236, 0.86);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.cta-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cta-button {
  background: var(--accent);
  color: #1a1608;
  border-color: color-mix(in srgb, var(--accent) 70%, #000 30%);
}

.cta-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.08);
  color: #f7fbf8;
  border-color: rgba(255, 255, 255, 0.28);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.topbar .ghost-button,
.topbar .cta-button {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

.topbar .cta-button {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-strong);
}

.topbar .ghost-button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.cta-button.small,
.ghost-button.small {
  padding: 10px 14px;
  font-size: 0.875rem;
}

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

section {
  padding: 72px 0;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-subtitle {
  margin: 12px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.features {
  background: color-mix(in srgb, var(--bg-deep) 70%, transparent);
}

.feature-marquee {
  margin-top: 32px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.feature-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: feature-scroll 40s linear infinite;
}

.feature-track:hover {
  animation-play-state: paused;
}

.feature-card {
  width: min(300px, 80vw);
  flex: 0 0 auto;
  padding: 22px 20px;
  border-left: 3px solid var(--primary);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery-strip {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.gallery-strip img,
.gallery-placeholder {
  width: 220px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.gallery-placeholder {
  height: 420px;
  display: grid;
  place-items: end start;
  padding: 18px;
  background:
    linear-gradient(160deg, var(--primary-soft), color-mix(in srgb, var(--primary) 35%, var(--bg-deep))),
    var(--surface);
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.cta {
  padding-bottom: 88px;
}

.cta-inner {
  text-align: center;
  padding: 48px 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(201, 162, 39, 0.18), transparent 45%),
    radial-gradient(circle at 90% 100%, rgba(26, 122, 76, 0.18), transparent 40%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: cta-rise 0.8s ease both;
}

.cta-inner p {
  margin: 12px auto 0;
  max-width: 42ch;
  color: var(--muted);
}

.store-row {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.app-store-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-link:hover,
.play-badge:hover {
  transform: translateY(-2px);
}

.app-store-badge {
  height: 48px;
  width: auto;
  display: block;
}

.badge-dark {
  display: none;
}

:root[data-theme="dark"] .badge-light {
  display: none;
}

:root[data-theme="dark"] .badge-dark {
  display: block;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid #a6a6a6;
  box-sizing: border-box;
  transition: transform 0.2s ease, opacity 0.2s ease;
  line-height: 1;
}

:root[data-theme="dark"] .play-badge {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.play-icon {
  flex-shrink: 0;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
}

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

/* Legal pages */
.legal-page {
  padding: 48px 0 80px;
}

.legal-page .container {
  width: min(760px, 92%);
}

.legal-page h1 {
  margin: 0 0 8px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
}

.legal-meta {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-page h2 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page ul {
  padding-left: 1.2rem;
}

.legal-page a {
  color: var(--primary);
  font-weight: 600;
}

@keyframes feature-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.06) translateY(-1.5%);
  }
}

@keyframes cta-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .hero-content {
    padding: 100px 0 56px;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    min-height: 66px;
  }

  section {
    padding: 52px 0;
  }

  .gallery-placeholder,
  .gallery-strip img {
    width: 190px;
    height: 360px;
  }

  .cta-inner {
    padding: 36px 18px;
  }
}
