:root {
  --navy: #0B1B3F;
  --navy-2: #13285A;
  --violet: #6A3DF5;
  --violet-2: #7C55FF;
  --cyan: #00C2FF;
  --ink: #0B1B3F;
  --muted: #5B6B82;
  --line: #E3E8F2;
  --bg: #FFFFFF;
  --bg-alt: #F4F6FB;
  --grad: linear-gradient(120deg, var(--violet) 0%, var(--cyan) 100%);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 27, 63, .06), 0 8px 24px rgba(11, 27, 63, .06);
  --font: Montserrat, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(780px, 100% - 32px); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 0;
  background: var(--grad);
  color: #fff;
  font: 600 15px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(106, 61, 245, .28);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(106, 61, 245, .36); }
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--violet); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12.5px/1 var(--font);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--cyan); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 194, 255, .18); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand__mark { width: 30px; height: 34px; color: var(--navy); }
.brand__name { font-size: 24px; letter-spacing: -.04em; }
.brand__name .l { font-weight: 300; }
.brand__name .b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand--light, .brand--light .brand__mark { color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__menu a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav__menu a:not(.btn):hover { color: var(--ink); }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__toggle {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  }
  .nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__menu {
    position: absolute; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(11, 27, 63, .08);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__menu a:not(.btn) { padding: 12px 4px; font-size: 16px; }
  .nav__menu .btn { margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(0, 194, 255, .16), transparent 70%),
    radial-gradient(600px 500px at 60% 90%, rgba(106, 61, 245, .14), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 800; }
.lead { margin-top: 22px; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 28px; }
.hero__facts li { font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; }
.hero__facts strong { font-size: 16px; color: var(--ink); font-weight: 700; }

.hero__visual { position: relative; min-height: 420px; }
.window {
  position: absolute; top: 10px; left: 0; right: 60px;
  background: var(--navy);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(11, 27, 63, .28);
  overflow: hidden;
}
.window__bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2A3A62; }
.window__bar i:first-child { background: #FF5F57; } .window__bar i:nth-child(2) { background: #FEBC2E; } .window__bar i:nth-child(3) { background: #28C840; }
.window__bar span { margin-left: 10px; font: 500 12px var(--mono); color: #7F91B3; }
.code { margin: 0; padding: 22px 22px 30px; font: 500 14px/1.75 var(--mono); color: #E6ECF7; white-space: pre; overflow: hidden; }
.code .c { color: #6B7FA8; } .code .k { color: #A98BFF; } .code .s { color: #5FE0FF; } .code .f { color: #FFD27A; }
.caret { display: inline-block; width: 8px; height: 17px; margin-left: 4px; vertical-align: -3px; background: var(--cyan); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.phone {
  position: absolute; right: 0; bottom: 0;
  width: 190px; height: 360px;
  padding: 10px;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(11, 27, 63, .25), inset 0 0 0 1px var(--line);
  animation: float 6s ease-in-out infinite;
}
.phone__notch { position: absolute; top: 16px; left: 50%; translate: -50% 0; width: 60px; height: 16px; border-radius: 10px; background: var(--navy); z-index: 1; }
.phone__screen { height: 100%; border-radius: 26px; background: var(--bg-alt); padding: 46px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.phone__mark { width: 38px; height: 42px; color: var(--navy); margin-bottom: 8px; }
.sk { height: 10px; border-radius: 6px; background: #D9E0EE; }
.sk--w70 { width: 75%; height: 12px; background: var(--navy); opacity: .85; }
.sk--w50 { width: 55%; }
.phone__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; flex: 1; }
.phone__cards div { border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.phone__cards div:first-child { background: var(--grad); }
.sk--btn { height: 34px; border-radius: 999px; background: var(--grad); margin-top: 4px; }
@keyframes float { 50% { transform: translateY(-12px); } }

@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { min-height: 380px; max-width: 560px; }
}
@media (max-width: 520px) {
  .window { right: 40px; }
  .code { font-size: 11.5px; padding: 18px 16px 24px; }
  .phone { width: 150px; height: 290px; border-radius: 28px; }
  .phone__screen { border-radius: 20px; padding-top: 40px; }
  .hero__visual { min-height: 340px; }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.section__head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 17px; }
@media (max-width: 640px) { .section { padding: 72px 0; } .section__head { margin-bottom: 40px; } }

/* Services */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 27, 63, .09); border-color: transparent; }
.card__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--grad); margin-bottom: 20px; }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card ul { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.card li { font-size: 14px; font-weight: 500; display: flex; gap: 10px; align-items: center; }
.card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex: none; }
@media (max-width: 1060px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.step { position: relative; padding: 28px 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.step__n { display: inline-block; font: 800 15px var(--mono); padding: 6px 10px; border-radius: 8px; color: var(--violet); background: rgba(106, 61, 245, .08); margin-bottom: 18px; }
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* Tech */
.tech { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tech__copy > p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; font-weight: 500; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--grad);
}
.checks li { position: relative; }
.checks li::after {
  content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.tech__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tech__chips span {
  padding: 11px 18px; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--line);
  font-weight: 600; font-size: 14.5px;
  transition: background .2s, color .2s, border-color .2s;
}
.tech__chips span:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 900px) { .tech { grid-template-columns: 1fr; gap: 40px; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: 0 24px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; font-weight: 600; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 24px; font-weight: 400; color: var(--violet); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* Contact */
.contact { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(500px 360px at 10% 0%, rgba(124, 85, 255, .35), transparent 70%),
    radial-gradient(500px 360px at 100% 100%, rgba(0, 194, 255, .22), transparent 70%);
}
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact__copy > p:not(.eyebrow) { margin-top: 18px; color: #B4C2DA; font-size: 17px; max-width: 460px; }
.contact__list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 14px; color: #DCE4F2; }
.contact__list svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contact__list a { text-decoration: none; font-weight: 600; }
.contact__list a:hover { color: var(--cyan); }

.form { background: #fff; color: var(--ink); border-radius: 22px; padding: 32px; display: grid; gap: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea {
  font: 500 15px var(--font); color: var(--ink);
  padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg-alt);
  transition: border-color .2s, background .2s;
  width: 100%;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--violet); background: #fff; }
.form .is-invalid { border-color: #E5484D; }
.form__note { font-size: 14px; text-align: center; min-height: 1.4em; color: var(--muted); }
.form__note.ok { color: #1A8F55; }
.form__note.err { color: #D13438; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .form { padding: 22px; } .form__row { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: #071331; color: #8EA0C0; padding: 28px 0; font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .brand__name { font-size: 20px; }
.footer .brand__mark { width: 24px; height: 28px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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