:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --text: #101217;
  --muted: #656b78;
  --line: rgba(16, 18, 23, .1);
  --primary: #1a95b8;
  --primary-strong: #12364a;
  --mint: #54c2e0;
  --rose: #7b8b98;
  --shadow: 0 24px 70px rgba(17, 24, 39, .12);
  --radius: 28px;
  --max: 1180px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090a0d;
  --surface: #14161d;
  --surface-2: #1d2029;
  --text: #f6f7fb;
  --muted: #a4abb8;
  --line: rgba(255, 255, 255, .12);
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(26, 149, 184, .16), transparent 34rem),
    radial-gradient(circle at 85% 12%, rgba(84, 194, 224, .14), transparent 32rem),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(calc(100% - 32px), var(--max));
  min-height: 72px;
  margin: 16px auto 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, .08);
  backdrop-filter: blur(22px);
}

.brand, .site-nav, .hero-actions, .site-footer div {
  display: flex;
  align-items: center;
}

.brand { gap: 10px; font-weight: 760; letter-spacing: 0; }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}
.site-nav { gap: 8px; color: var(--muted); }
.site-nav a, .theme-toggle {
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.site-nav a:hover, .theme-toggle:hover { background: var(--surface-2); color: var(--text); }
.theme-toggle { width: 42px; padding: 0; }
.nav-toggle { display: none; }

.hero, .section, .page, .site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.hero {
  min-height: calc(100svh - 96px);
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  align-items: center;
  gap: 52px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: 0; }
h1 { max-width: 850px; font-size: clamp(3rem, 7vw, 6.7rem); font-weight: 820; }
h2 { font-size: clamp(2.15rem, 4vw, 4.4rem); font-weight: 780; }
h3 { font-size: 1.35rem; }
p { color: var(--muted); }

.hero-text { max-width: 690px; margin: 24px 0 0; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.hero-actions { gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 760;
  cursor: pointer;
}
.button.primary { background: var(--primary); color: #fff; border-color: transparent; box-shadow: 0 16px 34px rgba(26, 149, 184, .28); }
.button.primary:hover { background: var(--primary-strong); }
.button.secondary { background: var(--surface); color: var(--text); }

.hero-visual {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow);
}

.section { padding: 98px 0; }
.section-heading { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .06);
}
.feature-card img { width: 52px; height: 52px; margin-bottom: 26px; }

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 44px;
  align-items: start;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.steps li {
  padding: 22px;
  display: flex;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 1.08rem;
  font-weight: 720;
}
.steps span { color: var(--primary); font-weight: 850; }

.showcase {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 40px;
}
.showcase-image { filter: drop-shadow(0 28px 45px rgba(0, 0, 0, .18)); }

.cta {
  width: min(calc(100% - 32px), 980px);
  margin: 60px auto 100px;
  padding: 54px;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--text), #263245);
  color: #fff;
}
.cta p { color: rgba(255, 255, 255, .76); max-width: 680px; margin: 18px auto 28px; }

.page { padding: 78px 0 100px; }
.page-hero { max-width: 820px; margin-bottom: 42px; }
.page-hero p { font-size: 1.15rem; }
.faq-list { display: grid; gap: 12px; max-width: 900px; }
details {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
summary { cursor: pointer; font-weight: 780; font-size: 1.1rem; }

.legal { max-width: 840px; }
.legal h2 { margin-top: 34px; font-size: 1.6rem; }
.contact-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 36px;
  align-items: start;
}
.contact-form {
  padding: 28px;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
label { display: grid; gap: 8px; color: var(--muted); font-weight: 680; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--bg);
  color: var(--text);
}

.site-footer {
  min-height: 88px;
  padding: 24px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}
.site-footer div { gap: 16px; color: var(--muted); flex-wrap: wrap; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 850px) {
  .site-header { margin-top: 10px; }
  .nav-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: var(--surface-2);
  }
  .nav-toggle span { width: 18px; height: 2px; background: var(--text); display: block; }
  .nav-toggle span + span { margin-top: -12px; }
  .site-nav {
    position: absolute;
    inset: calc(100% + 8px) 0 auto 0;
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a, .theme-toggle { width: 100%; text-align: left; }
  .hero, .split, .showcase, .contact-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; min-height: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta { padding: 34px 22px; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
