/* Quadrantix: design tokens */
:root {
  --ink: #0b1220;
  --navy: #101a33;
  --paper: #f6f7fb;
  --card: #ffffff;
  --tint: #eceffa;
  --accent: #3f57e0;
  --accent-soft: #7c93ff;
  --teal: #18c3a8;
  --teal-ink: #0b6f61;
  --muted: #4d576c;
  --line: #dde2ef;
  --radius: 16px;
  --wrap: 1140px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 1rem/1.65 var(--sans); color: var(--ink); background: var(--paper); }
svg { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 720px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: #fff; color: var(--ink); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

.preview-ribbon { background: #5c2b00; color: #fff; text-align: center; font-size: .85rem; padding: .45rem 1rem; }
[data-placeholder] { text-decoration: underline dashed; text-underline-offset: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .6rem 1.2rem;
  border: 2px solid transparent; border-radius: 12px;
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 52px; padding-inline: 1.5rem; font-size: 1rem; }
.btn-primary { background: var(--teal); color: var(--ink); }
.btn-primary:hover { background: #2fd8bd; }
.btn-outline { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,18,32,.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; flex: none; color: #fff; }

.nav-toggle { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; background: transparent; cursor: pointer; display: grid; place-items: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; content: ""; transition: transform .2s ease; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; position: absolute; inset: 100% 0 auto 0; background: var(--ink); padding: 1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-nav.is-open { display: block; }
.site-nav ul a { display: block; padding: .85rem .5rem; color: #dfe5f7; text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-nav .btn { margin-top: 1rem; width: 100%; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; align-items: center; gap: 1.5rem; padding: 0; border: 0; background: none; }
  .site-nav ul { display: flex; gap: .25rem; }
  .site-nav ul a { border: 0; padding: .5rem .75rem; border-radius: 8px; font-size: .95rem; }
  .site-nav ul a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .site-nav .btn { margin: 0; width: auto; }
}

/* Hero */
.hero {
  color: #dfe5f7; padding: 3rem 0 3.5rem; overflow: hidden;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(63,87,224,.35), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(24,195,168,.16), transparent 70%),
    var(--ink);
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 6.4vw, 3.9rem); font-weight: 750; letter-spacing: -.035em; }
.hl { background: linear-gradient(90deg, var(--accent-soft), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 1.2rem; font-size: clamp(1.05rem, 2.2vw, 1.2rem); max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-art { max-width: 520px; width: 100%; margin-inline: auto; }
.hero-art svg { width: 100%; height: auto; }
@media (min-width: 900px) {
  .hero { padding: 5rem 0 5.5rem; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
}

.kicker { font: 700 .76rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.hero .kicker, .section-dark .kicker { color: #7fe6d5; }

/* Pillars */
.pillars { background: var(--navy); color: #c9d2ee; border-top: 1px solid rgba(255,255,255,.08); padding: 1.6rem 0; }
.pillars ul { display: grid; gap: 1.2rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.pillars strong { display: block; color: #fff; font-size: 1.05rem; }
.pillars span { font-size: .93rem; }

/* Sections */
.section { padding: clamp(3.4rem, 8vw, 6rem) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: #c9d2ee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 42rem; margin-bottom: 2.4rem; }
.section h2 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); font-weight: 720; }
.section-head p:not(.kicker) { margin-top: .9rem; color: var(--muted); font-size: 1.08rem; }

/* Service cards */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: border-color .15s ease, box-shadow .15s ease; }
.card:hover { border-color: var(--accent-soft); box-shadow: 0 16px 30px -24px rgba(63,87,224,.7); }
.icon { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--tint); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.2rem; margin: 1.1rem 0 .5rem; }
.card p { color: var(--muted); }

/* Split layout */
.split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }

.checks li { border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 1.3rem 1.4rem 1.3rem 3.6rem; margin-bottom: .8rem; position: relative; background: rgba(255,255,255,.03); }
.checks li::before { content: ""; position: absolute; left: 1.3rem; top: 1.35rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1220' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.500l4 4 8-9'/%3E%3C/svg%3E") center/70% no-repeat; }
.checks h3 { font-size: 1.12rem; margin-bottom: .3rem; }

/* Lifecycle */
.lifecycle { counter-reset: step; display: grid; gap: 1.6rem 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.lifecycle li { counter-increment: step; border-top: 3px solid var(--line); padding-top: 1rem; position: relative; }
.lifecycle li::after { content: ""; position: absolute; top: -3px; left: 0; width: 2.5rem; height: 3px; background: linear-gradient(90deg, var(--accent), var(--teal)); }
.lifecycle li::before { content: "0" counter(step); font: 700 .8rem/1 var(--sans); color: var(--accent); letter-spacing: .08em; }
.lifecycle h3 { font-size: 1.15rem; margin: .5rem 0 .35rem; }
.lifecycle p { color: var(--muted); font-size: .95rem; }

/* About */
.prose p + p { margin-top: 1rem; }
.prose { font-size: 1.08rem; color: var(--muted); }
.prose .legal { font-size: .92rem; font-weight: 600; color: var(--ink); margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid #cdd4ea; }

/* Contact */
.contact { text-align: center; }
.contact .lead { margin-inline: auto; color: var(--muted); }
.contact-actions { margin-top: 2rem; }
.contact .btn { overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--ink); color: #aab4d0; padding: 2.5rem 0; }
.footer-inner { display: grid; gap: 1.4rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.site-footer ul a { color: #dfe5f7; text-decoration: none; display: inline-block; padding: .5rem 0; }
.site-footer ul a:hover { text-decoration: underline; }
.site-footer p { font-size: .88rem; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 3rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
