:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f1f5fa;
  --line: rgba(15, 23, 42, 0.09);
  --text: #0b1324;
  --muted: #5b6678;
  --accent: #0aa7c2;
  --accent-2: #5465ff;
  --radius: 18px;
  --wrap: 1180px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; 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 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--font); color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 28px -10px rgba(84, 101, 255, 0.55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(84, 101, 255, 0.65); }
.btn--ghost { background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: rgba(10, 167, 194, .5); box-shadow: none; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.link { color: var(--accent); font-weight: 500; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(10,167,194,.15); }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 700 18px/1 var(--display); letter-spacing: -0.01em; }
.brand em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 6px; }
.brand__mark { width: 40px; height: 40px; object-fit: cover; object-position: 8px center; padding: 7px 0; background: #0b1324; border-radius: 10px; }
.footer .brand__mark { width: 32px; height: 32px; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav__links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, top .25s ease; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 168px 0 120px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 30%, rgba(10,167,194,.16), transparent 70%),
    radial-gradient(35% 45% at 75% 25%, rgba(84,101,255,.14), transparent 70%);
  filter: blur(10px);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.6vw, 78px); font-weight: 700; max-width: 18ch; }
.hero h1 { text-wrap: balance; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; margin-top: 24px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.hero__chips { list-style: none; padding: 0; margin: 56px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero__chips li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); background: rgba(255,255,255,.8); }

/* Sections */
.section { padding: 112px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__head .muted { margin-top: 16px; font-size: 18px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--surface); box-shadow: 0 1px 2px rgba(15,23,42,.04);
  border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(10,167,194,.35); box-shadow: 0 18px 40px -20px rgba(15,23,42,.25); }
.card--wide { grid-column: span 2; }
.card h3 { margin: 20px 0 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: rgba(10,167,194,.08); border: 1px solid rgba(10,167,194,.2);
}
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 28px 24px 0 0; border-top: 2px solid var(--line); position: relative; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--accent); }
.step__n { font: 600 14px/1 var(--display); color: var(--accent); }
.step h3 { margin: 18px 0 10px; font-size: 22px; }
.step p { color: var(--muted); font-size: 15px; }

/* Work */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work__item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 16 / 10; }
.work__item--lg { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.work__item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.work__item:hover img { transform: scale(1.04); }
.work__item figcaption {
  position: absolute; inset: auto 0 0; padding: 40px 20px 18px; display: flex; flex-direction: column;
  background: linear-gradient(transparent, rgba(11,19,36,.88));
}
.work__cta { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 28px; border-style: dashed; border-color: rgba(10,167,194,.4); background: linear-gradient(135deg, rgba(10,167,194,.07), rgba(84,101,255,.07)); transition: border-color .2s, transform .25s; }
.work__cta:hover { transform: translateY(-4px); border-color: var(--accent); }
.work__cta .eyebrow { margin: 0; }
.work__cta strong { font: 600 22px/1.2 var(--display); letter-spacing: -0.01em; }
.work__item figcaption strong { font-family: var(--display); font-size: 18px; color: #fff; }
.work__item figcaption span { color: rgba(255,255,255,.75); font-size: 14px; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.about__text h2 { margin-bottom: 24px; }
.about__text p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.founders { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 32px; }
.founder { display: flex; align-items: center; gap: 14px; }
.founder strong { display: block; font-family: var(--display); }
.founder span:not(.avatar) { color: var(--muted); font-size: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 700 16px/1 var(--display); color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.values { display: grid; gap: 16px; }
.value { display: flex; gap: 20px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value h3 { margin-bottom: 6px; }
.value p { color: var(--muted); font-size: 15px; }

/* Contact */
.cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px; border-radius: 28px;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(10,167,194,.10), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(84,101,255,.10), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line);
}
.cta h2 { margin-bottom: 16px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; flex-wrap: wrap; }
.contact-list span { width: 92px; color: var(--muted); font-size: 14px; padding-top: 1px; }
.contact-list a { color: var(--text); border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--accent); }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: 400 15px/1.4 var(--font); color: var(--text);
  background: #fff; border: 1px solid rgba(15,23,42,.14); border-radius: 12px; padding: 13px 14px;
  transition: border-color .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .is-invalid { border-color: #dc2626; }
.form__note { font-size: 14px; color: var(--muted); min-height: 20px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.footer .brand { font-size: 16px; margin-bottom: 12px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--muted); font-size: 14px; }
.footer__links a:hover { color: var(--text); }
.footer__inner > p { text-align: right; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* Responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about, .cta { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__inner > p { text-align: left; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 24px; background: #fff; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s ease;
  }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__links .btn { margin-top: 16px; }
  .nav.is-open { background: #fff; border-color: var(--line); }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .work { grid-template-columns: 1fr 1fr; }
  .work__item--lg { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .work__cta { grid-column: span 2; aspect-ratio: auto; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero { padding: 128px 0 80px; }
  .cards, .steps, .work { grid-template-columns: 1fr; }
  .card--wide, .work__item--lg, .work__cta { grid-column: auto; }
  .cta { padding: 28px 20px; border-radius: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .brand em { display: none; }
}
