:root {
  --bg: #0a0a0f;
  --text: #edf3ff;
  --muted: #9aa7bb;
  --blue: #4da1ff;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

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

button {
  cursor: pointer;
  border: none;
  font: inherit;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--muted);
  max-width: 65ch;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 clamp(20px, 5vw, 60px);
  background: #111424d9;
  border-bottom: 1px solid #4da1ff0d;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brand-logo {
  width: 45px;
  height: 45px;
  display: block;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.main-nav a {
  position: relative;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 300ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

/* Main content */
main {
  padding-top: 70px;
}

/* Sections */
section {
  position: relative;
  padding: clamp(6rem, 12vw, 10rem) clamp(20px, 5vw, 60px);
}

.section-label {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: #11142455;
  z-index: -1;
}

.mesh-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(77, 161, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 161, 255, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero p {
  font-size: 1.125rem;
  margin: 0 auto 2rem;
  color: var(--text);
  max-width: 700px;
}

/* Button */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: 1px solid rgba(0, 9, 112, 0);
  border-radius: 32px;
  background: #28305dd9;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 320ms ease;
}

.button:hover {
  background: rgba(77, 161, 255, 0.25);
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* Services */
.services {
  background: rgba(10, 10, 15, 0.5);
}

.services-header {
  margin-bottom: 4rem;
  max-width: 900px;
}

.services-header h2 {
  color: var(--text);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(18, 24, 36, 0.6);
  transition: all 320ms ease;
}

.service-card:hover {
  border-color: rgba(77, 161, 255, 0.4);
  background: rgba(18, 24, 36, 0.9);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(77, 161, 255, 0.4);
  border-radius: 8px;
  background: rgba(77, 161, 255, 0.1);
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}

.service-card h3 {
  color: var(--text);
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 1px;
  background: var(--blue);
}

/* Cases */
.cases {
  background: rgba(10, 10, 15, 0.5);
}

.cases h2 {
  color: var(--text);
  margin-bottom: 3rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.case-card {
  display: grid;
  grid-template-rows: 180px 1fr;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(18, 24, 36, 0.6);
  overflow: hidden;
  transition: all 320ms ease;
}

.case-card:hover {
  border-color: rgba(77, 161, 255, 0.4);
  transform: translateY(-4px);
}

.case-img {
  background-size: cover;
  background-position: center;
}

.case-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-industry {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.case-card h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.case-outcome {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.case-card--cta {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(77, 161, 255, 0.25);
  background: rgba(77, 161, 255, 0.05);
  min-height: 320px;
}

.case-card--cta:hover {
  border-color: rgba(77, 161, 255, 0.6);
  background: rgba(77, 161, 255, 0.1);
  transform: translateY(-4px);
}

.case-card-cta-inner {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.case-card-cta-inner h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.case-card-cta-inner .case-outcome {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Stats */
.stats {
  background: rgba(10, 10, 15, 0.5);
}

.stats h2 {
  color: var(--text);
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.stat-number span {
  font-size: 0.5em;
  opacity: 0.8;
}

.stat-item p {
  font-size: 0.95rem;
  text-align: center;
  margin: 0;
}

/* Process */
.process {
  background: rgba(10, 10, 15, 0.5);
}

.process h2 {
  color: var(--text);
  margin-bottom: 3rem;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.process-item {
  position: relative;
}

.process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(77, 161, 255, 0.4);
  border-radius: 50%;
  background: rgba(77, 161, 255, 0.1);
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 1rem;
}

.process-item h3 {
  color: var(--text);
  margin-bottom: 0.75rem;
}

.process-item p {
  font-size: 0.9rem;
  margin: 0;
}

/* Contact */
.contact {
  background: rgba(10, 10, 15, 0.5);
}

.contact h2 {
  color: var(--text);
  margin-bottom: 1rem;
}

.contact-intro {
  font-size: 1.125rem;
  margin-bottom: 3rem;
  max-width: 700px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
}

.contact-email {
  display: flex;
  align-items: flex-start;
}

.email-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue);
  transition: opacity 300ms ease;
}

.email-link:hover {
  opacity: 0.8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(18, 24, 36, 0.8);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 300ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(77, 161, 255, 0.4);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(237, 243, 255, 0.3);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem clamp(20px, 5vw, 60px);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 250ms ease, opacity 250ms ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Scroll lines */
.scroll-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
}

.scroll-lines svg {
  width: 100%;
  height: 100%;
}

.scroll-lines path {
  fill: none;
  stroke: #4ea6ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4.5;
  filter: drop-shadow(0px 4px 8px #2d8cff);
}

/* Responsive */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(10, 10, 15, 0.97);
    border-bottom: 1px solid rgba(77, 161, 255, 0.1);
    backdrop-filter: blur(12px);
    z-index: 199;
  }

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

  .main-nav a::after {
    bottom: -4px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-container {
    grid-template-columns: 1fr;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .process-flow {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 80vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}