/* ============================================================
   Safedge marketing site
   Accent: #534AB7 (indigo). Dark blocks use deep indigo, never
   black. White paper background, cool grey-violet alt sections.
   Radius: 5px everywhere.
   ============================================================ */

:root {
  --accent: #534AB7;
  --accent-dark: #423a99;
  --deep: #292356;          /* dark bands: derived from accent, not black */
  --deep-edge: #38307a;

  --paper: #ffffff;
  --mist: #f5f5f9;          /* cool grey-violet, alt sections */
  --card: #ffffff;

  --ink: #221e3d;
  --muted: #5c5874;
  --faint: #8b87a3;
  --line: #e6e4f0;
  --line-strong: #d4d1e6;

  --open: #c2410c;          /* amber-orange */
  --review: #1d4ed8;        /* blue */
  --closed: #15803d;        /* green */

  --r: 5px;
  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r);
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-title { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
.section-title--sm { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.eyebrow--light { color: #b9b3ec; }

.measure { max-width: 56ch; }
p + .measure, .measure + .measure { margin-top: 0.9rem; }

.textlink {
  font-weight: 600;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 1px;
}
.textlink:hover { text-decoration: none; color: var(--accent); }
.textlink--light { color: #fff; border-bottom-color: #b9b3ec; }
.textlink--light:hover { color: #b9b3ec; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-dark); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--paper);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-dark); }

.btn--white {
  background: #fff;
  color: var(--deep);
}
.btn--white:hover { background: #eceafa; }

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.btn--outline-light:hover { border-color: #fff; }

.btn--lg { padding: 13px 26px; font-size: 1rem; }

/* ---------- topbar ---------- */

.topbar {
  background: var(--deep);
  color: #cdc9ee;
  font-size: 0.8rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: #fff; font-weight: 500; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.is-stuck { box-shadow: 0 4px 18px rgba(34, 30, 61, 0.07); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; }
.brand__name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand__name b { color: var(--accent); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav__cta { color: #fff !important; }
.nav__cta:hover { color: #fff !important; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 84px 0 92px;
  background:
    radial-gradient(640px 420px at 78% 10%, rgba(83, 74, 183, 0.08), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 44px 44px, 44px 44px, auto;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  /* fade the blueprint grid toward the bottom */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--paper) 96%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero__sub {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 50ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.8rem;
}

.hero__points {
  list-style: none;
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.hero__points li {
  font-size: 0.88rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero__points li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
  flex: none;
}

/* hero panel: faux incident log */

.hero__panel {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  box-shadow: 0 18px 44px rgba(41, 35, 86, 0.12);
  overflow: hidden;
}

.hero__panel-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--deep);
  color: #fff;
}
.panel-title { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
.panel-live {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.16);
  padding: 3px 9px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.panel-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee7a0;
}

/* incident location map (real street map via Leaflet) */
.hero__map {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #e4e6f4;
}
.hero__map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero__map-canvas .leaflet-control-attribution {
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.78);
}

.hero__map-label {
  position: absolute;
  left: 50%;
  top: 16%;
  z-index: 600;
  transform: translateX(-50%);
  background: #fff;
  border-radius: var(--r);
  box-shadow: 0 8px 22px -8px rgba(41, 35, 86, 0.4);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
.hero__map-label small {
  display: block;
  font-weight: 500;
  color: var(--faint);
  font-size: 0.68rem;
}

.hero__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 600;
  transform: translate(-50%, -100%);
  pointer-events: none;
  animation: heroPinDrop 0.7s cubic-bezier(0.3, 1.4, 0.5, 1) 0.25s both;
}
.hero__pin-head {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--open);
  box-shadow: 0 8px 18px -4px rgba(194, 65, 12, 0.55);
}
.hero__pin-pulse {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 40px;
  height: 14px;
  border-radius: 50%;
  background: rgba(194, 65, 12, 0.22);
  transform: translateX(-50%);
  animation: heroPinPulse 1.8s ease-out 0.9s infinite;
}

@keyframes heroPinDrop {
  0% { opacity: 0; transform: translate(-50%, -160%); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translate(-50%, -100%); }
}
@keyframes heroPinPulse {
  0% { transform: translateX(-50%) scale(0.4); opacity: 0.6; }
  100% { transform: translateX(-50%) scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__pin { animation: none; }
  .hero__pin-pulse { animation: none; }
}

.tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  padding: 4px 9px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 1px;
}
.tag--open { background: var(--open); }
.tag--review { background: var(--review); }
.tag--closed { background: var(--closed); }

.hero__panel-foot {
  display: flex;
  justify-content: space-between;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  background: var(--mist);
  font-size: 0.76rem;
  color: var(--muted);
}

/* ---------- sectors strip ---------- */

.sectors {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.sectors .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.sectors__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--faint);
  flex: none;
}
.sectors__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}
.sectors__list li {
  font-family: var(--font-head);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- sections ---------- */

.section { padding: 88px 0; }
.section--mist { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 52ch; margin-bottom: 2.6rem; }
.section-head .measure { margin-top: 0.8rem; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.split--reverse > .split__media { order: -1; }

/* ---------- video placeholders ---------- */

.video-frame {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--deep);
  max-width: 880px;
  margin: 0 auto;
  box-shadow: 0 16px 40px rgba(41, 35, 86, 0.14);
}
.video-frame--slim { max-width: 720px; margin-top: 3.2rem; }

.video-frame__inner {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(420px 260px at 50% 42%, rgba(83, 74, 183, 0.55), transparent 72%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
}

.video-frame__play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
.video-frame__play svg { width: 28px; height: 28px; margin-left: 3px; }

.video-frame__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}
.video-frame__note {
  font-size: 0.86rem;
  color: #b9b3ec;
  max-width: 42ch;
}

.video-frame__bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  background: var(--deep-edge);
  color: #cdc9ee;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}
.video-frame__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--open);
}

/* the real embed, once a video exists */
.video-embed {
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto;
}
.video-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- problem ---------- */

.note-card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 28px;
  display: grid;
  gap: 14px;
}
.strike {
  font-size: 0.94rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.strike::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 2px;
  background: var(--open);
}
.strike b { color: var(--ink); font-weight: 600; }

/* ---------- capabilities ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.cap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cap:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(41, 35, 86, 0.08);
}
.cap__num {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 3px 8px;
  margin-bottom: 1.1rem;
}
.cap h3 { font-size: 1.12rem; margin-bottom: 0.55rem; }
.cap p { font-size: 0.94rem; color: var(--muted); }

/* ---------- bands (deep indigo, never black) ---------- */

.band {
  background: var(--deep);
  color: #fff;
}
.band--feature { padding: 92px 0; }
.band--feature .section-title { color: #fff; }
.band--feature .measure { color: #cdc9ee; }

.quote-card {
  background: var(--deep-edge);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r);
  padding: 32px;
}
.quote-lead {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.9rem;
  color: #fff;
}
.quote-card p:not(.quote-lead) { color: #cdc9ee; font-size: 0.96rem; }

.band--cta { padding: 72px 0; }
.band__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.band__cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.5rem; }
.band__cta p { color: #cdc9ee; max-width: 46ch; }
.band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

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

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.step {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
}
.step__num {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}
.step h3 { font-size: 1.02rem; margin-bottom: 0.45rem; }
.step p { font-size: 0.9rem; color: var(--muted); }

/* ---------- origin ---------- */

.origin {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 48px;
}
.origin__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
}
.origin blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  display: grid;
  gap: 0.8rem;
  font-size: 1.02rem;
}
.origin__by {
  margin-top: 1.3rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- contact ---------- */

.contact__aside h3 {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}
.contact__aside .measure { color: var(--muted); }
.contact__aside dl {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px 18px;
  font-size: 0.92rem;
}
.contact__aside dt {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--faint);
  padding-top: 3px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px;
  box-shadow: 0 12px 32px rgba(41, 35, 86, 0.07);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r);
  padding: 10px 12px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(83, 74, 183, 0.15);
}
.form-note {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--faint);
  text-align: center;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--mist);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr));
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 34ch;
}

.footer-col h4 {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col li { font-size: 0.9rem; color: var(--muted); }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--accent-dark); }

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 0.8rem;
  color: var(--faint);
}

/* ---------- reveal animation ---------- */

.will-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.will-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse > .split__media { order: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .origin { padding: 34px; }
  .origin__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a:not(.nav__cta) { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .cap-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar__meta { display: none; }
  .row { grid-template-columns: 60px 1fr auto; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .band__cta { flex-direction: column; align-items: flex-start; }
}

/* ---------- value + pilot ---------- */

.cap__kpi {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem !important;
  font-weight: 500;
  color: var(--ink) !important;
}
.value__note {
  max-width: 72ch;
  margin-top: 1.8rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .steps--3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .sectors__label { flex: 1 1 100%; min-width: 0; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
