/* Brand — fracture motif, octagon mark, glows */

.fracture-line {
  stroke: var(--red);
  stroke-width: 1.5;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(230,57,70,0.5));
}

.fracture-line-faint {
  stroke: var(--red-deep);
  stroke-width: 1;
  fill: none;
  opacity: 0.5;
}

@keyframes fracture-trace {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}

@keyframes pulse-red {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(230,57,70,0.4)); }
  50%      { filter: drop-shadow(0 0 14px rgba(230,57,70,0.85)); }
}

.fracture-anim {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: fracture-trace 2.5s ease-out forwards, pulse-red 8s ease-in-out infinite 2.6s;
}

/* Page-level red progress bar */
.scroll-progress {
  position: fixed;
  top: 64px; left: 0;
  width: 0%;
  height: 1px;
  background: var(--red);
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(230,57,70,0.6);
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  padding: 16px 0;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}
.nav.scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; font-size: 18px; }
.nav-logo .mark { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color 160ms; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
@media (max-width: 980px) {
  .nav-links { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: 160px 0 60px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at 70% 40%, var(--indigo-glow) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 70vh;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.hero h1 .red { color: var(--red); }
.hero .subhead { color: var(--text-soft); max-width: 56ch; margin-top: 22px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; }

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: center; }

.trust-strip {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.trust-strip .cert { color: var(--muted); transition: color 200ms; }
.trust-strip .cert.active { color: var(--text); }
.trust-strip .sep { color: var(--muted-2); }

/* Hero canvas */
.hero-canvas-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
}
.hero-canvas-wrap canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* Section header */
.sec-head { max-width: 64ch; margin-bottom: 56px; }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head p { margin-top: 16px; color: var(--text-soft); font-size: 17px; }
