:root {
  --ink: #14171f;
  --accent: #e4572e;
  --cream: #f6f3ec;
  --cream-2: #efeae0;
  --muted: #6b655c;
  --white: #fff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Space Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: min(1100px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Nav */
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1100px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 1.15rem 0;
}

.hero .nav {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 2.5rem));
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cream);
  box-shadow: 0 6px 16px rgba(20, 23, 31, 0.1);
}
.nav-brand span { color: var(--accent); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.accent { color: var(--accent); font-weight: 700; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(80% 55% at 10% 0%, rgba(228, 87, 46, 0.12), transparent 55%),
    radial-gradient(70% 50% at 100% 10%, rgba(20, 23, 31, 0.05), transparent 50%),
    linear-gradient(180deg, #f6f3ec 0%, #efeae0 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 7rem 0 3.5rem;
  max-width: 720px;
  animation: rise 0.75s var(--ease) both;
}

.hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.hero h1 span { color: var(--accent); }

.hero .lede {
  margin: 0 0 1.5rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(20, 23, 31, 0.2);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(228, 87, 46, 0.28);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.hero-art {
  margin-top: 2rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(20, 23, 31, 0.14);
  animation: rise 0.85s var(--ease) 0.1s both;
}
.hero-art img { width: 100%; height: auto; }

/* Sections */
.section { padding: 4.5rem 0; }
.section h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section .sub {
  margin: 0 0 1.8rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Modern stacked carousel */
.carousel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.carousel-head .sub { margin-bottom: 0; }

.carousel-tools {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(20, 23, 31, 0.08);
  transition: transform 0.15s var(--ease), background 0.15s, color 0.15s;
}
.carousel-btn:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}
.carousel-btn:active { transform: scale(0.96); }

.carousel {
  position: relative;
  outline: none;
  padding: 0.5rem 0 0.25rem;
}

.carousel-stage {
  position: relative;
  height: clamp(280px, 52vw, 520px);
  perspective: 1400px;
  touch-action: pan-y;
}

.carousel-card {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: 0 22px 50px rgba(20, 23, 31, 0.14);
  transform-origin: center bottom;
  transition:
    transform 0.55s var(--ease),
    opacity 0.45s var(--ease),
    filter 0.45s var(--ease);
  opacity: 0;
  pointer-events: none;
  filter: blur(2px);
  z-index: 1;
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 0.85rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(20, 23, 31, 0.72));
  color: #fff;
}

.carousel-index {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
}

.carousel-meta p {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
}

.carousel-card.is-active {
  opacity: 1;
  filter: none;
  transform: translate3d(0, 0, 0) scale(1) rotateY(0deg);
  z-index: 5;
  pointer-events: auto;
}
.carousel-card.is-next {
  opacity: 0.55;
  filter: blur(0.5px);
  transform: translate3d(14%, 6%, -80px) scale(0.9) rotateY(-12deg);
  z-index: 3;
}
.carousel-card.is-prev {
  opacity: 0.4;
  filter: blur(1px);
  transform: translate3d(-14%, 8%, -120px) scale(0.86) rotateY(12deg);
  z-index: 2;
}
.carousel-card.is-far {
  opacity: 0;
  transform: translate3d(0, 18%, -180px) scale(0.8);
  z-index: 1;
}

.carousel-rail {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 999px;
  padding: 0;
  background: rgba(20, 23, 31, 0.18);
  cursor: pointer;
  transition: width 0.25s var(--ease), background 0.25s;
}
.carousel-dot.is-on {
  width: 28px;
  background: var(--accent);
}

.carousel-progress {
  margin: 0.85rem auto 0;
  width: min(220px, 50%);
  height: 3px;
  border-radius: 999px;
  background: rgba(20, 23, 31, 0.08);
  overflow: hidden;
}
.carousel-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #ff7a4d);
  border-radius: inherit;
  transform-origin: left center;
}

@media (max-width: 640px) {
  .carousel-stage { height: clamp(220px, 62vw, 360px); }
  .carousel-card.is-next,
  .carousel-card.is-prev {
    transform: translate3d(0, 10%, -60px) scale(0.92);
    opacity: 0.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-card {
    transition: opacity 0.2s ease;
    filter: none !important;
  }
  .carousel-card.is-next,
  .carousel-card.is-prev,
  .carousel-card.is-far {
    opacity: 0;
    transform: none;
  }
}

.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.step strong { display: block; margin-bottom: 0.3rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.cta-band {
  padding: 2.3rem;
  border-radius: 28px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255,255,255,0.12), transparent 50%),
    linear-gradient(135deg, #1a1d27, #14171f);
  color: #fff;
  display: grid;
  gap: 1rem;
}
.cta-band h2 { margin: 0; color: #fff; }
.cta-band p { margin: 0; color: rgba(255,255,255,0.78); max-width: 34rem; }
.cta-band .btn-ghost { background: rgba(255,255,255,0.12); color: #fff; }

.footer {
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  border-top: 1px solid rgba(20, 23, 31, 0.08);
}
.footer a:hover { color: var(--accent); }

/* Inner pages */
.page-hero {
  padding: 1.25rem 0 2.2rem;
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(228, 87, 46, 0.1), transparent 55%),
    var(--cream);
}
.page-hero .nav {
  position: relative;
  left: auto;
  transform: none;
  width: 100%;
  max-width: none;
  padding: 0 0 2rem;
}
.page-hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}
.page-hero p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose { max-width: 44rem; }
.prose h2 {
  margin: 2rem 0 0.55rem;
  font-size: 1.25rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}
.prose ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.prose .updated {
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.faq { display: grid; gap: 0.85rem; }
.faq details {
  border-radius: 16px;
  background: var(--white);
  padding: 1rem 1.15rem;
  box-shadow: 0 10px 28px rgba(20, 23, 31, 0.05);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact {
  margin-top: 2rem;
  padding: 1.4rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #f3efe6);
}
.contact h2 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.contact p { margin: 0 0 1rem; color: var(--muted); }

@media (max-width: 640px) {
  .nav-links { gap: 0.65rem; font-size: 0.82rem; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner, .hero-art { animation: none !important; }
}
