/* ============================= TOKENS ============================= */
:root {
  --bg-dark: #060911;
  --bg-dark-2: #0b1220;
  --surface-dark: #0e1524;
  --bg-light: #ffffff;
  --bg-light-2: #f3f5fa;
  --blue-600: #1f45d1;
  --blue-500: #2f5eff;
  --blue-400: #5b82ff;
  --blue-300: #93aeff;
  --blue-glow: rgba(47, 94, 255, 0.35);
  --ink-900: #0b0f19;
  --ink-600: #4b5468;
  --ink-400: #8891a5;
  --paper: #eceff5;
  --line-dark: rgba(255, 255, 255, 0.09);
  --line-dark-soft: rgba(255, 255, 255, 0.05);
  --line-light: rgba(11, 15, 25, 0.09);
  --line-light-soft: rgba(11, 15, 25, 0.05);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.16, .8, .24, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-light);
  color: var(--ink-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================= TYPOGRAPHY & HEADINGS ============================= */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title-large {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin-top: 8px;
}

.mono { font-family: 'JetBrains Mono', monospace; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--blue-500); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .wrap { padding: 0 22px; }
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-400);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 600;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--blue-400);
  display: inline-block;
}

.eyebrow.on-light { color: var(--blue-600); }
.eyebrow.on-light::before { background: var(--blue-600); }

/* ============================= LOGO STYLING ============================= */
.brand-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.brand-logo2 {
  height: 80px;
  width: auto;
  object-fit: contain;
}

/* ============================= NAV ============================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-dark);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.nav-right-group { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 38px; align-items: center; }

.nav-links a {
  font-size: 15px;
  color: var(--white-70);
  font-weight: 500;
  transition: color .25s var(--ease);
}

.nav-links a:hover { color: #fff; }

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-dark);
  background: #fff;
  padding: 10px 22px;
  border-radius: 99px;
  transition: transform .3s var(--ease), background .3s var(--ease);
}

.nav-cta:hover { background: var(--blue-300); transform: translateY(-1px); }

.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: 99px;
  padding: 3px;
}

.lang-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--white-70);
  padding: 4px 10px;
  border-radius: 99px;
  transition: all .25s var(--ease);
}

.lang-btn:hover { color: #fff; }

.lang-btn.active {
  background: var(--blue-500);
  color: #fff;
  box-shadow: 0 2px 8px var(--blue-glow);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 26px; }
.nav-toggle span { height: 2px; background: #fff; width: 100%; transition: .3s var(--ease); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 340px;
    background: var(--bg-dark-2);
    flex-direction: column; align-items: flex-start;
    padding: 110px 32px 40px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    border-left: 1px solid var(--line-dark);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 18px; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links .nav-cta-mobile {
    display: inline-block; font-size: 14px; font-weight: 500;
    color: var(--bg-dark); background: #fff; padding: 12px 24px;
    border-radius: 99px; margin-top: 6px;
  }
}

/* ============================= HERO ============================= */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 130px;
  padding-bottom: 80px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 78% 18%, rgba(47, 94, 255, 0.28), transparent 60%),
    radial-gradient(ellipse 700px 500px at 10% 90%, rgba(47, 94, 255, 0.14), transparent 60%);
  z-index: 0;
}

.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--line-dark-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
}

.hero-schematic {
  position: absolute; right: -40px; top: 50%;
  transform: translateY(-46%); width: min(52vw, 760px); z-index: 1; opacity: 0.9;
}
.hero-schematic svg { width: 100%; height: auto; }
.hero-schematic .draw {
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  animation: draw 2.6s var(--ease) forwards;
}
.hero-schematic .draw2 { animation-delay: .25s; }
.hero-schematic .draw3 { animation-delay: .5s; }
.hero-schematic .node { opacity: 0; animation: fadein .6s ease forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-content h1 {
  font-size: clamp(44px, 6.5vw, 78px);
  line-height: 0.98;
  color: #fff;
}
.hero-content h1 span {
  display: block; opacity: 0;
  transform: translateY(30px);
  animation: lineIn .8s var(--ease) forwards;
}
.hero-content h1 span:nth-child(1) { animation-delay: .15s; }
.hero-content h1 span:nth-child(2) { animation-delay: .3s; }
.hero-content h1 span:nth-child(3) {
  animation-delay: .45s;
  background: linear-gradient(90deg, #fff, var(--blue-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

@keyframes lineIn { to { opacity: 1; transform: translateY(0); } }

.hero-sub {
  margin-top: 28px;
  font-size: 18px; line-height: 1.6;
  color: var(--white-70); max-width: 540px;
  opacity: 0; animation: lineIn .8s var(--ease) forwards; animation-delay: .65s;
}

.hero-ctas {
  margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; animation: lineIn .8s var(--ease) forwards; animation-delay: .8s;
}

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 28px; border-radius: 99px;
  font-size: 15px; font-weight: 600;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}

.btn-primary {
  background: var(--blue-500); color: #fff;
  box-shadow: 0 8px 30px -6px var(--blue-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -6px var(--blue-glow); background: var(--blue-400); }

.btn-ghost-dark { color: #fff; border: 1px solid var(--line-dark); }
.btn-ghost-dark:hover { border-color: var(--white-50); transform: translateY(-2px); }

.btn svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translate(3px, -2px); }

.hero-scroll {
  position: absolute; bottom: 38px; left: 40px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  color: var(--white-50); font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; letter-spacing: .08em;
}
.hero-scroll .line {
  width: 1px; height: 34px;
  background: linear-gradient(var(--white-50), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

@media (max-width: 900px) {
  .hero-schematic { opacity: 0.35; width: 90vw; right: -20vw; top: 60%; }
  .hero-scroll { display: none; }
}

/* ============================= SECTION SHELLS ============================= */
.section { padding: 120px 0; position: relative; }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-light { background: var(--bg-light); color: var(--ink-900); }

@media (max-width: 768px) { .section { padding: 80px 0; } }

.section-head-simple { margin-bottom: 54px; }

/* ============================= ABOUT ============================= */
.about-lead {
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.5; color: var(--ink-900);
  max-width: 860px; font-weight: 400; margin-bottom: 60px;
}
.about-lead b { font-weight: 700; color: var(--blue-600); }

.about-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}

.about-card {
  background: var(--bg-light-2);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
  background: #fff;
}

.about-card h4 { font-size: 19px; margin-bottom: 12px; color: var(--ink-900); }
.about-card p { font-size: 14.5px; color: var(--ink-600); line-height: 1.6; }

.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  margin-top: 70px; border-top: 1px solid var(--line-light); padding-top: 48px;
}

.stat .stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(36px, 4.5vw, 56px); color: var(--ink-900);
  font-weight: 700; display: flex; align-items: baseline; gap: 2px;
}

.stat .stat-num .plus { font-size: 0.5em; color: var(--blue-500); }
.stat .stat-label { font-size: 14px; color: var(--ink-600); margin-top: 6px; font-weight: 500; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
}

@media (max-width: 520px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ============================= SERVICES ============================= */
.services-blocks-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}

.service-block-card {
  background: var(--surface-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex; flex-direction: column;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}

.service-block-card:hover {
  border-color: rgba(47, 94, 255, 0.4);
  transform: translateY(-3px);
}

.service-block-header {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
}

.service-title-area { display: flex; align-items: center; gap: 16px; }

.service-block-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(47, 94, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-300); flex-shrink: 0;
}

.service-block-icon svg { width: 24px; height: 24px; }
.service-block-card h3 { font-size: 22px; color: #fff; }

.service-toggle-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .4s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}

.service-toggle-btn svg { width: 16px; height: 16px; stroke: #fff; transition: transform .3s var(--ease); }

.service-block-card.open .service-toggle-btn {
  transform: rotate(180deg);
  background: var(--blue-500);
  border-color: var(--blue-500);
}

.service-block-body {
  max-height: 0; overflow: hidden;
  transition: max-height .5s var(--ease), margin-top .5s var(--ease);
  margin-top: 0;
}

.service-block-card.open .service-block-body {
  max-height: 800px;
  margin-top: 28px;
  border-top: 1px solid var(--line-dark-soft);
  padding-top: 20px;
}

.service-items-list { display: flex; flex-direction: column; gap: 12px; }

.service-item {
  font-size: 15px; color: var(--white-70);
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--blue-500);
  transition: color .25s var(--ease), background .25s var(--ease);
}

.service-item:hover { color: #fff; background: rgba(47, 94, 255, 0.1); }

@media (max-width: 900px) {
  .services-blocks-grid { grid-template-columns: 1fr; }
}

/* ============================= WHY CHOOSE ============================= */
.why-list { display: flex; flex-direction: column; }

.why-row {
  display: grid; grid-template-columns: 1fr 40px;
  align-items: center; gap: 30px;
  padding: 32px 0; border-top: 1px solid var(--line-light);
  transition: padding .4s var(--ease); position: relative;
}

.why-list .why-row:last-child { border-bottom: 1px solid var(--line-light); }
.why-row:hover { padding-left: 14px; }
.why-row h4 { font-size: 22px; font-weight: 600; }

.why-row .arrow {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-light);
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}

.why-row .arrow svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.why-row:hover .arrow { background: var(--blue-500); border-color: var(--blue-500); }
.why-row:hover .arrow svg { transform: translate(2px, -2px); stroke: #fff; }

/* ============================= VALUES ============================= */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.value-card {
  background: var(--bg-dark-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 36px 28px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}

.value-card:hover { transform: translateY(-6px); border-color: var(--blue-500); }

.value-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(47, 94, 255, 0.14);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-300); margin-bottom: 30px;
}

.value-icon svg { width: 24px; height: 24px; }
.value-card h4 { font-size: 20px; color: #fff; margin-bottom: 14px; }
.value-card p { font-size: 14.5px; color: var(--white-70); line-height: 1.6; }

@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } }

/* ============================= FOOTER ============================= */
footer {
  background: var(--bg-dark-2); color: #fff;
  padding: 90px 0 40px; border-top: 1px solid var(--line-dark);
}

.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 70px; }
.foot-brand .logo-wrap { margin-bottom: 5px; }
.foot-brand p { font-size: 14.5px; color: var(--white-70); line-height: 1.7; max-width: 280px; }
.foot-col h5 {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 22px;
}
.foot-col a, .foot-col p { display: block; font-size: 14.5px; color: var(--white-70); margin-bottom: 13px; transition: color .25s var(--ease); }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--ink-400); }

@media (max-width: 900px) {
  .foot-top { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .foot-bottom { flex-direction: column; gap: 18px; align-items: flex-start; }
}

@media (max-width: 520px) { .foot-top { grid-template-columns: 1fr; } }