:root {
  --bg: #060b17;
  --bg-2: #0a1224;
  --surface: rgba(17, 27, 50, 0.8);
  --surface-solid: #111c35;
  --text: #eef3ff;
  --muted: #9ea9c7;
  --line: rgba(173, 192, 235, 0.2);
  --brand: #4aa3ff;
  --brand-2: #5effc3;
  --shadow: 0 24px 60px rgba(0, 5, 20, 0.55);
  --radius: 18px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(700px 420px at 80% -5%, rgba(72, 151, 255, 0.2), transparent 60%),
    radial-gradient(620px 380px at 12% 8%, rgba(94, 255, 195, 0.12), transparent 64%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 2.2rem)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 11, 23, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(144, 177, 255, 0.14);
}
.topbar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}
.brand {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.22rem;
}
.brand span {
  background: linear-gradient(95deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav {
  display: flex;
  gap: 1.28rem;
  flex-wrap: wrap;
  align-items: center;
}
.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.nav a:hover { color: #ffffff; }
.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(17, 27, 50, 0.55);
}
.lang a {
  padding: 0.4rem 0.76rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.lang a.active {
  background: linear-gradient(120deg, rgba(74, 163, 255, 0.35), rgba(94, 255, 195, 0.2));
  color: #fff;
}

.hero {
  padding: 6rem 0 4rem;
}
.kicker {
  display: inline-flex;
  color: var(--brand-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 800;
  border: 1px solid rgba(94, 255, 195, 0.35);
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  background: rgba(94, 255, 195, 0.08);
}
.hero h1 {
  margin: 1rem 0 1rem;
  line-height: 1.01;
  font-size: clamp(2rem, 5.3vw, 4.8rem);
  letter-spacing: -0.05em;
  max-width: 16ch;
}
.hero p {
  margin: 0;
  max-width: 820px;
  color: #b7c2de;
  font-size: 1.06rem;
  line-height: 1.7;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.82rem 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: linear-gradient(95deg, #2e88ff, #2eb7ff 40%, #49f1bd);
  color: #031125;
  box-shadow: 0 14px 35px rgba(40, 139, 255, 0.34);
}
.btn.ghost {
  border-color: var(--line);
  color: #e7efff;
  background: rgba(17, 27, 50, 0.52);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
}
.stat-label { color: var(--muted); font-size: 0.88rem; }

.section { padding: 4rem 0; }
.section-head { margin-bottom: 1.6rem; }
.section-head h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.5rem, 3.8vw, 2.7rem);
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 850px;
  line-height: 1.7;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.service, .project {
  transition: transform 0.24s ease, border-color 0.24s ease;
}
.service:hover, .project:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 163, 255, 0.55);
}
.service h3, .project h3 { margin: 0 0 0.48rem; font-size: 1.06rem; color: #fff; }
.service p, .project p, .career-block p { color: var(--muted); margin: 0; line-height: 1.58; }

.badge {
  display: inline-flex;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.52rem;
  border-radius: 999px;
  background: rgba(74, 163, 255, 0.12);
  color: #8cc8ff;
  border: 1px solid rgba(74, 163, 255, 0.4);
  font-weight: 800;
  margin-bottom: 0.66rem;
}

.timeline { display: grid; gap: 0.86rem; }
.timeline .card { display: grid; grid-template-columns: 46px 1fr; align-items: start; gap: 0.9rem; }
.step {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(74, 163, 255, 0.24), rgba(94, 255, 195, 0.24));
  color: #d4efff;
  display: grid;
  place-items: center;
  font-weight: 800;
  border: 1px solid rgba(125, 196, 255, 0.42);
}

.cta {
  margin-top: 0.5rem;
  background: linear-gradient(130deg, #0f2044, #122f65 55%, #0f5b66);
  color: #fff;
  border-color: rgba(141, 186, 255, 0.45);
}
.cta p { color: #d1e1ff; }

.footer {
  padding: 2rem 0 3rem;
  color: #8f9fc1;
  font-size: 0.9rem;
}

.list { margin: 0; padding-left: 1rem; color: var(--muted); }
.list li { margin-bottom: 0.45rem; }

.form-grid { display: grid; gap: 0.86rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(174, 191, 230, 0.28);
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  font: inherit;
  color: #e9f0ff;
  background: rgba(8, 17, 36, 0.9);
}
input::placeholder, textarea::placeholder { color: #8ea2cb; }
textarea { min-height: 130px; resize: vertical; }
.small { color: var(--muted); font-size: 0.82rem; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
  background: rgba(143, 169, 230, 0.14);
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3d8fff, #52d8ff 60%, #5effc3);
  box-shadow: 0 0 14px rgba(74, 163, 255, 0.45);
}

.scroll-story .story-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.4fr);
  gap: 1.1rem;
  align-items: start;
}
.story-sticky {
  position: sticky;
  top: 96px;
  min-height: 320px;
  padding: 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 16%, rgba(74, 163, 255, 0.2), transparent 45%),
    radial-gradient(circle at 10% 100%, rgba(94, 255, 195, 0.16), transparent 36%),
    var(--surface-solid);
  box-shadow: var(--shadow);
}
.story-scene { display: none; }
.story-scene.active { display: block; animation: fadeInScene 0.4s ease; }
.story-scene h3 {
  margin: 0.18rem 0 0.58rem;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}
.story-scene p { margin: 0; color: var(--muted); line-height: 1.7; }
@keyframes fadeInScene {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.story-track {
  display: grid;
  gap: 1rem;
}
.story-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.9rem;
  align-items: start;
  min-height: 175px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.story-step.active {
  border-color: rgba(94, 225, 255, 0.58);
  background: rgba(20, 39, 71, 0.9);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .scroll-story .story-layout { grid-template-columns: 1fr; }
  .story-sticky {
    position: relative;
    top: 0;
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .stats, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 4.2rem; }
}
