:root {
  --bg-deep: #070a10;
  --bg-card: rgba(14, 18, 28, 0.72);
  --border: rgba(120, 160, 200, 0.12);
  --text: #e8eef6;
  --text-muted: #8a9bb0;
  --accent: #3ee0c4;
  --accent-soft: rgba(62, 224, 196, 0.14);
  --accent-2: #7c9cff;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 200, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 200, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  max-width: 900px;
  height: 480px;
  background: radial-gradient(
    ellipse at center,
    rgba(62, 224, 196, 0.09) 0%,
    rgba(124, 156, 255, 0.05) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.hero {
  padding: 3rem 0 4.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .hero {
    padding: 4rem 0 5.5rem;
  }
}

.hero-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0 auto 1.25rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--accent-2);
}

.hero-lead {
  margin: 0 auto 2rem;
  max-width: 42ch;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent) 0%, #5ae8d0 100%);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 40px rgba(62, 224, 196, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 16px 48px rgba(62, 224, 196, 0.28);
}

.section-head {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0 auto;
  max-width: 48ch;
  color: var(--text-muted);
  font-size: 1rem;
}

.pillar-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.pillar {
  margin: 0;
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar:hover {
  border-color: rgba(62, 224, 196, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.pillar-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.pillar-name {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.pillar-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.pillar--hisdb .pillar-name {
  color: #7cdbff;
}

.pillar--pid .pillar-name {
  color: #ffb86b;
}

.pillar--mpc .pillar-name {
  color: var(--accent-2);
}

.pillar--rto .pillar-name {
  color: #c79cff;
}

.contact {
  margin-top: 4.5rem;
}

.contact-card {
  padding: 2rem 1.75rem;
  text-align: center;
  background: linear-gradient(145deg, rgba(62, 224, 196, 0.08) 0%, rgba(124, 156, 255, 0.06) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
}

.contact-card p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.email {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(62, 224, 196, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.email:hover {
  color: #6ef0da;
  border-bottom-color: rgba(62, 224, 196, 0.6);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-dot {
  opacity: 0.5;
}
