/* Zero Day Systems — zerodaysystems.co */

:root {
  --bg: #0a0e14;
  --bg-raised: #10161f;
  --surface: #131b26;
  --line: #1e2937;
  --ink: #e8edf4;
  --muted: #8a97a8;
  --accent: #1fc4e8;
  --accent-deep: #2e7cf6;
  --brand-blue: #2e7cf6;
  --font-display: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav a.cta {
  color: #fff;
  background: var(--brand-blue);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav a.cta:hover { filter: brightness(1.1); }

/* mobile nav */
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.6rem; cursor: pointer; }
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px 22px;
    gap: 16px;
  }
  .nav.open { display: flex; }
}

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(ellipse 55% 45% at 22% 30%, rgba(46, 124, 246, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 45% at 78% 25%, rgba(46, 124, 246, 0.12), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(138, 151, 168, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 151, 168, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 32%, black, transparent 75%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 32%, black, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-logo {
  width: min(540px, 84vw);
  height: auto;
  margin-bottom: 42px;
  filter: drop-shadow(0 0 36px rgba(24, 183, 240, 0.28));
}
.hero-center h1 { max-width: 24ch; }
.hero-center .lede { margin-left: auto; margin-right: auto; }
.hero-center .hero-actions { justify-content: center; }
.hero-center .shiplog { width: 100%; max-width: 760px; text-align: left; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--brand-blue);
  margin-right: 12px;
  vertical-align: middle;
}
.hero h1 {
  font-family: "Michroma", var(--font-display);
  font-size: clamp(1.05rem, 3.2vw, 2.4rem);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: 0.01em;
}
.hero h1 .line { display: block; white-space: nowrap; }
@media (max-width: 420px) {
  .hero h1 .line { white-space: normal; }
}
.hero h1 .grad { color: var(--brand-blue); }
.hero .lede {
  margin-top: 22px;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.15rem;
}
.hero-actions { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 999px;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand-blue); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); }

/* ship log — signature element */
.shiplog {
  margin-top: 58px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow: hidden;
}
.shiplog-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.shiplog-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.shiplog-bar .dot:first-child { background: var(--accent); }
.shiplog ul { list-style: none; padding: 14px 18px 18px; }
.shiplog li {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  padding: 7px 0;
  color: var(--muted);
}
.shiplog .name { color: var(--ink); min-width: 11ch; }
.shiplog .status { margin-left: auto; }
.shiplog .status.live { color: var(--accent); }
.shiplog .status.building { color: var(--accent); }
.shiplog .status.queued { color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 78px 0; border-top: 1px solid var(--line); }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.section .section-intro { color: var(--muted); max-width: 62ch; margin-bottom: 44px; }

/* product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
/* corner brackets echoing the segmented square in the ZDS mark */
.card::before, .card::after, .contact-card::before, .contact-card::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  pointer-events: none;
}
.card::before, .contact-card::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--brand-blue);
  border-left: 2px solid var(--brand-blue);
  border-top-left-radius: 14px;
}
.card::after, .contact-card::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--brand-blue);
  border-right: 2px solid var(--brand-blue);
  border-bottom-right-radius: 14px;
}
.card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}
.card p { color: var(--muted); font-size: 0.98rem; }
.card .card-link { margin-top: auto; font-weight: 600; font-size: 0.92rem; }

/* feature lists */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px 34px; list-style: none; }
.features li { padding-left: 26px; position: relative; color: var(--muted); }
.features li::before {
  content: "";
  position: absolute; left: 0; top: 0.52em;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--brand-blue);
}
.features li strong { color: var(--ink); display: block; margin-bottom: 2px; }

/* ---------- app pages ---------- */
.app-hero { padding: 84px 0 60px; }
.app-hero .app-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand-blue);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  font-weight: 600;
}
.app-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.app-hero .lede { margin-top: 18px; color: var(--muted); font-size: 1.12rem; max-width: 58ch; }

/* ---------- prose pages (privacy etc.) ---------- */
.prose { padding: 72px 0 90px; max-width: 760px; }
.prose h1 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 8px; }
.prose .updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 36px; }
.prose h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--muted); margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose strong { color: var(--ink); }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.contact-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.contact-card .btn { align-self: flex-start; margin-top: auto; font-size: 0.88rem; padding: 10px 22px; }
.contact-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 54px;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: center; }
.site-footer img { height: 26px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.site-footer .legal { width: 100%; font-size: 0.8rem; color: #5c6878; }
