/* ===== Tokens ===== */
:root {
  --bg: #000;
  --brand: #1d5cf5;
  --brand-soft: #6b95ff;
  --lav: #bfd3ff;
  --s100: #f1f5f9;
  --s200: #e2e8f0;
  --s300: #cbd5e1;
  --s400: #94a3b8;
  --s500: #64748b;
  --s600: #475569;
  --s700: #334155;
  --s800: #1e293b;
  --s900: #0f172a;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: #fff;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

.container { max-width: 80rem; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }
@media (min-width: 1024px) { .container { padding-inline: 32px; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: opacity .2s, transform .15s, background-color .2s;
}
.btn:active { transform: scale(.95); }
.btn--primary { background: var(--brand); color: #fff; font-weight: 600; padding: 8px 24px; }
.btn--primary:hover { opacity: .9; }
.btn--outline { margin-top: 24px; padding: 10px 24px; border: 1px solid rgba(29, 92, 245, .5); }
.btn--outline:hover { background: rgba(29, 92, 245, .1); }
.btn--send { padding: 12px 32px; font-size: 16px; }
.btn svg { width: 16px; height: 16px; }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.nav__bar { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.logo svg { width: 34px; height: 34px; flex: none; }
.nav__links { display: none; align-items: center; gap: 32px; }
.nav__link { font-size: 14px; font-weight: 500; color: var(--s300); transition: color .2s; }
.nav__link:hover { color: #fff; }
.lang { display: flex; align-items: center; gap: 8px; border: 1px solid var(--s700); border-radius: 999px; padding: 4px 8px; }
.lang button { font-size: 12px; padding: 4px 8px; border-radius: 999px; color: var(--s400); transition: color .2s, background-color .2s; }
.lang button:hover { color: #fff; }
.lang button.is-active { background: var(--brand); color: #fff; font-weight: 600; }
.nav__mobile { display: flex; align-items: center; gap: 12px; }
.icon-btn { padding: 8px; color: var(--s400); border-radius: 999px; transition: color .2s; }
.icon-btn:hover { color: #fff; }
.icon-btn--ring { border: 1px solid var(--s700); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn--ring svg { width: 20px; height: 20px; }

.mobile-menu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.mobile-menu.is-open { grid-template-rows: 1fr; }
.mobile-menu__inner { overflow: hidden; }
.mobile-menu__list { display: grid; gap: 4px; padding-block: 8px 20px; }
.mobile-menu__list .nav__link { padding: 10px 0; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.mobile-menu__list .btn { justify-content: center; margin-top: 12px; padding: 12px 24px; }
@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__mobile, .mobile-menu { display: none; }
}

/* ===== Page shell ===== */
.page { padding-inline: 16px; overflow-x: clip; }
@media (min-width: 768px) { .page { padding-inline: 64px; } }
@media (min-width: 1024px) { .page { padding-inline: 96px; } }
@media (min-width: 1280px) { .page { padding-inline: 128px; } }

.section { display: flex; flex-direction: column; align-items: center; }
.section__head { display: flex; flex-direction: column; align-items: center; margin-top: 128px; text-align: center; }
.section__title { font-size: clamp(30px, 6vw, 36px); font-weight: 600; line-height: 1.3; max-width: 42rem; }
.section__desc { color: var(--s400); max-width: 32rem; margin-top: 12px; }
.hl {
  display: inline-block; padding: 4px;
  background-image: linear-gradient(to top, var(--brand), #000);
  background-repeat: no-repeat; background-position: left; background-size: 0% 100%;
  transition: background-size 1s var(--ease) .35s;
}
.is-in .hl { background-size: 100% 100%; }

/* ===== Motion helpers ===== */
.intro {
  opacity: 0; transform: translateY(var(--from, 50px));
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.is-loaded .intro { opacity: 1; transform: none; }
.reveal {
  opacity: 0; transform: translateY(var(--y, 80px));
  transition: opacity .8s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }
@keyframes pulse { 50% { opacity: .5; } }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes orbit { to { transform: rotate(360deg); } }

/* ===== Hero ===== */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; padding-top: 180px; }
@media (min-width: 768px) { .hero { padding-top: 200px; } }
.hero-bg { position: absolute; z-index: -1; top: 0; left: 0; right: 0; overflow: hidden; pointer-events: none; }
.hero__glow { display: block; width: 100%; height: auto; margin-top: -160px; opacity: 0; transition: opacity 1.8s ease; }
@media (min-width: 768px) { .hero__glow { margin-top: 0; } }
.is-loaded .hero__glow { opacity: 1; }
.badge {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--s600); color: #f9fafb; border-radius: 999px;
  padding: 8px 16px; font-size: 15px; transition: background-color .2s;
}
.badge:hover { background: rgba(30, 41, 59, .5); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.hero__title {
  margin-top: 16px; max-width: 42rem; text-align: center;
  font-size: clamp(38px, 9vw, 60px); line-height: 1.17; font-weight: 600; letter-spacing: -.01em;
}
.hero__sub { margin-top: 12px; max-width: 32rem; text-align: center; color: var(--s400); }

.showcase { width: 100%; max-width: 56rem; margin-top: 64px; perspective: 800px; }
.showcase__inner { transform-style: preserve-3d; transform: rotateX(var(--tilt, 0deg)) scale(var(--sc, 1)); transform-origin: center top; will-change: transform; }

/* Dashboard mockup */
.mock {
  border-radius: 15px; overflow: hidden; text-align: left;
  background: #070d1f; border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 40px 100px -30px rgba(1, 52, 205, .6);
  font-size: 12px; color: var(--s300);
}
.mock__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding-inline: 14px; background: #050a18; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #f87171aa; }
.mock__bar i:nth-child(2) { background: #fbbf24aa; }
.mock__bar i:nth-child(3) { background: #60a5faaa; }
.mock__url { margin-inline: auto; padding: 2px 14px; border-radius: 6px; background: rgba(255, 255, 255, .05); font-size: 11px; color: var(--s500); }
.mock__body { display: grid; grid-template-columns: 1fr; }
.mock__side { display: none; padding: 16px 12px; border-right: 1px solid rgba(255, 255, 255, .06); background: #060b1b; }
.mock__brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; margin-bottom: 18px; }
.mock__brand svg { width: 20px; height: 20px; }
.mock__nav { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--s400); margin-bottom: 2px; }
.mock__nav::before { content: ""; width: 11px; height: 11px; border-radius: 3px; border: 1.5px solid currentColor; opacity: .7; }
.mock__nav.is-active { background: rgba(29, 92, 245, .28); color: #fff; }
.mock__main { padding: 14px; display: grid; gap: 12px; min-width: 0; }
.mock__head { display: flex; align-items: center; justify-content: space-between; }
.mock__head b { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.mock__head small { color: var(--s500); font-size: 11px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 3px 10px; border-radius: 999px; background: rgba(34, 197, 94, .12); color: #4ade80; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpi { padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
.kpi small { display: block; font-size: 10px; color: var(--s500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b { display: block; font-size: 16px; color: #fff; font-weight: 600; margin-top: 2px; }
.kpi em { font-style: normal; font-size: 10px; color: #4ade80; }
.mock__panels { display: grid; grid-template-columns: 1fr; gap: 10px; }
.panel { display: flex; flex-direction: column; min-width: 0; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
.panel__title { font-size: 11px; color: var(--s400); margin-bottom: 8px; }
.panel svg { width: 100%; height: auto; border-radius: 6px; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; min-height: 110px; }
.bars i {
  flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px;
  background: linear-gradient(to top, var(--brand), #60a5fa);
  transform: scaleY(0); transform-origin: bottom; transition: transform 1.1s var(--ease);
}
.bars i:nth-child(2) { transition-delay: .08s; } .bars i:nth-child(3) { transition-delay: .16s; }
.bars i:nth-child(4) { transition-delay: .24s; } .bars i:nth-child(5) { transition-delay: .32s; }
.bars i:nth-child(6) { transition-delay: .4s; }  .bars i:nth-child(7) { transition-delay: .48s; }
.is-loaded .bars i { transform: scaleY(1); }
.days { display: flex; justify-content: space-between; font-size: 9px; color: var(--s600); margin-top: 6px; padding-inline: 2px; }
@media (min-width: 640px) {
  .mock__body { grid-template-columns: 150px 1fr; }
  .mock__side { display: block; }
  .mock__panels { grid-template-columns: 1.6fr 1fr; }
  .mock__main { padding: 20px; }
  .kpi { padding: 10px 12px; }
  .kpi b { font-size: 20px; }
}
.route { animation: dash 1.4s linear infinite; }
.ping { transform-box: fill-box; transform-origin: center; animation: ping 2.4s var(--ease) infinite; }
.ping--2 { animation-delay: .8s; } .ping--3 { animation-delay: 1.6s; }

/* ===== Capabilities ===== */
.caps { display: grid; grid-template-columns: 1fr; width: 100%; max-width: 64rem; margin-top: 72px; padding-inline: 16px; }
.cap { padding-block: 40px; border-bottom: 1px solid var(--s700); }
.cap:last-child { border-bottom: 0; }
.cap__icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: rgba(29, 92, 245, .2); border: 1px solid rgba(29, 92, 245, .3); border-radius: 4px; font-size: 16px;
}
.cap h3 { margin-top: 20px; font-size: 16px; font-weight: 500; color: var(--s200); }
.cap p { margin-top: 8px; font-size: 14px; color: var(--s400); }
@media (min-width: 768px) {
  .caps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; padding-inline: 0; }
  .cap { padding: 0 40px; border-bottom: 0; border-right: 1px solid var(--s700); }
  .cap:nth-child(2), .cap:last-child { border-right: 0; }
}
@media (min-width: 1024px) {
  .caps { grid-template-columns: repeat(3, 1fr); }
  .cap:nth-child(2) { border-right: 1px solid var(--s700); }
}

/* ===== Tech stack ===== */
.stack { width: 100%; max-width: 72rem; margin-top: 96px; }
.stack__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 16px; overflow: hidden;
}
.tech {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 96px; padding: 8px; background: #000; transition: background-color .3s;
}
.tech i {
  width: 28px; height: 28px; background: rgba(255, 255, 255, .45);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
  transition: background-color .5s, transform .5s var(--ease);
}
.tech span {
  margin-top: 12px; font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-align: center;
  color: rgba(255, 255, 255, .2); transition: color .3s;
}
.tech::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(to top, rgba(29, 92, 245, .12), transparent);
}
.tech:hover { background: #050505; }
.tech:hover i { background: var(--c); transform: translateY(-3px) scale(1.06); }
.tech:hover span { color: rgba(255, 255, 255, .8); }
.tech:hover::after { opacity: 1; }
@media (min-width: 640px) { .stack__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) {
  .stack__grid { grid-template-columns: repeat(6, 1fr); }
  .tech { height: 160px; }
  .tech i { width: 48px; height: 48px; }
  .tech span { font-size: 12px; }
}

/* ===== Work (expanding cards) ===== */
.work { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 64rem; margin-top: 48px; }
.work__card {
  position: relative; flex: 1; min-width: 0; min-height: 70px; overflow: hidden; cursor: pointer;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, .05); background: rgba(15, 23, 42, .4); opacity: .6;
  transition: flex .7s var(--ease), min-height .7s var(--ease), opacity .5s, box-shadow .5s;
}
.work__card:hover, .work__card:focus-visible { opacity: 1; }
.work__card:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.work__card.is-active { flex: 8; min-height: 320px; opacity: 1; box-shadow: 0 25px 50px -12px rgba(29, 92, 245, .25); }
.work__bg { position: absolute; inset: 0; background: var(--s900); }
.art { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.work__card:hover .art { transform: scale(1.05); }
.work__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); transition: background-color .5s; }
.work__card.is-active .work__shade { background: rgba(0, 0, 0, .2); }
.work__content {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 55%); opacity: 0; transition: opacity .4s;
}
.work__card.is-active .work__content { opacity: 1; transition-delay: .25s; }
.work__content h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; line-height: 1.25; }
.work__content p { font-size: 13px; color: var(--s200); max-width: 32rem; }
.work__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; pointer-events: none; transition: opacity .3s; }
.work__label span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .8); transition: color .3s; }
.work__card.is-active .work__label { opacity: 0; }
@media (min-width: 768px) {
  .work { flex-direction: row; height: 500px; margin-top: 72px; }
  .work__card, .work__card.is-active { height: 100%; min-height: 0; }
  .work__content { padding: 40px; }
  .work__content h3 { font-size: 30px; }
  .work__content p { font-size: 14px; }
  .work__label span { transform: rotate(90deg); overflow: visible; font-size: 12px; color: rgba(255, 255, 255, .4); }
  .work__card:hover .work__label span { color: rgba(255, 255, 255, .85); }
}

/* Work art: map */
.art--map svg { width: 100%; height: 100%; }
/* Work art: shop */
.art--shop {
  display: flex; align-items: center; justify-content: center; padding: 32px;
  background: radial-gradient(circle at 70% 20%, rgba(124, 108, 255, .28), transparent 60%), #0b1026;
}
.shop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: min(92%, 560px); transform: rotate(-8deg) scale(1.1); }
.shop__item { padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.shop__item i { display: block; aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, var(--a), var(--b)); }
.shop__item b, .shop__item s { display: block; height: 6px; border-radius: 4px; }
.shop__item b { width: 70%; margin-top: 8px; background: rgba(255, 255, 255, .25); }
.shop__item s { width: 35%; margin-top: 6px; background: var(--brand-soft); }
/* Work art: code */
.art--code { position: relative; background: radial-gradient(circle at 20% 80%, rgba(29, 92, 245, .32), transparent 55%), #070c1d; }
.editor { position: absolute; left: 7%; top: 12%; width: 62%; min-width: 260px; border-radius: 12px; overflow: hidden; background: #0b1226; border: 1px solid rgba(255, 255, 255, .08); }
.editor__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding-inline: 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.editor__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--s700); }
.editor__lines { display: grid; gap: 11px; padding: 18px; }
.editor__lines p { display: flex; gap: 8px; padding-left: calc(var(--i, 0) * 18px); }
.editor__lines span { height: 8px; border-radius: 4px; background: var(--c, #334155); width: var(--w); }
.phone {
  position: absolute; right: 9%; top: 20%; width: 22%; min-width: 120px; aspect-ratio: 9 / 19;
  border-radius: 24px; border: 6px solid #1e293b; background: #0b1226; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.phone__screen { display: grid; gap: 8px; padding: 14px 10px; }
.phone__screen i { display: block; border-radius: 8px; background: rgba(255, 255, 255, .06); height: 36px; }
.phone__screen i:first-child { height: 70px; background: linear-gradient(135deg, var(--brand), #60a5fa); }

/* ===== Partners marquee ===== */
.marquee { position: relative; width: 100%; overflow: hidden; margin-top: 96px; padding-block: 48px; background: #000; user-select: none; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: 96px; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(to right, #000, transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, #000, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.partner {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 150px; padding-inline: 24px;
  font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: #fff; opacity: .3; filter: grayscale(1);
  transition: opacity .5s, filter .5s;
}
.partner:hover { opacity: 1; filter: none; }
.partner svg { width: 28px; height: 28px; }

/* ===== Testimonials ===== */
.quotes { display: grid; grid-template-columns: 1fr; gap: 24px; width: 100%; max-width: 72rem; margin-top: 72px; }
@media (min-width: 640px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border: 1px solid var(--s800); border-radius: 12px; transition: border-color .3s; }
.quote:hover { border-color: rgba(29, 92, 245, .5); }
.quote p { color: var(--s100); }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: 32px; transition: transform .3s; }
.quote:hover .quote__who { transform: translateY(-4px); }
.avatar { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 600; background: linear-gradient(to bottom right, var(--brand), #000); }
.quote h4 { font-weight: 500; color: #e5e7eb; }
.quote small { display: block; font-size: 14px; color: var(--brand-soft); }

/* ===== CTA ===== */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 40px;
  width: 100%; max-width: 64rem; margin-top: 72px; padding: 80px 16px;
  border: 1px solid rgba(29, 92, 245, .2); border-radius: 24px;
  background: linear-gradient(to bottom right, rgba(29, 92, 245, .05), #000);
}
.cta__blob { position: absolute; z-index: -1; width: 256px; height: 256px; pointer-events: none; background: linear-gradient(to bottom right, rgba(29, 92, 245, .45), transparent); filter: blur(100px); }
.cta__blob--a { top: 40px; left: 80px; }
.cta__blob--b { bottom: 40px; right: 80px; }
.cta__text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta__title {
  max-width: 36rem; font-size: 30px; font-weight: 500; line-height: 1.3;
  background: linear-gradient(to right, #fff, var(--lav)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta__text p { max-width: 32rem; margin-top: 16px; color: var(--s400); }
.cta__mark { flex: none; display: flex; align-items: center; justify-content: center; width: 224px; height: 224px; border-radius: 24px; background: linear-gradient(to bottom right, rgba(29, 92, 245, .2), #000); }
.cta__mark svg { width: 96px; height: 96px; }
.cta__mark .orbit-dot { transform-origin: 20px 20px; animation: orbit 8s linear infinite; }
@media (min-width: 768px) {
  .cta { flex-direction: row; padding: 104px 40px; }
  .cta__text { align-items: flex-start; text-align: left; }
}

/* ===== Contact form ===== */
.form { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; max-width: 48rem; margin-top: 64px; color: var(--s400); }
.form label { font-weight: 500; color: var(--s200); }
.field {
  width: 100%; margin-top: 8px; padding: 12px; border: 1px solid var(--s700); border-radius: 8px;
  background: transparent; color: #fff; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: var(--s500); }
.field:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
textarea.field { resize: none; }
@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; gap: 20px; }
  .form .full { grid-column: span 2; }
}

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: 999px; font-size: 14px; pointer-events: none;
  background: var(--s900); border: 1px solid rgba(29, 92, 245, .45);
  opacity: 0; transform: translate(-50%, 20px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ===== Footer ===== */
.footer { margin-top: 80px; padding-bottom: 40px; border-top: 1px solid var(--s900); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 48px; padding-top: 64px; }
.footer__tag { margin-top: 24px; max-width: 20rem; color: var(--s400); line-height: 1.65; }
.socials { display: flex; gap: 20px; margin-top: 32px; }
.socials a { font-size: 14px; color: var(--s400); text-transform: capitalize; transition: color .3s; }
.socials a:hover { color: #fff; }
.footer h3 { font-size: 18px; font-weight: 600; }
.footer ul { list-style: none; display: grid; gap: 16px; margin-top: 24px; }
.flink { display: flex; align-items: center; color: var(--s400); transition: color .2s; }
.flink > span:first-child { transition: transform .3s; }
.flink:hover { color: #fff; }
.flink:hover > span:first-child { transform: translateX(4px); }
.tag { margin-left: 8px; padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; color: #fff; background: var(--brand); }
.footer__contact { color: var(--s400); font-size: 14px; }
.footer__contact li { line-height: 1.65; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--s900); font-size: 13px; color: var(--s500); }
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__brand { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .intro, .reveal { opacity: 1; transform: none; }
  .hl { background-size: 100% 100%; }
  .bars i { transform: none; }
}

/* =====================================================================
   Testa Group theme — overrides & new sections
   ===================================================================== */
:root { --bg: #000; }
.nav { background: rgba(0, 0, 0, .8); }
.logo img { height: 24px; width: auto; }
@media (min-width: 640px) { .logo img { height: 30px; } }
.nav__links { gap: 26px; }
/* 5 nav links + toggle + CTA need room: keep the mobile menu up to 1100px */
@media (min-width: 768px) and (max-width: 1099px) {
  .nav__links { display: none; }
  .nav__mobile { display: flex; }
  .mobile-menu { display: grid; }
}

/* Mockup tinted to the green/black theme */
.mock { background: #070d1f; }
.mock__bar { background: #050a18; }
.mock__side { background: #060b1b; }
.mock__brand img { width: 20px; height: 20px; }

.cap__icon--num { font-size: 13px; font-weight: 700; color: var(--brand-soft); }

/* Sub headings inside a section */
.sub-head { margin-top: 96px; text-align: center; }
.sub-head h3 { font-size: 22px; font-weight: 600; }
.sub-head p { margin-top: 6px; font-size: 14px; color: var(--s400); }

/* Tile grids (mission/vision/values, focus sectors, services) */
.tiles {
  display: grid; grid-template-columns: 1fr; gap: 1px; width: 100%; max-width: 72rem; margin-top: 40px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); border-radius: 16px; overflow: hidden;
}
.caps + .tiles { margin-top: 72px; }
.tile { position: relative; padding: 28px 24px; background: #000; transition: background-color .3s; }
.tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(to top, rgba(29, 92, 245, .12), transparent);
}
.tile:hover { background: #02040a; }
.tile:hover::after { opacity: 1; }
.tile__icon {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--brand-soft);
  background: rgba(29, 92, 245, .14); border: 1px solid rgba(29, 92, 245, .3); transition: transform .4s var(--ease);
}
.tile:hover .tile__icon { transform: translateY(-3px); }
.tile__icon svg { width: 22px; height: 22px; }
.tile h4 { margin-top: 18px; font-size: 16px; font-weight: 600; color: var(--s100); }
.tile p { margin-top: 8px; font-size: 14px; color: var(--s400); }
.tile--center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 170px; padding: 24px 14px; text-align: center; }
.tile--center h4 { font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--s200); }
.tiles--svc { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .tiles--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .tiles--3 { grid-template-columns: repeat(3, 1fr); }
  .tiles--svc { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) { .tiles--4 { grid-template-columns: repeat(4, 1fr); } }

/* Tech categories */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 72rem; margin-top: 20px; }
.chips span { padding: 6px 14px; border: 1px solid var(--s800); border-radius: 999px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--s400); }
.chips + .stack { margin-top: 32px; }
@media (min-width: 640px) and (max-width: 767px) { .stack__grid { grid-template-columns: repeat(3, 1fr); } }

/* Project cards with real screenshots */
.art--img { display: block; object-fit: cover; object-position: center top; }
.work__card.is-active .work__shade { background: rgba(0, 0, 0, .1); }
.work__content { background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, .45) 45%, transparent 75%); }
.work__tag {
  width: max-content; max-width: 100%; margin-bottom: 12px; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--brand);
}
@media (min-width: 768px) { .work { height: 520px; } }

/* Product wordmarks */
.pdot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }

/* Solutions */
.sols { display: grid; grid-template-columns: 1fr; gap: 24px; width: 100%; max-width: 72rem; margin-top: 72px; }
@media (min-width: 640px) { .sols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sols { grid-template-columns: repeat(3, 1fr); } }
.sol { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--s800); border-radius: 16px; background: #070b18; transition: border-color .3s, transform .4s var(--ease); }
.sol:hover { border-color: rgba(29, 92, 245, .5); transform: translateY(-4px); }
.sol__img { aspect-ratio: 16 / 10; overflow: hidden; background: #0b1020; }
.sol__img--light { background: #fff; }
.sol__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sol:hover .sol__img img { transform: scale(1.05); }
.sol__body { display: flex; flex-direction: column; align-items: flex-start; padding: 20px 22px 24px; }
.sol__body h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.sol__body p { margin-top: 8px; font-size: 14px; color: var(--s400); }
.sol__badge { margin-top: 14px; padding: 3px 10px; border: 1px solid rgba(29, 92, 245, .35); border-radius: 999px; font-size: 11px; color: var(--brand-soft); }

/* Certificates reuse the quote cards */
.quote p { font-size: 17px; font-weight: 500; }
.avatar { font-size: 12px; letter-spacing: .04em; }
.quote small { color: var(--brand-soft); }

.cta__mark img { width: 96px; height: auto; }
.footer__contact a { transition: color .2s; }
.footer__contact a:hover { color: #fff; }

/* Grouped tech stack — every technology from the company profile, by category */
.stackx {
  display: grid; gap: 1px; width: 100%; max-width: 72rem; margin-top: 40px; overflow: hidden;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); border-radius: 16px;
}
.stackx__row { display: grid; grid-template-columns: 1fr; background: #000; }
.stackx__label {
  display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-soft);
}
.stackx__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.stackx .tech { height: 104px; box-shadow: inset -1px -1px 0 rgba(255, 255, 255, .04); }
.stackx .tech i { width: 30px; height: 30px; }
.stackx .tech span { margin-top: 10px; padding-inline: 4px; font-size: 10px; letter-spacing: .06em; }
/* Text monogram for technologies without a public icon */
.tech b {
  height: 30px; line-height: 30px; font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  color: rgba(255, 255, 255, .45); transition: color .5s, transform .5s var(--ease);
}
.tech:hover b { color: var(--c, #fff); transform: translateY(-3px) scale(1.06); }
@media (min-width: 768px) {
  .stackx__row { grid-template-columns: 200px 1fr; }
  .stackx__label { padding: 20px 24px; border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .06); }
  .stackx .tech { height: 112px; }
  .stackx .tech i { width: 34px; height: 34px; }
}
@media (min-width: 1024px) { .stackx__items { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); } }

/* =====================================================================
   Lively icons — gradient tiles, self-drawing duotone strokes, hover sheen
   Each card sets its own accent pair via --a / --b.
   ===================================================================== */
.ico {
  --ia: var(--a, #1d5cf5); --ib: var(--b, #8b5cf6);
  position: relative; isolation: isolate; overflow: hidden; flex: none;
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px;
  background: linear-gradient(135deg, var(--ia), var(--ib), var(--ia)); background-size: 220% 220%;
  box-shadow: 0 14px 30px -14px var(--ia), inset 0 1px 0 rgba(255, 255, 255, .35);
  animation: icoShift 7s ease-in-out infinite alternate;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
/* glossy top highlight */
.ico::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 50%); }
/* light sweep on hover */
.ico::after {
  content: ""; position: absolute; top: -50%; left: -70%; width: 45%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: rotate(25deg) translateX(-160%);
}
.ico svg { width: 26px; height: 26px; overflow: visible; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .3)); }
.ico .f { fill: rgba(255, 255, 255, .24); stroke: none; }
.ico .d {
  fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 1.02; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease) var(--dd, .2s);
}
.is-in .ico .d { stroke-dashoffset: 0; }
@keyframes icoShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes icoRedraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

:is(.tile, .cap):hover .ico { transform: translateY(-5px) rotate(-6deg) scale(1.07); box-shadow: 0 20px 40px -12px var(--ia), inset 0 1px 0 rgba(255, 255, 255, .4); }
:is(.tile, .cap):hover .ico::after { transform: rotate(25deg) translateX(460%); transition: transform 1s var(--ease); }
:is(.tile, .cap):hover .ico .d { animation: icoRedraw 1s var(--ease); }

/* Cards: accent spotlight that follows the pointer + accent top line */
.tile { overflow: hidden; }
.tile::after {
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--a, #1d5cf5) 20%, transparent), transparent 65%);
}
.tile::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--a, #1d5cf5), var(--b, #8b5cf6), transparent);
  opacity: 0; transition: opacity .4s;
}
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; }
.tile h4 { margin-top: 20px; }
.tile--center h4 { margin-top: 16px; }
.cap h3 { margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  .ico { animation: none; }
  .ico .d { stroke-dashoffset: 0; }
}

/* Product logos in the strip */
.partner { min-width: 0; padding-inline: 36px; opacity: .5; }
.partner img { display: block; height: 30px; width: auto; max-width: 190px; object-fit: contain; }
.partner:hover { opacity: 1; filter: none; }
@media (max-width: 639px) { .partner { padding-inline: 24px; } .partner img { height: 24px; max-width: 150px; } }

/* =====================================================================
   Responsive pass — one shared gutter so the nav, footer and sections
   all line up on the same grid at every width.
   ===================================================================== */
:root { --gutter: 16px; }
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

.page { padding-inline: var(--gutter); overflow-x: clip; }
.container { width: 100%; max-width: calc(72rem + 2 * var(--gutter)); padding-inline: var(--gutter); }

/* Hero glow scales with the viewport instead of staying a fixed circle */

/* Small phones */
@media (max-width: 379px) {
  .logo img { height: 21px; }
  .nav__mobile { gap: 6px; }
  .icon-btn { padding: 6px; }
  .section__head, .sub-head { margin-top: 88px; }
  .cta { padding: 64px 16px; }
  .tile { padding: 24px 18px; }
  .quote { padding: 20px; }
}

/* Phones and small tablets: less vertical air between sections */
@media (max-width: 767px) {
  .section__head { margin-top: 96px; }
  .sub-head { margin-top: 72px; }
  .marquee { margin-top: 72px; padding-block: 36px; }
  .footer { margin-top: 64px; }
}

/* Tablets: 4 footer columns are too tight, use 2 */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer__brand { grid-column: span 2; }
}


/* Hero glow sits inside the page padding, matching the reference geometry */
.hero-bg { padding-inline: 8px; }
@media (min-width: 768px) { .hero-bg { padding-inline: 64px; } }
@media (min-width: 1024px) { .hero-bg { padding-inline: 96px; } }
@media (min-width: 1280px) { .hero-bg { padding-inline: 128px; } }

/* Hero content starts where the reference does (120px under the page top) */
.hero { padding-top: 120px; }
@media (min-width: 768px) { .hero { padding-top: 120px; } }

/* Glow spans the full width again; on phones it is widened so the arc is deep enough to see */
.hero-bg { padding-inline: 0; }
.hero__glow { width: 100%; margin-top: 0; }
@media (max-width: 767px) {
  .hero__glow { width: 190%; margin-left: -45%; }
}

/* The global svg{max-width:100%} was clamping the widened phone glow */
@media (max-width: 767px) { .hero__glow { max-width: none; } }
