/* ==========================================================================
   GenZ Cyber Group — Site Stylesheet
   ========================================================================== */

:root {
  --bg: #090d16;
  --bg-alt: #0d1220;
  --surface: #121a2b;
  --surface-alt: #182339;
  --border: #232f48;
  --text: #e9edf6;
  --text-dim: #9aa7c2;
  --text-faint: #6b7690;
  --accent: #2dd4ee;
  --accent-2: #7c7ff0;
  --accent-soft: rgba(45, 212, 238, 0.1);
  --active: #34d399;
  --active-soft: rgba(52, 211, 153, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1160px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

@media (max-width: 720px) {
  section { padding: 64px 0; }
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--text-dim); }

.lede {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08101c;
  box-shadow: 0 8px 24px -8px rgba(45, 212, 238, 0.5);
}

.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(45, 212, 238, 0.65); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand svg { flex-shrink: 0; }

.brand .brand-sub {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s ease;
  position: relative;
}

.nav-links a:hover, .nav-links a.active,
.dropdown-trigger:hover, .dropdown-trigger.active { color: var(--text); }

.nav-links a.active::after,
.dropdown-trigger.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -20px;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.nav-cta { display: flex; align-items: center; gap: 14px; }

/* ---------- Services dropdown ---------- */

.has-dropdown {
  position: relative;
  /* extend the hoverable area down to bridge the gap to the menu */
  padding-bottom: 18px;
  margin-bottom: -18px;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.dropdown-trigger .chevron {
  transition: transform 0.2s ease;
}

.has-dropdown:hover .dropdown-trigger .chevron,
.has-dropdown:focus-within .dropdown-trigger .chevron,
.dropdown-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 200;
}

@media (min-width: 861px) {
  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu,
  .dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(2px);
  }
}

.dropdown-menu li { width: auto; }

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: normal;
  line-height: 1.35;
}

.dropdown-menu a:hover {
  background: var(--surface-alt);
  color: var(--accent);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 6px;
}

.dropdown-viewall {
  color: var(--accent) !important;
  font-weight: 600;
}

@media (max-width: 860px) {
  .has-dropdown { padding-bottom: 0; margin-bottom: 0; }

  .dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
  }

  .dropdown-menu {
    position: static;
    transform: none;
    width: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    background: var(--surface);
    transition: max-height 0.25s ease;
  }

  .dropdown-menu.open {
    max-height: 700px;
    padding: 4px 0 10px;
  }

  .dropdown-menu a { padding: 10px 24px 10px 40px; }
  .dropdown-divider { margin: 6px 24px; }
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: 0.2s ease;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { width: 100%; padding: 14px 24px; border-top: 1px solid var(--border); }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: var(--surface); }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; order: 2; }
  .nav-cta { order: 3; }
  .brand { order: 1; }
  .nav-cta .btn-primary { padding: 11px 16px; font-size: 0.85rem; }
}

@media (max-width: 520px) {
  .brand { font-size: 0.95rem; gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
  .brand .brand-sub { display: none; }
  .nav { padding: 14px 16px; }
  .nav-cta .btn-primary { padding: 10px 14px; font-size: 0.8rem; }
}

@media (max-width: 380px) {
  .nav-cta .btn-primary span { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(45, 212, 238, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 0%, rgba(124, 127, 240, 0.14), transparent 60%);
}

.hero-inner { max-width: 760px; }

.hero .lede { margin-bottom: 36px; font-size: 1.2rem; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  background: var(--active-soft);
  border: 1px solid rgba(52, 211, 153, 0.35);
  font-size: 0.85rem;
  color: #a7f3d4;
  font-weight: 500;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--active);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- Sections generic ---------- */

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-alt { background: var(--bg-alt); }

/* ---------- Cards / Grid ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover { border-color: rgba(45, 212, 238, 0.35); transform: translateY(-2px); }

.card[id] {
  scroll-margin-top: 110px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.card[id]:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 238, 0.16);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

.card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.card ul li {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Framework chips ---------- */

.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }

.chip {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ---------- Process steps ---------- */

.steps { counter-reset: step; }

.step {
  display: flex;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.step:last-child { border-bottom: 1px solid var(--border); }

.step-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  width: 44px;
}

.step h3 { margin-bottom: 6px; }
.step p { margin-bottom: 0; }

/* ---------- Two-column feature ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
}

.feature-list { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }

.feature-item { display: flex; gap: 16px; }

.feature-item .mark {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item h4 { margin: 0 0 4px; font-size: 1rem; font-family: "Inter", sans-serif; font-weight: 600; }
.feature-item p { margin: 0; font-size: 0.92rem; }

/* ---------- Status / registry panel ---------- */

.registry-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.registry-panel .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--active-soft);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d4;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.registry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  margin-top: 8px;
}

@media (max-width: 560px) {
  .registry-grid { grid-template-columns: 1fr; }
}

.registry-item dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.registry-item dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.registry-source {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-faint);
}

.registry-source a { color: var(--accent); }

/* ---------- CTA band ---------- */

.cta-band {
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(45, 212, 238, 0.12), rgba(124, 127, 240, 0.12));
  border: 1px solid var(--border);
  padding: 64px 48px;
  text-align: center;
}

.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

@media (max-width: 620px) {
  .cta-band { padding: 44px 24px; }
}

/* ---------- Contact ---------- */

.contact-hero { text-align: center; padding-top: 130px; }

.contact-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card .card-icon { margin: 0 auto 22px; width: 56px; height: 56px; border-radius: 14px; }

.contact-email {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin: 6px 0 26px;
  word-break: break-word;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 22px;
}

/* ---------- Page hero (sub-pages) ---------- */

.page-hero { padding: 150px 0 60px; text-align: center; }
.page-hero .section-head { margin: 0 auto; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; max-width: 280px; }

.footer-col h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { font-size: 0.9rem; color: var(--text-dim); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--active); }

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
