:root {
  --bg: #07090d;
  --bg-2: #0a0d12;
  --surface: #0f131a;
  --surface-2: #121722;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e6edf3;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --molly: #5eead4;
  --molly-2: #818cf8;
  --molly-3: #38bdf8;
  --grad: linear-gradient(135deg, #5eead4 0%, #38bdf8 48%, #818cf8 100%);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --radius: 20px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 12% -12%, rgba(94, 234, 212, 0.10), transparent 60%),
    radial-gradient(52rem 34rem at 88% 4%, rgba(129, 140, 248, 0.12), transparent 62%),
    radial-gradient(44rem 30rem at 50% 108%, rgba(56, 189, 248, 0.06), transparent 60%);
}

a { color: var(--molly); text-decoration: none; }
a:hover { color: #99f6e4; }

section[id], header[id] { scroll-margin-top: 86px; }

/* ---------- nav ---------- */
.navbar {
  background: rgba(7, 9, 13, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.navbar-brand .brand-text {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}
.navbar .nav-link {
  color: var(--muted);
  font-size: 0.925rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 9px;
}
.navbar .nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.navbar-toggler { border-color: var(--border); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15); }

.btn-molly {
  background: var(--grad);
  color: #05110e;
  border: 0;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 10px 34px rgba(94, 234, 212, 0.17);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-molly:hover, .btn-molly:focus {
  color: #05110e;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 14px 42px rgba(94, 234, 212, 0.24);
}
.btn-outline-secondary {
  border-color: var(--border-strong);
  color: var(--text);
  border-radius: 12px;
  font-weight: 600;
}
.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.btn-outline-light { border-color: var(--border-strong); border-radius: 10px; color: var(--text); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.3); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 32%, #000 18%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 32%, #000 18%, transparent 72%);
}
.hero .container { z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--molly);
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: rgba(94, 234, 212, 0.06);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  margin-bottom: 1.25rem;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--molly);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.12);
}
.hero-title {
  letter-spacing: -0.045em;
  line-height: 1.02;
  font-weight: 800;
}
.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  max-width: 34rem;
  font-size: 1.12rem;
  line-height: 1.7;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}
.chip-ok { color: #a7f3d0; border-color: rgba(52, 211, 153, 0.22); background: rgba(52, 211, 153, 0.07); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }

/* hero art */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  padding: 1rem 0 2rem;
}
.hero-glow {
  position: absolute;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.16), rgba(56, 189, 248, 0.08) 40%, transparent 68%);
  filter: blur(12px);
}
.phone {
  position: relative;
  z-index: 1;
  width: 268px;
  height: 540px;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, #141a24, #0a0d12);
  box-shadow: var(--shadow), inset 0 0 0 6px #05070a;
  padding: 14px;
  transform: rotate(-3deg);
  display: flex;
  flex-direction: column;
}
.phone-notch {
  width: 86px;
  height: 20px;
  border-radius: 999px;
  background: #05070a;
  margin: 2px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.phone-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: #94a3b8;
  padding: 0.5rem 0.55rem 0.2rem;
  letter-spacing: 0.02em;
}
.phone-status-right { color: #64748b; }
.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.9rem 0.6rem;
  overflow: hidden;
}
.bubble {
  max-width: 90%;
  padding: 0.62rem 0.75rem;
  border-radius: 14px;
  font-size: 0.72rem;
  line-height: 1.5;
  border: 1px solid transparent;
}
.bubble-molly {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  border-bottom-left-radius: 5px;
  color: #cbd5e1;
}
.bubble-user {
  align-self: flex-end;
  background: rgba(94, 234, 212, 0.13);
  border-color: rgba(94, 234, 212, 0.22);
  border-bottom-right-radius: 5px;
  color: #d1fae5;
}
.typing { display: flex; gap: 4px; padding: 0.35rem 0.7rem; align-self: flex-start; }
.typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5eead4;
  opacity: 0.4;
  animation: blink 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.phone-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0.4rem 0.45rem;
  padding: 0.62rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: #64748b;
  font-size: 0.7rem;
}
.phone-input svg { color: var(--molly); flex-shrink: 0; }

.terminal {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 12px;
  width: 336px;
  max-width: 92%;
  border-radius: 15px;
  border: 1px solid var(--border-strong);
  background: rgba(9, 12, 17, 0.94);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transform: rotate(1deg);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}
.t-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.t-red { background: #f87171; }
.t-yellow { background: #fbbf24; }
.t-green { background: #34d399; }
.terminal-bar em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #64748b;
  margin-left: 0.4rem;
}
.terminal pre { margin: 0; padding: 0.9rem 0.95rem 1rem; overflow-x: auto; }
.terminal code {
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.7;
  color: #cbd5e1;
  white-space: pre-wrap;
}
.c-dim { color: #64748b; }
.c-accent { color: var(--molly); font-weight: 600; }

/* ---------- trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
  padding: 1.6rem 0;
}
.trust-item { display: flex; flex-direction: column; gap: 0.15rem; }
.trust-item strong {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trust-item span { font-size: 0.72rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.12em; }

/* ---------- sections ---------- */
.section { padding: 5rem 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018) 30%, rgba(255, 255, 255, 0.018) 70%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { max-width: 720px; margin: 0 auto 2.75rem; text-align: center; }
.kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--molly);
  margin-bottom: 0.8rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 0.8rem;
}
.section-head p { font-size: 1.02rem; line-height: 1.65; margin-bottom: 0; }

/* ---------- download ---------- */
.download-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.qr-card {
  display: inline-block;
  background: #fff;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  line-height: 0;
}
.qr-card img { width: 180px; height: 180px; display: block; }
.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.specs span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.2rem;
}
.specs strong { font-size: 0.9rem; font-weight: 600; color: #dbe4ee; }
.specs code { font-family: var(--mono); font-size: 0.82rem; color: var(--molly); }
.sha summary {
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--muted);
  user-select: none;
}
.sha code {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #94a3b8;
  word-break: break-all;
  background: #05070a;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.6rem 0.7rem;
}

/* ---------- code cards ---------- */
.code-card, .step-card, .feature-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.code-card { display: flex; flex-direction: column; }
.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-weight: 650;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.copy-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.32rem 0.62rem;
  transition: all 0.16s ease;
  flex-shrink: 0;
}
.copy-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.07); }
.copy-btn.copied { color: #a7f3d0; border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.code-card pre, .mini-code {
  background: #05070a;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 0.9rem 0.95rem;
  margin: 0;
  overflow-x: auto;
}
.code-card pre code, .mini-code code {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: #dbeafe;
  white-space: pre-wrap;
  word-break: break-word;
}
.code-note { font-size: 0.8rem; color: var(--muted); line-height: 1.55; margin-top: 0.85rem; }
.code-note code { font-family: var(--mono); color: var(--molly); font-size: 0.76rem; }

/* ---------- steps ---------- */
.step-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--molly);
  margin-bottom: 0.7rem;
}
.step-card h3, .feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}
.step-card p, .feature-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 0;
}
.mini-code { margin-top: 1rem; padding: 0.7rem 0.8rem; }
.mini-code code { font-size: 0.72rem; color: #cbd5e1; }
.alert-note {
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 1rem 1.1rem;
}
.alert-note strong { color: #e0f2fe; }

/* ---------- features ---------- */
.feature-card { height: 100%; transition: transform 0.2s ease, border-color 0.2s ease; }
.feature-card:hover { transform: translateY(-3px); border-color: rgba(94, 234, 212, 0.28); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(94, 234, 212, 0.07);
  border: 1px solid rgba(94, 234, 212, 0.18);
  color: var(--molly);
  margin-bottom: 1rem;
}

/* ---------- faq ---------- */
.accordion { max-width: 820px; }
.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px !important;
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.accordion-button {
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1rem 1.15rem;
  box-shadow: none;
}
.accordion-button:not(.collapsed) {
  background: rgba(94, 234, 212, 0.05);
  color: var(--molly);
}
.accordion-button:focus { box-shadow: none; border-color: transparent; }
.accordion-button::after {
  filter: invert(0.7) sepia(0.1) saturate(4) hue-rotate(120deg);
}
.accordion-body { color: var(--muted); font-size: 0.88rem; line-height: 1.7; padding-top: 0.2rem; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  padding: 2.4rem 0 2rem;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--molly); }
.footer-status { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.15);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.status-dot.online { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15); }
.status-dot.offline { background: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15); }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  .hero { padding: 3.25rem 0 3rem; }
  .hero-art { min-height: auto; margin-top: 2.25rem; padding-bottom: 0; }
  .hero-glow { width: 18rem; height: 18rem; }
  .phone { transform: none; width: min(270px, 78vw); height: 520px; }
  .terminal {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(360px, 94%);
    max-width: none;
    margin: -1.75rem auto 0;
    transform: none;
  }
  .hero-art { flex-direction: column; }
}

@media (max-width: 767.98px) {
  .section { padding: 3.75rem 0; }
  .download-card { padding: 1.4rem; }
  .specs { grid-template-columns: 1fr 1fr; }
  .qr-card img { width: 150px; height: 150px; }
  .terminal pre code { font-size: 0.64rem; }
  .hero-title { letter-spacing: -0.04em; }
}

@media (max-width: 575.98px) {
  .specs { grid-template-columns: 1fr; }
  .hero .lead { font-size: 1rem; }
  .navbar .btn { width: 100%; }
  .navbar-nav .nav-item { padding: 0.1rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
