:root {
  --bg: #fbf6ee;
  --bg-2: #f5ebdc;
  --surface: #fffdf9;
  --line: #eadfce;
  --text: #171c3f;
  --muted: #5c586b;
  --accent: #5a3fd1;
  --accent-soft: #e9e3fb;
  --accent-2: #1f86e6;
  --ink: #131a3d;
  --radius: 20px;
  --wrap: 1140px;
  --shadow: 0 1px 2px rgba(40, 30, 80, .04), 0 12px 32px -16px rgba(40, 30, 80, .18);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }
h3, h4 { letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 0;
  background: linear-gradient(120deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 600; cursor: pointer; font-size: 15px;
  box-shadow: 0 8px 20px -10px rgba(90, 63, 209, .65);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 26px -10px rgba(90, 63, 209, .7); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid #d9c8b2; box-shadow: none; }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); box-shadow: none; filter: none; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.brand b { color: var(--accent); font-weight: 600; }
.brand-logo { height: 52px; width: auto; }
.menu { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.menu a:not(.btn) { color: var(--muted); transition: color .15s; }
.menu a:not(.btn):hover { color: var(--accent); }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); transition: transform .2s; }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 96px 0 110px; overflow: hidden; }
/* soft warm glows instead of a grid */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 420px at 8% 12%, rgba(246, 220, 203, .9), transparent 70%),
    radial-gradient(460px 380px at 60% 100%, rgba(250, 232, 196, .7), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -220px;
  background: radial-gradient(circle, rgba(90, 63, 209, .16), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; margin-left: max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); padding: 0; }
.eyebrow { color: var(--accent); font-size: 13px; letter-spacing: .04em; text-transform: lowercase; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(31, 134, 230, .22); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(31, 134, 230, 0); } }
h1 { font-size: clamp(42px, 6.2vw, 74px); line-height: 1.06; }
.grad { font-style: italic; background: linear-gradient(100deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 580px; margin: 22px 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 40px 0 0; font-size: 12.5px; }
.hero-tags li { border: 1px solid var(--line); color: var(--muted); padding: 5px 12px; border-radius: 999px; background: rgba(255, 253, 249, .8); }

/* Terminal: a warm dark card for contrast */
.terminal {
  position: absolute; z-index: 1; right: max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); top: 120px;
  width: 360px; background: #131a3d; border: 1px solid #2a3266; border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(40, 30, 80, .6);
  transform: rotate(1.5deg);
}
.term-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #2a3266; font-size: 12px; color: #a9afd6; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; }
.term-bar i:first-child { background: #e0694a; } .term-bar i:nth-child(2) { background: #e8b04a; } .term-bar i:nth-child(3) { background: #8fb573; }
.term-bar span { margin-left: 8px; }
.terminal pre { margin: 0; padding: 16px; font-size: 12.5px; line-height: 1.75; min-height: 210px; color: #a9afd6; white-space: pre-wrap; }
.terminal .ok { color: #a8cf8a; } .terminal .cmd { color: #fbf6ee; } .terminal .ac { color: #b9a5ff; }
.cursor { display: inline-block; width: 7px; height: 14px; background: #7fb6ff; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Sections */
.section { padding: 100px 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 680px; margin-bottom: 52px; }
h2 { font-size: clamp(32px, 4vw, 46px); }
.sub { color: var(--muted); font-size: 19px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: #c9bdf3; transform: translateY(-4px); box-shadow: 0 1px 2px rgba(40, 30, 80, .04), 0 22px 40px -18px rgba(40, 30, 80, .28); }
.card h3 { font-size: 19px; margin-top: 20px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); }
.ico svg { width: 23px; height: 23px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(even) .ico { background: #dcecfd; }
.card:nth-child(even) .ico svg { stroke: #1667c0; }

.steps { list-style: none; padding: 0; margin: 0 0 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.steps .num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-size: 13px; margin-bottom: 16px; }
.steps h3 { font-size: 19px; }
.steps p { color: var(--muted); font-size: 15.5px; margin: 0; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid #e2d3bd; padding-top: 40px; }
.value h4 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.value h4::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); }
.value p { color: var(--muted); margin: 0; font-size: 15.5px; }

.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.about p { color: var(--muted); font-size: 18px; }
.about em { color: var(--text); font-style: normal; font-weight: 600; }
.facts { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

.contact { background: var(--bg); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.mail { display: inline-block; font-size: 17px; color: var(--accent); border-bottom: 1.5px solid var(--accent-soft); margin: 10px 0 12px; word-break: break-all; transition: border-color .15s; }
.mail:hover { border-bottom-color: var(--accent); }
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 15.5px; font-weight: 400; color: var(--text); background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s, background .15s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(90, 63, 209, .14); }
.form .invalid { border-color: #c0392b; }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 14px; border-radius: 12px; font-size: 14.5px; }
.notice.ok { background: #e9f3df; border: 1px solid #b9d6a0; color: #2f5a1a; }
.notice.err { background: #fbe6e1; border: 1px solid #ecb5a8; color: #8f2a17; }

.footer { background: var(--ink); padding: 30px 0; font-size: 14px; color: #b9bedd; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer a:hover { color: #fff; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq details[open] { border-color: #c9bdf3; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 60px 20px 24px; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font: 500 18px/1 var(--mono);
}
.faq details[open] summary::after { content: "–"; background: var(--accent); color: #fff; }
.faq details p { color: var(--muted); margin: 0; padding: 0 24px 22px; }

/* 404 */
.notfound { position: relative; min-height: 100vh; display: grid; align-items: center; overflow: hidden; }
.notfound-inner { position: relative; z-index: 1; }

/* Responsive */
@media (max-width: 1100px) {
  .terminal { display: none; }
}
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero-inner { margin-left: 16px; margin-right: 16px; }
  .menu-btn { display: block; }
  .brand-logo { height: 40px; }
  .menu {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    display: none;
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 16px; }
  .hero { padding: 64px 0 80px; }
  .section { padding: 72px 0; }
  .cards, .steps, .values { grid-template-columns: 1fr; }
  .values { gap: 24px; }
  .form { padding: 22px; }
  .form .btn { justify-self: stretch; }
}

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

/* ---------- Group structure ---------- */
.menu a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* centred hero for pages without the terminal card */
.hero-center { padding: 110px 0 120px; text-align: center; }
.hero-copy { position: relative; z-index: 1; max-width: 820px; }
.hero-copy .eyebrow, .hero-copy .cta-row { justify-content: center; }
.hero-copy .lead { margin-left: auto; margin-right: auto; max-width: 640px; }

/* company cards on the home page */
.companies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.company {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 30px; box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.company:hover { border-color: #c9bdf3; transform: translateY(-5px); box-shadow: 0 1px 2px rgba(40, 30, 80, .04), 0 24px 44px -18px rgba(40, 30, 80, .3); }
.company:nth-child(2) .ico { background: #dcecfd; }
.company:nth-child(2) .ico svg { stroke: #1667c0; }
.company:nth-child(3) .ico { background: #fae8c4; }
.company:nth-child(3) .ico svg { stroke: #a8660f; }
.company-kind { color: var(--accent); font-size: 12.5px; letter-spacing: .04em; margin: 22px 0 6px; }
.company h3 { margin: 0; line-height: 0; }
.co-logo { display: block; height: 58px; width: auto; max-width: 100%; }
.hero-logo { margin-bottom: 26px; }
.hero-logo .co-logo { height: 84px; }
.hero-center .hero-logo .co-logo { margin: 0 auto; }
.company p { color: var(--muted); font-size: 15.5px; margin: 0; }
.company .more { margin-top: auto; padding-top: 24px; color: var(--accent); font-weight: 600; font-size: 15px; }
.badge { display: inline-block; margin-left: 8px; font: 600 12px var(--sans); letter-spacing: 0; padding: 3px 10px; border-radius: 999px; vertical-align: 1px; }
.badge.soon, .hero-tags .tag-soon { background: #fae8c4; color: #7a4a06; border-color: #f0d49a; }

/* three-step variant, note box, call-to-action band */
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.note { margin: 44px 0 0; padding: 18px 22px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.note strong { color: var(--text); }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 44px 48px; border-radius: 28px; color: #fff;
  background: linear-gradient(120deg, #1a2a6c, var(--accent));
  box-shadow: 0 30px 60px -30px rgba(40, 30, 80, .6);
}
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: .3em; }
.cta-band p { margin: 0; color: #dcd9f5; max-width: 560px; }
.cta-band .btn { background: #fff; color: var(--accent); box-shadow: none; flex-shrink: 0; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

@media (max-width: 960px) {
  .companies { grid-template-columns: 1fr; }
  .steps-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-center { padding: 64px 0 80px; }
  .hero-logo .co-logo { height: 64px; }
  .co-logo { height: 50px; }
  .cta-band { padding: 32px 24px; }
  .cta-band .btn { width: 100%; }
}
.eyebrow .caps { text-transform: none; letter-spacing: .06em; }
