:root {
  --bg: #060a14;
  --bg-2: #0a0f1e;
  --panel: #0e1424;
  --panel-2: #121a2e;
  --border: rgba(129, 140, 248, 0.14);
  --border-strong: rgba(129, 140, 248, 0.3);
  --text: #eef1f8;
  --muted: #9aa4bd;
  --muted-2: #6b7594;
  --indigo: #6366f1;
  --indigo-2: #818cf8;
  --lime: #a3e635;
  --radius: 16px;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

.gradient-text {
  background: linear-gradient(100deg, #818cf8 0%, #6366f1 40%, #7dd3a8 70%, #a3e635 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 15px;
  padding: 11px 22px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(180deg, #6f74f2, #5257e6);
  color: #fff; box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.03); color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }
.btn--lg { padding: 14px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 10, 20, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { display: grid; place-items: center; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-weight: 800; letter-spacing: 2px; font-size: 20px;
  background: linear-gradient(90deg, #a5b4fc, #818cf8);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand__sub { font-size: 11px; letter-spacing: 4px; color: var(--muted-2); margin-top: 3px; }

.nav__links { display: flex; gap: 34px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .16s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
.nav__mobile { display: none; flex-direction: column; gap: 6px; padding: 0 24px 18px; }
.nav__mobile a { padding: 12px 4px; color: var(--muted); border-bottom: 1px solid var(--border); }
.nav__mobile a.btn { justify-content: center; border-bottom: 0; margin-top: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 110px 0 90px; }
.hero__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.07) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 32%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 32%, #000 40%, transparent 100%);
}
.hero__glow {
  position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero__inner { position: relative; text-align: center; }
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 900;
  letter-spacing: -0.02em; line-height: 1.02;
}
.hero__lead {
  max-width: 640px; margin: 22px auto 0; color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.hero__pills { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 46px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text);
}
.pill__ico { font-size: 15px; }

/* ---------- Stats ---------- */
.stats { padding: 20px 0 40px; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat {
  text-align: center; background: linear-gradient(180deg, var(--panel), rgba(14, 20, 36, 0.4));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 20px;
}
.stat__num {
  font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 900; line-height: 1;
  background: linear-gradient(120deg, #818cf8, #a3e635);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat__label { color: var(--muted); margin-top: 10px; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 90px 0 70px; }
.section--alt { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--indigo-2); margin-bottom: 14px;
}
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.section__foot { text-align: center; margin-top: 48px; }

/* ---------- Service Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.card__ico {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 26px;
  border-radius: 14px; background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(163, 230, 53, 0.12));
  border: 1px solid var(--border); margin-bottom: 20px;
}
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: scroll 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.chip {
  white-space: nowrap; padding: 10px 18px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--muted); font-weight: 600; font-size: 14px;
}
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Portfolio ---------- */
.filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter {
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  font-weight: 600; font-size: 14px; transition: .16s;
}
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter.is-active { background: var(--indigo); border-color: var(--indigo); color: #fff; }

.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.project:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.project__media { height: 170px; display: grid; place-items: center; font-size: 56px; overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.project:hover .project__media img { transform: scale(1.05); }
.project__media--a { background: linear-gradient(135deg, #1e293b, #14532d); }
.project__media--b { background: linear-gradient(135deg, #1e1b4b, #312e81); }
.project__media--c { background: linear-gradient(135deg, #0c4a6e, #164e63); }
.project__media--d { background: linear-gradient(135deg, #3b0764, #1e1b4b); }
.project__media--e { background: linear-gradient(135deg, #422006, #713f12); }
.project__media--f { background: linear-gradient(135deg, #064e3b, #0f766e); }
.project__media--g { background: linear-gradient(135deg, #082f49, #1e3a8a); }
.project__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.project__cat { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--indigo-2); }
.project__body h3 { font-size: 1.3rem; font-weight: 700; margin: 6px 0 10px; }
.project__body p { color: var(--muted); font-size: 14.5px; flex: 1; }
.project__tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.project__tags span {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(129, 140, 248, 0.1); border: 1px solid var(--border); color: var(--muted);
}
.project__link { font-weight: 600; color: var(--indigo-2); font-size: 14px; }
.project__link:hover { color: var(--lime); }
.project.is-hidden { display: none; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.why__item {
  position: relative; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; padding-left: 34px;
}
.why__item::before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px;
  border-radius: 3px; background: linear-gradient(180deg, var(--indigo), var(--lime));
}
.why__no {
  font-size: 13px; font-weight: 800; letter-spacing: 1px; color: var(--indigo-2);
}
.why__item h3 { font-size: 1.25rem; font-weight: 700; margin: 8px 0 10px; }
.why__item p { color: var(--muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.step__no {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px;
  color: #060a14; background: linear-gradient(120deg, #818cf8, #a3e635);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.step h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; }
.step ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.step li { position: relative; padding-left: 22px; color: var(--muted); font-size: 14.5px; }
.step li::before { content: "▹"; position: absolute; left: 0; color: var(--indigo-2); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.contact__left h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 12px 0 26px; font-weight: 800; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 16px; color: var(--text); font-family: inherit; font-size: 15px; resize: vertical;
  transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.form__note { color: var(--lime); font-weight: 600; font-size: 14px; }

.contact__right { display: flex; flex-direction: column; gap: 20px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.panel h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
.panel--accent { background: linear-gradient(160deg, rgba(99, 102, 241, 0.16), rgba(163, 230, 53, 0.06)); border-color: var(--border-strong); }
.panel--accent p { color: var(--muted); font-size: 15px; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); font-weight: 500; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #060a14;
  background: linear-gradient(120deg, #818cf8, #a3e635); border-radius: 999px;
}
.mini-stats { display: flex; gap: 30px; margin-top: 22px; }
.mini-stats strong { display: block; font-size: 2rem; font-weight: 900; background: linear-gradient(120deg, #818cf8, #a3e635); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mini-stats span { color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding: 56px 24px; }
.footer__brand p { color: var(--muted); margin-top: 14px; max-width: 420px; font-size: 15px; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.footer__cols h4 { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--muted); padding: 6px 0; font-size: 15px; transition: color .16s; }
.footer__cols a:hover { color: var(--text); }
.footer__bar { border-top: 1px solid var(--border); padding: 20px 0; color: var(--muted-2); font-size: 14px; text-align: center; }

/* ---------- Case Study page ---------- */
.cs__hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.cs__hero-inner { position: relative; }
.cs__back { display: block; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 24px; transition: color .16s; }
.cs__hero .project__cat { display: block; }
.cs__back:hover { color: var(--indigo-2); }
.cs__title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 900; letter-spacing: -0.02em; margin: 10px 0 16px; line-height: 1.05; }
.cs__tagline { max-width: 720px; color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.3rem); }
.cs__tags { margin-top: 20px; }

.cs__banner { position: relative; height: 360px; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cs__banner-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,10,20,0.15), rgba(6,10,20,0.55)); pointer-events: none; }

.cs__body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: start; padding: 72px 24px; }
.cs__block { margin-bottom: 44px; }
.cs__block:last-child { margin-bottom: 0; }
.cs__block h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; }
.cs__block p { color: var(--muted); font-size: 16px; }
.cs__list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.cs__list li { position: relative; padding-left: 30px; color: var(--muted); font-size: 16px; }
.cs__list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #060a14;
  background: linear-gradient(120deg, #818cf8, #a3e635); border-radius: 999px;
}
.cs__results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cs__result { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; }
.cs__result strong { display: block; font-size: 1.7rem; font-weight: 900; background: linear-gradient(120deg, #818cf8, #a3e635); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cs__result span { color: var(--muted); font-size: 13.5px; }
.cs__side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }

.cs__more { padding: 0 24px 90px; }
.cs__more h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 24px; }
.cs__more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cs__more-card { text-decoration: none; }
.cs__more-card .project__media { height: 130px; font-size: 44px; }

.cs__notfound { text-align: center; padding: 120px 24px; }
.cs__notfound h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 12px; }
.cs__notfound p { color: var(--muted); margin-bottom: 24px; }

@media (max-width: 940px) {
  .cs__body { grid-template-columns: 1fr; gap: 32px; }
  .cs__side { position: static; }
  .cs__more-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .cs__results { grid-template-columns: 1fr; }
  .cs__more-grid { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__mobile { display: flex; }
  .cards, .portfolio { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .stats__grid { grid-template-columns: 1fr; }
  .cards, .portfolio, .why, .steps { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .hero { padding: 70px 0 60px; }
}
