/* =====================================================================
   XOLVE — site styles
   Brand rules (from the logo kit): ink #0A0A0A, white, neon green #00F07A.
   Neon green is only ever a bar, a fill or a background — never text.
   ===================================================================== */

:root {
  --ink: #0A0A0A;
  --ink-2: #16181B;
  --ink-3: #24272C;
  --paper: #FFFFFF;
  --surface: #F4F5F6;
  --rule: #E2E4E7;
  --muted: #565B62;
  --muted-dark: #A4A9B0;
  --neon: #00F07A;
  --neon-press: #00D46B;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--neon); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn span { transition: transform .15s; }
.btn:hover span { transform: translateX(3px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--neon { background: var(--neon); color: var(--ink); }
.btn--neon:hover { background: var(--neon-press); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-3); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }

.link {
  font-weight: 700; text-decoration: none;
  background: linear-gradient(var(--neon), var(--neon)) 0 100% / 100% 3px no-repeat;
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 100%; }

/* ---------- kicker: label with the logo's green bar ---------- */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.kicker::before { content: ""; width: 30px; height: 5px; border-radius: 3px; background: var(--neon); flex: none; }
.kicker--dark { color: var(--muted-dark); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, .92);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--paper);
}
.top__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.top__logo img { height: 34px; width: auto; }
.top__nav { display: flex; gap: 26px; margin-left: auto; }
.top__nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted-dark); transition: color .15s; }
.top__nav a:hover, .top__nav a.is-active { color: var(--paper); }
.top__menu { display: none; }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--paper); padding: 72px 0 56px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 80px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.hl {
  background: linear-gradient(var(--neon), var(--neon)) 0 96% / 100% .11em no-repeat;
  padding-bottom: .06em;
}
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: #D2D5D9; max-width: 34em; margin-top: 24px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__mark { display: flex; justify-content: center; }
.hero__mark img { width: min(100%, 320px); height: auto; }
.hero__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  margin-top: 64px; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); overflow: hidden;
}
.hero__facts li { background: var(--ink); padding: 22px 24px; display: grid; gap: 4px; }
.hero__facts b { font-size: 16px; }
.hero__facts span { font-size: 15px; color: var(--muted-dark); line-height: 1.5; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--surface); }
.section--dark { background: var(--ink); color: var(--paper); }
.section h2 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 800; max-width: 18em; }
.section__lead { font-size: 19px; color: var(--muted); max-width: 40em; margin-top: 16px; }

/* ---------- xolutions ---------- */
.xols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.xol {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 36px 34px 30px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.xol::after { /* green bar along the top, like the logo's bar */
  content: ""; position: absolute; left: 34px; top: -3px; width: 56px; height: 6px; border-radius: 3px; background: var(--neon);
}
.xol:hover { border-color: #C9CDD2; box-shadow: 0 18px 40px -24px rgba(10, 10, 10, .35); transform: translateY(-2px); }
.xol__head { display: flex; align-items: center; gap: 16px; }
.xol__icon { width: 52px; height: 52px; flex: none; border-radius: 12px; background: var(--ink); display: grid; place-items: center; }
.xol__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--neon); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xol__tag { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.xol h3 { font-size: 26px; font-weight: 800; margin-top: 2px; }
.xol__problem { font-size: 19px; font-weight: 600; margin: 22px 0 18px; }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: #2A2E33; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300F07A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.xol__who { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 16px; }
.xol__who b { color: var(--ink); }
.xol__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: auto; padding-top: 26px; }
.xol__note { font-size: 14px; color: var(--muted); margin-top: 14px; }

.xol-custom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 24px; padding: 28px 34px; border-radius: var(--radius);
  border: 2px dashed #C9CDD2;
}
.xol-custom h3 { font-size: 22px; font-weight: 800; }
.xol-custom p { color: var(--muted); margin-top: 4px; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 48px; counter-reset: s; }
.step { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px 26px; }
.step__n { display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: .06em; padding-bottom: 8px; background: linear-gradient(var(--neon), var(--neon)) 0 100% / 28px 5px no-repeat; }
.step h3 { font-size: 21px; font-weight: 800; margin-top: 18px; }
.step p { color: var(--muted); margin-top: 8px; font-size: 16px; }

/* ---------- work ---------- */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.work__card { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px 26px; }
.work__card h3 { font-size: 21px; font-weight: 800; margin-top: 10px; }
.work__card p:not(.xol__tag) { color: var(--muted); margin-top: 10px; font-size: 16px; }
.work__links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: auto; padding-top: 22px; font-size: 15px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; }
.about__text > p:not(.kicker) { color: #2A2E33; margin-top: 18px; font-size: 18px; max-width: 36em; }
.about__text h2 + p { margin-top: 24px !important; }
.values { display: grid; gap: 12px; margin-top: 28px; }
.values li { padding: 16px 20px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.founder {
  background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 32px 30px;
  position: relative; overflow: hidden;
}
.founder::after { content: ""; position: absolute; left: 30px; bottom: 0; width: 72px; height: 6px; border-radius: 3px 3px 0 0; background: var(--neon); }
.founder__top { display: flex; align-items: center; gap: 16px; }
.founder__mono {
  width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-3); border: 2px solid var(--neon); font-weight: 800; font-size: 22px; letter-spacing: -.02em;
}
.founder__role { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }
.founder h3 { font-size: 24px; font-weight: 800; margin-top: 2px; }
.founder > p { color: #D2D5D9; margin-top: 20px; font-size: 16px; }
.founder__links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 26px; }
.founder .btn--ink { background: var(--paper); color: var(--ink); }
.founder .btn--ink:hover { background: #E6E8EA; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact h2 { color: var(--paper); }
.contact .lead { color: #D2D5D9; font-size: 19px; margin-top: 16px; max-width: 30em; }
.contact__email {
  display: inline-block; margin-top: 28px; font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; text-decoration: none;
  background: linear-gradient(var(--neon), var(--neon)) 0 100% / 100% 4px no-repeat; padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.support { margin-top: 28px; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .14); border-left: 5px solid var(--neon); border-radius: var(--radius-sm); max-width: 34em; }
.support h3 { font-size: 17px; font-weight: 800; }
.support p { color: #D2D5D9; font-size: 15.5px; margin-top: 6px; }
.support a { color: var(--paper); font-weight: 700; text-decoration-color: var(--neon); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.qform { background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 30px; display: grid; gap: 16px; }
.qform h3 { font-size: 22px; font-weight: 800; }
.qform label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: #D2D5D9; }
.qform input, .qform textarea {
  font: inherit; font-size: 16px; color: var(--paper); background: var(--ink); width: 100%;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-sm); padding: 12px 14px;
}
.qform textarea { resize: vertical; min-height: 120px; }
.qform input:focus, .qform textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(0, 240, 122, .2); }
.qform [aria-invalid="true"] { border-color: #FF7A6E; }
.qform__error { color: #FF9C93; font-size: 15px; }
.qform .btn { justify-self: start; }
.qform__hint { font-size: 14px; color: var(--muted-dark); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--paper); border-top: 1px solid rgba(255, 255, 255, .08); padding: 48px 0 28px; }
.foot__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot__inner img { height: 32px; width: auto; }
.foot__motto { color: var(--muted-dark); margin-top: 14px; }
.foot__nav { display: grid; gap: 10px; font-size: 15px; }
.foot__nav a { color: var(--muted-dark); text-decoration: none; }
.foot__nav a:hover { color: var(--paper); }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; color: var(--muted-dark); }
.foot__base a { color: var(--muted-dark); text-decoration: none; }
.foot__base a:hover { color: var(--paper); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work { grid-template-columns: minmax(0, 1fr); }
  .work__card { max-width: none; }
  .about, .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .top__inner { gap: 12px; }
  .top__logo img { height: 30px; }
  .top__cta { margin-left: auto; }
  .top__menu {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; padding: 0;
    background: none; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; cursor: pointer;
  }
  .top__menu span { display: block; width: 18px; height: 2px; background: var(--paper); border-radius: 2px; transition: transform .2s; }
  .top__menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .top__menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .top__nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px;
    background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .1);
    display: none;
  }
  .top__nav.is-open { display: flex; }
  .top__nav a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .06); }

  .hero { padding: 48px 0 40px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero__mark { order: -1; justify-content: flex-start; }
  .hero__mark img { width: 96px; }
  .hero__facts { grid-template-columns: minmax(0, 1fr); margin-top: 44px; }
  .xols { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .top__cta { display: none; }
  .top__menu { margin-left: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .xol { padding: 30px 22px 24px; }
  .xol::after { left: 22px; }
  .xol h3 { font-size: 23px; }
  .xol__problem { font-size: 17.5px; }
  .xol-custom { padding: 24px 22px; }
  .hero__ctas .btn, .contact__ctas .btn { width: 100%; }
  .qform { padding: 24px 20px; }
  .qform .btn { justify-self: stretch; }
  .founder { padding: 28px 22px; }
  .founder::after { left: 22px; }
}

/* ---------- interactive "circuit lattice" behind black areas (js/xfield.js) ---------- */
.xfield { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; pointer-events: none; }
