/* Defendique concept demo. Design direction: CrowdStrike, Arctic Wolf,
   Corsearch, Chainguard. Dark navy hero, clean light sections, one accent. */
:root {
  --navy: #0a1b2e;
  --navy-deep: #071224;
  --ink: #0f1e33;
  --muted: #52627a;
  --line: #e2e8f0;
  --bg-light: #f5f7fa;
  --accent: #14b8a6;
  --accent-bright: #2dd4bf;
  --white: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: 54px; font-weight: 750; }
h2 { font-size: 34px; font-weight: 700; margin-bottom: 12px; }
h3 { font-size: 20px; font-weight: 650; margin-bottom: 8px; }
p { margin-bottom: 12px; }
a { color: inherit; }

/* Nav */
.site-nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--navy); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.wordmark { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.site-nav nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav nav a { color: #c3d0e0; text-decoration: none; font-size: 15px; }
.site-nav nav a:hover, .site-nav nav a.active { color: #fff; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  font-size: 15px; font-weight: 650; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0d9488; }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-small { padding: 9px 16px; font-size: 14px; }
.cta-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* Hero */
.hero {
  background: radial-gradient(1100px 500px at 70% -10%, #123a5c 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color: #fff; padding: 96px 0 104px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px;
  font-weight: 700; color: var(--accent-bright); margin-bottom: 18px;
}
.eyebrow.dark { color: var(--accent); }
.hero h1 { max-width: 780px; margin-bottom: 20px; }
.lede { font-size: 19px; color: #c3d0e0; max-width: 640px; }

/* Sections */
.section { padding: 72px 0; }
.section-light { background: var(--bg-light); }
.section-intro { font-size: 18px; color: var(--muted); max-width: 720px; margin-bottom: 36px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 24px;
}
.card p { color: var(--muted); font-size: 15px; }
.product-card ul { list-style: none; margin-top: 14px; }
.product-card li { font-size: 14px; color: var(--muted); padding: 5px 0 5px 20px; position: relative; }
.product-card li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.product-step { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.flow {
  display: flex; align-items: center; gap: 16px; margin-bottom: 36px;
  font-size: 20px; font-weight: 700;
}
.flow .arrow { color: var(--accent); font-size: 24px; }

/* Insights */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { text-decoration: none; display: block; }
.article-card:hover { border-color: var(--accent); }
.article-card .category { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.article-card h3 { margin: 10px 0 8px; }
.article-card .date { font-size: 13px; color: var(--muted); }
.article-body { padding: 64px 0 80px; }
.article-body .lede { color: var(--muted); font-size: 20px; margin: 16px 0 28px; }
.rich-text p { font-size: 17px; margin-bottom: 18px; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--accent); font-weight: 650; text-decoration: none; }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; padding: 72px 0; text-align: left; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: #c3d0e0; font-size: 18px; margin-bottom: 26px; }

/* Contact */
.contact-form { display: grid; gap: 16px; max-width: 560px; }
.contact-form label { font-size: 14px; font-weight: 650; display: grid; gap: 6px; }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 8px; width: 100%;
}
.form-note { margin-top: 18px; padding: 16px; background: var(--bg-light); border-radius: 8px; font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #94a6bb; padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer .wordmark { color: #fff; display: block; margin-bottom: 12px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer a { display: block; color: #94a6bb; text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.built-on { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; }
.built-on img { height: 18px; width: auto; display: block; }
.disclaimer { font-size: 13px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; }

@media (max-width: 820px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .card-grid, .card-grid.three, .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-nav nav { display: none; }
  .hero { padding: 64px 0 72px; }
}

/* Motion: hero entrance, scroll reveal, hover lift, pulsing flow arrows.
   Reveal hiding only applies when JS adds body.anim (motion allowed), so
   content is never hidden without JS. Reduced motion kills it all. */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
body.anim .hero h1 { animation: fadeUp 0.8s ease both; }
body.anim .hero .lede { animation: fadeUp 0.8s ease 0.12s both; }
body.anim .hero .cta-row { animation: fadeUp 0.8s ease 0.24s both; }
body.anim .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
body.anim .reveal.visible { opacity: 1; transform: none; }
.card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15, 30, 51, 0.10); }
.flow .arrow { animation: pulse 2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Hero video */
.hero { position: relative; overflow: hidden; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero .hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 18, 36, 0.72) 0%, rgba(10, 27, 46, 0.82) 100%); z-index: 1; }
.hero .container { position: relative; z-index: 2; }

/* Product console mockups (illustrative UI built from the site's own copy) */
.consoles { display: grid; gap: 20px; margin-top: 40px; }
.console {
  background: #0b1f3a; border: 1px solid #1e3a5c; border-radius: 12px;
  color: #dbe7f3; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px; overflow: hidden; text-align: left;
}
.console-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #1e3a5c; font-weight: 700; font-size: 13px; letter-spacing: 0.04em; }
.console-head .dot { width: 10px; height: 10px; border-radius: 50%; background: #2dd4bf; }
.console-head .dot:nth-child(2) { background: #38bdf8; }
.console-head .dot:nth-child(3) { background: #f59e0b; }
.console-head span.title { margin-left: 8px; color: #fff; }
.console-body { padding: 8px 0; }
.console-row { display: flex; align-items: center; gap: 12px; padding: 9px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.console-row:last-child { border-bottom: none; }
.console-row .label { color: #94a6bb; min-width: 110px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.chip { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: 0.06em; }
.chip.critical { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.chip.high { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.chip.medium { background: rgba(45, 212, 191, 0.16); color: #5eead4; }
.chip.done { background: rgba(45, 212, 191, 0.16); color: #5eead4; }
.console-row .step { color: #dbe7f3; }
.console-note { padding: 12px 16px; color: #94a6bb; font-size: 12px; border-top: 1px solid rgba(255,255,255,0.06); }
