:root {
  color-scheme: light dark;
  --accent: #1765f5;
  --ink: #091a34;
  --muted: #61718b;
  --line: rgba(9, 26, 52, 0.09);
  --surface: rgba(255, 255, 255, 0.78);
  --background: #f2f6fc;
  --shadow: 0 24px 70px rgba(70, 105, 155, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 4%, rgba(23, 101, 245, 0.15), transparent 28rem),
    radial-gradient(circle at 4% 90%, rgba(78, 188, 255, 0.11), transparent 24rem),
    var(--background);
  font-family: ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -0.5px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: white; background: linear-gradient(145deg, #3482ff, #0d4fd5); box-shadow: 0 11px 24px rgba(23, 101, 245, 0.28); }
.brand-mark svg { width: 22px; height: 22px; }

nav { display: flex; align-items: center; gap: 8px; }
nav a { padding: 10px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 650; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }

.hero { padding: 110px 0 145px; }
.eyebrow { margin: 0 0 15px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
h1 { max-width: 800px; margin: 0; font-size: clamp(50px, 8vw, 92px); line-height: 0.96; letter-spacing: -0.065em; text-wrap: balance; }
.lede { max-width: 590px; margin: 30px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); color: var(--ink); text-decoration: none; font: inherit; font-size: 15px; font-weight: 750; cursor: pointer; box-shadow: 0 8px 30px rgba(70, 105, 155, 0.09); transition-property: scale, opacity, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out; }
.button:active { scale: 0.96; }
.button:disabled { cursor: wait; opacity: 0.58; }
.button.primary { border-color: transparent; color: white; background: var(--accent); box-shadow: 0 15px 35px rgba(23, 101, 245, 0.24); }
.button.danger { margin-top: 8px; border-color: rgba(190, 35, 51, 0.2); color: #a31224; background: rgba(255, 255, 255, 0.88); box-shadow: 0 0 0 1px rgba(190, 35, 51, 0.05), 0 8px 30px rgba(138, 23, 38, 0.08); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 100px; }
.card { min-height: 210px; padding: 28px; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(24px); }
.card .number { color: var(--accent); font-size: 13px; font-weight: 800; }
.card h2 { margin: 55px 0 8px; font-size: 22px; letter-spacing: -0.7px; }
.card p { margin: 0; color: var(--muted); line-height: 1.55; }

.document { max-width: 760px; padding: 75px 0 120px; }
.document h1 { font-size: clamp(45px, 7vw, 72px); }
.updated { margin: 20px 0 55px; color: var(--muted); font-size: 14px; }
.document section { padding: 28px 0; border-top: 1px solid var(--line); }
.document h2 { margin: 0 0 13px; font-size: 24px; letter-spacing: -0.7px; }
.document h3 { margin: 24px 0 8px; font-size: 17px; }
.document p, .document li { color: var(--muted); font-size: 16px; line-height: 1.72; text-wrap: pretty; }
.document ul { padding-left: 22px; }
.document strong { color: var(--ink); }
.contact-card { margin-top: 30px; padding: 28px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.form-status { min-height: 28px; margin: 14px 0 0; font-size: 14px !important; }
.form-status[data-state="working"] { color: var(--accent); }
.form-status[data-state="success"] { color: #087443; }
.form-status[data-state="error"] { color: #a31224; }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1120px); }
  header { align-items: flex-start; padding-top: 18px; }
  nav { flex-wrap: wrap; justify-content: flex-end; }
  nav a { padding: 8px 9px; font-size: 12px; }
  .hero { padding: 80px 0 95px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 170px; }
  .card h2 { margin-top: 34px; }
  footer { flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
  :root { --ink: #f4f7fc; --muted: #a8b4c8; --line: rgba(255, 255, 255, 0.09); --surface: rgba(22, 34, 56, 0.78); --background: #0c1422; --shadow: 0 24px 70px rgba(0, 0, 0, 0.22); }
  body { background: radial-gradient(circle at 76% 4%, rgba(23, 101, 245, 0.2), transparent 28rem), var(--background); }
  .card { border-color: rgba(255, 255, 255, 0.06); }
  .button.danger { color: #ff9aaa; background: rgba(58, 25, 34, 0.84); }
  .form-status[data-state="success"] { color: #75dda7; }
  .form-status[data-state="error"] { color: #ff9aaa; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition-duration: 0ms; }
}
