:root {
  --bg: #faf9fc;
  --tint: #f2f0f9;
  --ink: #14121f;
  --muted: #5d5a70;
  --line: #e2dff0;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --cyan: #06b6d4;
  --dark: #0e0c1b;
  --dark-line: rgba(255, 255, 255, .12);
  --dark-text: #c9c6dd;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: #67e8f9; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; line-height: 1.08; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
em { font-style: italic; color: var(--accent); }
.dark em { color: #a5b4fc; }
.kicker {
  margin: 0 0 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
}
.dark .kicker { color: #67e8f9; }
.section-intro { color: var(--muted); font-size: 1.1rem; max-width: 58ch; margin: 1.1rem 0 0; }
.dark .section-intro { color: var(--dark-text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 252, .78);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px rgba(20, 18, 31, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.wordmark { font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.wordmark .dot { color: var(--accent); }
.site-nav ul { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 24px; height: 2px; background: var(--ink); position: relative; content: "";
  transition: transform .2s, opacity .2s;
}
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.5rem; border-radius: 12px;
  background: var(--ink); color: #fff; font: inherit; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--ink); cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover svg { transform: translateX(3px); }
.btn-small { padding: .5rem 1.1rem; border-radius: 10px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #bdb8d6; }
.btn-ghost:hover { background: #fff; color: var(--accent); border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 0;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(124, 58, 237, .16), transparent 60%),
    radial-gradient(40rem 26rem at 5% 30%, rgba(6, 182, 212, .12), transparent 60%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(20, 18, 31, .12) 1px, transparent 1.200px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.5rem;
  padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .7);
  font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: .02em;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(6, 182, 212, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(6, 182, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); } }
.hero h1 { margin-bottom: 1.5rem; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 50ch; margin: 0 0 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-art svg { width: 100%; height: auto; max-height: 520px; overflow: visible; }
.t-base { --top: #e0e7ff; --left: #c7d2fe; --right: #a5b4fc; }
.t-mid  { --top: #c7d2fe; --left: #818cf8; --right: #6366f1; }
.t-hot  { --top: #67e8f9; --left: #22d3ee; --right: #0891b2; }
.wire { stroke: var(--accent); stroke-width: 1.5; fill: none; opacity: .7; stroke-linejoin: round; }
.wire.small { transform: scale(.6); transform-box: fill-box; transform-origin: center; }
.axes line { stroke: var(--accent); stroke-opacity: .25; stroke-dasharray: 4 6; }
.float { animation: float 6s ease-in-out infinite; }
.f2 { animation-duration: 7.500s; animation-delay: -2s; }
.f3 { animation-duration: 9s; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.strip {
  position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 3rem;
  list-style: none; margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted);
}
.strip li + li::before { content: "·"; margin-right: 3rem; color: var(--accent); font-style: normal; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section.tint { background: var(--tint); }
.section.dark { background: var(--dark); color: #fff; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 46rem; }

/* Approach */
.dims { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--dark-line); }
.dim { padding: 2.25rem 2rem 2.5rem 0; }
.dim + .dim { padding-left: 2rem; border-left: 1px solid var(--dark-line); }
.dim-num { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: #67e8f9; }
.dim h3 { font-family: var(--serif); font-weight: 500; font-size: 2rem; margin: .4rem 0 .9rem; letter-spacing: -.01em; }
.dim p { color: var(--dark-text); margin: 0 0 1.4rem; }
.dim ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.dim li { padding-left: 1.4rem; position: relative; font-size: .95rem; color: #e8e6f5; }
.dim li::before { content: ""; position: absolute; left: 0; top: .6em; width: .7rem; height: 1px; background: #67e8f9; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.tile {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 2rem;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.tile:hover { border-color: #b9b3ee; box-shadow: 0 18px 40px rgba(79, 70, 229, .1); transform: translateY(-3px); }
.tile h3 { margin-bottom: .5rem; }
.tile p { margin: 0; color: var(--muted); }
.tile-feature {
  background:
    radial-gradient(28rem 16rem at 100% 0%, rgba(124, 58, 237, .12), transparent 60%),
    #fff;
}
.icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 1.4rem;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 18px rgba(79, 70, 229, .3);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chips { list-style: none; margin: auto 0 0; padding: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { font-size: .82rem; font-weight: 500; padding: .3rem .8rem; border-radius: 999px; background: var(--tint); color: var(--accent); border: 1px solid var(--line); }

/* Timeline */
.timeline { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.timeline li { counter-increment: step; position: relative; padding-top: 4rem; }
.timeline li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
  background: #fff; color: var(--accent); border: 1.5px solid var(--accent);
}
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.375rem; left: 3.5rem; right: -.5rem; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: .5;
}
.timeline p { margin: .4rem 0 0; color: var(--muted); font-size: .97rem; }

/* Trust */
.trust { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { display: flex; gap: 1.1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles p { margin: .3rem 0 0; color: var(--muted); }
.check {
  flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  background: #e0f7fb; color: #0e7490;
}
.check svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq details { border-top: 1px solid #d5d0ea; }
.faq details:last-child { border-bottom: 1px solid #d5d0ea; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .25rem; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .25s, margin .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 1.4rem; padding-right: 2.5rem; color: var(--muted); max-width: 62ch; }

/* Contact */
.contact {
  background:
    radial-gradient(44rem 24rem at 90% 0%, rgba(124, 58, 237, .35), transparent 60%),
    radial-gradient(36rem 22rem at 0% 100%, rgba(6, 182, 212, .2), transparent 60%),
    var(--dark);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.contact-line { margin: 2.2rem 0 0; display: grid; gap: .2rem; }
.contact-line .label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #8f8bab; }
.contact-line a { color: #fff; font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.8rem); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); width: fit-content; }
.contact-line a:hover { color: #a5f3fc; border-color: #a5f3fc; }
.form { display: grid; gap: 1.1rem; background: #fff; color: var(--ink); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.field { display: grid; gap: .4rem; }
label { font-weight: 600; font-size: .92rem; }
input, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem 1rem; border: 1px solid #cfcae6; border-radius: 12px; background: #fcfcff;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(79, 70, 229, .18); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #b91c1c; }
.form-status { margin: 0; min-height: 1.4em; font-size: .93rem; color: var(--muted); }
.form-status.error { color: #b91c1c; }
.form .btn { justify-self: start; }

/* Footer */
.site-footer { background: #090814; color: #a19ebb; padding-top: 4rem; font-size: .95rem; }
.site-footer a { color: #dcd9ee; }
.site-footer a:hover { color: #fff; }
.company-details h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: .04em; color: #fff; margin-bottom: 1.5rem; }
.details { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem 2.5rem; }
.details dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: #7c7898; }
.details dd { margin: .25rem 0 0; color: #ebe9f7; }
.details dd a { display: inline-block; margin-left: .4rem; }
.status::before { content: ""; display: inline-block; width: .55rem; height: .55rem; background: #4ade80; border-radius: 50%; margin-right: .5rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  margin-top: 3rem; padding: 1.5rem 0; border-top: 1px solid var(--dark-line);
}
.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3, .span-4 { grid-column: span 2; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { padding: 0 0 2rem 4rem; }
  .timeline li:not(:last-child)::after { top: 3rem; bottom: .25rem; left: 1.375rem; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent), transparent); }
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); display: none; padding: 1rem 1.25rem 1.5rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; margin-inline: auto; order: -1; }
  .dims { grid-template-columns: 1fr; }
  .dim, .dim + .dim { padding: 2rem 0; border-left: 0; }
  .dim + .dim { border-top: 1px solid var(--dark-line); }
  .trust, .faq-wrap, .contact-grid { grid-template-columns: 1fr; }
  .strip { gap: .4rem 1.5rem; font-size: 1rem; }
  .strip li + li::before { margin-right: 1.5rem; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4 { grid-column: auto; }
}

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