/* ─────────────────────────────────────────────────────────────
   Cybergard Design System — Light Mode + Cobalt Blue
   ───────────────────────────────────────────────────────────── */

:root {
  /* Blue scale */
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;   /* PRIMARY */
  --blue-700: #1d4ed8;
  --blue-900: #1e3a8a;

  /* Neutral scale */
  --ink:        #0f172a;
  --body:       #334155;
  --muted:      #64748b;
  --border:     #e2e8f0;
  --border-strong: #cbd5e1;
  --surface:    #f8fafc;
  --surface-2:  #f1f5f9;
  --white:      #ffffff;

  /* Semantic */
  --green-600:  #16a34a;
  --orange-600: #ea580c;
  --red-600:    #dc2626;
  --amber-500:  #f59e0b;

  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radius + shadows */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 36px rgba(15, 23, 42, 0.10);

  /* Layout */
  --container: 1200px;
  --nav-height: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }

/* ───── NAVIGATION ───────────────────────────────────────────── */

.nav-wrap {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav.main-nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo-text .accent { color: var(--blue-600); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-links > li > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s;
}
.nav-links > li > a:hover,
.nav-links > li > button:hover { color: var(--ink); background: var(--surface); }
.nav-links > li.disabled > a,
.nav-links > li.disabled > button {
  color: var(--border-strong);
  cursor: not-allowed;
}
.nav-links > li.disabled > a:hover,
.nav-links > li.disabled > button:hover { background: none; color: var(--border-strong); }
.nav-links .caret {
  width: 10px; height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 2px;
  opacity: 0.6;
}

/* Dropdown panels */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  min-width: 320px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
  z-index: 200;
}
.nav-links > li:hover .nav-dropdown,
.nav-links > li:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(2px);
}
.nav-dropdown.wide { min-width: 560px; padding: 16px; }

.dd-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--body);
  transition: background 0.12s;
}
.dd-item:hover { background: var(--surface); color: var(--ink); }
.dd-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.dd-icon svg { width: 18px; height: 18px; }
.dd-text { display: flex; flex-direction: column; gap: 2px; }
.dd-title { font-weight: 600; font-size: 14px; color: var(--ink); }
.dd-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }

/* "Coming Soon" item — disabled, no hover, muted */
.dd-item.dd-soon { cursor: not-allowed; opacity: 0.55; }
.dd-item.dd-soon:hover { background: transparent; }
.dd-item.dd-soon .dd-icon { background: var(--surface-2); color: var(--muted); }
.dd-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  border: 1px solid var(--border);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-signin {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  padding: 8px 14px;
  border-radius: var(--r-sm);
}
.nav-signin:hover { color: var(--ink); background: var(--surface); }

/* ───── BUTTONS ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.15s;
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--blue-600); color: var(--white); border-color: var(--blue-600); }
.btn-primary:hover { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface); border-color: var(--border-strong); color: var(--ink); }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ───── HERO ─────────────────────────────────────────────────── */

.hero {
  padding: 96px 32px 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, var(--blue-50) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
    var(--white);
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  margin-bottom: 24px;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-600); }
.hero-title {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-title .word { display: inline-block; }
.hero-title .word + .word { margin-left: 0; }
.hero-title .accent { color: var(--blue-600); }
.hero-subhead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual svg { width: 100%; height: auto; max-width: 420px; }

/* ───── SECTIONS ─────────────────────────────────────────────── */

section { padding: 96px 32px; }
.section-inner { max-width: var(--container); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 3.5vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-title .accent { color: var(--blue-600); }
.section-desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
}
.section-tint { background: var(--surface); }

/* ───── NARRATIVE FLOW ──────────────────────────────────────── */

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.flow-row-2 { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto 48px; }
.flow-row-1 { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
.flow-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  transition: all 0.2s;
}
.flow-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); }
.flow-step {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.flow-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.flow-desc { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ───── PLATFORM CARDS ──────────────────────────────────────── */

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
/* 4-column variant for reduced platform set */
.modules-grid.modules-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.modules-grid.modules-4 .module-card { padding: 22px 20px; }
.modules-grid.modules-4 .module-name { font-size: 15px; line-height: 1.3; }
.modules-grid.modules-4 .module-desc { font-size: 13px; }
.module-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s;
}
.module-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.module-icon {
  width: 44px; height: 44px;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
}
.module-icon svg { width: 22px; height: 22px; }
.module-name { font-size: 17px; font-weight: 600; color: var(--ink); }
.module-tag {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: -8px;
}
.module-desc { font-size: 14px; color: var(--muted); line-height: 1.55; flex: 1; }
.module-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* ───── INTEGRATIONS STRIP ──────────────────────────────────── */

.integrations {
  padding: 64px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.integrations-title {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.integrations-row {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 32px;
  flex-wrap: wrap;
}
.integration {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.integration:hover { opacity: 1; }
.integration svg { width: 24px; height: 24px; }

/* ───── COMPLIANCE STRIP ────────────────────────────────────── */

.frameworks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.framework {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.2s;
}
.framework:hover { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }
.framework-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.framework-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.framework-status.live { color: var(--green-600); }
.framework-status.soon { color: var(--orange-600); }
.framework-status.roadmap { color: var(--muted); }

/* ───── SOLUTIONS TEASER ────────────────────────────────────── */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.solution-card {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 50%);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  text-decoration: none;
}
.solution-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); }
.solution-title { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.solution-desc { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ───── CTA SECTION ─────────────────────────────────────────── */

.cta-band {
  padding: 96px 32px;
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 100%);
  color: var(--white);
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.cta-band p { font-size: 17px; opacity: 0.9; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: var(--white); color: var(--blue-700); border-color: var(--white); }
.cta-band .btn-primary:hover { background: var(--blue-50); }
.cta-band .btn-secondary { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); color: var(--white); }

/* ───── FOOTER ──────────────────────────────────────────────── */

footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 80px 32px 32px;
}
.footer-inner { max-width: var(--container); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-text .accent { color: var(--blue-500); }
.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  max-width: 260px;
  line-height: 1.7;
}
.newsletter {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  max-width: 320px;
}
.newsletter input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--white);
  outline: none;
  font-family: var(--font-sans);
}
.newsletter input::placeholder { color: #64748b; }
.newsletter button {
  background: var(--blue-600);
  color: var(--white);
  border: none;
  border-radius: var(--r-sm);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
}
.newsletter button:hover { background: var(--blue-700); }

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  color: #94a3b8;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col li a:hover { color: var(--white); }
.footer-col li.disabled a { color: #475569; cursor: not-allowed; }
.footer-col li.disabled a:hover { color: #475569; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #64748b;
}
.footer-bottom a { color: #94a3b8; margin-left: 16px; }

/* ───── COOKIE BANNER ───────────────────────────────────────── */

.cookie {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 480px;
  background: var(--ink);
  color: #cbd5e1;
  padding: 16px 20px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  display: none;
  align-items: center;
  gap: 16px;
}
.cookie.visible { display: flex; }
.cookie p { font-size: 13px; flex: 1; line-height: 1.5; }
.cookie a { color: var(--blue-500); }
.cookie button {
  background: var(--blue-600);
  color: var(--white);
  border: none;
  border-radius: var(--r-sm);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  white-space: nowrap;
}
.cookie button.reject {
  background: transparent;
  color: #94a3b8;
}

/* ───── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 960px) {
  nav.main-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 64px 20px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 280px; }
  section { padding: 64px 20px; }
  .flow-grid, .modules-grid, .solutions-grid { grid-template-columns: 1fr; }
  .modules-grid.modules-4 { grid-template-columns: 1fr; }
  .frameworks { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
