/* Enix Technologies — palette from the supplied brand document */
:root {
  --bg: #FFFFFF;
  --alt: #F7F9FC;
  --dark: #080D16;
  --navy: #0B0F19;
  --text: #0B0F19;
  --muted: #667085;
  --blue: #2563FF;
  --bright: #168BFF;
  --border: #E6EAF0;
  --on-dark: #F7F9FC;
  --muted-dark: #A3ADBD;
  --grad: linear-gradient(90deg, var(--bright), var(--blue));
  --shadow: 0 1px 2px rgba(11, 15, 25, .04), 0 10px 30px rgba(11, 15, 25, .05);
  --r: 20px;
  --display: Sora, Inter, system-ui, sans-serif;
  --surface: #FFFFFF;
  --soft: var(--soft);
  --link: var(--blue);
  --card-hover: #BFD2FF;
}
/* Dark variant — switched by the header toggle (site.js), same palette with the navy tones as the page background */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080D16;
  --alt: #0B0F19;
  --text: #F7F9FC;
  --muted: #A3ADBD;
  --border: rgba(255, 255, 255, .1);
  --surface: #101726;
  --soft: #C9D1DD;
  --link: #6CA5FF;
  --card-hover: #2B4FA8;
  --shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font: 400 17px/1.65 Inter, system-ui, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.75rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--link); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; position: relative; z-index: 1; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.grad { background: linear-gradient(90deg, #6CB8FF, #2F6BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Header — floating pill */
.header { position: fixed; inset: 14px 0 auto; z-index: 50; pointer-events: none; }
.header__bar { pointer-events: auto; position: relative; width: min(1120px, 100% - 24px); margin-inline: auto; display: flex; align-items: center; gap: 20px; padding: 9px 10px 9px 22px; border-radius: 999px; background: rgba(8, 13, 22, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .09); }
.header__logo { display: flex; }
.header__logo img { height: 38px; width: auto; }
.header__nav { display: flex; gap: 2px; margin-inline: auto; }
.header__nav a { color: #C9D1DD; text-decoration: none; font-size: .9rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.header__nav a:hover, .header__nav a[aria-current] { color: #fff; background: rgba(255, 255, 255, .08); }
.header__toggle { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: none; cursor: pointer; padding: 0; place-content: center; gap: 4px; }
.header__toggle span { display: block; width: 16px; height: 2px; background: #F7F9FC; border-radius: 2px; }
.header__theme { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: none; cursor: pointer; padding: 0; }
.header__theme::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #F7F9FC; background: linear-gradient(90deg, #F7F9FC 50%, transparent 50%); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font: 600 .95rem/1.2 inherit; font-family: inherit; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 26px rgba(37, 99, 255, .38); }
.btn--primary:hover { box-shadow: 0 12px 32px rgba(22, 139, 255, .5); }
.btn--ghost { border-color: rgba(255, 255, 255, .18); color: #fff; background: rgba(255, 255, 255, .05); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn--outline:hover { border-color: var(--blue); }
.btn--sm { padding: 10px 18px; font-size: .85rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Eyebrow pill */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--alt); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bright); }
.section--alt .eyebrow { background: var(--surface); }

/* Dark surfaces */
.dark { background: var(--dark); color: var(--on-dark); }
.dark p, .dark .lead { color: var(--muted-dark); }
.dark .eyebrow { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #C9D1DD; }

/* Hero */
/* 3D web (web3d.js): fixed to the viewport, painted over section backgrounds and under all content (.container) */
.web3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero { text-align: center; padding: 180px 0 110px; background-image: radial-gradient(520px 380px at 22% 28%, rgba(37, 99, 255, .34), transparent 70%), radial-gradient(480px 360px at 80% 68%, rgba(22, 139, 255, .22), transparent 70%); }
.hero--home { min-height: 100vh; display: grid; align-items: center; }
.hero .lead { max-width: 660px; margin-inline: auto; }
.hero .actions { justify-content: center; }
.hero__note { margin: 30px 0 0; font-size: .85rem; letter-spacing: .02em; }
.hero--page { padding: 170px 0 90px; }
.hero--page h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); max-width: 900px; margin-inline: auto; }

/* Sections */
.section { padding: clamp(72px, 10vw, 124px) 0; }
.section--alt { background: var(--alt); }
.head { max-width: 760px; margin-bottom: 48px; }
.head--center { text-align: center; margin-inline: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.split p { color: var(--muted); }
.split .big { font-size: 1.3rem; color: var(--text); font-weight: 500; }
.dark .split .big { color: #fff; }
.center { text-align: center; margin-top: 44px; }

/* Connected steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--bright), var(--blue), transparent); }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.step__n { display: block; font: 700 2.6rem/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 32px; box-shadow: var(--shadow); transition: transform .25s, border-color .25s, box-shadow .25s; }
.card::before { content: ""; width: 40px; height: 3px; border-radius: 3px; background: var(--grad); margin-bottom: 22px; }
.card:hover { transform: translateY(-4px); border-color: var(--card-hover); box-shadow: 0 18px 44px rgba(37, 99, 255, .12); }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.more { margin-top: auto; font-weight: 600; font-size: .92rem; text-decoration: none; }
.more::after { content: " \2197"; }
.more:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.chips li { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: .85rem; background: var(--surface); color: var(--soft); }

/* Statement band */
.statement { text-align: center; background-image: radial-gradient(600px 300px at 50% 100%, rgba(37, 99, 255, .3), transparent 70%); }
.statement h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 860px; margin-inline: auto; }
.statement p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 700px; margin-inline: auto; }
.statement .actions { justify-content: center; }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.founder--top { align-items: start; }
.founder__photo { aspect-ratio: 4 / 5; border-radius: var(--r); background: radial-gradient(260px 220px at 30% 20%, rgba(22, 139, 255, .5), transparent 70%), linear-gradient(160deg, #0B0F19, #13224A); display: grid; place-items: center; color: #fff; font: 600 4.5rem var(--display); letter-spacing: -.04em; }
.founder blockquote { margin: 0 0 24px; font-size: 1.15rem; color: var(--soft); }
.sig { margin: 0; color: var(--muted); font-size: .95rem; }
.sig strong { display: block; color: var(--text); font-family: var(--display); font-size: 1.05rem; }

/* FAQ */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font: 600 1.02rem/1.4 var(--display); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 50%; display: grid; place-items: center; font: 400 1.1rem/1 Inter, sans-serif; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0; padding-bottom: 22px; }

/* Contact */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.5rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea { font: 400 1rem/1.4 Inter, sans-serif; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--alt); color: var(--text); width: 100%; }
.form textarea { min-height: 130px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .9rem; }
.form .check input { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.note { font-size: .84rem; color: var(--muted); margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; }
.contact-list span { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Legal */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.3rem; margin: 2.2em 0 .6em; }
.legal p { color: var(--soft); }
mark { background: #FFF1B8; color: #5C4400; padding: 0 5px; border-radius: 4px; }

/* Footer */
.footer { background: var(--navy); color: var(--muted-dark); padding: 72px 0 32px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.5fr; gap: 40px; }
.footer__logo { width: 150px; margin-bottom: 18px; }
.footer h2 { color: #fff; font: 600 .95rem var(--display); letter-spacing: 0; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__bottom a { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: .82rem; }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .08s; }
.js .reveal:nth-child(3) { transition-delay: .16s; }
.js .reveal:nth-child(4) { transition-delay: .24s; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .split, .founder { grid-template-columns: 1fr; }
  .founder__photo { max-width: 280px; }
  .header__toggle { display: grid; }
  .header__theme { margin-left: auto; }
  .header__nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; padding: 10px; border-radius: 22px; background: rgba(8, 13, 22, .97); border: 1px solid rgba(255, 255, 255, .09); }
  .header.open .header__nav { display: flex; }
  .header__nav a { padding: 12px 16px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps, .form, .footer__grid { grid-template-columns: 1fr; }
  .hero { padding: 150px 0 80px; }
  .header__bar { padding-left: 16px; gap: 10px; }
  .header__logo img { height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
