* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(60vw 45vw at 10% -10%, #1b2a5b 0%, rgba(9, 12, 19, 0) 60%),
              radial-gradient(40vw 35vw at 90% -10%, #0a6f66 0%, rgba(9, 12, 19, 0) 55%),
              #0a0f1a;
  background-repeat: no-repeat, no-repeat, no-repeat;
  color: #e7ecf5;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  justify-items: center;
  gap: 28px;
  padding: 40px 20px 24px;
}

.brand { width: 100%; max-width: 1100px; display: flex; align-items: center; gap: 10px; }
.brand__logo { width: 36px; height: 36px; }
.brand__name { font-weight: 800; letter-spacing: 0.4px; }

.headline { text-align: center; max-width: 1000px; }
.headline__title {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.02;
  margin: 12px 0 8px;
  letter-spacing: -0.02em;
}
.accent {
  background: linear-gradient(90deg, #8ed0ff, #9effe0 60%, #ffb6d5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.headline__subtitle { color: #b6c3e0; font-size: clamp(16px, 2.4vw, 22px); margin: 0 auto; max-width: 760px; }

.cta-card { width: 100%; display: flex; justify-content: center; }
.cta-card__inner {
  width: min(720px, 100%);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0.6));
  border: 1px solid rgba(115, 130, 164, 0.18);
  padding: 28px 26px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  text-align: center;
}
.cta-card__icon { font-size: 28px; color: #9cc4ff; }
.cta-card__title { margin: 8px 0 6px; font-size: 24px; }
.cta-card__placeholder { color: #93a4c9; margin: 8px 0 14px; font-style: italic; }
.glow {
  background: linear-gradient(90deg, #2563eb, #22d3ee);
  border: 0;
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.25);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.glow:hover { box-shadow: 0 16px 40px rgba(34, 211, 238, 0.35); transform: translateY(-1px); }
.glow:active { transform: translateY(0); }
.cta-card__fineprint { color: #8293b5; font-size: 12px; margin-top: 12px; }

.stats { width: 100%; display: flex; justify-content: center; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(900px, 100%);
  margin-top: 24px;
}
.stat { background: linear-gradient(180deg, rgba(30, 41, 59, 0.75), rgba(17, 24, 39, 0.5)); border: 1px solid rgba(115, 130, 164, 0.18); border-radius: 14px; padding: 18px; text-align: center; }
.stat-number { font-size: clamp(32px, 6vw, 56px); font-weight: 800; letter-spacing: -0.02em; }
.stat-label { color: #9bb0d3; margin-top: 6px; }

.footer { opacity: 0.8; margin-top: 18px; font-size: 14px; }

@media (min-width: 900px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}

/* Sections */
.section-title { text-align: center; font-weight: 800; font-size: clamp(22px, 3vw, 32px); margin: 50px 0 18px; }

.capabilities { width: 100%; display: grid; justify-items: center; padding: 10px 0; }
.capabilities__grid {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.cap-card { background: rgba(20, 28, 44, 0.7); border: 1px solid rgba(115,130,164,0.18); border-radius: 14px; padding: 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.cap-card h3 { margin: 4px 0 10px; }
.cap-card ul { margin: 0; padding-left: 18px; color: #b8c6e6; }
.cap-card li { margin: 6px 0; }

.case-studies { width: 100%; display: grid; justify-items: center; padding: 10px 0; }
.cases__grid { width: min(1100px, 100%); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.case { background: linear-gradient(180deg, rgba(30,41,59,0.75), rgba(17,24,39,0.5)); border: 1px solid rgba(115,130,164,0.18); border-radius: 14px; padding: 18px; }
.case__stats { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; color: #cdd7ef; }
.case__stat { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 10px; }
.case__stat .stat-number { font-size: clamp(28px, 5.4vw, 44px); font-weight: 900; line-height: 1; }
.case__stat span:last-child { color: #9bb0d3; line-height: 1.2; }

.engagement { width: 100%; display: grid; justify-items: center; padding: 10px 0; }
.engagement__grid { width: min(1100px, 100%); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.eng-card { background: rgba(20, 28, 44, 0.7); border: 1px solid rgba(115,130,164,0.18); border-radius: 14px; padding: 18px; color: #cbd7f0; }
.eng-card h3 { margin: 4px 0 10px; }

.stack { width: 100%; display: grid; justify-items: center; padding: 10px 0 30px; }
.stack__tags { width: min(900px, 100%); display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.stack__tags span { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); padding: 8px 12px; border-radius: 999px; font-weight: 700; color: #d4def8; }
.stack__tags span.primary { background: linear-gradient(90deg, #ff7e5f, #feb47b); color: #0a0f1a; border-color: transparent; }

/* Fix overflow on case cards at narrow widths */
@media (max-width: 640px) {
  .cases__grid { grid-template-columns: 1fr; }
  .case { padding: 16px; }
}

/* Mobile-specific fixes: gradient coverage and footer spacing */
@media (max-width: 768px) {
  body {
    background: radial-gradient(95vw 75vw at 50% -20%, #1b2a5b 0%, rgba(9, 12, 19, 0) 60%),
                radial-gradient(85vw 65vw at 50% -10%, #0a6f66 0%, rgba(9, 12, 19, 0) 55%),
                #0a0f1a;
    background-repeat: no-repeat, no-repeat, no-repeat;
  }

  .hero { padding: 28px 16px 16px; gap: 20px; }

  .footer {
    width: 100%;
    margin-top: 24px;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
    font-size: 13px;
    background: rgba(10, 15, 26, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    opacity: 0.95;
  }
}

/* Ensure cards don't overflow on mobile */
.case, .cap-card, .eng-card { overflow: hidden; }

