/* Pulse by S2C — site stylesheet
   Inherits the design system established in Brand Guidelines, Site Restyle and the Selected Mark deck. */

:root {
  --navy: #0B1A3D;
  --navy-deep: #060f25;
  --navy-mid: #14213e;
  --navy-soft: #182a55;
  --cyan: #00C8E0;
  --cyan-soft: #7BE0EE;
  --orange: #FF6B1A;
  --orange-soft: #FFAA77;
  --paper: #f5f3ee;
  --ink: #0a0a0a;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --muted: #8b91a3;
  --muted-2: #5a6178;
  --text: #e7e9ef;
  --text-bright: #ffffff;
  --bg: #0a0d18;
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background:
    radial-gradient(70% 60% at 80% -10%, rgba(255,107,26,0.06), transparent 60%),
    radial-gradient(80% 60% at -10% 20%, rgba(0,200,224,0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ===== Layout ===== */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 64px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; max-width: 880px; }
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.22em; color: var(--cyan);
  text-transform: uppercase; font-weight: 500;
}
.kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.24em; color: var(--muted);
  text-transform: uppercase;
}
.h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.02em; font-weight: 700; margin: 0; text-wrap: balance; }
.h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.015em; font-weight: 700; margin: 0; text-wrap: balance; }
.h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; margin: 0; }
.h4 { font-size: 17px; line-height: 1.3; letter-spacing: -0.005em; font-weight: 700; margin: 0; }
.lead { font-size: 19px; line-height: 1.55; color: #cdd3df; max-width: 64ch; text-wrap: pretty; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { color: var(--text-bright); font-weight: 600; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,13,24,0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 32px;
  max-width: var(--max); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand .mark { width: 32px; height: 32px; }
.brand .wm { font-weight: 800; letter-spacing: -0.01em; font-size: 17px; color: var(--text-bright); }
.brand .wm .by { color: var(--cyan); font-weight: 500; font-size: 10.5px; margin-left: 5px; letter-spacing: 0.06em; }
.nav-list { display: flex; gap: 26px; list-style: none; padding: 0; margin: 0; font-size: 13.5px; color: #cdd3df; align-items: center; }
.nav-list a { transition: color .15s; padding: 4px 0; position: relative; }
.nav-list a:hover { color: var(--text-bright); }
.nav-list .active { color: var(--cyan); }
.nav-list .has-sub { position: relative; }
.nav-list .has-sub > a::after { content: '▾'; margin-left: 4px; font-size: 10px; opacity: 0.6; }
.nav-list .submenu {
  position: absolute; top: 100%; left: -16px; min-width: 240px;
  background: var(--navy-deep); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 10px; margin-top: 8px; opacity: 0; pointer-events: none;
  transform: translateY(-6px); transition: opacity .15s, transform .15s;
  list-style: none;
}
.nav-list .has-sub:hover .submenu, .nav-list .has-sub:focus-within .submenu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-list .submenu li { padding: 0; }
.nav-list .submenu a { display: block; padding: 8px 12px; border-radius: 6px; }
.nav-list .submenu a:hover { background: rgba(255,255,255,0.04); color: var(--text-bright); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.18em; color: var(--muted);
  display: flex; gap: 8px; align-items: center;
}
.lang-switch .on { color: var(--text-bright); }
.lang-switch span.sep { opacity: 0.4; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.005em;
  border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #ff7a30; }
.btn-secondary { background: transparent; color: var(--text-bright); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-ghost { background: transparent; color: var(--cyan); padding: 12px 0; }
.btn-ghost::after { content: '→'; transition: transform .15s; }
.btn-ghost:hover::after { transform: translateX(3px); }
.btn-sm { padding: 9px 16px; font-size: 12.5px; }

/* ===== Hero ===== */
.hero {
  padding: 96px 0 80px;
  position: relative; overflow: hidden;
}
.hero .grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center;
}
.hero h1 { font-size: clamp(42px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 700; margin: 18px 0 24px; text-wrap: balance; }
.hero .sub { font-size: 19px; color: #cdd3df; max-width: 56ch; }
.hero .tagline {
  display: inline-block; margin-top: 28px; padding: 12px 22px;
  border: 1px solid rgba(0,200,224,0.4); border-radius: 999px;
  background: rgba(0,200,224,0.06); color: var(--cyan);
  font-weight: 600; font-size: 14px; letter-spacing: 0.01em;
}
.hero .ctas { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero .meta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.hero .meta span + span::before { content: '·'; margin-right: 24px; opacity: 0.5; }
.hero-visual {
  position: relative; aspect-ratio: 1/1; max-width: 540px; margin-left: auto;
}
.hero-visual svg { width: 100%; height: 100%; }

/* ===== KPI strip ===== */
.kpi-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.kpi-strip dt { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; order: 2; }
.kpi-strip dd { margin: 0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 28px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-bright); order: 1; }
.kpi-strip > div { background: var(--navy-deep); padding: 24px 26px; display: flex; flex-direction: column; }
.kpi-strip .ok { color: var(--cyan); }

/* ===== Cards ===== */
.card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  transition: border-color .2s, transform .2s, background .2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card .num { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.22em; color: var(--cyan); text-transform: uppercase; margin-bottom: 14px; }
.card h3 { margin-bottom: 12px; }
.card p { color: #b8bdca; font-size: 15px; }
.card a.more { display: inline-flex; gap: 6px; color: var(--cyan); font-size: 13px; font-weight: 600; margin-top: 10px; }
.card a.more::after { content: '→'; transition: transform .15s; }
.card a.more:hover::after { transform: translateX(3px); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ===== Diagnostic matrix ===== */
.matrix {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.matrix .col-head {
  padding: 20px 24px; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.matrix .col-head.left { background: rgba(255,107,26,0.06); color: var(--orange-soft); }
.matrix .col-head.right { background: rgba(0,200,224,0.06); color: var(--cyan); border-left: 1px solid var(--line); }
.matrix .row { display: contents; }
.matrix .cell { padding: 22px 24px; font-size: 15.5px; border-bottom: 1px solid var(--line); }
.matrix .cell.left { color: #aab0bd; }
.matrix .cell.right { background: rgba(255,255,255,0.015); color: #e7e9ef; border-left: 1px solid var(--line); }
.matrix .row:last-child .cell { border-bottom: none; }

/* ===== Tables ===== */
table.spec {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  font-size: 14.5px;
}
table.spec th, table.spec td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { background: rgba(255,255,255,0.03); font-weight: 600; color: var(--text-bright); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
table.spec tr:last-child td { border-bottom: none; }
table.spec td:first-child, table.spec th:first-child { width: 14%; white-space: nowrap; font-family: 'JetBrains Mono', monospace; }
table.spec .pri { color: var(--cyan); font-weight: 700; }

/* ===== Lifecycle timeline ===== */
.lifecycle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; margin-top: 24px; }
.lifecycle .stage { padding: 28px 22px 28px 28px; border-left: 1px solid var(--line); position: relative; }
.lifecycle .stage:first-child { border-left: none; padding-left: 0; }
.lifecycle .stage .dot { position: absolute; top: 0; left: -7px; width: 13px; height: 13px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(0,200,224,0.15); }
.lifecycle .stage:first-child .dot { left: -6px; }
.lifecycle .stage .t { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; color: var(--cyan); text-transform: uppercase; margin-bottom: 6px; }
.lifecycle .stage h4 { margin-bottom: 10px; }
.lifecycle .stage p { font-size: 13.5px; color: #aab0bd; line-height: 1.5; }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; font-size: 19px; font-weight: 600; color: var(--text-bright); letter-spacing: -0.005em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: 'JetBrains Mono', monospace; color: var(--cyan); font-size: 22px; font-weight: 400; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: '–'; }
.faq details > p { margin-top: 16px; color: #cdd3df; max-width: 70ch; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--navy-deep);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; }
.site-footer h5 { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; color: var(--cyan); text-transform: uppercase; margin: 0 0 14px; font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: #aab0bd; }
.site-footer ul a:hover { color: var(--text-bright); }
.site-footer .brand-col p { font-size: 13.5px; color: #aab0bd; max-width: 28ch; margin-top: 10px; }
.site-footer .brand-col .addr { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); margin-top: 16px; line-height: 1.7; letter-spacing: 0.04em; }
.site-footer .bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: var(--muted-2); text-transform: uppercase;
}
.site-footer .certs { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer .certs span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }

/* ===== Breadcrumbs ===== */
.crumbs { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; padding: 24px 0 0; }
.crumbs a:hover { color: var(--cyan); }
.crumbs .sep { margin: 0 10px; opacity: 0.5; }

/* ===== Misc utilities ===== */
.tag { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tag.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(0,200,224,0.2); }
.tag.new { color: var(--orange-soft); border-color: rgba(255,107,26,0.4); background: rgba(255,107,26,0.06); }
.divider { height: 1px; background: var(--line); margin: 64px 0; }
.note { font-size: 13px; color: var(--muted); font-style: italic; }
.callout {
  border-left: 3px solid var(--cyan); padding: 18px 22px;
  background: rgba(0,200,224,0.04); border-radius: 0 12px 12px 0;
  margin: 24px 0; font-size: 16px;
}
blockquote.pull {
  border-left: 3px solid var(--orange);
  padding: 8px 0 8px 24px; margin: 32px 0;
  font-size: 22px; line-height: 1.4; color: var(--text-bright);
  font-weight: 500; letter-spacing: -0.01em;
  font-family: 'Inter', sans-serif;
}
blockquote.pull cite { display: block; margin-top: 14px; font-size: 13px; color: var(--muted); font-style: normal; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; }

/* ===== CTA banner ===== */
.cta-banner {
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(255,107,26,0.18), transparent 60%),
    radial-gradient(70% 80% at 0% 100%, rgba(0,200,224,0.12), transparent 60%),
    var(--navy);
  border: 1px solid var(--line-strong); border-radius: 18px;
  padding: 56px 56px;
  display: grid; grid-template-columns: 1.2fr auto; gap: 32px; align-items: center;
}
.cta-banner h2 { margin-bottom: 8px; }
.cta-banner p { color: #cdd3df; max-width: 56ch; margin: 0; }
.cta-banner .ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Mobile nav (hidden on desktop) ===== */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 8px;
  cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text-bright); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-drawer { display: none; padding: 20px 24px 32px; border-top: 1px solid var(--line); background: var(--navy-deep); max-height: calc(100vh - 64px); overflow-y: auto; }
.mobile-drawer[hidden] { display: none !important; }
.mobile-nav-list { list-style: none; padding: 0; margin: 0 0 20px; }
.mobile-nav-list > li { border-bottom: 1px solid var(--line); }
.mobile-nav-list > li > a { display: block; padding: 14px 0; font-size: 16px; font-weight: 600; color: var(--text-bright); }
.mobile-nav-list > li > a.active { color: var(--cyan); }
.mobile-submenu { list-style: none; padding: 0 0 12px 16px; margin: 0; }
.mobile-submenu li a { display: block; padding: 8px 0; font-size: 14px; color: #cdd3df; }
.mobile-drawer-tools { display: flex; align-items: center; gap: 16px; padding-top: 8px; }
.mobile-drawer-tools .lang-switch { font-size: 13px; }
body.nav-open { overflow: hidden; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero .grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 360px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .lifecycle { grid-template-columns: 1fr 1fr; }
  .lifecycle .stage { border-left: none; border-top: 1px solid var(--line); padding-top: 28px; padding-left: 28px; }
  .lifecycle .stage .dot { left: 0; top: -7px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .nav-list { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-tools .btn-sm, .header-tools .lang-switch { display: none; }
  .mobile-drawer { display: block; }
  .kpi-strip { grid-template-columns: 1fr 1fr; }
  .matrix { grid-template-columns: 1fr; }
  .matrix .col-head.right, .matrix .cell.right { border-left: none; border-top: 1px solid var(--line); }
  .cta-banner { grid-template-columns: 1fr; padding: 36px 28px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .wrap, .wrap-narrow { padding: 0 20px; }
  .site-header .row { padding: 12px 20px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: 1fr; }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: rgba(10,13,24,0.97);
  border-top: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  box-shadow: 0 -12px 40px rgba(0,0,0,0.4);
}
.cookie-banner-inner {
  max-width: var(--max); margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 13.5px; color: var(--text); max-width: 78ch; line-height: 1.55; }
.cookie-banner a { color: var(--cyan); }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
@media (max-width: 640px) {
  .cookie-banner-inner { padding: 16px 20px; gap: 14px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; text-align: center; }
}
