:root {
  --bg: #121612;
  --bg-elevated: #1c221c;
  --bg-card: rgba(28, 34, 28, 0.84);
  --app-canvas: #222222;
  --border: rgba(163, 184, 148, 0.16);
  --border-strong: rgba(157, 230, 0, 0.38);
  --primary: #7db700;
  --primary-bright: #9de600;
  --primary-dark: #3e5b00;
  --bubble: #e5ff00;
  --amber: #ffc107;
  --red: #ff5c5c;
  --red-dark: #c70000;
  --text: #f6f9f4;
  --text-muted: #9ead99;
  --radius-lg: 22px;
  --radius-md: 14px;
  --max-w: 1140px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(125, 183, 0, 0.2), transparent 36%),
    radial-gradient(circle at 86% 12%, rgba(229, 255, 0, 0.1), transparent 34%),
    var(--bg);
  overflow-x: hidden;
}

a {
  color: var(--primary-bright);
  text-decoration: none;
}

.container {
  width: min(var(--max-w), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(18, 22, 18, 0.86);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(125, 183, 0, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switcher {
  display: inline-flex;
  background: rgba(28, 34, 28, 0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.32rem 0.54rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: var(--primary);
  color: #101508;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 0.78rem 1.35rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #8fd100, #9de600);
  color: #101606;
  box-shadow: 0 10px 26px rgba(125, 183, 0, 0.34);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(157, 230, 0, 0.48);
}

.btn-secondary {
  background: rgba(28, 34, 28, 0.88);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.86rem;
  border-radius: 10px;
}

/* Hero */
.hero {
  padding: 4.2rem 0 3.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3rem;
  align-items: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.82rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(229, 255, 0, 0.1);
  border: 1px solid rgba(229, 255, 0, 0.28);
  color: #f0ff99;
}

.pill-green {
  background: rgba(157, 230, 0, 0.15);
  border-color: rgba(157, 230, 0, 0.38);
  color: #c8ff66;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.15rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1.8rem;
  max-width: 58ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.stat-item strong {
  display: block;
  font-size: 1.22rem;
  color: var(--primary-bright);
}

.stat-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Interactive Phone Mockup */
.phone-wrap {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(392px, 100%);
  background: #0d0f0d;
  border-radius: 36px;
  padding: 13px;
  border: 2px solid rgba(163, 184, 148, 0.25);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(157, 230, 0, 0.14);
}

.phone-screen {
  background: var(--app-canvas);
  border-radius: 25px;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.mock-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e5ece2;
}

.mock-app-badge img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.mock-lock-pill {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(157, 230, 0, 0.18);
  border: 1px solid rgba(157, 230, 0, 0.45);
  color: var(--primary-bright);
  transition: all 0.18s ease;
}

.mock-lock-pill.tilted {
  background: rgba(255, 92, 92, 0.15);
  border-color: rgba(255, 92, 92, 0.42);
  color: #ff8585;
}

.mock-lock-pill.held {
  background: rgba(255, 193, 7, 0.18);
  border-color: rgba(255, 193, 7, 0.48);
  color: var(--amber);
}

/* Horizontal Vial Bar (Top) */
.vial-hbar {
  position: relative;
  height: 34px;
  width: 100%;
  border-radius: 6px;
  background: linear-gradient(180deg, #3e5b00 0%, #7db700 50%, #3e5b00 100%);
  border: 3px solid #090909;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.45);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.vial-hbar::before,
.vial-hbar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: #0a0a0a;
  z-index: 2;
}

.vial-hbar::before {
  left: calc(50% - 18px);
}

.vial-hbar::after {
  left: calc(50% + 18px);
}

.bubble {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #ffffff 0%, #f5ff80 28%, #e5ff00 72%, #b8cc00 100%);
  border: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  z-index: 1;
  pointer-events: none;
  transition: transform 0.06s linear;
}

.bubble-h {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Middle Arena: Left Status + Center Bullseye + Right Vertical Vial */
.level-stage {
  display: grid;
  grid-template-columns: 52px 1fr 36px;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.axis-status {
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  color: var(--primary-bright);
  text-align: center;
  user-select: none;
}

.axis-status.tilted-up {
  color: var(--red);
}

.axis-status.tilted-down {
  color: #ff7a7a;
}

.bullseye-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vial-bullseye {
  position: relative;
  width: 186px;
  height: 186px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #89c800 0%, #7db700 56%, #3e5b00 100%);
  border: 4px solid #090909;
  box-shadow:
    inset 0 4px 14px rgba(0, 0, 0, 0.42),
    0 0 0 2px rgba(157, 230, 0, 0.35),
    0 0 24px rgba(157, 230, 0, 0.22);
  cursor: grab;
  touch-action: none;
  transition: box-shadow 0.2s ease;
}

.vial-bullseye:active {
  cursor: grabbing;
}

.vial-bullseye.not-level {
  box-shadow:
    inset 0 4px 14px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.bullseye-cross-h,
.bullseye-cross-v {
  position: absolute;
  background: rgba(10, 10, 10, 0.85);
  pointer-events: none;
}

.bullseye-cross-h {
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  transform: translateY(-50%);
}

.bullseye-cross-v {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
}

.bullseye-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.6px solid #0c0c0c;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.bubble-2d {
  width: 28px;
  height: 28px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Vertical Vial Bar (Right) */
.vial-vbar {
  position: relative;
  width: 34px;
  height: 186px;
  border-radius: 6px;
  background: linear-gradient(90deg, #3e5b00 0%, #7db700 50%, #3e5b00 100%);
  border: 3px solid #090909;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.vial-vbar::before,
.vial-vbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #0a0a0a;
  z-index: 2;
}

.vial-vbar::before {
  top: calc(50% - 18px);
}

.vial-vbar::after {
  top: calc(50% + 18px);
}

.bubble-v {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.v-status-row {
  text-align: center;
  margin-bottom: 0.55rem;
}

/* Readout & Interactive Controls */
.readout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.48rem 0.7rem;
  margin-bottom: 0.65rem;
  font-variant-numeric: tabular-nums;
}

.readout-deg {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-bright);
}

.readout-deg.tilted {
  color: #ffffff;
}

.readout-sub {
  font-size: 0.74rem;
  color: #b4bfb0;
  font-weight: 600;
}

.slider-group {
  display: grid;
  gap: 0.38rem;
  margin-bottom: 0.65rem;
}

.slider-row {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: #c2ccc0;
  font-variant-numeric: tabular-nums;
}

.slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--primary-bright);
  cursor: pointer;
  height: 5px;
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
}

.preset-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #2e2e2e;
  color: #f1f5ef;
  border-radius: 9px;
  padding: 0.4rem 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover {
  border-color: var(--primary-bright);
}

.preset-btn.active {
  background: rgba(157, 230, 0, 0.22);
  border-color: var(--primary-bright);
  color: var(--primary-bright);
}

.preset-btn.hold-active {
  background: rgba(255, 193, 7, 0.22);
  border-color: var(--amber);
  color: var(--amber);
}

.mock-hint {
  text-align: center;
  font-size: 0.71rem;
  color: #9ba697;
  margin-top: 0.55rem;
}

/* Sections */
section {
  padding: 4.2rem 0;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.6rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.04rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: rgba(125, 183, 0, 0.16);
  border: 1px solid rgba(157, 230, 0, 0.3);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.step-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  background: var(--primary-bright);
  color: #111806;
  margin-bottom: 0.9rem;
}

/* Zero Permissions Trust Box */
.trust-panel {
  background: linear-gradient(180deg, rgba(28, 36, 28, 0.94), rgba(18, 22, 18, 0.96));
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 2.2rem;
}

.perm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.6rem;
}

.perm-card {
  background: rgba(18, 22, 18, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.perm-card h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: #e7f0e4;
}

.perm-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}

th,
td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(14, 18, 14, 0.65);
}

th.highlight-col,
td.highlight-col {
  background: rgba(125, 183, 0, 0.11);
}

tr:last-child td {
  border-bottom: 0;
}

.good {
  color: var(--primary-bright);
  font-weight: 700;
}

.muted-cell {
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

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

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

details.faq-item summary::after {
  content: "+";
  color: var(--primary-bright);
  font-size: 1.25rem;
  font-weight: 700;
}

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

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

/* CTA Banner */
.cta-banner {
  text-align: center;
  background: radial-gradient(circle at center, rgba(125, 183, 0, 0.24), rgba(28, 34, 28, 0.92));
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 3rem 1.5rem;
}

.cta-banner img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(125, 183, 0, 0.35);
}

.cta-banner h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.cta-banner p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 0;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
}

/* Privacy Page */
.prose-card {
  max-width: 820px;
  margin: 3rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
}

.prose-card h1 {
  margin-top: 0;
  font-size: 2rem;
}

.prose-card h2 {
  margin-top: 1.8rem;
  font-size: 1.25rem;
  color: #e7f0e4;
}

.prose-card p,
.prose-card li {
  color: var(--text-muted);
}

.prose-card code {
  color: var(--primary-bright);
  background: rgba(157, 230, 0, 0.1);
  padding: 0.12rem 0.38rem;
  border-radius: 6px;
  font-size: 0.88em;
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid,
  .cards-grid,
  .steps-grid,
  .perm-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 2.6rem;
  }
}
