/* ============================================================
   Ghost Smart Homes — Managed
   Shared landing-page design system
   ------------------------------------------------------------
   Pure CSS, no framework. ~6KB minified.
   Variables let each subdomain override the accent if we ever
   want per-line color (default: shared mint).
============================================================ */

:root {
  /* Brand palette — dark default */
  --bg: #07090d;
  --bg-soft: #0d1117;
  --surface: #11161e;
  --surface-2: #161d27;
  --border: #1f2733;
  --border-strong: #2a3544;

  --text: #e7ecf3;
  --text-soft: #aab4c2;
  --text-mute: #6b7785;

  --accent: #5eead4;          /* spectral mint */
  --accent-soft: #134e4a;
  --accent-glow: rgba(94, 234, 212, 0.25);
  --accent-deep: #2dd4bf;

  --warn: #fbbf24;
  --warn-soft: #422a04;

  --danger: #f87171;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  /* Type scale */
  --t-display: clamp(2.5rem, 6vw, 4.25rem);
  --t-h1: clamp(2rem, 4.5vw, 3rem);
  --t-h2: clamp(1.5rem, 3vw, 2rem);
  --t-h3: 1.25rem;
  --t-body: 1.0625rem;
  --t-small: 0.9rem;
  --t-tiny: 0.78rem;

  /* Layout */
  --max: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px var(--accent-soft), 0 8px 40px -8px var(--accent-glow);
}

/* Per-line accent overrides */
[data-line="networking"] { --accent: #7dd3fc; --accent-soft: #0c4a6e; --accent-glow: rgba(125, 211, 252, 0.22); --accent-deep: #38bdf8; }
[data-line="cameras"]    { --accent: #fcd34d; --accent-soft: #422a04; --accent-glow: rgba(252, 211, 77, 0.22);  --accent-deep: #f59e0b; }
[data-line="rentals"]    { --accent: #c4b5fd; --accent-soft: #312e81; --accent-glow: rgba(196, 181, 253, 0.22); --accent-deep: #8b5cf6; }

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
input, button, textarea { font-family: inherit; }

/* ----- Base ----- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Background ambience — subtle radial spectral glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 400px at 80% -10%, var(--accent-glow), transparent 60%),
    radial-gradient(600px 300px at 0% 110%, rgba(125, 211, 252, 0.08), transparent 60%);
  z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }

/* ----- Container & sections ----- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.section--tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }

/* ----- Header ----- */
.header {
  position: sticky;
  top: 0;
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: grid;
  place-items: center;
  color: #051418;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 0 0 1px var(--accent-soft), 0 4px 18px -6px var(--accent-glow);
}
.brand__text small {
  display: block;
  color: var(--text-mute);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}
.nav {
  display: none;
  gap: 28px;
  font-size: var(--t-small);
}
.nav a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color .15s ease;
}
.nav a:hover { color: var(--text); }
@media (min-width: 760px) { .nav { display: inline-flex; } }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--t-small);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #051418;
  box-shadow: 0 0 0 1px var(--accent-soft), 0 8px 28px -10px var(--accent-glow);
}
.btn--primary:hover { box-shadow: var(--shadow-glow); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 14px 22px; font-size: 1rem; }

/* ----- Hero ----- */
.hero { padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: var(--t-tiny);
  color: var(--text-soft);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}
.hero__pill .dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.hero h1 {
  font-size: var(--t-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  font-weight: 700;
  max-width: 18ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-soft);
  max-width: 56ch;
  margin: 0 0 2rem;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 2rem;
  color: var(--text-mute);
  font-size: var(--t-small);
}
.hero__meta b { color: var(--text-soft); font-weight: 500; }

/* ----- Section heading ----- */
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: var(--t-tiny);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.section h2 {
  font-size: var(--t-h2);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  max-width: 24ch;
}
.section .lede {
  color: var(--text-soft);
  max-width: 60ch;
  margin: 0 0 2.5rem;
}

/* ----- Feature grid ----- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}
.card__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: var(--t-h3); letter-spacing: -0.005em; }
.card p { margin: 0; color: var(--text-soft); font-size: var(--t-small); line-height: 1.6; }

/* ----- Steps ----- */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 28px; }
.steps .card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-mono);
  color: var(--accent);
  opacity: 0.7;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ----- Pricing ----- */
.pricing { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column;
}
.tier--featured {
  border-color: var(--accent-soft);
  background:
    linear-gradient(180deg, rgba(94, 234, 212, 0.05), transparent 50%),
    var(--surface);
  box-shadow: var(--shadow-glow);
  position: relative;
}
.tier--featured::before {
  content: "Most popular";
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: #051418;
  font-size: var(--t-tiny);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.tier h3 { margin: 0; font-size: var(--t-h3); }
.tier .price {
  display: flex; align-items: baseline; gap: 6px;
  margin: 14px 0 18px;
  font-feature-settings: "tnum" 1;
}
.tier .price strong { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em; }
.tier .price small { color: var(--text-mute); font-size: 0.9rem; }
.tier ul {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: var(--t-small);
  color: var(--text-soft);
  flex-grow: 1;
}
.tier ul li { padding-left: 22px; position: relative; }
.tier ul li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.tier .tier__foot { color: var(--text-mute); font-size: var(--t-tiny); margin-top: 12px; }

/* ----- Quote / proof ----- */
.proof {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
}
.proof blockquote {
  margin: 0 0 16px;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.005em;
}
.proof cite {
  font-style: normal;
  color: var(--text-mute);
  font-size: var(--t-small);
}

/* ----- FAQ ----- */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: var(--t-small);
  line-height: 1.6;
}

/* ----- CTA band ----- */
.cta-band {
  background:
    radial-gradient(circle at 20% 0%, var(--accent-glow), transparent 40%),
    var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 820px) { .cta-band { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.cta-band p { margin: 0; color: var(--text-soft); }
.cta-band .form { display: flex; flex-direction: column; gap: 12px; }
.cta-band .form .row { display: flex; gap: 8px; }
.cta-band input[type="email"] {
  flex: 1;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  outline: none;
  transition: border-color .15s ease;
  min-width: 0;
}
.cta-band input[type="email"]:focus { border-color: var(--accent); }
.cta-band .meta { color: var(--text-mute); font-size: var(--t-tiny); }
.cta-band .status { color: var(--accent); font-size: var(--t-small); min-height: 1.2em; }

/* ----- Lines table (hub page) ----- */
.lines {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .lines { grid-template-columns: repeat(2, 1fr); } }
.line-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .15s ease;
  position: relative;
  overflow: hidden;
}
.line-card::after {
  content: "→";
  position: absolute;
  top: 24px; right: 24px;
  color: var(--text-mute);
  font-size: 1.25rem;
  transition: transform .2s ease, color .2s ease;
}
.line-card:hover { border-color: var(--accent-soft); transform: translateY(-2px); }
.line-card:hover::after { color: var(--accent); transform: translate(4px, 0); }
.line-card .tag {
  font-family: var(--font-mono);
  font-size: var(--t-tiny);
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.line-card h3 { margin: 0 0 8px; font-size: 1.4rem; letter-spacing: -0.005em; }
.line-card p { margin: 0 0 16px; color: var(--text-soft); font-size: var(--t-small); flex-grow: 1; }
.line-card .from { color: var(--text-mute); font-size: var(--t-small); }
.line-card .from strong { color: var(--text); }

/* ----- Footer ----- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 60px;
  margin-top: 60px;
  color: var(--text-mute);
  font-size: var(--t-small);
}
.footer__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer h4 { color: var(--text-soft); font-size: var(--t-tiny); letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 12px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--text-soft); text-decoration: none; transition: color .15s ease; }
.footer a:hover { color: var(--accent); }
.footer__legal {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: var(--t-tiny);
  color: var(--text-mute);
}

/* ----- Utility ----- */
.muted { color: var(--text-mute); }
.kbd {
  font-family: var(--font-mono);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.85em;
  color: var(--text-soft);
}
.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  html { scroll-behavior: auto; }
}
