:root {
  --bg: #F7F6F2;
  --bg-dark: #0E1116;
  --bg-card: #FFFFFF;
  --ink: #0E1116;
  --ink-muted: #52606D;
  --ink-soft: #8A94A0;
  --line: #E7E4DC;
  --line-dark: #1E232B;
  --brand: #E8501A;
  --brand-deep: #C93F10;
  --brand-soft: rgba(232, 80, 26, 0.08);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(14, 17, 22, 0.12);

  --container: 1160px;
  --gap: 24px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 242, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-svg { height: 32px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 18px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}
.lang-btn {
  background: transparent;
  border: 0;
  padding: 6px 8px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { color: var(--ink); font-weight: 700; }
.lang-sep { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-link {
  background: transparent;
  color: var(--ink-muted);
  padding: 14px 6px;
}
.btn-link:hover { color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- Shared typography ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
}
.eyebrow-inverse { color: #FFB89A; }
.display {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 20px;
}
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 0 0 36px;
  max-width: 760px;
}
.section-title-inverse { color: #fff; }
.lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 0 28px;
}
.lead-inverse { color: rgba(255, 255, 255, 0.8); }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.hero-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: #0E1116;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ---------- Hero use-case carousel ---------- */
.carousel { position: absolute; inset: 0; }
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
  background-size: cover;
  background-position: center;
  will-change: opacity;
}
.carousel-slide.is-active { opacity: 1; }
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 17, 22, 0.15) 0%,
    rgba(14, 17, 22, 0.45) 55%,
    rgba(14, 17, 22, 0.88) 100%
  );
}
.carousel-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 56px;
  color: #fff;
}
.carousel-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #fff;
}
.carousel-body {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36ch;
}
.carousel-dots {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.dot:hover { background: rgba(255, 255, 255, 0.6); }
.dot.is-active {
  background: #fff;
  width: 22px;
  border-radius: 999px;
}
@media (max-width: 520px) {
  .carousel-content { left: 20px; right: 20px; bottom: 52px; }
  .carousel-title { font-size: 1.2rem; }
  .carousel-body { font-size: 0.92rem; }
}

/* ---------- Generic sections ---------- */
.section { padding: 96px 0; }
.section-problem { background: var(--bg); border-top: 1px solid var(--line); }
.section-features { background: #fff; border-top: 1px solid var(--line); }
.section-how {
  background: var(--bg);
  border-top: 1px solid var(--line);
  position: relative;
}
.section-how::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='92'><polygon points='40,3 77,23 77,69 40,89 3,69 3,23' fill='none' stroke='rgba(232,80,26,0.08)' stroke-width='1'/></svg>");
  background-size: 80px 92px;
  opacity: 0.8;
  pointer-events: none;
}
.section-how > .container { position: relative; }

/* ---------- Problem cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.card p { margin: 0; color: var(--ink-muted); font-size: 0.98rem; }
.card-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

/* ---------- Testimonial slider (problem section) ---------- */
.testimonial-carousel {
  margin: 40px auto 0;
  max-width: 720px;
  padding: 0 16px;
}
.testimonial-slides {
  display: grid;
  /* All slides share the same grid cell so the container naturally sizes to the tallest. */
}
.testimonial-slides > .testimonial {
  position: static;
  inset: auto;
  grid-area: 1 / 1;
  margin: 0;
  text-align: left;
  opacity: 0;
  transition: opacity 700ms ease;
  pointer-events: none;
}
.testimonial-slides > .testimonial.is-active {
  opacity: 1;
  pointer-events: auto;
}
.testimonial blockquote {
  margin: 0;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--brand);
  font-size: 1.15rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
  quotes: none;
}
.testimonial figcaption {
  margin: 12px 0 0 23px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.testimonial-carousel .carousel-dots {
  position: static;
  margin-top: 22px;
  justify-content: flex-start;
  padding-left: 23px;
}
.testimonial-carousel .dot {
  background: rgba(14, 17, 22, 0.2);
}
.testimonial-carousel .dot:hover {
  background: rgba(14, 17, 22, 0.45);
}
.testimonial-carousel .dot.is-active {
  background: var(--brand);
}
@media (max-width: 520px) {
  .testimonial-carousel { margin-top: 28px; }
  .testimonial blockquote { font-size: 1.05rem; }
}

/* ---------- Features ---------- */
.features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 48px;
}
.feature {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 4px 0;
}
.feature h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 24px; height: 24px; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: steps;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.step h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.step p { margin: 0; color: var(--ink-muted); }
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

/* ---------- CTA section ---------- */
.section-cta {
  background: var(--bg-dark);
  color: #fff;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.cta-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}
.cta-bullets li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--line-dark);
}
.cta-bullets li:last-child { border-bottom: 0; }
.cta-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--brand);
}

/* ---------- Form ---------- */
.cta-form {
  background: #fff;
  color: var(--ink);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field .optional {
  font-weight: 400;
  color: var(--ink-soft);
}
.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input[type="text"]:focus,
.field input[type="email"]:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(232, 80, 26, 0.18);
}
.field-checkbox {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  color: var(--ink-muted);
}
.field-checkbox label { font-weight: 400; margin: 0; }
.field-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  margin-top: 2px;
}
.field-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.field-error {
  margin: 6px 0 0;
  color: var(--brand-deep);
  font-size: 13px;
  min-height: 0;
}
.field-error:empty { display: none; }
.form-status {
  margin: 14px 0 0;
  font-size: 14px;
  min-height: 0;
}
.form-status:empty { display: none; }
.form-status.is-success { color: #0a7d3f; }
.form-status.is-error { color: var(--brand-deep); }
.form-privacy {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0;
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-tagline { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.footer-links { display: flex; gap: 20px; justify-content: center; }
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
}
.footer-links a:hover { color: #fff; }
.footer-legal {
  margin: 0;
  text-align: right;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 5 / 4; }
  .section { padding: 72px 0; }
  .cards-3 { grid-template-columns: 1fr; }
  .features-list { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { align-items: center; }
  .footer-legal { text-align: center; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .header-inner { height: 60px; }
  .site-nav { gap: 10px; }
  .btn { padding: 12px 18px; }
  .hero-actions .btn-link { padding: 12px 0; }
  .cta-form { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
