:root {
  --navy-950: #050c1f;
  --navy-900: #071026;
  --navy-800: #0c1a3d;
  --navy-700: #12285a;
  --blue: #1f6bff;
  --blue-600: #1856d6;
  --cyan: #19c3ff;
  --silver: #c9d3e0;
  --ink: #0b1430;
  --muted: #56617a;
  --line: #e2e8f2;
  --bg: #ffffff;
  --tint: #f3f7fd;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(9, 25, 68, .25);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--font-body);
  padding: 15px 24px; border-radius: 12px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn--primary { background: linear-gradient(135deg, var(--blue), var(--blue-600)); color: #fff; box-shadow: 0 8px 22px -8px rgba(31,107,255,.7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(31,107,255,.85); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); }
.btn--ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.1); }
.btn--sm { padding: 11px 18px; font-size: .92rem; }
.btn--block { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand img { height: 50px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--muted); transition: color .15s; }
.nav__links a:not(.btn):hover { color: var(--blue); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .2s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(160deg, var(--navy-950), var(--navy-800) 70%, var(--navy-700));
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px);
}
.hero__glow { position: absolute; width: 640px; height: 640px; right: -160px; top: -200px; background: radial-gradient(closest-side, rgba(25,195,255,.35), transparent); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 .82rem var(--font-mono); letter-spacing: .04em; color: #a9c9ff; background: rgba(31,107,255,.16); border: 1px solid rgba(94,150,255,.3); padding: 8px 14px; border-radius: 999px; margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61,220,151,.2); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; margin-bottom: 22px; }
.grad { background: linear-gradient(90deg, #5aa2ff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: #c3d0ea; max-width: 34em; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__facts { list-style: none; margin: 0; padding: 26px 0 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 14px 36px; color: #a9b8d6; font-size: .92rem; }
.hero__facts strong { display: block; font: 700 1.35rem var(--font-head); color: #fff; }

/* Hero visual */
.hero__grid > *, .about > *, .contact__grid > * { min-width: 0; }
.hero__visual { position: relative; min-height: 380px; }
.win { background: #0b1735; border: 1px solid rgba(120,160,255,.22); border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); overflow: hidden; }
.win__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07); }
.win__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4a72; }
.win__bar i:nth-child(1) { background: #ff6b6b; } .win__bar i:nth-child(2) { background: #ffc857; } .win__bar i:nth-child(3) { background: #3ddc97; }
.win__bar span { margin-left: 10px; font: 400 .74rem var(--font-mono); color: #7f92b8; }
.win--code { width: 88%; }
.win--code pre { margin: 0; padding: 18px 20px 22px; font: 400 .8rem/1.75 var(--font-mono); color: #d7e3ff; overflow: hidden; }
.win--code .c { color: #66799f; } .win--code .k { color: #c792ea; } .win--code .f { color: #6cb6ff; } .win--code .s { color: #8ee6a8; }
.win--app { position: absolute; right: 0; bottom: 0; width: 72%; background: #f4f8ff; border-color: #cfe0ff; }
.win--app .win__bar { background: #e6eefc; border-color: #d6e2f8; } .win--app .win__bar span { color: #55688f; }
.app { display: flex; height: 170px; }
.app__side { width: 40px; background: var(--navy-800); padding: 12px 10px; display: grid; align-content: start; gap: 10px; }
.app__side b { height: 8px; border-radius: 4px; background: rgba(255,255,255,.28); } .app__side b:first-child { background: var(--cyan); }
.app__main { flex: 1; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.app__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.app__stats div { background: #fff; border: 1px solid #dfe8f7; border-radius: 8px; padding: 6px 8px; }
.app__stats small { display: block; color: #6b7a99; font-size: .62rem; }
.app__stats strong { font: 700 1rem var(--font-head); color: var(--navy-800); } .app__stats .up { color: #12a06a; }
.app__chart { flex: 1; width: 100%; min-height: 0; }

/* Sections */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: linear-gradient(170deg, var(--navy-900), var(--navy-800)); color: #fff; }
.section__head { max-width: 720px; margin-bottom: 52px; }
.kicker { font: 600 .82rem var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--blue); margin-bottom: 14px; }
.section--dark .kicker, .kicker--light { color: var(--cyan); }
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; margin-bottom: 16px; }
.section__sub { font-size: 1.1rem; color: var(--muted); }
.section--dark .section__sub, .contact .section__sub { color: #b4c3e0; }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.feature { position: relative; padding: 38px; border-radius: 22px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.feature__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--cyan)); margin-bottom: 22px; }
.feature__icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.6rem; margin-bottom: 12px; }
.feature > p { color: var(--muted); }
.ticks { list-style: none; margin: 8px 0 26px; padding: 0; display: grid; gap: 11px; flex: 1; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: rgba(31,107,255,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6bff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.link { font-weight: 600; color: var(--blue); text-decoration: none; }
.link:hover { text-decoration: underline; }

.also { margin-top: 56px; padding: 34px; border-radius: 22px; background: var(--tint); border: 1px solid var(--line); }
.also__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 32px; margin-bottom: 24px; }
.also__head h3 { font-size: 1.3rem; }
.also__head p { margin: 0; color: var(--muted); max-width: 32em; }
.also__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.chip-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.chip-card h4 { font-size: 1rem; margin-bottom: 6px; color: var(--navy-800); }
.chip-card p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work { padding: 28px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(130,170,255,.18); transition: transform .2s, border-color .2s, background .2s; display: flex; flex-direction: column; }
.work:hover { transform: translateY(-4px); border-color: rgba(25,195,255,.55); background: rgba(255,255,255,.08); }
.tag { align-self: flex-start; font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); background: rgba(25,195,255,.12); padding: 5px 10px; border-radius: 999px; margin-bottom: 16px; }
.work h3 { font-size: 1.2rem; margin-bottom: 10px; }
.work p { color: #b4c3e0; font-size: .96rem; }
.work .stack { margin: auto 0 0; padding-top: 12px; font: 400 .78rem var(--font-mono); color: #7f94bd; }
.work--cta { background: linear-gradient(135deg, var(--blue), var(--blue-600)); border-color: transparent; justify-content: center; align-items: flex-start; gap: 6px; }
.work--cta:hover { background: linear-gradient(135deg, #2b78ff, var(--blue-600)); }
.work--cta p { color: #e1ebff; }
.work--cta .btn { background: #fff; color: var(--blue-600); box-shadow: none; margin-top: 10px; }
.stack-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.stack-row span { font: 500 .82rem var(--font-mono); color: #cfe0ff; border: 1px solid rgba(130,170,255,.25); padding: 7px 14px; border-radius: 999px; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px 24px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.steps__n { font: 700 2.2rem var(--font-head); background: linear-gradient(135deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 10px; }
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }

/* About */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.about__copy p { color: #3c4763; font-size: 1.05rem; }
.about__cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.about__cards li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow); }
.about__cards strong { display: block; font-family: var(--font-head); margin-bottom: 2px; }
.about__cards span { color: var(--muted); font-size: .95rem; }

/* Contact */
.contact { background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); color: #fff; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
.contact__list a { text-decoration: none; font-weight: 600; }
.contact__list a:hover { color: var(--cyan); }
.ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(25,195,255,.14); display: grid; place-items: center; flex: none; }
.ic svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form { background: #fff; color: var(--ink); border-radius: 20px; padding: 30px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid #cdd7e8; border-radius: 10px; background: #fafcff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,107,255,.2); }
.field .invalid { border-color: #d9364f; }
.form__note { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* Footer */
.footer { background: var(--navy-950); color: #9fb0d0; padding: 30px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .9rem; }
.footer__inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; line-height: 1.5; }
.footer strong { color: #fff; }
.footer__r { margin-left: auto !important; text-align: right; }
.footer a { text-decoration: none; color: #cfe0ff; }
.footer a:hover { color: var(--cyan); }

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

/* Responsive */
@media (max-width: 1000px) {
  .hero__grid, .about, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 560px; }
  .feature-grid { grid-template-columns: 1fr; }
  .also__grid { grid-template-columns: repeat(3, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav__links.open { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links .btn { margin-top: 14px; }
  .nav__brand img { height: 40px; }
  .hero__visual { min-height: 340px; }
  .win--code pre { font-size: .7rem; }
  .feature { padding: 28px 22px; }
  .also { padding: 24px 18px; }
  .also__grid, .work-grid, .steps { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .footer__r { margin-left: 0 !important; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .work { transition: none; }
}
