:root {
  --bg: #1D1B1B;
  --bg-heavy: #000000;
  --card: #242526;
  --card-2: #2B3137;
  --panel: #1E1F22;
  --text: hsl(210, 50%, 95%);
  --text-2: #C2C2C2;
  --magenta: #C91673;
  --pink: #FF75B6;
  --pink-bright: #FF4F9E;
  --coral: #EF6C48;
  --coral-bright: #F95E57;
  --border: rgba(255, 255, 255, 0.10);
  --border-2: rgba(255, 255, 255, 0.20);
  --grad: linear-gradient(100deg, #C91673 0%, #EF6C48 60%, #F95E57 100%);
  --grad-section: linear-gradient(160deg, #C91673 0%, #EF6C48 70%, #F95E57 100%);
  --radius: 8px;
  --maxw: 1344px;
  --font: Oxygen, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; }
.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;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block; text-transform: uppercase; font-size: 0.8rem;
  font-weight: 700; letter-spacing: 0.18em; color: var(--pink);
}
.eyebrow-light { color: rgba(255,255,255,0.85); letter-spacing: 0.15em; }

.text-link {
  background: none; border: none; padding: 0; font-family: inherit;
  color: var(--pink); text-decoration: none; font-weight: 400; cursor: pointer;
  font-size: 0.95rem;
}
.text-link:hover { text-decoration: underline; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent; transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: var(--magenta);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 1rem 2rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand-logo {
  font-weight: 700; font-size: 1.5rem; color: #fff; text-decoration: none; letter-spacing: -0.01em;
}
.nav-links { display: flex; align-items: center; gap: 1.6rem; margin-left: 1rem; }
.nav-links a {
  position: relative; color: #fff; text-decoration: none; font-size: 0.95rem;
  padding: 2px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: #fff; transition: width 0.2s ease;
}
.nav-links a:hover::after { width: 100%; }
.signin-btn {
  margin-left: auto; background: #fff; color: #1D1B1B; border: none;
  font-family: inherit; font-weight: 700; font-size: 0.9rem;
  padding: 0.55rem 1.1rem; border-radius: var(--radius); cursor: pointer;
  transition: opacity 0.15s ease;
}
.signin-btn:hover { opacity: 0.9; }
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; margin-left: auto; background: transparent;
  border: 1px solid var(--border-2); border-radius: var(--radius); cursor: pointer;
}
.hamburger span { display: block; width: 20px; height: 2px; background: #fff; margin: 0 auto; }

.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 8px 1.25rem 18px; background: var(--magenta); }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: #fff; text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
.mobile-menu .signin-btn { margin: 14px 0 0; text-align: center; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-section);
  padding: 7rem 0 5rem;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; pointer-events: none;
}
.hero::before { width: 460px; height: 460px; background: var(--pink-bright); top: -120px; left: -60px; }
.hero::after { width: 420px; height: 420px; background: var(--coral-bright); top: -80px; right: -40px; }
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem; align-items: center;
}
.hero-title {
  font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; color: #fff;
  font-size: clamp(2.6rem, 5.2vw, 4.5rem); margin-top: 1rem;
}
.hero-sub { margin-top: 1.2rem; font-size: 1.2rem; color: rgba(255,255,255,0.9); line-height: 1.6; max-width: 36rem; white-space: nowrap; }
.hero-note { margin-top: 1rem; font-size: 0.95rem; color: rgba(255,255,255,0.8); }

/* Preview panel */
.hero-preview { display: flex; justify-content: center; }
.preview-panel {
  width: 100%; max-width: 420px; background: var(--panel);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 18px;
  box-shadow: 0 32px 70px rgba(0,0,0,0.45); padding: 1.4rem; position: relative;
}
.preview-row { display: flex; flex-direction: column; gap: 0.6rem; }
.preview-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-2); }
.preview-id { display: flex; align-items: center; gap: 0.85rem; }
.avatar { width: 48px; height: 48px; flex-shrink: 0; background: var(--card-2); border: 1px solid var(--border); background-size: cover; background-position: center; }
.avatar.circle { border-radius: 50%; }
.avatar.rounded { border-radius: 12px; }
.id-text { display: flex; flex-direction: column; min-width: 0; }
.id-name { font-weight: 700; color: #fff; }
.id-handle { font-size: 0.85rem; color: var(--text-2); }
.preview-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 1.1rem 0; }
.preview-connector { display: flex; justify-content: center; margin: 0.4rem 0; }
.connector-dot {
  width: 34px; height: 34px; border-radius: 50%; background: var(--grad);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 6px 16px rgba(201,22,115,0.4);
}
.connector-dot svg { width: 18px; height: 18px; }
.preview-powered { margin-top: 1.2rem; text-align: center; font-size: 0.8rem; color: var(--text-2); }
@media (prefers-reduced-motion: no-preference) {
  .preview-panel { animation: rvfloat 7.5s ease-in-out infinite; }
}
@keyframes rvfloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ===== Install ===== */
.install { background: var(--bg); padding: 6rem 0; }
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.install-title {
  margin-top: 1rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--text);
  font-size: clamp(2rem, 3.5vw, 3rem);
}
.install-sub { margin-top: 1rem; font-size: 1.05rem; color: var(--text-2); max-width: 32rem; line-height: 1.6; }
.install-keys { margin-top: 1.2rem; color: var(--text-2); font-size: 0.95rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
kbd {
  font-family: var(--font); font-size: 0.8rem; background: var(--card-2); border: 1px solid var(--border-2);
  border-radius: 6px; padding: 0.2rem 0.55rem; color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.25);
}
.install-links { margin-top: 1.2rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.trust-line { margin-top: 1.4rem; font-size: 0.9rem; color: var(--text-2); }

/* Action card */
.action-card {
  background: linear-gradient(180deg, var(--card) 0%, rgba(43,49,55,0.6) 100%);
  border: 1px solid var(--border); border-radius: 20px; padding: 2.25rem;
  min-height: 360px; box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
}
.action-body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.9rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem; background: var(--card-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 0.55rem 1.2rem;
  font-size: 0.82rem; color: var(--text-2);
}
.chrome-icon { width: 16px; height: 16px; }
.up-arrow { color: var(--pink); display: flex; justify-content: center; }
.up-arrow svg { width: 30px; height: 54px; }
.drag-headline { font-weight: 700; letter-spacing: 0.04em; color: #fff; }
.drag-support { font-size: 0.9rem; color: var(--text-2); max-width: 18rem; }
.verify-btn {
  display: inline-flex; align-items: center; gap: 0.55rem; background: var(--grad);
  color: #fff; font-weight: 700; text-decoration: none; padding: 0.95rem 1.9rem;
  border-radius: 999px; cursor: grab; user-select: none; font-size: 1rem;
  box-shadow: 0 10px 24px rgba(201,22,115,0.35); transition: transform 0.15s ease;
}
.verify-btn:hover { transform: translateY(-2px); }
.verify-btn:active { cursor: grabbing; transform: translateY(0); }
.verify-btn:focus-visible { outline: 3px solid var(--pink-bright); outline-offset: 3px; }
.drag-handle { display: inline-flex; opacity: 0.9; }
.drag-handle svg { width: 16px; height: 16px; }
.drag-tip { font-size: 0.9rem; color: var(--text); }
.drag-tip .pink, .pink { color: var(--pink); }
.drag-warn { font-size: 0.8rem; color: var(--text-2); }

/* Action states */
.action-card.is-success .action-body { gap: 1rem; }
.state-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.state-icon.ok { background: rgba(16,185,129,0.15); color: #10B981; }
.state-icon.err { background: rgba(239,68,68,0.15); color: #EF4444; }
.state-icon svg { width: 30px; height: 30px; }
.state-title { font-weight: 700; color: #fff; font-size: 1.2rem; }
.state-sub { color: var(--text-2); font-size: 0.95rem; }

/* Drag strip */
.drag-strip {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70; display: none;
  align-items: center; justify-content: center; gap: 0.6rem; padding: 0.7rem 1rem;
  background: var(--magenta); color: #fff; font-size: 0.9rem; text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.drag-strip svg { width: 18px; height: 18px; }
.drag-strip.show { display: flex; }

/* ===== Steps ===== */
.steps { background: var(--bg); padding: 6rem 0; }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 3rem; }
.section-title { margin-top: 1rem; font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--text); }
.section-sub { margin-top: 0.8rem; color: var(--text-2); font-size: 1.05rem; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-card {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 2.25rem 2rem 2rem; overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.step-card::before {
  content: ""; position: absolute; top: -40px; left: -40px; width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(201,22,115,0.18), transparent 70%); opacity: 0; transition: opacity 0.2s ease;
}
.step-card:hover { transform: translateY(-4px); border-color: rgba(255,117,182,0.5); box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.step-card:hover::before { opacity: 1; }
.step-num {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--grad);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.2rem;
}
.step-icon { position: absolute; top: 2.25rem; right: 1.6rem; width: 26px; height: 26px; color: var(--pink); opacity: 0.5; }
.step-title { margin-top: 1.1rem; font-weight: 700; color: var(--text); font-size: 1.2rem; }
.step-copy { margin-top: 0.6rem; color: var(--text-2); font-size: 0.95rem; line-height: 1.6; }

/* ===== Trust ===== */
.trust { background: linear-gradient(135deg, var(--card-2) 0%, var(--bg) 100%); padding: 6rem 0; }
.trust-inner { text-align: center; }
.pills { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.pill-check { color: #fff; }
.pill-check svg { width: 15px; height: 15px; color: #10B981; }
.trust-links { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }

/* ===== Footer ===== */
.site-footer { background: var(--card); padding: 2.8rem 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; align-items: start; }
.footer-logo { font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.footer-copy { color: var(--text-2); font-size: 0.9rem; }
.footer-group { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-group .text-link { color: var(--text-2); font-size: 0.92rem; text-align: left; }
.footer-group .text-link:hover { color: var(--pink); text-decoration: none; }

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity 180ms ease, visibility 180ms ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  position: relative; background: #fff; width: 385px; max-width: calc(100vw - 32px);
  max-height: 90vh; border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  overflow: hidden; display: flex; flex-direction: column; color: #111;
  transform: translateY(12px) scale(0.96); transition: transform 180ms ease;
}
.modal-backdrop.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: flex;
  align-items: center; justify-content: center; border: none; background: transparent; color: #6B7280;
  border-radius: 6px; cursor: pointer; z-index: 2;
}
.modal-close:hover { background: #F3F4F6; color: #111; }
.modal-top { padding: 24px; text-align: center; overflow-y: auto; }
.modal-icon {
  width: 56px; height: 56px; border-radius: 50%; background: #FCE7F1; color: var(--magenta);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.modal-icon svg { width: 26px; height: 26px; }
.modal-title { font-size: 1.25rem; font-weight: 700; color: #111; }
.modal-desc { margin-top: 10px; font-size: 15px; color: #6B7280; line-height: 1.6; }
.modal-footer { border-top: 1px solid #E5E7EB; padding: 20px; }
.modal-cta {
  width: 100%; background: var(--magenta); color: #fff; border: 1px solid #8E0F54;
  border-radius: 6px; padding: 12px 16px; font-family: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: background-color 0.15s ease;
}
.modal-cta:hover { background: var(--pink-bright); }
.modal-cta:focus-visible { outline: 3px solid rgba(201,22,115,0.4); outline-offset: 2px; }

/* Chrome example */
.chrome-example { margin-top: 8px; }
.ex-chrome { border: 1px solid #E5E7EB; border-radius: 8px; overflow: hidden; background: #fff; }
.ex-tabs { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #F3F4F6; border-bottom: 1px solid #E5E7EB; }
.ex-dot { width: 8px; height: 8px; border-radius: 50%; }
.ex-dot.r { background: #FF5F56; } .ex-dot.y { background: #FFBD2E; } .ex-dot.g { background: #27C93F; }
.ex-addr { margin-left: 8px; display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; color: #6B7280; background: #fff; border: 1px solid #E5E7EB; border-radius: 999px; padding: 2px 10px; }
.ex-addr svg { width: 10px; height: 10px; }
.ex-bookmarks { display: flex; align-items: center; gap: 8px; padding: 9px 10px; background: rgba(201,22,115,0.08); border-bottom: 2px solid var(--magenta); }
.ex-tag { font-size: 0.66rem; font-weight: 700; color: var(--magenta); background: #fff; border: 1px solid #FBCFE8; border-radius: 4px; padding: 1px 6px; }
.ex-bm { font-size: 0.8rem; color: #6B7280; }
.ex-page { height: 70px; background: #F9FAFB; }
.ex-caption { margin-top: 8px; font-size: 0.75rem; color: #6B7280; text-align: center; }

@media (prefers-reduced-motion: reduce) { .modal, .modal-backdrop { transition: none; } .modal { transform: none; } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links, .header-inner .signin-btn { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 1.25rem; }
  .hero { padding: 6rem 0 4rem; }
  .hero-grid, .install-grid, .steps-grid, .footer-inner { grid-template-columns: 1fr; }
  .install-grid, .hero-grid { gap: 2.5rem; }
  .steps-grid { gap: 1.25rem; }
  .install, .steps, .trust { padding: 4rem 0; }
  .footer-inner { gap: 1.5rem; }
  .action-card { min-height: 0; }
}
