:root {
  --bg: #ffffff;
  --bg-soft: #f1f5f9;
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #2563eb;
  --brand-2: #0ea5e9;
  --accent: #7c3aed;
  --shadow: 0 2px 12px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 6px 32px rgba(15, 23, 42, 0.10);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.noise,
.grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.grid {
  background-image:
    linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  opacity: 0.6;
}

.noise {
  background-image: radial-gradient(rgba(15,23,42,0.025) 0.6px, transparent 0.6px);
  background-size: 14px 14px;
  opacity: 1;
  z-index: -1;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: block;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.96rem;
}

nav ul a:hover { color: var(--brand); }

.cta-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.button:hover { transform: translateY(-1px); }

.button.primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28);
}

.button.primary:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.38);
}

.button.secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--text);
}

.button.secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.hero {
  padding: 5rem 0 3.5rem;
}

.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70vh;
  background: url('bg-abstract.png') center 50% / cover no-repeat;
  will-change: background-position-y;
  z-index: -1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(37,99,235,0.2);
  background: rgba(37,99,235,0.06);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px rgba(37,99,235,0.5);
}

h1, h2, h3 { line-height: 1.08; margin: 0 0 1rem; color: var(--text); }
h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 1.5rem;
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-self: stretch;
}

.stat {
  position: relative;
  height: 210px;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  opacity: 0.7;
}

.stat::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, #ffffff);
  z-index: 1;
  pointer-events: none;
}

.stat-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: transparent;
  z-index: 2;
}

.stat span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.panel {
  position: relative;
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.panel--padded {
  padding: 1.4rem;
}

.hero-card {
  padding: 1.25rem;
}

.window-bar {
  display: flex;
  gap: 0.45rem;
  padding: 0.2rem 0 1rem;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mini-card,
.feature,
.service,
.process-step,
.contact-card {
  background: rgba(255,255,255,0.68);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.mini-card {
  padding: 1rem;
  min-height: 145px;
  position: relative;
  overflow: hidden;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  margin-top: 0.75rem;
  font-size: 0.92rem;
}

.metric strong { color: var(--text); }

section {
  padding: 2.4rem 0;
}



.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.2rem;
}

.section-head p {
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
}

.services,
.features,
.process,
.footer-grid {
  display: grid;
  gap: 1rem;
}

.services {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service {
  padding: 1.3rem;
  min-height: 250px;
  position: relative;
}

.icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.15);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--brand);
}

.service p,
.feature p,
.process-step p,
.contact-card p,
footer p,
.muted {
  color: var(--muted);
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.96rem;
}

.bullet-list li {
  display: flex;
  gap: 0.65rem;
  align-items: start;
}

.bullet-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.5rem;
  background: var(--brand);
  flex: 0 0 auto;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: stretch;
}

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

.feature,
.process-step,
.contact-card {
  padding: 1.2rem;
}

.capabilities-panel {
  padding: 1.4rem 1.4rem 1.25rem;
}

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

.step-no {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.2);
  margin-bottom: 0.95rem;
  font-weight: 700;
  color: var(--brand);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 1rem;
  align-items: stretch;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}

.field,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
  outline: none;
}

.field:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
  background: #ffffff;
}

textarea {
  grid-column: 1 / -1;
  min-height: 130px;
  resize: vertical;
}

.form-note {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer-grid {
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  padding-top: 1rem;
}

.footer-grid .brand {
  margin-bottom: 0.85rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.footer-links a:hover { color: var(--brand); }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(37,99,235,0.06);
  border: 1px solid rgba(37,99,235,0.15);
  font-size: 0.9rem;
  color: var(--brand);
  font-weight: 500;
}

.pillars-carousel {
  position: relative;
  margin-top: 1rem;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
}

.pillar {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.pillar.active {
  opacity: 1;
  pointer-events: auto;
}

.pillar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1;
}

.pillar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.96));
  z-index: 1;
  pointer-events: none;
}

.pillar-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  z-index: 2;
}

.pillar-text .small {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.carousel-dots {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.4rem;
  z-index: 3;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.8);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s;
}

.carousel-dot.active {
  background: var(--brand);
  border-color: var(--brand);
}

.small {
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .hero-grid,
  .split,
  .contact-wrap,
  .services,
  .process,
  .footer-grid,
  .pillars {
    grid-template-columns: 1fr;
  }

  .features,
  .screen,
  form {
    grid-template-columns: 1fr 1fr;
  }

  nav ul { display: none; }
}

@media (max-width: 720px) {
  .hero { padding-top: 3.75rem; }
  .features,
  .screen,
  form {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  h1 { max-width: 100%; }
  .container { width: min(var(--max), calc(100% - 1.2rem)); }
}
