:root {
  --bg-main: #05060a;
  --bg-soft: #0b0f19;
  --bg-deep: #02030a;

  --text-main: #ffffff;
  --text-dark: #ffffff;
  --text-muted: #b9c0d0;
  --text-soft-dark: #b9c0d0;

  --accent-blue: #38bdf8;
  --accent-purple: #8b5cf6;
  --accent-green: #22c55e;
  --accent: #38bdf8;
  --accent-dark: #8b5cf6;

  --glass: rgba(5, 6, 10, 0.58);
  --glass-strong: rgba(5, 6, 10, 0.74);
  --border-dark: rgba(255, 255, 255, 0.16);
  --border-soft: rgba(255, 255, 255, 0.16);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.50);
  --header-height: 86px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; min-height: 100%; background: var(--bg-main); }
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, #14213d 0%, var(--bg-main) 42%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.22), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(139, 92, 246, 0.22), transparent 32%),
    radial-gradient(circle at 55% 85%, rgba(34, 197, 94, 0.12), transparent 30%);
  filter: blur(20px);
  opacity: 0.92;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0.10), rgba(5, 6, 10, 0.88));
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 18px clamp(20px, 5vw, 70px);
  background:
    linear-gradient(to bottom, rgba(5, 6, 10, 0.86), rgba(5, 6, 10, 0.48), transparent);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: max-content; }
.brand-logo { width: 170px; height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.45)); }
.brand-fallback { display: none; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.main-nav a { text-decoration: none; color: rgba(255, 255, 255, 0.78); transition: color 0.2s ease, text-shadow 0.2s ease; }
.main-nav a:hover { color: var(--accent-blue); text-shadow: 0 0 24px rgba(56,189,248,0.55); }

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  border: 1px solid rgba(34, 197, 94, 0.72);
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(34,197,94,0.95), rgba(22,163,74,0.95));
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(34, 197, 94, 0.42); }

/* Hero */
.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
  padding-bottom: 48px;
}
.hero-bg, .hero-overlay, .hero-bg img { position: absolute; inset: 0; }
.hero-bg { inset: 24px; border-radius: 32px; overflow: hidden; border: 1px solid var(--border-soft); box-shadow: var(--shadow); background: var(--bg-soft); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; opacity: 0.78; filter: saturate(0.95) contrast(1.08); }
.hero-overlay {
  inset: 24px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 20% 20%, rgba(56,189,248,0.18), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(139,92,246,0.19), transparent 30%),
    radial-gradient(circle at 55% 80%, rgba(34,197,94,0.10), transparent 30%),
    linear-gradient(180deg, rgba(5,6,10,0.50) 0%, rgba(5,6,10,0.34) 42%, rgba(5,6,10,0.86) 100%),
    linear-gradient(90deg, rgba(5,6,10,0.86), rgba(5,6,10,0.40), rgba(5,6,10,0.75));
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: clamp(34px, 5.4vw, 64px);
  margin-left: max(20px, calc((100vw - 1180px) / 2));
  border: 1px solid var(--border-soft);
  border-radius: 32px;
  background: rgba(5, 6, 10, 0.50);
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}
.eyebrow { margin: 0 0 16px; color: var(--text-muted); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.16em; font-weight: 800; }
.hero h1 { margin: 0; max-width: 780px; font-size: clamp(2.7rem, 6.7vw, 5.5rem); line-height: 0.88; letter-spacing: -0.045em; font-weight: 780; text-wrap: balance; }
.hero-subtitle { margin: 28px 0 0; max-width: 620px; color: #ffffff; font-size: clamp(1.18rem, 2.3vw, 1.8rem); line-height: 1.25; font-weight: 750; }
.hero-text { margin: 22px 0 0; max-width: 570px; color: var(--text-muted); font-size: 1.08rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.83rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #ffffff; background: linear-gradient(135deg, var(--accent-green), #16a34a); box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35); }
.btn-primary:hover { box-shadow: 0 15px 40px rgba(34, 197, 94, 0.50); }
.btn-secondary { color: #ffffff; border: 1px solid var(--border-soft); background: rgba(5, 6, 10, 0.42); backdrop-filter: blur(14px); }
.btn-secondary:hover { background: rgba(56, 189, 248, 0.10); border-color: rgba(56, 189, 248, 0.42); }

/* Value strip */
.value-strip {
  position: relative;
  background:
    linear-gradient(
      180deg,
      rgba(5, 6, 10, 0.96),
      rgba(11, 15, 25, 0.92)
    );
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 80px 0;
}

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

.value-item {
  position: relative;
  overflow: hidden;
  min-height: 255px;
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  background: rgba(5, 6, 10, 0.58);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.value-photo {
  position: absolute;
  inset: 0;
}

.value-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  filter: saturate(0.95) contrast(1.08);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.value-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(5, 6, 10, 0.12) 0%,
      rgba(5, 6, 10, 0.54) 48%,
      rgba(5, 6, 10, 0.92) 100%
    ),
    radial-gradient(
      circle at 20% 20%,
      rgba(56, 189, 248, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(139, 92, 246, 0.16),
      transparent 34%
    );
}

.value-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 255px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.value-copy h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.value-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.value-item:hover .value-photo img {
  transform: scale(1.05);
  opacity: 0.82;
}

/* Case studies */
.cases-section { position: relative; overflow: hidden; background: transparent; color: var(--text-main); padding: 72px 0 84px; }
.cases-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 15%, rgba(56, 189, 248, 0.15), transparent 30%),
    radial-gradient(circle at 92% 20%, rgba(139, 92, 246, 0.15), transparent 30%),
    linear-gradient(180deg, rgba(5,6,10,0.68), rgba(5,6,10,0.92));
}
.cases-section .container { position: relative; z-index: 1; }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 42px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.02; letter-spacing: -0.055em; font-weight: 950; }
.section-heading p:not(.eyebrow) { margin: 18px auto 0; color: var(--text-muted); line-height: 1.7; font-size: 1rem; }

.case-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.case-card { position: relative; min-width: 0; background: var(--glass); border-radius: 24px; overflow: hidden; box-shadow: 0 22px 70px rgba(0,0,0,0.32); border: 1px solid var(--border-soft); backdrop-filter: blur(18px); }
.case-number { position: absolute; z-index: 3; top: 14px; left: 14px; width: 42px; height: 42px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-green)); color: #05060a; font-weight: 950; border-radius: 50%; box-shadow: 0 12px 32px rgba(56, 189, 248, 0.22); }
.case-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: 0.86; }
.case-content { padding: 22px 20px 24px; }
.case-content h3 { margin: 0; font-size: 1.04rem; line-height: 1.18; letter-spacing: -0.025em; }
.case-content p { margin: 14px 0 0; color: var(--text-muted); line-height: 1.62; font-size: 0.92rem; }
.case-content ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; color: #dfe6f1; font-size: 0.88rem; line-height: 1.35; }
.case-content li { position: relative; padding-left: 21px; }
.case-content li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-green); font-weight: 950; }

/* Services */
.services-section { position: relative; overflow: hidden; padding: 80px 0 86px; background: var(--bg-main); }
.services-bg, .services-bg img { position: absolute; inset: 0; }
.services-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.18; filter: saturate(0.95) contrast(1.10); }
.services-section::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,10,0.96), rgba(5,6,10,0.78)), radial-gradient(circle at 70% 38%, rgba(139,92,246,0.14), transparent 34%), radial-gradient(circle at 20% 72%, rgba(34,197,94,0.10), transparent 30%); }
.services-section .container { position: relative; z-index: 2; }
.services-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0; border: 1px solid var(--border-soft); border-radius: 28px; background: var(--glass); backdrop-filter: blur(22px); overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,0.38); }
.service-item { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 16px; padding: 20px 14px; text-align: center; border-right: 1px solid var(--border-dark); }
.service-item:last-child { border-right: 0; }
.service-item span { color: var(--accent-blue); font-size: 2.2rem; line-height: 1; }
.service-item:nth-child(3n + 2) span { color: var(--accent-purple); }
.service-item:nth-child(3n) span { color: var(--accent-green); }
.service-item h3 { margin: 0; font-size: 0.92rem; line-height: 1.2; letter-spacing: -0.015em; }

/* Final CTA */
.final-cta { position: relative; overflow: hidden; min-height: 370px; display: grid; align-items: center; text-align: center; background: var(--bg-main); }
.final-cta-bg, .final-cta-bg img { position: absolute; inset: 0; }
.final-cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; filter: saturate(1.05) contrast(1.1); }
.final-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,10,0.88), rgba(5,6,10,0.62), rgba(5,6,10,0.88)), radial-gradient(circle at 32% 48%, rgba(56,189,248,0.16), transparent 30%), radial-gradient(circle at 68% 50%, rgba(34,197,94,0.13), transparent 34%); }
.final-cta-content { position: relative; z-index: 2; padding: 78px 0; }
.final-cta h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1; letter-spacing: -0.055em; }
.final-cta p { max-width: 650px; margin: 20px auto 30px; color: var(--text-muted); line-height: 1.7; }

/* Footer */
.site-footer { background: #02030a; border-top: 1px solid var(--border-dark); padding: 38px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: center; }
.footer-logo { width: 180px; margin-bottom: 14px; filter: drop-shadow(0 16px 36px rgba(0,0,0,0.4)); }
.footer-brand p, .footer-contact p { margin: 0 0 8px; color: var(--text-muted); line-height: 1.55; }
.footer-links { display: grid; gap: 8px; text-align: right; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent-blue); }

/* Responsive */
@media (max-width: 1180px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card:nth-child(5) { grid-column: span 2; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .service-item { border-bottom: 1px solid var(--border-dark); }
  .service-item:nth-child(4n) { border-right: 0; }
  .service-item:nth-last-child(-n + 4) { border-bottom: 0; }
}

@media (max-width: 920px) {
  :root { --header-height: 76px; }
  .site-header { padding: 14px 20px; }
  .main-nav { display: none; }
  .header-cta { padding: 10px 14px; font-size: 0.72rem; }
  .brand-logo { width: 140px; }
  .hero { min-height: 700px; }
  .hero-bg, .hero-overlay { inset: 16px; border-radius: 24px; }
  .hero-content { margin: 0 auto; width: min(92%, 720px); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-links { text-align: left; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand-logo { display: none; }
  .brand-fallback { display: inline-block; font-size: 0.96rem; }
  .header-cta { font-size: 0.68rem; padding: 9px 12px; }
  .hero { min-height: 690px; align-items: end; }
  .hero-bg, .hero-overlay { inset: 10px; border-radius: 20px; }
  .hero-content { width: calc(100% - 28px); margin-bottom: 16px; padding: 28px 22px; border-radius: 22px; }
  .hero h1 { font-size: clamp(2.8rem, 17vw, 5rem); }
  .hero-subtitle { font-size: 1.15rem; }
  .hero-text { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .value-grid { grid-template-columns: 1fr; }
  .cases-section { padding: 58px 0 64px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card:nth-child(5) { grid-column: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-item { border-right: 1px solid var(--border-dark); }
  .service-item:nth-child(2n) { border-right: 0; }
  .service-item:nth-last-child(-n + 4) { border-bottom: 1px solid var(--border-dark); }
  .service-item:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 420px) {
  .header-cta { display: none; }
  .site-header { justify-content: center; }
  .brand-fallback { font-size: 1.05rem; }
  .hero { min-height: 660px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-item, .service-item:nth-child(2n), .service-item:nth-child(4n) { border-right: 0; border-bottom: 1px solid var(--border-dark); }
  .service-item:last-child { border-bottom: 0; }
}
