@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --void: #050508;
  --surface: #0d0d14;
  --surface-raised: #14141f;
  --cyan: #00f0ff;
  --purple: #8a2be2;
  --warm-accent: #ff5a00;
  --white: #ffffff;
  --muted: #9499b3;
  --border: #2a2b36;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --glow: 0 0 18px rgba(0, 240, 255, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--void);
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}

h1, h2, h3, h4, h5, h6, p, span, a, li, td, th, blockquote, figcaption, .eyebrow, .hero-title, .hero-subtitle, .lead-paragraph, .body-text, .card-title {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
  display: block;
  width: auto;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease, text-decoration 0.2s ease; }
a:hover { color: var(--cyan); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, svg { max-width: 100%; height: auto; display: block; }

.container { width: min(92%, 1240px); margin-inline: auto; }
.flex-wrap-safe { min-width: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(12px);
  border-top: 2px solid var(--cyan);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
}
.brand:hover { color: var(--white); text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 0.8rem; color: var(--void); font-weight: 800;
}
.main-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0; padding: 0;
  justify-content: center;
}
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover { color: var(--white); border-bottom-color: var(--cyan); text-decoration: none; }

.page-hero {
  padding: clamp(4.5rem, 8vw, 8rem) 0 clamp(3.5rem, 6vw, 6rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 40%, rgba(138, 43, 226, 0.15), transparent 70%),
              radial-gradient(50% 40% at 20% 80%, rgba(0, 240, 255, 0.1), transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw + 0.5rem, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  background: linear-gradient(to right, var(--white) 25%, var(--cyan) 60%, var(--warm-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative; z-index: 1;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 1.2vw + 0.8rem, 1.4rem);
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
  position: relative; z-index: 1;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  position: relative; z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
  gap: 0.5rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--void);
  box-shadow: var(--glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.4);
  text-decoration: none;
  color: var(--void);
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--white);
}
.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  text-decoration: none;
  background: rgba(0, 240, 255, 0.05);
}

.section-wrapper {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.section-heading {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw + 0.5rem, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.lead-paragraph {
  font-size: clamp(1.05rem, 1.1vw + 0.8rem, 1.25rem);
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 800px;
}
.body-text {
  color: #c0c4d6;
  margin-bottom: 1.2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: var(--shadow);
}
.mod-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-raised);
}
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.card-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--white);
}
.card-desc {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1rem;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #7a7f94;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.5rem; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: #c0c4d6; font-size: 0.95rem; }
.footer-col a:hover { color: var(--cyan); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .header-inner { flex-direction: column; gap: 1rem; }
  .main-nav { order: 3; width: 100%; }
  .nav-list { gap: 1rem 1.5rem; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 320px; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
/* universal guards (not a template) */
*{box-sizing:border-box}img,svg,video{max-width:100%;height:auto}h1,h2,h3,h4,p,li,a,span,blockquote{overflow-wrap:break-word;word-break:normal}html{-webkit-text-size-adjust:100%}body{margin:0}
