:root {
  --blue: #1f5fbf;
  --blue-2: #3b82f6;
  --cyan: #22d3ee;
  --red: #e0283a;
  --ink: #0b1220;
  --ink-2: #111a2e;
  --navy: #070b18;
  --text: #1d2639;
  --muted: #5d6880;
  --line: #e4e8f0;
  --soft: #f4f6fb;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(15, 30, 70, .25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; margin-bottom: 1rem; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: .25s; font-family: inherit;
}
.btn--sm { padding: .6rem 1.15rem; font-size: .85rem; }
.btn--primary { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 10px 30px -10px rgba(59, 130, 246, .7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(59, 130, 246, .8); }
.btn--ghost { border-color: rgba(255, 255, 255, .25); color: #fff; background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--light { background: #fff; color: var(--ink); font-size: 1.15rem; padding: 1.05rem 2rem; }
.btn--light:hover { transform: translateY(-2px); }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--red), var(--blue-2)); border-radius: 2px; }
.eyebrow--dark { color: var(--blue); }
.lead { font-size: 1.15rem; color: rgba(255, 255, 255, .75); }
.lead--dark { color: var(--text); font-weight: 500; }
.grad { background: linear-gradient(90deg, #60a5fa, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: .3s; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 1rem; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { color: rgba(255, 255, 255, .8); font-weight: 600; font-size: .95rem; position: relative; }
.nav__links a:hover { color: #fff; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--red); transition: .25s; }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: .8rem; }
.nav--solid { background: rgba(7, 11, 24, .85); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }

.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.lang button { border: 0; background: none; color: rgba(255, 255, 255, .7); font: 700 .75rem/1 inherit; font-family: inherit; padding: .45rem .7rem; border-radius: 999px; cursor: pointer; transition: .2s; }
.lang button.active { background: #fff; color: var(--ink); }

.nav__toggle { display: none; width: 42px; height: 42px; border: 0; background: rgba(255, 255, 255, .08); border-radius: 12px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.nav__toggle span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
.nav--open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav--open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* hero */
.hero { position: relative; min-height: 100vh; background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 130px 0 50px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: right center; opacity: .95; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 15%, rgba(7, 11, 24, .55) 55%, rgba(7, 11, 24, .1)), linear-gradient(0deg, var(--navy), transparent 30%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 11, 24, .85) 0%, rgba(7, 11, 24, .35) 45%, transparent 70%), linear-gradient(0deg, var(--navy), transparent 25%); }
.hero--3d .hero__bg { background-image: none !important; }
.hero--3d .hero__bg::after { display: none; }
.hero:not(.hero--3d) .hero__shade { display: none; }
.hero__inner { position: relative; max-width: 1200px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; max-width: 820px; margin-bottom: 1.4rem; letter-spacing: -.03em; }
.hero .lead { max-width: 620px; margin-bottom: 2.2rem; }
.hero__btns { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 3.2rem; }
.hero__stats { display: flex; gap: 3rem; flex-wrap: wrap; }
.hero__stats strong { display: block; font-size: 2.1rem; font-weight: 800; line-height: 1; }
.hero__stats span { font-size: .85rem; color: rgba(255, 255, 255, .6); }
.hero__pills { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 4rem; }
.pill { display: flex; gap: 1rem; align-items: center; padding: 1.15rem 1.3rem; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px); transition: .3s; }
.pill:hover { background: rgba(255, 255, 255, .09); transform: translateY(-3px); }
.pill i { font-style: normal; font-weight: 800; font-size: .8rem; color: var(--cyan); width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(34, 211, 238, .1); flex: none; }
.pill b { display: block; font-size: 1rem; }
.pill small { color: rgba(255, 255, 255, .6); font-size: .82rem; }

/* sections */
.section { padding: 110px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: radial-gradient(1200px 500px at 80% 0, rgba(31, 95, 191, .25), transparent), var(--navy); color: rgba(255, 255, 255, .78); }
.section__head { max-width: 680px; margin-bottom: 3.5rem; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.section__head--light h2 { color: #fff; }
.section__head--light p { color: rgba(255, 255, 255, .65); }

/* about */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.about__text p { color: var(--muted); margin-bottom: 1rem; }
.about__text .lead--dark { color: var(--text); }
.about__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.acard { padding: 1.8rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.acard h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.acard p { color: var(--muted); font-size: .92rem; }
.acard--blue, .acard--red { color: rgba(255, 255, 255, .85); border: 0; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; }
.acard--blue { background: linear-gradient(140deg, var(--blue), #0f2f6b); }
.acard--red { background: linear-gradient(140deg, var(--red), #8a1020); }
.acard:nth-child(2) { transform: translateY(28px); }
.acard:nth-child(4) { transform: translateY(28px); }
.acard__num { font-size: 3.2rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: .5rem; }
.acard__num sup { font-size: 1.6rem; }

/* services */
.grid.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.scard { position: relative; padding: 2rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); transition: .3s; overflow: hidden; }
.scard::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--red), var(--blue-2)); transform: scaleX(0); transform-origin: left; transition: .35s; }
.scard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.scard:hover::before { transform: scaleX(1); }
.scard__ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(31, 95, 191, .1), rgba(34, 211, 238, .12)); margin-bottom: 1.3rem; }
.scard__ic svg, .citem__ic svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scard h3 { font-size: 1.12rem; margin-bottom: .55rem; }
.scard p { color: var(--muted); font-size: .93rem; }

/* projects */
.project { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem; align-items: center; margin-bottom: 6rem; }
.project:last-child { margin-bottom: 0; }
.project--rev .project__media { order: 2; }
.project__media { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 90px -30px rgba(59, 130, 246, .45); }
.project__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .8s; }
.project:hover .project__media img { transform: scale(1.04); }
.project h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; margin: 1rem 0; }
.project__body > p { margin-bottom: 1.6rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; padding: .4rem .85rem; border-radius: 999px; background: rgba(59, 130, 246, .15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, .3); }
.tag--red { background: rgba(224, 40, 58, .14); color: #fca5ad; border-color: rgba(224, 40, 58, .3); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.4rem; margin-bottom: 2rem; }
.features li { position: relative; padding-left: 1.6rem; font-size: .88rem; }
.features li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, var(--cyan) 30%, rgba(34, 211, 238, .2) 32%); }
.features b { display: block; color: #fff; font-size: .95rem; }
.features span { color: rgba(255, 255, 255, .6); }

/* project animation bands (full width) */
.project { margin-bottom: 3.5rem; }
.pband {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: 240px; margin-bottom: 5.5rem;
  border-block: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, rgba(59, 130, 246, .06), rgba(7, 11, 24, 0) 70%);
  overflow: hidden;
}
.pband:last-child { margin-bottom: 0; }
.pband--ledger { height: 280px; background: linear-gradient(180deg, rgba(52, 211, 153, .06), rgba(7, 11, 24, 0) 70%); }
.pband canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.pband__cap {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: .55rem; white-space: nowrap;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5);
  padding: .35rem .8rem; border-radius: 999px; background: rgba(7, 11, 24, .7); border: 1px solid rgba(255, 255, 255, .08);
}
.pband__cap b { color: #fff; font-weight: 700; }
.pband__cap span::before { content: "· "; }
.pband__cap i { width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; animation: blink 1.4s infinite; }
.pband--ledger .pband__cap i { background: #34d399; box-shadow: 0 0 10px #34d399; }
@keyframes blink { 50% { opacity: .25; } }

/* cta */
.cta { background: linear-gradient(120deg, var(--blue), #10306e 60%, #6b1424); color: #fff; padding: 70px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .4rem; }
.cta p { color: rgba(255, 255, 255, .75); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: start; }
.contact > div > p { color: var(--muted); margin-bottom: 2rem; }
.contact__list { display: grid; gap: 1rem; }
.citem { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); transition: .25s; }
.citem:hover { border-color: var(--blue-2); box-shadow: var(--shadow); }
.citem small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.citem > span:last-child { font-weight: 600; color: var(--ink); }
.citem__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); flex: none; }
.form { padding: 2.4rem; border-radius: 24px; background: var(--soft); border: 1px solid var(--line); display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.form input, .form select, .form textarea { width: 100%; padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .95rem; color: var(--text); transition: .2s; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(59, 130, 246, .15); }
.form__note { color: var(--muted); text-align: center; font-size: .8rem; }

/* footer */
.footer { background: var(--navy); color: rgba(255, 255, 255, .6); padding: 80px 0 30px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 50px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__logo { height: 36px; width: auto; margin-bottom: 1.2rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.footer li { margin-bottom: .6rem; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 26px; font-size: .85rem; }

/* footer scanner (Knight Rider style) */
.footer { padding-bottom: 0; }
.footer__bottom { padding-bottom: 26px; }
.scanner {
  --scan: #22ff6a;
  position: relative; height: 10px; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(34, 255, 106, .07) 0 22px, transparent 22px 26px),
    #050810;
  border-top: 1px solid rgba(34, 255, 106, .12);
}
.scanner span {
  position: absolute; top: 1px; bottom: 1px; left: 0; width: 14%;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--scan) 30%, #eafff1 50%, var(--scan) 70%, transparent);
  box-shadow: 0 0 12px 2px rgba(34, 255, 106, .75), 0 0 34px 6px rgba(34, 255, 106, .35);
  animation: scan 2.2s cubic-bezier(.45, 0, .55, 1) -.28s infinite alternate;
}
/* trailing afterglow */
.scanner span:nth-child(2) { opacity: .55; animation-delay: -.21s; filter: blur(1px); }
.scanner span:nth-child(3) { opacity: .35; animation-delay: -.14s; filter: blur(2px); }
.scanner span:nth-child(4) { opacity: .2;  animation-delay: -.07s; filter: blur(3px); }
.scanner span:nth-child(5) { opacity: .1;  animation-delay: 0s; filter: blur(4px); }
@keyframes scan {
  from { left: 0; }
  to   { left: 86%; }
}
@media (prefers-reduced-motion: reduce) {
  .scanner span { animation: none; left: 43%; }
  .scanner span:not(:first-child) { display: none; }
}

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.acard.reveal.in:nth-child(2) { transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* responsive */
@media (max-width: 1024px) {
  .grid.services { grid-template-columns: repeat(2, 1fr); }
  .about, .project, .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .project--rev .project__media { order: 0; }
  .project { margin-bottom: 2.5rem; }
  .pband { margin-bottom: 4rem; }
}
@media (max-width: 860px) {
  .nav__links { position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(7, 11, 24, .97); backdrop-filter: blur(14px); padding: .5rem 20px 1.2rem; display: none; }
  .nav__links a { padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav--open .nav__links { display: flex; }
  .nav--open { background: rgba(7, 11, 24, .97); }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
  .hero__pills { grid-template-columns: 1fr; margin-top: 3rem; }
  .hero__bg { background-position: 70% center; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(7, 11, 24, .6), var(--navy) 85%); }
  .hero__shade { background: linear-gradient(180deg, rgba(7, 11, 24, .2) 0%, rgba(7, 11, 24, .75) 45%, var(--navy) 95%); }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 80px 0; }
  .grid.services, .features, .form__row, .footer__grid { grid-template-columns: 1fr; }
  .about__cards { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .acard { padding: 1.3rem; }
  .acard:nth-child(2), .acard:nth-child(4), .acard.reveal.in:nth-child(2) { transform: none; }
  .acard__num { font-size: 2.4rem; }
  .hero__stats { gap: 1.8rem; }
  .form { padding: 1.5rem; }
  .pband { height: 220px; }
  .pband--ledger { height: 250px; }
  .pband__cap span { display: none; }
  .nav__logo img { height: 28px; }
}
