:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --bg-soft: #edf1f6;
  --surface: rgba(255, 255, 255, 0.56);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --surface-muted: rgba(235, 240, 246, 0.92);
  --text: #0f172a;
  --text-soft: #566274;
  --text-faint: #7f8a99;
  --line: rgba(15, 23, 42, 0.07);
  --line-strong: rgba(15, 23, 42, 0.12);
  --accent: #7a8798;
  --accent-strong: #334155;
  --accent-soft: rgba(122, 135, 152, 0.12);
  --glow: rgba(148, 163, 184, 0.14);
  --dot: rgba(148, 163, 184, 0.08);
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.07);
  --shadow-strong: 0 28px 84px rgba(15, 23, 42, 0.12);
  --radius-xl: 38px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --container: min(1100px, calc(100% - 2rem));
  --scroll-y: 0;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f10;
  --bg-soft: #151515;
  --surface: rgba(21, 21, 21, 0.50);
  --surface-strong: rgba(25, 25, 25, 0.76);
  --surface-muted: rgba(32, 32, 32, 0.82);
  --text: #f5efe7;
  --text-soft: #c4b9ab;
  --text-faint: #a29382;
  --line: rgba(245, 239, 231, 0.075);
  --line-strong: rgba(245, 239, 231, 0.115);
  --accent: #b5955b;
  --accent-strong: #cfb47d;
  --accent-soft: rgba(181, 149, 91, 0.08);
  --glow: rgba(181, 149, 91, 0.05);
  --dot: rgba(181, 149, 91, 0.028);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  --shadow-strong: 0 34px 110px rgba(0, 0, 0, 0.30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, var(--glow), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul { margin-top: 0; }
p { color: var(--text-soft); }

.page-shell {
  position: relative;
  min-height: 100vh;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--dot) 0.6px, transparent 0.6px);
  background-size: 28px 28px;
  opacity: 0.14;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.3), transparent 84%);
}

.container { width: var(--container); margin: 0 auto; }
.section { padding: 6.4rem 0; position: relative; }
.section-tight { padding-top: 1.2rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(145%);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 2rem;
  height: 2rem;
  overflow: visible;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
}

.brand-wordmark strong {
  font-size: 0.98rem;
  letter-spacing: -0.03em;
}

.brand-wordmark small {
  color: var(--text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-actions,
nav,
.hero-actions,
.footer-links,
.hero-points {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a,
.footer-links a,
.theme-toggle-label {
  color: var(--text-faint);
  font-size: 0.94rem;
  transition: color 180ms ease;
}

nav a:hover,
.footer-links a:hover { color: var(--text); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.theme-toggle-track {
  display: inline-flex;
  width: 2.7rem;
  padding: 0.18rem;
  border-radius: 999px;
  background: var(--surface-muted);
}

.theme-toggle-thumb {
  width: 1.16rem;
  height: 1.16rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  transform: translateX(0);
  transition: transform 180ms ease;
}

:root[data-theme="dark"] .theme-toggle-thumb { transform: translateX(1.18rem); }

.hero,
.hero-grid,
.value-grid,
.cards-grid,
.legal-grid,
.faq-grid,
.process-layout,
.contact-layout,
.intro-grid {
  display: grid;
  gap: 1rem;
}

.hero {
  min-height: calc(100svh - 5rem);
  display: flex;
  align-items: center;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 2.6rem;
  align-items: center;
}

.eyebrow,
.frame-label,
.card-tag,
.step-index,
.metric-label {
  display: inline-flex;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent);
}

h1, h2, h3 {
  margin-bottom: 0.9rem;
  letter-spacing: -0.05em;
  color: var(--text);
  font-family: Manrope, Inter, system-ui, sans-serif;
}

h1 {
  font-size: clamp(3.1rem, 7vw, 5.8rem);
  line-height: 0.92;
}

h1 span { color: var(--text-faint); }

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.03;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.28;
}

.lead {
  max-width: 42rem;
  font-size: 1.06rem;
  line-height: 1.88;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 0;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
  color: var(--text-soft);
}

.hero-brand-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.35rem;
  padding: 1rem 1.1rem;
  max-width: 34rem;
}

.hero-brand-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface-strong) 90%, transparent);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.hero-brand-icon svg {
  width: 2.1rem;
  height: 2.1rem;
}

.hero-brand-note strong {
  display: block;
  margin-bottom: 0.18rem;
  font-family: Manrope, Inter, system-ui, sans-serif;
  letter-spacing: -0.03em;
}

.hero-brand-note p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.88rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: white;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #000 12%) 0%, color-mix(in srgb, var(--accent-strong) 82%, #000 18%) 100%);
  box-shadow: 0 12px 22px color-mix(in srgb, var(--accent) 14%, transparent);
}

.btn-secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
}

.glass-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(132%);
}

.hero-stage {
  position: relative;
  display: grid;
  gap: 1rem;
}

.hero-halo {
  position: absolute;
  inset: -8% -4% auto auto;
  width: 19rem;
  height: 19rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 66%);
  transform: translate3d(0, calc(var(--scroll-y) * -0.025px), 0);
  filter: blur(8px);
  pointer-events: none;
}

.hero-panel,
.hero-metrics,
.value-card,
.card,
.step-card,
.cta-card,
.contact-card { padding: 1.55rem; }

.hero-panel-primary {
  min-height: 17rem;
  padding: 2rem;
}

.hero-panel strong,
.value-card strong,
.card h3,
.step-card h3,
.hero-metrics strong { display: block; }

.hero-panel strong {
  font-size: 1.18rem;
  line-height: 1.35;
  margin-bottom: 0.7rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-metrics strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-card strong { margin-bottom: 0.7rem; }

.section-intro,
.section-copy {
  max-width: 100%;
  margin-bottom: 2rem;
}

.section-intro.narrow,
.section-copy.narrow { max-width: 42rem; }

.intro-grid,
.process-layout,
.contact-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.cards-grid-3,
.faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.muted-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 72%, transparent), transparent);
}

.process-cards {
  display: grid;
  gap: 1rem;
}

.step-index,
.card-tag,
.metric-label { margin-bottom: 0.7rem; }

.card-accent {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
}

.cta-card,
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.8rem;
}

.legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 2.25rem;
  color: var(--text-faint);
  font-size: 0.94rem;
}

.card:hover,
.value-card:hover,
.step-card:hover,
.cta-card:hover,
.contact-card:hover,
.hero-panel:hover,
.hero-metrics:hover {
  box-shadow: var(--shadow-strong);
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(.22,1,.36,1);
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1060px) {
  .hero-grid,
  .value-grid,
  .cards-grid-3,
  .faq-grid,
  .intro-grid,
  .process-layout,
  .contact-layout,
  .legal-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .cta-card,
  .contact-card,
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }
}

@media (max-width: 760px) {
  .section { padding: 4.2rem 0; }
  .nav-actions { width: 100%; }
  nav { gap: 0.85rem; }
  h1 { font-size: 2.85rem; }
  h2 { font-size: 2rem; }
  .theme-toggle { align-self: flex-start; }
}
