:root {
  --blue: #0056d6;
  --sky: #29b6f6;
  --navy: #072146;
  --navy-2: #0b2d55;
  --red: #e53935;
  --ice: #f5faff;
  --line: #d9e8f7;
  --text: #20324a;
  --muted: #607089;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(7, 33, 70, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  color: var(--white);
}

.site-header.scrolled,
.site-header.solid {
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(7, 33, 70, 0.1);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  color: var(--white);
  font-size: 14px;
  box-shadow: 0 12px 25px rgba(0, 86, 214, 0.28);
}

.brand span:last-child {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: currentColor;
  opacity: 0.78;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  opacity: 0.86;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sky);
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), #ff6d5f);
  box-shadow: 0 14px 30px rgba(229, 57, 53, 0.28);
}

.btn-blue {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--sky));
  box-shadow: 0 14px 30px rgba(0, 86, 214, 0.24);
}

.btn-light {
  color: var(--navy);
  background: var(--white);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 100vh;
  color: var(--white);
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 18%, rgba(41, 182, 246, 0.34), transparent 34%),
    linear-gradient(135deg, #061a36 0%, #082a62 48%, #0056d6 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 88%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: 100vh;
  padding: 120px 0 64px;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--sky);
  font-family: Poppins, Inter, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--navy);
  font-family: Poppins, Inter, sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  color: var(--white);
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 900;
}

.hero h1 span {
  color: var(--sky);
}

.hero-copy {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin-top: 34px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.check-item::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.28);
}

.tech-visual {
  position: relative;
  min-height: 520px;
}

.visual-panel {
  position: absolute;
  inset: 50px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 8px;
  color: var(--white);
  font-family: Poppins, Inter, sans-serif;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  animation: float 6s ease-in-out infinite;
}

.node:nth-child(2) { top: 10px; left: 8%; }
.node:nth-child(3) { top: 120px; right: 4%; animation-delay: -1s; }
.node:nth-child(4) { bottom: 46px; left: 13%; animation-delay: -2s; }
.node:nth-child(5) { bottom: 20px; right: 16%; animation-delay: -3s; }

.server-stack {
  position: absolute;
  top: 40%;
  left: 50%;
  width: min(320px, 72%);
  transform: translate(-50%, -50%);
}

.server {
  height: 70px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(41, 182, 246, 0.12));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.server::before,
.server::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 30px 8px 0 22px;
  border-radius: 50%;
  background: var(--sky);
}

.server::after {
  margin-left: 0;
  background: var(--red);
}

.signal-ring {
  position: absolute;
  inset: 80px 48px;
  border: 1px solid rgba(41, 182, 246, 0.35);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

.section {
  padding: 96px 0;
}

.section.alt {
  background: var(--ice);
}

.section.dark {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.section.dark h2,
.section.dark h3 {
  color: var(--white);
}

.section-head {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section.dark .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.logo-strip span,
.tech-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  background: var(--white);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(7, 33, 70, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(41, 182, 246, 0.5);
  box-shadow: var(--shadow);
}

.service-card,
.project-card,
.value-card,
.career-card {
  padding: 28px;
}

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--sky));
  font-family: Poppins, Inter, sans-serif;
  font-weight: 900;
}

.service-card:nth-child(even) .icon,
.value-card:nth-child(even) .icon {
  background: linear-gradient(135deg, var(--red), #ff7c6c);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 18px;
  margin: 8px 0;
  color: var(--muted);
}

.list li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 56px;
}

.image-frame {
  position: relative;
  min-height: 430px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(rgba(7, 33, 70, 0.16), rgba(7, 33, 70, 0.22)),
    linear-gradient(135deg, #dff4ff, #eef7ff 45%, #ffffff);
  box-shadow: var(--shadow);
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px solid rgba(0, 86, 214, 0.18);
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(0, 86, 214, 0.08) 48% 52%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(7, 33, 70, 0.08) 0 14px, transparent 14px 32px);
}

.image-frame::after {
  content: "THEVAR";
  position: absolute;
  right: 30px;
  bottom: 28px;
  color: rgba(7, 33, 70, 0.18);
  font-family: Poppins, Inter, sans-serif;
  font-size: 54px;
  font-weight: 900;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.feature-list div {
  padding: 16px;
  border-left: 4px solid var(--red);
  background: var(--ice);
  font-weight: 800;
  color: var(--navy);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.stat {
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.stat strong {
  display: block;
  color: var(--white);
  font-family: Poppins, Inter, sans-serif;
  font-size: 42px;
  font-weight: 900;
}

.stat span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.project-card {
  overflow: hidden;
}

.project-top {
  height: 150px;
  margin: -28px -28px 24px;
  background:
    linear-gradient(135deg, rgba(0, 86, 214, 0.85), rgba(41, 182, 246, 0.82)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(255,255,255,0.25) 24px 25px);
}

.project-card:nth-child(2) .project-top {
  background:
    linear-gradient(135deg, rgba(7, 33, 70, 0.92), rgba(0, 86, 214, 0.78)),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255,255,255,0.22) 18px 19px);
}

.project-card:nth-child(3) .project-top {
  background:
    linear-gradient(135deg, rgba(229, 57, 53, 0.84), rgba(41, 182, 246, 0.72)),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 30%);
}

.testimonial {
  padding: 30px;
  border-left: 5px solid var(--red);
}

.page-hero {
  padding: 155px 0 80px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 20%, rgba(41, 182, 246, 0.26), transparent 30%),
    linear-gradient(135deg, var(--navy), var(--blue));
}

.page-hero h1 {
  color: var(--white);
  max-width: 780px;
  font-size: clamp(38px, 5vw, 62px);
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.timeline {
  position: relative;
}

.timeline-item {
  padding: 24px 0 24px 34px;
  border-left: 3px solid var(--line);
}

.timeline-item strong {
  display: block;
  color: var(--blue);
  font-family: Poppins, Inter, sans-serif;
}

.contact-panel {
  padding: 34px;
}

.form {
  display: grid;
  gap: 16px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.cta {
  padding: 78px 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 33, 70, 0.9), rgba(0, 86, 214, 0.92)),
    radial-gradient(circle at 80% 20%, rgba(229, 57, 53, 0.35), transparent 28%);
}

.cta h2 {
  color: var(--white);
  font-size: clamp(32px, 4vw, 54px);
}

.cta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #061a36;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  padding: 64px 0;
}

.site-footer h3,
.site-footer h4 {
  color: var(--white);
}

.site-footer a {
  display: block;
  margin: 9px 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

@media (max-width: 1040px) {
  .nav-links {
    position: absolute;
    top: 82px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    color: var(--navy);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-inner,
  .split,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .tech-visual {
    min-height: 440px;
  }

  .grid.three,
  .grid.four,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tech-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .logo-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .nav-actions .btn {
    display: none;
  }

  .hero-inner {
    padding-top: 112px;
  }

  .hero-points,
  .feature-list,
  .grid.three,
  .grid.four,
  .stats,
  .tech-grid,
  .logo-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 40px;
  }

  .section {
    padding: 72px 0;
  }

  .tech-visual {
    min-height: 360px;
  }

  .node {
    width: 68px;
    height: 68px;
    font-size: 10px;
  }
}
