/* =========================================================
   Sentinel — landing page styles
   Dark, Apple-flavored. Mobile-first. No framework.
   ========================================================= */

:root {
  --bg: #0a0a0c;
  --bg-elev: #121216;
  --bg-elev-2: #17171c;
  --fg: #f5f5f7;
  --fg-muted: #a1a1aa;
  --fg-dim: #71717a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --accent: #6aa8ff;        /* soft Apple-ish blue */
  --accent-2: #b892ff;      /* violet for gradients */
  --accent-hot: #ff5a7a;    /* alert red */
  --accent-ok: #30d158;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 20px 60px rgba(106, 168, 255, 0.15);

  --container: 1120px;
  --container-narrow: 760px;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(184, 146, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(106, 168, 255, 0.10), transparent 60%),
    var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: system-ui, -apple-system, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
}

h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4.25rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 2.2vw + 1rem, 2.75rem); line-height: 1.12; }
h3 { font-size: 1.125rem; line-height: 1.3; }

p { margin: 0; color: var(--fg-muted); }

ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute; left: -9999px; top: auto;
  background: var(--accent); color: #000; padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 16px; top: 12px; z-index: 100; }

::selection { background: rgba(106, 168, 255, 0.35); color: #fff; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 10px;
  border: 1px solid rgba(106, 168, 255, 0.35);
  border-radius: 999px;
  background: rgba(106, 168, 255, 0.08);
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}
.section--alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.03));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.section__sub {
  color: var(--fg-muted);
  font-size: 1.0625rem;
}

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Nav ---------- */
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0a0c;
  box-shadow: 0 2px 10px rgba(106, 168, 255, 0.35);
}
.brand__name { font-size: 1.05rem; }

.nav__links {
  display: none;
  gap: 28px;
  font-size: 0.95rem;
  color: var(--fg-muted);
}
.nav__links a:hover { color: var(--fg); }
@media (min-width: 820px) { .nav__links { display: inline-flex; } }

.nav__cta { display: inline-flex; align-items: center; gap: 10px; }
.nav__cta .btn--ghost { display: none; }
@media (min-width: 560px) { .nav__cta .btn--ghost { display: inline-flex; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-border: var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease), box-shadow 160ms var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: linear-gradient(180deg, #ffffff 0%, #e9e9ee 100%);
  --btn-fg: #0a0a0c;
  --btn-border: transparent;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.08);
}
.btn--primary:hover {
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.14);
}

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.03);
  --btn-fg: var(--fg);
  --btn-border: var(--border-strong);
}
.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.07);
  --btn-border: rgba(255, 255, 255, 0.22);
}

.btn--lg { padding: 14px 22px; font-size: 1rem; border-radius: 999px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(56px, 8vw, 120px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.hero__title {
  max-width: 20ch;
  background: linear-gradient(180deg, #ffffff 0%, #c9c9d1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  font-size: clamp(1.125rem, 1.4vw + 0.7rem, 1.4rem);
  color: var(--fg-muted);
  max-width: 40ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
}
.hero__meta {
  font-size: 0.85rem;
  color: var(--fg-dim);
}

/* Hero visual */
.hero__art {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin-top: clamp(32px, 5vw, 56px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 240px at 30% 0%, rgba(106, 168, 255, 0.18), transparent 60%),
    radial-gradient(500px 240px at 80% 100%, rgba(184, 146, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #0f0f14, #0a0a0c);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow), var(--shadow-soft);
  overflow: hidden;
}

.mac {
  position: absolute;
  left: 8%;
  top: 14%;
  width: 66%;
}
.mac__screen {
  background: linear-gradient(180deg, #1a1a20, #0e0e12);
  border: 1px solid var(--border-strong);
  border-bottom: none;
  border-radius: 14px 14px 4px 4px;
  padding: 18px;
  height: 200px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mac__chrome { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.mac__status { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--fg);
}
.status-row.muted { color: var(--fg-muted); }
.status-row .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-ok);
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.55);
  animation: pulse 1.8s infinite;
  margin-right: 8px;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

.mac__base {
  height: 10px;
  background: linear-gradient(180deg, #2a2a33, #14141a);
  border-radius: 0 0 18px 18px;
  margin: 0 -6%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.phone {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: 26%;
  aspect-ratio: 9 / 19;
  background: linear-gradient(180deg, #1a1a20, #0e0e12);
  border: 1.5px solid var(--border-strong);
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.5);
}
.phone__notch {
  width: 40%;
  height: 14px;
  background: #000;
  border-radius: 0 0 12px 12px;
  margin: 0 auto 8px;
}
.phone__screen {
  height: calc(100% - 28px);
  border-radius: 22px;
  background: linear-gradient(180deg, #0b0b10, #07070a);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alert {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  font-size: 0.7rem;
  line-height: 1.35;
  backdrop-filter: blur(10px);
  position: relative;
  color: var(--fg);
  animation: slideIn 600ms var(--ease) both;
}
.alert--dim { opacity: 0.65; animation-delay: 200ms; }
.alert__title { font-weight: 600; font-size: 0.65rem; color: var(--fg-muted); }
.alert__body { margin-top: 2px; }
.alert__time {
  position: absolute; top: 10px; right: 10px;
  font-size: 0.6rem; color: var(--fg-dim);
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .hero__art { aspect-ratio: 4 / 3; }
  .mac { left: 6%; width: 70%; }
  .mac__screen { height: 150px; padding: 12px; }
  .phone { right: 4%; width: 30%; }
}

/* ---------- Cards (features) ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.98rem; }
.card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: #0a0a0c;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px rgba(106, 168, 255, 0.18);
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.98rem; }
.step__num {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0a0c;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- Pricing ---------- */
.pricing .price {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.price--featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-elev-2), var(--bg-elev-2)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.price__badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0a0c;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price__name { font-size: 0.95rem; color: var(--fg-muted); font-weight: 600; }
.price__amount {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: -4px;
}
.price__num {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.price__per { color: var(--fg-dim); font-size: 0.95rem; }
.price__blurb { font-size: 0.95rem; }
.price__features {
  display: flex; flex-direction: column; gap: 10px;
  padding: 4px 0 8px;
  font-size: 0.95rem;
  color: var(--fg);
}
.price__features li {
  padding-left: 26px;
  position: relative;
  color: var(--fg);
}
.price__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-ok) 40%, transparent 42%);
  box-shadow: inset 0 0 0 1px rgba(48, 209, 88, 0.25);
}
.price__features li::after {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 8px; height: 4px;
  border-left: 1.5px solid #0a0a0c;
  border-bottom: 1.5px solid #0a0a0c;
  transform: rotate(-45deg);
}

.pricing__note {
  text-align: center;
  margin-top: 24px;
  color: var(--fg-muted);
  font-size: 0.95rem;
}
.pricing__note strong { color: var(--fg); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.faq details[open] {
  border-color: var(--border-strong);
  background: var(--bg-elev-2);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--fg-muted);
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin-top: 12px;
  font-size: 0.98rem;
}

/* ---------- CTA band ---------- */
.cta {
  text-align: center;
  padding: clamp(72px, 10vw, 140px) 0;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(106, 168, 255, 0.16), transparent 60%),
    radial-gradient(700px 320px at 50% 100%, rgba(184, 146, 255, 0.12), transparent 60%);
  border-top: 1px solid var(--border);
}
.cta h2 {
  background: linear-gradient(180deg, #ffffff 0%, #c9c9d1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 22ch;
  margin: 0 auto 14px;
}
.cta p { max-width: 52ch; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  background: #07070a;
}
.footer__inner {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .footer__inner { grid-template-columns: 1.2fr 2fr; }
}
.footer__tag {
  margin-top: 10px;
  color: var(--fg-muted);
  font-size: 0.95rem;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer__cols h4 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 12px;
  font-weight: 600;
}
.footer__cols a {
  display: block;
  color: var(--fg-muted);
  padding: 4px 0;
  font-size: 0.95rem;
}
.footer__cols a:hover { color: var(--fg); }

.footer__legal {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: 0.82rem;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
