/* SentryCam public site — shared look & feel */
:root {
  --stage-deep: #053847;
  --stage-mid: #0c7a85;
  --stage-light: #2eb8ad;
  --spark: #db387c;
  --coral: #f26147;
  --paper: #f7fafb;
  --ink: #141f47;
  --paper-muted: rgba(247, 250, 251, 0.72);
  --ink-muted: #4a5c68;
  --line: rgba(12, 122, 133, 0.14);
  --card: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Figtree", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--stage-mid); }
a:hover { color: var(--stage-deep); }

.display {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: rgba(12, 122, 133, 0.08);
  padding: 0.12em 0.4em;
  border-radius: 5px;
  color: var(--stage-deep);
}

/* —— Top nav (all pages) —— */
.site-top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: var(--paper);
  background:
    radial-gradient(ellipse 70% 120% at 90% 0%, rgba(46, 184, 173, 0.28), transparent 55%),
    linear-gradient(165deg, var(--stage-mid) 0%, var(--stage-deep) 100%);
}

.site-top a { color: inherit; text-decoration: none; }

.maker-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.maker-lockup img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fff;
  padding: 4px;
}

.maker-lockup span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.92;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  opacity: 0.88;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

/* —— Landing hero —— */
.hero {
  position: relative;
  min-height: calc(100svh - 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas: "copy mark";
  align-items: end;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(ellipse 70% 60% at 85% 35%, rgba(46, 184, 173, 0.38), transparent 58%),
    radial-gradient(ellipse 50% 40% at 10% 85%, rgba(219, 56, 124, 0.16), transparent 55%),
    linear-gradient(165deg, var(--stage-mid) 0%, var(--stage-deep) 55%, #03232c 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black 35%, transparent 95%);
  pointer-events: none;
}

.hero .copy {
  grid-area: copy;
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem 3.5rem;
  max-width: 36rem;
}

.hero .mark {
  grid-area: mark;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 3rem;
}

.hero .mark img {
  width: min(300px, 68vw);
  height: auto;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  background: #fff;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 8vw, 4.6rem);
}

.hero .lede {
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
  color: var(--paper-muted);
  max-width: 32rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: var(--coral);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

.cta.secondary {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.45);
  color: var(--paper) !important;
}

/* —— Content band —— */
.band {
  max-width: 68rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.band h2 {
  margin: 0 0 0.75rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.section-lede {
  margin: 0 0 2rem;
  color: var(--ink-muted);
  max-width: 36rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(5, 56, 71, 0.06);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* —— Interior article pages —— */
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(ellipse 70% 80% at 85% 20%, rgba(46, 184, 173, 0.32), transparent 55%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(219, 56, 124, 0.12), transparent 55%),
    linear-gradient(165deg, var(--stage-mid) 0%, var(--stage-deep) 70%, #03232c 100%);
  padding: 2.5rem 1.5rem 2.75rem;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 0.55rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.05;
}

.page-hero .meta {
  margin: 0;
  color: var(--paper-muted);
  font-size: 1rem;
}

.article {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.article h2 {
  margin: 2.4rem 0 0.75rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.45rem;
  color: var(--stage-deep);
}

.article h3 {
  margin: 1.5rem 0 0.5rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--stage-mid);
}

.article p,
.article li {
  color: var(--ink);
}

.article ul,
.article ol {
  padding-left: 1.2rem;
}

.article ol.steps li,
.article ul li {
  margin-bottom: 0.65rem;
}

.panel {
  margin: 1.25rem 0 1.75rem;
  padding: 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(5, 56, 71, 0.06);
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: center;
  max-width: 68rem;
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--stage-mid);
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "mark";
    min-height: auto;
  }
  .hero .mark { padding-top: 0.25rem; }
  .hero .copy { padding-bottom: 1.5rem; }
  .site-top { padding: 0.9rem 1.15rem; }
}
