:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-alt: #f3eee3;
  --ink: #0c1b33;
  --muted: #5e5a50;
  --primary: #0f4c97;
  --primary-2: #174f8f;
  --accent: #c9a227;
  --accent-2: #e4c766;
  --danger: #c0392b;
  --shadow-lg: 0 24px 60px rgba(10, 26, 54, 0.18);
  --shadow-sm: 0 10px 24px rgba(10, 26, 54, 0.1);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max: 1180px;
  --header-h: 78px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  font-size: 0.88rem;
  color: #e4d8b4;
  background: #122033;
}

.topbar-wrap {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(12, 27, 51, 0.09);
}

.nav-wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.logo img {
  width: 164px;
  height: auto;
}

.menu-toggle {
  border: 1px solid #cfe0fa;
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem;
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-links a {
  font-size: 0.97rem;
  color: #163154;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: #f3ebd8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 700;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  padding: 0.78rem 1.3rem;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 10px 20px rgba(10, 26, 54, 0.22);
}

.btn-secondary {
  color: #6b5421;
  border: 1.5px solid #e3c979;
  background: #fff8e7;
}

.btn-success {
  color: #2d230f;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
}

.hero {
  position: relative;
  overflow: clip;
  padding: 2.2rem 0 1.2rem;
}

.hero-slider {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 72vh;
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.75s ease, transform 6s ease;
  pointer-events: none;
}

.hero-slide.slide-1 {
  background-image: url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1800&q=80");
}

.hero-slide.slide-2 {
  background-image: url("https://images.unsplash.com/photo-1573497491208-6b1acb260507?auto=format&fit=crop&w=1800&q=80");
}

.hero-slide.slide-3 {
  background-image: url("https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?auto=format&fit=crop&w=1800&q=80");
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 15, 27, 0.74) 0%, rgba(7, 15, 27, 0.44) 48%, rgba(7, 15, 27, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 640px;
  padding: 5.3rem 3rem 4.8rem;
}

.kicker {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f1d58c;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero h1,
.page-hero h1 {
  margin: 0.3rem 0 1rem;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  line-height: 1.05;
  font-size: clamp(2rem, 3.8vw, 3.7rem);
}

.hero p {
  margin: 0 0 1.2rem;
  color: #f2f4f7;
  max-width: 62ch;
}

.page-hero p {
  margin: 0 0 1.2rem;
  color: #4f4a3f;
  max-width: 62ch;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  bottom: 1.2rem;
  left: 1.4rem;
  right: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-dots {
  display: flex;
  gap: 0.42rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
}

.hero-dot.active {
  background: var(--accent-2);
}

.hero-nav {
  display: inline-flex;
  gap: 0.5rem;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.1rem;
  color: #fff;
  background: rgba(18, 32, 51, 0.64);
  transition: background 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(18, 32, 51, 0.86);
}

.hero-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.hero-list {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.hero-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.hero-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 0.4rem;
  background: linear-gradient(130deg, #57ffcd, #f7fb6f);
  flex-shrink: 0;
}

.floating-stat {
  position: absolute;
  right: -18px;
  bottom: -18px;
  background: #fff;
  color: #0c1b33;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
}

section {
  padding: 6.5rem 0;
}

main > section:not(.hero) {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.tone-plain {
  background: #f9f6ef;
}

.tone-warm {
  background: #f4ecdf;
}

.tone-soft {
  background: #fffdf8;
}

.section-head {
  margin-bottom: 1.8rem;
}

.section-head h2 {
  margin: 0 0 0.45rem;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid #efe4cf;
  padding: 1.1rem;
  box-shadow: 0 8px 18px rgba(43, 31, 13, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px rgba(43, 31, 13, 0.1);
  border-color: #e2c57a;
}

.card h3,
.card h4 {
  margin-top: 0.2rem;
  margin-bottom: 0.45rem;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.soft-block {
  background: linear-gradient(160deg, #fffaf0 0%, #f8f0df 100%);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  border: 1px solid #ead7ad;
}

.step-item {
  position: relative;
  padding-left: 2.6rem;
}

.step-item .num {
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-weight: 800;
  color: #2a2111;
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
}

.testimonial {
  background: linear-gradient(162deg, #fffcf6 0%, #f5ead2 100%);
  border-left: 4px solid var(--accent);
}

.cta-strip {
  background: linear-gradient(130deg, #122033, #223955);
  color: #f3ecd9;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.cta-strip h2 {
  margin-top: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.calculator {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #ecdcb9;
  padding: 1.3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

label {
  display: block;
  font-size: 0.9rem;
  color: #2f4161;
  margin-bottom: 0.26rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #dcc79b;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.78rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #f4e4ba;
  border-color: #c59d2a;
}

.form-hint {
  margin: 0.55rem 0 0;
  color: #496087;
  font-size: 0.86rem;
}

.faq-item {
  border-bottom: 1px solid #eadfca;
}

.faq-btn {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.3rem;
  color: #10284b;
  cursor: pointer;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-panel p {
  margin: 0 0.3rem 1rem;
  color: #425b82;
}

.page-hero {
  padding: 5.5rem 0 3.5rem;
}

.page-hero .shell {
  background: linear-gradient(145deg, #fffdf8, #f7efdf);
  border: 1px solid #eadfca;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  background: #f7ecd0;
  color: #6b5421;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.22rem 0.62rem;
}

.footer {
  margin-top: 3rem;
  color: #e9ddbf;
  background: linear-gradient(130deg, #121d2d, #1d2b3e);
  padding-top: 3.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 1rem;
}

.footer h3,
.footer h4 {
  margin-top: 0;
  color: #fff;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.footer a {
  color: #efdfb6;
}

.footer a:hover {
  color: #fff;
}

.footer-list {
  display: grid;
  gap: 0.42rem;
}

.footer-bottom {
  margin-top: 1.2rem;
  border-top: 1px solid #435067;
  padding: 1rem 0;
  font-size: 0.86rem;
  color: #d4c6a3;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.09s;
}

.delay-2 {
  transition-delay: 0.18s;
}

.delay-3 {
  transition-delay: 0.26s;
}

.mt-16 {
  margin-top: 1rem;
}

@media (max-width: 1030px) {
  .nav-links {
    position: absolute;
    top: var(--header-h);
    right: 1rem;
    display: grid;
    min-width: 250px;
    padding: 0.45rem;
    border-radius: 14px;
    border: 1px solid #d9e8ff;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transform-origin: top right;
    transition: 0.23s ease;
  }

  .nav-links.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1.3rem;
  }

  .hero-content {
    padding: 4.4rem 1.1rem 4.8rem;
  }

  .hero-slider {
    min-height: 76vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
