/* ===== CSS VARIABLES ===== */
:root {
  --blue: #1A47E8;
  --blue-light: #2E5BFF;
  --dark: #0A0C10;
  --dark-2: #0F1219;
  --dark-3: #161B26;
  --dark-4: #1E2535;
  --navy: #1C2B4A;
  --white: #FFFFFF;
  --off-white: #EEF0F5;
  --gray: #8A92A6;
  --gray-light: #C5CAD8;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-blue: 0 0 40px rgba(26, 71, 232, 0.3);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  box-shadow: var(--shadow-blue);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}
.btn--full { width: 100%; justify-content: center; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 1px;
  color: var(--white);
}
.section-title em {
  font-style: normal;
  color: var(--blue-light);
}
.section-header { margin-bottom: 64px; }
.section-header--light .section-title { color: var(--white); }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(10,12,16,0.95);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img { height: 36px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-light);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--white); }
.nav__cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}
.nav__cta:hover { background: var(--blue-light) !important; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--dark-3);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 8px 0;
}
.nav__mobile a {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-light);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--transition);
}
.nav__mobile a:hover { color: var(--white); }
.nav__mobile.open { display: flex; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--dark);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,71,232,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,71,232,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: rgba(26, 71, 232, 0.18);
  top: -150px;
  right: -100px;
  animation: pulse 6s ease-in-out infinite;
}
.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: rgba(26, 71, 232, 0.1);
  bottom: 0;
  left: -100px;
  animation: pulse 8s ease-in-out infinite reverse;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,71,232,0.15);
  border: 1px solid rgba(26,71,232,0.4);
  color: #7EB0FF;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}
.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #7EB0FF;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 110px);
  line-height: 0.95;
  letter-spacing: 2px;
  margin-bottom: 28px;
}
.hero__title--accent {
  -webkit-text-stroke: 2px var(--blue);
  color: transparent;
  display: inline-block;
}
.hero__sub {
  max-width: 560px;
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 44px;
  line-height: 1.8;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero__scroll span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== SERVICES ===== */
.services {
  padding: 120px 0;
  background: var(--dark-2);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: rgba(26,71,232,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.4), var(--shadow-blue);
}
.service-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(26,71,232,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue-light);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__num {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--blue-light);
  line-height: 1;
  letter-spacing: 1px;
}
.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 20px;
}
.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-card__tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--blue-light);
  background: rgba(26,71,232,0.12);
  border: 1px solid rgba(26,71,232,0.25);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ===== WHY ===== */
.why {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.why__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark-4) 0%, var(--dark) 60%);
}
.why .container { position: relative; z-index: 1; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.why-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
}
.why-card:hover {
  background: rgba(26,71,232,0.08);
  border-color: rgba(26,71,232,0.25);
  transform: translateY(-3px);
}
.why-card__icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.why-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.why-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.75;
}

/* ===== CONTACT ===== */
.contact {
  padding: 120px 0;
  background: var(--dark-2);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact__left p {
  font-size: 16px;
  color: var(--gray);
  margin-top: 20px;
  margin-bottom: 32px;
  line-height: 1.8;
}
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue-light);
  transition: color var(--transition);
}
.contact__email svg { width: 20px; height: 20px; }
.contact__email:hover { color: var(--white); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--gray-light);
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray); }
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--dark-3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,71,232,0.15);
}
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(0, 200, 100, 0.1);
  border: 1px solid rgba(0,200,100,0.3);
  border-radius: var(--radius);
  color: #4ade80;
  font-size: 14px;
  font-weight: 500;
}
.form-success.show { display: flex; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0 32px;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer__brand img { height: 30px; margin-bottom: 12px; }
.footer__brand p { font-size: 13px; color: var(--gray); line-height: 1.7; }
.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 14px;
  color: var(--gray);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
}
.footer__bottom p { font-size: 13px; color: var(--gray); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .hero { padding: 100px 24px 60px; }
}
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}