/* NotchPop — black-first palette: notch is the brand element.
   Accent gradient = pink → purple → blue (the Apple-y "Dynamic
   Island" flavor). White text on near-black bg.
*/
:root {
  --bg: #050507;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --text: #f5f5f7;
  --text-muted: rgba(245, 245, 247, 0.62);
  --pink: #FF3CAC;
  --purple: #784BA0;
  --blue: #2B86C5;
  --good: #34C759;
  --bad: #FF453A;
  --grad: linear-gradient(135deg, #FF3CAC 0%, #784BA0 50%, #2B86C5 100%);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* ---------- Background gradient + glow ---------- */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  background:
    radial-gradient(60vw 60vh at 50% -10%, rgba(255, 60, 172, 0.22), transparent 70%),
    radial-gradient(60vw 60vh at 90% 30%, rgba(43, 134, 197, 0.18), transparent 70%),
    radial-gradient(50vw 50vh at 10% 50%, rgba(120, 75, 160, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px;
  position: relative; z-index: 2;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; letter-spacing: -0.4px;
}
.logo-mark {
  display: inline-block;
  width: 26px; height: 14px;
  border-radius: 0 0 8px 8px;
  background: var(--grad);
  box-shadow: 0 0 24px rgba(255, 60, 172, 0.45);
}
.nav nav { display: flex; gap: 22px; }
.nav nav a {
  font-size: 14px; font-weight: 700; opacity: 0.78;
  transition: opacity 0.15s;
}
.nav nav a:hover { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 60px 24px 28px;
  max-width: 920px; margin: 0 auto;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: -2.2px;
  line-height: 1.05;
  margin: 0 0 18px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 22px;
  line-height: 1.55;
  font-weight: 500;
}
.hero em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.ctas {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin: 6px 0 18px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 14px;
  font-size: 15px; font-weight: 800; letter-spacing: -0.2px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: 1px solid transparent;
  font-family: inherit;
}
.btn.primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 12px 36px rgba(255, 60, 172, 0.40);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 16px 44px rgba(255, 60, 172, 0.55); }
.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.10); }

.gatekeeper-note {
  display: flex; align-items: flex-start; gap: 12px;
  max-width: 640px; margin: 18px auto 0;
  padding: 13px 18px;
  background: rgba(43, 134, 197, 0.07);
  border: 1px solid rgba(43, 134, 197, 0.28);
  border-radius: 14px;
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--text-muted);
}
.gatekeeper-note-icon {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--blue);
  font-weight: 800;
}
.gatekeeper-note strong { color: var(--text); font-weight: 800; }
.gatekeeper-note em { font-style: italic; color: var(--text); }
.gatekeeper-note a { color: #ff7ad0; text-decoration: underline; }

.release-meta {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}

/* ---------- Hero notch demo ---------- */
.notch-demo {
  max-width: 920px;
  margin: 30px auto 60px;
  padding: 0 24px;
}
.screen {
  position: relative;
  height: 240px;
  background: linear-gradient(180deg, #0a0a0c, #050505);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.screen-bezel {
  position: absolute;
  inset: 0 0 auto 0;
  height: 38px;
  background: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  z-index: 1;
}
.notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 240px;
  height: 38px;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.notch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}
.notch.is-open {
  width: 540px;
  height: 175px;
}
.notch.is-open::before {
  border-radius: 0 0 22px 22px;
}
.notch-pill {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 6px;
  background: var(--grad);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(255, 60, 172, 0.55);
  z-index: 3;
  opacity: 1;
  transition: opacity 0.18s;
  /* Smooth color shift via hue-rotate filter — no orientation
     change, no flicker, just a slow drift around the wheel. */
  animation: pillHue 12s linear infinite;
}
@keyframes pillHue {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
.notch.is-open .notch-pill { opacity: 0; }
.notch-expanded {
  position: absolute;
  inset: 38px 16px 14px 16px;
  z-index: 3;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.22s ease 0.10s, transform 0.22s ease 0.10s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notch.is-open .notch-expanded { opacity: 1; transform: scale(1); }
.ne-tabs {
  display: flex; gap: 6px;
}
.ne-tab {
  font-size: 10px; font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
}
.ne-tab.is-on {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}
.ne-shelf {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
}
.ne-thumb {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 56px;
}
.ne-thumb span {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ne-thumb em {
  font-style: normal;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 56px;
}

.demo-cap {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1080px;
  margin: 60px auto 24px;
  padding: 0 24px;
}
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
}
.feature {
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(20px);
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.feature p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Comparison table ---------- */
.comparison {
  max-width: 880px;
  margin: 60px auto;
  padding: 0 24px;
}
.comparison h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 24px;
}
.cmp-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.cmp-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.cmp-row:last-child { border-bottom: none; }
.cmp-head {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cmp-row > div:nth-child(2) {
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cmp-good { color: var(--good); font-weight: 700; }
.cmp-bad { color: var(--bad); font-weight: 700; }
.cmp-meh { color: #FFC93C; font-weight: 700; }

/* ---------- Install ---------- */
.install {
  max-width: 760px;
  margin: 70px auto 30px;
  padding: 0 24px;
  text-align: center;
}
.install-eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 60, 172, 0.18);
  border: 1px solid rgba(255, 60, 172, 0.40);
  color: #ff7ad0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.install h2 {
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 900;
  letter-spacing: -1.6px;
  line-height: 1.05;
  margin: 0 0 16px;
}
.install-lead {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 22px;
  line-height: 1.55;
}
.install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px auto 18px;
  text-align: left;
}
@media (max-width: 760px) {
  .install-grid { grid-template-columns: 1fr; }
}
.install-card {
  position: relative;
  padding: 24px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
}
.install-card.primary-card {
  background: linear-gradient(180deg, rgba(255, 60, 172, 0.10), rgba(43, 134, 197, 0.04));
  border-color: rgba(255, 60, 172, 0.32);
  box-shadow: 0 16px 48px rgba(255, 60, 172, 0.20);
}
.install-card-num {
  position: absolute;
  top: -14px;
  left: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: white;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(255, 60, 172, 0.45);
}
.install-card-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 6px 0 10px;
  color: var(--text);
}
.install-card-name em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 4px;
}
.install-card p {
  flex: 1;
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 500;
}
.install-card strong { color: var(--text); font-weight: 700; }
.install-card em { font-style: italic; color: var(--text); }
.install-card code {
  font-size: 12px;
  padding: 1px 5px;
}
.install-card-btn {
  width: 100%;
  margin-top: auto;
  justify-content: center;
}

.install-after {
  text-align: center;
  margin: 22px auto 0;
  max-width: 580px;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.55;
}
.install-after strong { color: var(--text); }
.install-troubleshoot {
  margin: 22px auto 0;
  max-width: 580px;
  padding: 14px 18px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: left;
  font-weight: 500;
}
.install-troubleshoot strong { color: var(--text); font-weight: 700; }
.install-troubleshoot a { color: #ff7ad0; text-decoration: underline; }

.install-source {
  margin: 36px auto 0;
  max-width: 720px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  text-align: left;
}
.install-source > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  user-select: none;
}
.install-source > summary::-webkit-details-marker { display: none; }
.install-source > summary:hover { color: var(--text); }
.install-source[open] > summary {
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.install-source-lead {
  margin: 16px 20px 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.install-source-lead strong { color: var(--text); }
.install-source-lead a { color: #ff7ad0; text-decoration: underline; }
.install-source .install-block {
  margin: 14px 20px 12px;
  padding: 18px 22px;
}
.install-source .install-steps {
  margin: 4px 24px 18px;
}

.install-block {
  position: relative;
  text-align: left;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 22px 22px 22px 22px;
  margin: 12px auto 22px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}
.install-block pre { margin: 0; }
.install-block code {
  display: block;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  border: none;
  padding: 0;
}
.install-block .prompt {
  color: var(--pink);
  font-weight: 700;
  margin-right: 10px;
}
.install-copy-btn {
  position: absolute;
  top: 14px; right: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.install-copy-btn.is-ok {
  background: rgba(52, 199, 89, 0.20);
  border-color: rgba(52, 199, 89, 0.50);
  color: #34C759;
}

.install-steps {
  max-width: 540px;
  margin: 22px auto;
  padding-left: 22px;
  text-align: left;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}
.install-steps li { margin-bottom: 8px; }
.install-steps strong { color: var(--text); }

.install-ctas {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin-top: 16px;
}

/* ---------- Footer ---------- */
footer {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  flex-wrap: wrap;
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--text); }
