:root {
  --bg: #07111f;
  --bg-soft: rgba(13, 23, 40, 0.78);
  --panel: rgba(17, 27, 47, 0.92);
  --card: rgba(17, 27, 47, 0.78);
  --border: rgba(162, 179, 209, 0.15);
  --text: #e8eefb;
  --muted: #aab6cf;
  --accent: #6ea8ff;
  --accent-strong: #8fd3ff;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --radius: 20px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(95, 144, 255, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(108, 239, 255, 0.10), transparent 22%),
    linear-gradient(180deg, #08101d 0%, #0a1324 45%, #07111f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 85%);
}

.site-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(110, 168, 255, 0.24), rgba(143, 211, 255, 0.3));
  border: 1px solid rgba(143, 211, 255, 0.2);
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 54px 0 56px;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.hero h1,
.section h2,
.contact-card h2 {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  max-width: 12ch;
}

.lead,
.section-heading p,
.card p,
.contact-card p {
  color: var(--muted);
}

.lead {
  font-size: 1.08rem;
  max-width: 60ch;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.button-primary {
  color: #07111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 30px rgba(110, 168, 255, 0.24);
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.panel-card,
.card,
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel-card {
  padding: 22px;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #74f7a7;
  box-shadow: 0 0 14px rgba(116,247,167,0.7);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-box {
  min-height: 120px;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(162, 179, 209, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 34px 0;
}

.section-heading {
  margin-bottom: 22px;
}

.section h2,
.contact-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 10px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(110, 168, 255, 0.35);
  background: rgba(18, 31, 54, 0.95);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stack-list span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 600;
}

.contact {
  padding-bottom: 52px;
}

.contact-card {
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer {
  padding: 20px 0 34px;
  color: #7e8aa5;
  font-size: 0.94rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .card-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 30px;
  }

  .contact-card {
    display: grid;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 22px), var(--max-width));
  }

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

  .nav {
    gap: 14px;
  }

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

  .hero {
    gap: 20px;
    padding-bottom: 28px;
  }

  .panel-card,
  .card,
  .contact-card {
    border-radius: 18px;
  }
}
