:root {
  --bg: #0a0d0f;
  --bg-elevated: #12171c;
  --surface: #141a22;
  --text: #e8eef5;
  --muted: #8b97a8;
  --accent: #8ee3a9;
  --accent-bright: #9cf27d;
  --accent-live: #63e69d;
  --border: rgba(255, 255, 255, 0.08);
  --glow: rgba(142, 227, 169, 0.18);
  --font-display: "Outfit", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --radius: 16px;
  --notch-w: 168px;
  --notch-h: 32px;
  --notch-expanded-w: min(480px, 88vw);
  --notch-expanded-h: 248px;
  --ease-notch: cubic-bezier(0.32, 0.72, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.marketing {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(142, 227, 169, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(99, 230, 157, 0.06), transparent 50%),
    radial-gradient(ellipse 35% 25% at 15% 40%, rgba(80, 140, 160, 0.08), transparent 45%),
    var(--bg);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.m-nav,
main,
.m-footer {
  position: relative;
  z-index: 1;
}

/* —— Nav —— */
.m-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 13, 15, 0.72);
  border-bottom: 1px solid var(--border);
}

.m-nav-brand img {
  height: 22px;
  width: auto;
}

.m-nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.m-nav-links a:hover {
  color: var(--text);
}

.m-nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(142, 227, 169, 0.12);
  color: var(--accent) !important;
  font-weight: 600;
}

.m-nav-cta:hover {
  background: rgba(142, 227, 169, 0.2);
}

/* —— Hero —— */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.5rem 1.25rem 2rem;
  min-height: calc(100vh - 56px);
  min-height: calc(100svh - 56px);
}

.hero-copy {
  max-width: 40rem;
  margin-bottom: 2.5rem;
  animation: hero-in 0.8s var(--ease-notch) both;
}

.hero-logo {
  width: min(260px, 70vw);
  height: auto;
  margin: 0 auto 1.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--muted);
}

.hero h1 span {
  color: var(--text);
  background: linear-gradient(135deg, #f5f7f7 30%, var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #a6ecc0 0%, var(--accent) 100%);
  color: #0a0d0f;
  box-shadow:
    0 0 0 1px rgba(142, 227, 169, 0.35),
    0 8px 32px var(--glow),
    0 0 48px rgba(142, 227, 169, 0.12);
}

.btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(142, 227, 169, 0.5),
    0 12px 40px rgba(142, 227, 169, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-lg {
  padding: 1rem 1.6rem;
  font-size: 1.05rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-row li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-live);
  box-shadow: 0 0 8px var(--accent-live);
}

/* —— Mac chrome + notch —— */
.hero-demo {
  width: min(720px, 100%);
  animation: hero-in 0.9s 0.12s var(--ease-notch) both;
}

.mac-chrome {
  position: relative;
  border-radius: 18px 18px 14px 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #1a2028 0%, #0e1216 40%);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  min-height: 360px;
}

.menu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 17px 17px 0 0;
}

.menu-left,
.menu-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-left span:nth-child(n + 3) {
  opacity: 0.55;
}

.apple-mark {
  font-size: 13px;
  opacity: 0.9;
}

.notch-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem 2rem;
  min-height: 320px;
}

.notch {
  position: relative;
  z-index: 5;
  margin-top: -1px;
  width: var(--notch-w);
  height: var(--notch-h);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  transition:
    width 0.38s var(--ease-notch),
    height 0.38s var(--ease-notch),
    box-shadow 0.38s var(--ease-notch);
  will-change: width, height;
}

.notch.is-open {
  width: var(--notch-expanded-w);
  height: var(--notch-expanded-h);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.notch-pill {
  position: absolute;
  inset: 0;
  border-radius: 0 0 20px 20px;
  background: #050607;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  transition: border-radius 0.38s var(--ease-notch);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.notch.is-open .notch-pill {
  border-radius: 26px;
}

.notch-lens {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a4048, #0a0c0e 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0.85;
  transition: opacity 0.18s ease;
  z-index: 1;
}

.notch.is-open .notch-lens {
  opacity: 0;
}

.notch-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transition:
    opacity 0.22s ease,
    transform 0.28s var(--ease-notch),
    visibility 0.22s ease;
}

.notch.is-open .notch-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0.14s;
}

.notch-panel-inner {
  height: 100%;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.notch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  flex: 0 0 auto;
}

.notch-header-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
}

.notch-header-meta {
  font-size: 0.72rem;
  color: var(--accent-live);
}

.notch-cameras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
}

.notch-cam {
  min-width: 0;
  min-height: 0;
  text-align: left;
}

.notch-cam-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.notch-cam-preview--a {
  background:
    linear-gradient(135deg, rgba(142, 227, 169, 0.15), transparent 50%),
    linear-gradient(160deg, #1e2a24 0%, #0d1210 100%);
}

.notch-cam-preview--b {
  background:
    linear-gradient(200deg, rgba(100, 160, 180, 0.18), transparent 55%),
    linear-gradient(160deg, #1a2228 0%, #0c1014 100%);
}

.notch-cam-preview--c {
  background:
    linear-gradient(120deg, rgba(180, 160, 80, 0.12), transparent 50%),
    linear-gradient(160deg, #222018 0%, #0e100c 100%);
}

.notch-cam-preview--d {
  background:
    linear-gradient(240deg, rgba(80, 120, 160, 0.16), transparent 50%),
    linear-gradient(160deg, #181e28 0%, #0a0e14 100%);
}

.notch-cam-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.45));
}

.live-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a0d0f;
  background: var(--accent-live);
}

.notch-cam-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 18px 8px 7px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.notch-cam-meta strong {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
}

.notch-cam-meta span {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.65);
}

.notch-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--accent);
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s ease;
  animation: hint-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

.notch-hint.is-hidden {
  opacity: 0;
  transform: translateY(6px);
  animation: none;
}

/* —— Sections —— */
.section {
  max-width: 920px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
  text-align: center;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 auto 2.5rem;
  max-width: 32rem;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.steps li {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.step-num {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.steps h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.steps p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
}

.feature-grid article {
  padding: 1.35rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.feature-grid h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.feature-grid p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.privacy {
  border-block: 1px solid var(--border);
  background: rgba(142, 227, 169, 0.03);
  max-width: none;
  padding-inline: 1.25rem;
}

.privacy h2,
.privacy .section-lead {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.privacy .section-lead {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.faq-list {
  max-width: 36rem;
  margin: 0 auto;
  text-align: left;
}

.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-list a:hover {
  color: var(--accent-bright);
}

.faq-list p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-final {
  padding-bottom: 5rem;
}

.cta-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.m-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.m-footer img {
  height: 16px;
  width: auto;
  opacity: 0.7;
}

.m-footer p {
  margin: 0;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hint-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 780px) {
  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .menu-left span:nth-child(n + 3) {
    display: none;
  }

  .mac-chrome {
    min-height: 340px;
  }

  .notch-stage {
    min-height: 300px;
  }

  :root {
    --notch-expanded-w: min(420px, 92vw);
    --notch-expanded-h: 232px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 2.5rem;
    min-height: auto;
  }

  .m-nav-links a:not(.m-nav-cta) {
    display: none;
  }

  .notch-cameras {
    gap: 6px;
  }

  .notch-cam-meta span {
    display: none;
  }

  :root {
    --notch-expanded-h: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy,
  .hero-demo,
  .notch,
  .notch-pill,
  .notch-panel,
  .notch-lens,
  .notch-hint,
  .btn {
    animation: none !important;
    transition: none !important;
  }

  .notch-hint {
    opacity: 0.85;
  }
}
