:root {
  --bg: #f8f2ea;
  --bg-deep: #efe1d0;
  --text: #2f2117;
  --muted: #6f5642;
  --accent: #c85c2f;
  --accent-dark: #8f3412;
  --surface: rgba(255, 253, 250, 0.78);
  --border: rgba(88, 53, 31, 0.18);
  --shadow: 0 24px 50px rgba(73, 36, 16, 0.18);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 15%, #fbe7cc 0%, transparent 45%),
    radial-gradient(circle at 82% 0%, #efc49f 0%, transparent 38%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-deep) 100%);
  line-height: 1.6;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 1.25rem auto 0;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  background: rgba(252, 246, 237, 0.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

.brand {
  font-family: "Unbounded", sans-serif;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: var(--accent-dark);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff7ee;
  color: var(--text);
  padding: 0.35rem 0.9rem;
  font: inherit;
}

main {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 2rem auto 4rem;
  display: grid;
  gap: 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: end;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  font-family: "Unbounded", sans-serif;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  max-width: 16ch;
}

.hero-lead {
  margin: 1.1rem 0 1.5rem;
  max-width: 58ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(130deg, var(--accent) 0%, #dc8354 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(165, 73, 34, 0.25);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: #fff8f0;
  color: var(--text);
}

.hero-points {
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.hero-points li + li {
  margin-top: 0.35rem;
}

.hero-visual {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #ead6bf;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-visual figcaption {
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(255, 251, 245, 0.95);
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  font-size: clamp(1.4rem, 2.6vw, 2.3rem);
  max-width: 18ch;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-grid p {
  margin-top: 0;
  color: var(--muted);
}

.about-grid figure {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.about-grid img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.about-grid figcaption {
  padding: 0.7rem 0.95rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.kpi-grid article {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  padding: 1rem;
}

.kpi-value {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
  font-family: "Unbounded", sans-serif;
}

.kpi-label {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.tools-grid article {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tools-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(89, 49, 26, 0.16);
}

.tools-grid h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.tools-grid p {
  margin: 0;
  color: var(--muted);
}

.item-price {
  margin-top: 0.75rem !important;
  color: var(--accent-dark) !important;
  font-weight: 700;
}

.funnel-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  counter-reset: flow;
}

.funnel-steps li {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: linear-gradient(165deg, rgba(255, 248, 239, 0.92), rgba(240, 224, 208, 0.8));
  padding: 1rem;
}

.funnel-steps h3 {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.funnel-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.content-table-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

th,
td {
  padding: 0.85rem 0.95rem;
  text-align: left;
}

thead {
  background: rgba(209, 132, 92, 0.14);
}

tbody tr + tr td {
  border-top: 1px solid var(--border);
}

.content-note {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
}

.contact {
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  background: linear-gradient(120deg, #f7e4d0 0%, #efd4b9 55%, #ebc39e 100%);
  padding: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.contact h2 {
  font-size: clamp(1.4rem, 2.3vw, 2.15rem);
}

.contact p {
  margin-bottom: 0;
  color: #513625;
  max-width: 70ch;
  line-height: 1.75;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto 2.5rem;
  color: #705540;
  font-size: 0.87rem;
}

.site-footer a {
  color: #7b371b;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funnel-steps {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    border-radius: 1rem;
    align-items: flex-start;
    padding: 0.75rem;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.45rem;
    border-top: 1px solid var(--border);
  }

  .main-nav.open {
    display: flex;
  }

  main {
    gap: 3.2rem;
  }

  .tools-grid,
  .gallery-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
