* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1.75rem clamp(1rem, 5vw, 4rem);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
  background: #f7f9fd url("../img/bg.svg") center / cover no-repeat fixed;
}
a { color: inherit; }

/* Header */
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: block; height: clamp(2.75rem, 6vw, 4rem); width: auto; max-width: 65vw; }
.header-link {
  font-size: 0.85rem; font-weight: 600; text-decoration: none; color: #1e3a8a;
  padding: 0.55rem 1rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.header-link:hover { background: #fff; }

/* Hero */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 6vh, 4rem);
  padding: 2.5rem 0;
}
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  background: rgba(37, 99, 235, 0.08); color: #1d4ed8;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.pulse { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #2563eb; animation: pulse 2s infinite; }
h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.15;
  padding: 0 0.05em 0.12em;
  overflow-wrap: anywhere;
  background: linear-gradient(120deg, #0f172a 30%, #2563eb 70%, #06b6d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 0; max-width: 52ch; font-size: clamp(0.98rem, 2vw, 1.1rem); line-height: 1.55; color: #475569; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.75rem; }
.btn {
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(15, 23, 42, 0.1);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.3); }
.btn-dark { background: #0f172a; border-color: #0f172a; color: #fff; }
.btn-dark:hover { background: #2563eb; border-color: #2563eb; }

/* Services */
.services { width: min(72rem, 100%); text-align: center; }
h2 {
  margin: 0 0 1rem; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: #64748b;
}
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: 1.35rem; border-radius: 1.1rem; text-align: left; text-decoration: none;
  background: rgba(255, 255, 255, 0.65); border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -16px rgba(37, 99, 235, 0.35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.card:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 16px 32px -16px rgba(37, 99, 235, 0.45); }
.card svg {
  width: 2.5rem; height: 2.5rem; padding: 0.55rem; border-radius: 0.7rem;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { margin: 0.25rem 0 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: #475569; }

/* Footer */
footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
  padding-top: 1rem; border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.8rem; color: #64748b;
}
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
footer a { color: #1e3a8a; text-decoration: none; font-weight: 600; }
footer a:hover { color: #2563eb; }

@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .header-link { display: none; }
  footer { justify-content: center; text-align: center; }
  footer nav { justify-content: center; }
}

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); } 100% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
