/* Organic — design-system tokens and component classes */
@import url('https://fonts.googleapis.com/css2?family=Caprasimo:wght@400&family=Figtree:wght@400;600;700&display=swap');

:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-100: #f9f4ed;
  --color-neutral-200: #eee7db;
  --color-neutral-300: #dcd3c4;
  --color-neutral-400: #c0b6a5;
  --color-neutral-500: #a19786;
  --color-neutral-600: #82796a;
  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;
  --color-neutral-900: #2e2b25;

  --color-accent-100: #fff2eb;
  --color-accent-200: #ffe1d0;
  --color-accent-300: #ffc6a5;
  --color-accent-400: #f6a06b;
  --color-accent-500: #d67f48;
  --color-accent-600: #b2622d;
  --color-accent-700: #8c491a;
  --color-accent-800: #643312;
  --color-accent-900: #402310;

  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-300: #ccdbb2;
  --color-accent-2-400: #aebf92;
  --color-accent-2-500: #8fa073;
  --color-accent-2-600: #728157;
  --color-accent-2-700: #56633f;
  --color-accent-2-800: #3d472b;
  --color-accent-2-900: #272e1b;

  --font-heading: "Caprasimo", system-ui, sans-serif;
  --font-heading-weight: 400;
  --font-body: "Figtree", system-ui, sans-serif;

  --space-1: 4.4px;
  --space-2: 8.8px;
  --space-3: 13.2px;
  --space-4: 17.6px;
  --space-6: 26.4px;
  --space-8: 35.2px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); }

.washed { filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94); }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(28px, 5vw, 48px); }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — rules — */
.hr {
  height: 1px; border: 0; margin: var(--space-4) 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: 999px;
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: 999px;
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) clamp(20px, 5vw, 64px);
  border-bottom: none;
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto; display: flex; align-items: center; gap: 8px;
  color: var(--color-text); text-decoration: none;
}
.nav-brand:hover { color: var(--color-accent); }
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent); }

/* — container — */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* — sections — */
.section {
  padding: clamp(20px, 4vw, 40px) 0;
}

.section-hero {
  position: relative;
  padding: clamp(30px, 6vw, 60px) 0;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  margin-bottom: var(--space-3);
}

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-lg);
  background: var(--color-surface);
}

/* — stats coins — */
.stat-coin {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-2);
}

.stat-coin.stat-1 { background: var(--color-accent-100); }
.stat-coin.stat-2 { background: var(--color-accent-200); }
.stat-coin.stat-3 { background: var(--color-accent-2-100); }
.stat-coin.stat-4 { background: var(--color-accent-2-200); }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--color-text);
  opacity: 0.75;
}

/* — carousel — */
.carousel-container {
  position: relative;
  width: 320px;
  aspect-ratio: 9 / 18.5;
  margin: 0 auto;
}

.phone-frame {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  border: 8px solid #1a1a1a;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-300);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: var(--color-accent);
}

/* — home at a glance — */
.image-frame {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  width: 67%;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.pulse-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(198, 113, 57, 0.55) 0%, rgba(198, 113, 57, 0) 70%);
  animation: emberGrow 3.5s ease-out infinite;
}

@keyframes emberGrow {
  0% {
    transform: scale(0.6);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-overlay, .carousel-slide { animation: none; transition: none; }
}

/* — quote — */
.quote-section {
  text-align: center;
  padding: var(--space-4) 0;
}

.quote {
  font-size: clamp(18px, 4vw, 28px);
  line-height: 1.6;
  margin: 0 0 var(--space-3);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

/* — download band — */
.download-band {
  background: var(--color-accent-2-100);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 50px);
  text-align: center;
}

.download-band h3 {
  margin-bottom: var(--space-4);
}

.download-band .btn-block {
  margin-top: var(--space-3);
}

.disclaimer {
  font-family: monospace;
  font-size: 12px;
  margin-top: var(--space-4);
  color: var(--color-text);
  opacity: 0.7;
}

/* — footer — */
footer {
  background: var(--color-surface);
  padding: var(--space-4) clamp(20px, 5vw, 64px);
  text-align: center;
  font-size: 13px;
  margin-top: clamp(30px, 6vw, 60px);
}

footer a {
  color: var(--color-accent);
  margin: 0 var(--space-2);
}

/* — responsive — */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .nav a {
    font-size: 13px;
  }

  .stats-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .two-column {
    flex-direction: column;
  }

  .image-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
  }

  .quote {
    font-size: 18px;
  }
}

/* — utility — */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
