/* Base */
:root {
  --bg: #f7f2e9;
  --ink: #0f0f14;
  --muted: #5f5a5a;
  --accent: #0f0f14;
  --accent-2: #d8bfa8;
  --card: #ffffff;
  --border: #e4ddcf;
  --shadow: 0 25px 80px rgba(15, 15, 20, 0.12);
  --radius: 18px;
  --radius-lg: 28px;
  --page-padding: clamp(16px, 6vw, 80px);
  --page-max-width: 1280px;
  --safe-top: env(safe-area-inset-top, 0px);
  --nav-offset: calc(68px + var(--safe-top));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  background:
    radial-gradient(700px 700px at 10% 15%, rgba(216, 191, 168, 0.28), rgba(247, 242, 233, 0)),
    radial-gradient(900px 700px at 85% 10%, rgba(30, 30, 38, 0.08), rgba(247, 242, 233, 0)),
    radial-gradient(800px 900px at 20% 70%, rgba(216, 191, 168, 0.2), rgba(247, 242, 233, 0)),
    radial-gradient(1000px 800px at 78% 82%, rgba(30, 30, 38, 0.06), rgba(247, 242, 233, 0)),
    radial-gradient(1200px 900px at 50% 40%, rgba(216, 191, 168, 0.12), rgba(247, 242, 233, 0));
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--nav-offset);
  background-attachment: fixed;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + var(--safe-top)) var(--page-padding) 14px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  padding: 10px;
  cursor: pointer;
  position: relative;
  z-index: 30;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav.nav--solid {
  backdrop-filter: blur(12px);
  background: rgba(247, 248, 251, 0.92);
  border-bottom: 1px solid rgba(229, 231, 239, 0.8);
  box-shadow: 0 6px 30px rgba(14, 27, 43, 0.06);
}

.nav.nav--open {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(226, 231, 240, 0.9);
  box-shadow: 0 10px 40px rgba(14, 27, 43, 0.08);
}

.nav.nav--open .nav__toggle {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(226, 231, 240, 0.9);
}

.nav.nav--open .nav__toggle span {
  background: var(--ink);
}

.nav__brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  gap: 18px;
  font-weight: 600;
  font-size: 14px;
}

.nav__links a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__links a:hover {
  background: rgba(15, 15, 20, 0.08);
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button--primary {
  background: #0f0f14;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(15, 15, 20, 0.25);
}

.button--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.button--full {
  width: 100%;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

main {
  padding: 0 var(--page-padding);
  max-width: var(--page-max-width);
  width: min(100%, var(--page-max-width));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  padding: 84px 0 56px;
  min-height: auto;
  margin-top: 0;
  padding-top: 96px;
  overflow: visible;
  background: transparent;
}

.hero::before {
  content: '';
  position: absolute;
  top: calc(var(--safe-top) * -1 - 140px);
  left: 50%;
  width: 200vw;
  height: calc(100% + var(--nav-offset) + 360px);
  transform: translateX(-50%);
  background:
    radial-gradient(900px 900px at 12% 16%, rgba(216, 191, 168, 0.22), rgba(247, 242, 233, 0)),
    radial-gradient(1100px 900px at 88% 12%, rgba(30, 30, 38, 0.08), rgba(247, 242, 233, 0)),
    radial-gradient(1200px 1000px at 50% 20%, rgba(216, 191, 168, 0.16), rgba(247, 242, 233, 0.02)),
    linear-gradient(180deg, rgba(247, 242, 233, 0.6) 0%, rgba(247, 242, 233, 0.3) 55%, rgba(247, 242, 233, 0) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted);
}

.hero__title {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
}

.hero__lead {
  max-width: 580px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  padding-top: 10px;
}

.stat__value {
  font-size: 24px;
  font-weight: 700;
}

.stat__label {
  font-size: 13px;
  color: var(--muted);
}

.hero__card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(229, 231, 239, 0.8);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card__headline {
  font-weight: 700;
}

.hero__list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.card__note {
  font-size: 13px;
  color: var(--muted);
}

.section {
  position: relative;
  padding: 48px 0;
  scroll-margin-top: calc(var(--nav-offset) + 12px);
  overflow: visible;
}

.section__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 20px;
}

.section__lead {
  max-width: 520px;
}

.section--accent {
  background: linear-gradient(180deg, rgba(26, 115, 232, 0.08), rgba(245, 247, 251, 0.95));
  border-radius: var(--radius-lg);
  padding: 72px var(--page-padding);
  margin: 40px calc(var(--page-padding) * -1) 0;
}

.section--cards {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 72px var(--page-padding);
  margin: 40px calc(var(--page-padding) * -1) 0;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
  display: grid;
  gap: 10px;
}

.card__label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 15, 20, 0.08);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}

.pill--ghost {
  background: rgba(216, 191, 168, 0.28);
}

.grid--features {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feature {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(229, 231, 239, 0.8);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 6px;
}

.feature__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #111111, #1f1f1f);
  color: #f7f2e9;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.timeline__bullet {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(26, 115, 232, 0.16);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--ink);
}

.section--cards .grid--rates {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.rate-card {
  background: linear-gradient(160deg, rgba(15, 15, 20, 0.08), rgba(255, 255, 255, 0.96));
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(229, 231, 239, 0.9);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 10px;
}

.rate-card__rate {
  font-size: 28px;
  font-weight: 800;
}

.rate-card__title {
  font-weight: 700;
}

.section--documents {
  background: radial-gradient(circle at 5% 10%, rgba(26, 115, 232, 0.12), transparent 25%),
    radial-gradient(circle at 80% 30%, rgba(255, 209, 102, 0.16), transparent 30%);
  border-radius: var(--radius-lg);
  padding: 72px var(--page-padding);
  margin: 40px calc(var(--page-padding) * -1) 0;
}

.documents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.documents__list {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.documents__list h3 {
  margin-bottom: 10px;
}

.documents__list ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

details {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

summary::-webkit-details-marker {
  display: none;
}

.section--contact {
  padding: 80px 0 100px;
}

.contact__card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(229, 231, 239, 0.9);
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.cta-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 8px 0 12px;
}

.cta-logo img {
  max-width: min(320px, 90%);
  height: auto;
  display: block;
}

.form {
  display: grid;
  gap: 12px;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fdfdff;
  font-family: inherit;
  font-size: 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(26, 115, 232, 0.5);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.14);
}

.form__hint {
  font-size: 12px;
  color: var(--muted);
}

.contact__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding-top: 4px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.footer {
  padding: 28px var(--page-padding) 40px;
  background: #0b1321;
  color: #e8ecf7;
  display: grid;
  gap: 8px;
}

.footer__brand {
  font-weight: 800;
}

.footer__links {
  display: flex;
  gap: 16px;
}

.footer a {
  color: #e8ecf7;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--muted);
}

.shape {
  position: absolute;
  z-index: 0;
  filter: blur(18px);
  opacity: 0.45;
  pointer-events: none;
}

.shape--hero-1 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.3), transparent 60%);
  top: -40px;
  left: -60px;
}

.shape--hero-2 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.35), transparent 60%);
  bottom: 40px;
  right: -30px;
}

.shape--section {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.18), transparent 60%);
}

.shape--section-1 {
  top: 10px;
  right: -60px;
}

.shape--section-2 {
  top: -50px;
  left: -70px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.18), transparent 60%);
}

.shape--section-3 {
  bottom: 0;
  right: -40px;
}

.shape--section-4 {
  top: 20px;
  left: -50px;
}

.shape--section-5 {
  bottom: -20px;
  right: -60px;
  background: radial-gradient(circle, rgba(26, 232, 185, 0.2), transparent 60%);
}

.shape--section-6 {
  top: -40px;
  left: -40px;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.16), transparent 60%);
}

.section {
  overflow: hidden;
}

/* Device-aware spacing */
body.device-mobile {
  --page-padding: clamp(14px, 5vw, 22px);
  --page-max-width: 100%;
}

body.device-tablet {
  --page-padding: clamp(18px, 5.5vw, 44px);
  --page-max-width: 1100px;
  --nav-offset: calc(64px + var(--safe-top));
}

body.device-desktop {
  --page-padding: clamp(22px, 6.5vw, 80px);
  --page-max-width: 1280px;
}

body.device-wide {
  --page-padding: clamp(28px, 7vw, 120px);
  --page-max-width: 1440px;
}

@media (max-width: 860px) {
  .nav {
    flex-wrap: nowrap;
    gap: 10px;
    padding: calc(10px + var(--safe-top)) var(--page-padding) 10px;
  }

  .nav__toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .nav__brand {
    order: 2;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    white-space: nowrap;
  }

  .nav__cta {
    display: none;
  }

  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: calc(60px + var(--safe-top)) var(--page-padding) 24px;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 231, 239, 0.8);
    box-shadow: 0 18px 40px rgba(14, 27, 43, 0.08);
    display: none;
    z-index: 15;
    height: 100vh;
    overflow-y: auto;
  }

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

  .nav.nav--open .nav__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav.nav--open .nav__toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.nav--open .nav__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav__links {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 48px;
  }
}

@media (max-width: 640px) {
  .hero__stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .nav__links {
    justify-content: flex-start;
  }
}
