/* ===================================================================
   WeakMindz AutoClicker — site stylesheet
   Design language borrowed from the app itself: dark surface, one
   green accent, monospace for anything numeric/technical.
   =================================================================== */

:root {
  --bg:          #131318;
  --bg-deep:     #0d0d11;
  --surface:     #1b1b22;
  --card:        #1f1f28;
  --border:      #2c2c37;
  --border-soft: #24242d;

  --green:        #16a34a;
  --green-bright: #4ade80;
  --green-dim:    #1e3a1e;

  --text:       #f1f1f4;
  --text-muted: #9a9aa6;
  --text-dim:   #5c5c68;

  --font-display: "Space Mono", "Courier New", monospace;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "Space Mono", "Courier New", monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --nav-height: 68px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em 0; }

a { color: inherit; text-decoration: none; }

code, pre {
  font-family: var(--font-mono);
}

pre {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  color: var(--green-bright);
}

code {
  background: var(--bg-deep);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
  color: var(--green-bright);
}

pre code {
  border: none;
  padding: 0;
  background: transparent;
}

/* ── Ambient background ────────────────────────────────────────────── */
/* Fixed dot grid + two slow-drifting glow blobs behind everything.
   Kept subtle on purpose — this sits behind real content on every page. */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(var(--border-soft) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
}

.glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
}

.glow-a {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -100px;
  background: var(--green);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.glow-b {
  width: 420px;
  height: 420px;
  bottom: -140px;
  right: -80px;
  background: #2563eb;
  opacity: 0.10;
  animation: drift-b 26s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate(0, 0); }
  to   { transform: translate(60px, 40px); }
}

@keyframes drift-b {
  from { transform: translate(0, 0); }
  to   { transform: translate(-50px, -30px); }
}

@media (prefers-reduced-motion: reduce) {
  .glow-a, .glow-b, * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ── Navbar ─────────────────────────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(19, 19, 24, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.nav-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease, background 0.15s ease;
}

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

.nav-links a.active {
  color: var(--green-bright);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.nav-cta {
  background: var(--green);
  color: #fff !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: #15803d;
  color: #fff !important;
}

/* ── Layout shells ──────────────────────────────────────────────────── */

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 32px 100px;
}

.page-narrow {
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--green-bright);
  background: var(--green-dim);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 18px;
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 20px 0 40px;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  color: var(--text);
}

.hero h1 .accent { color: var(--green-bright); }

.hero p.lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

/* Signature element: a self-clicking cursor demo.
   Directly demonstrates the product instead of decorating the hero. */

.demo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.demo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(22, 163, 74, 0.14), transparent 60%);
  pointer-events: none;
}

.demo-stage {
  position: relative;
  height: 160px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-target {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-target::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-bright);
}

.demo-ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--green-bright);
  opacity: 0;
  animation: click-pulse 1.1s ease-out infinite;
}

.demo-ring.delay {
  animation-delay: 0.55s;
}

@keyframes click-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(2.6); opacity: 0; }
}

.demo-cursor {
  position: absolute;
  font-size: 20px;
  transform: translate(18px, 14px);
  animation: cursor-click 1.1s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

@keyframes cursor-click {
  0%, 100% { transform: translate(18px, 14px) scale(1); }
  10%      { transform: translate(18px, 14px) scale(0.85); }
  20%      { transform: translate(18px, 14px) scale(1); }
}

.demo-readout {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  font-family: var(--font-mono);
}

.demo-readout .count {
  font-size: 30px;
  font-weight: 700;
  color: var(--green-bright);
}

.demo-readout .label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* ── Feature grid ───────────────────────────────────────────────────── */

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 64px 0 24px;
}

.section-heading h2 {
  font-size: 22px;
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
  border-color: rgba(74, 222, 128, 0.35);
  transform: translateY(-2px);
}

.feature-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  padding: 2px 7px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover { background: #15803d; }

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

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

/* ── Cards / content blocks (about, instructions, download) ──────────── */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin-bottom: 20px;
}

.card h2 {
  font-size: 19px;
  color: var(--text);
}

.card h3 {
  font-size: 15px;
  color: var(--green-bright);
  margin-top: 22px;
}

.card ul, .card ol {
  color: var(--text-muted);
  padding-left: 22px;
}

.card li { margin-bottom: 6px; }

.quote {
  border-left: 3px solid var(--green);
  padding: 4px 0 4px 18px;
  color: var(--text-muted);
  font-size: 16px;
}

/* Steps list (download / instructions) */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 18px 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 10px 0 10px 40px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-muted);
}

.steps li:last-child { border-bottom: none; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-dim);
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Table (instructions troubleshooting) */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13.5px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-muted);
}

th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ── Download page specifics ───────────────────────────────────────── */

.download-hero {
  text-align: center;
  padding: 40px 0 8px;
}

.download-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 40px;
}

.download-panel .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

.req-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.req-list li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  border-radius: 99px;
  padding: 5px 12px;
}

/* ── Social row / footer ───────────────────────────────────────────── */

.social-row {
  display: flex;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.social-link:hover {
  border-color: var(--text-dim);
  transform: translateY(-1px);
}

.social-link img {
  width: 17px;
  height: 17px;
  display: block;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 13px;
}

.footer-inner .social-row { align-items: center; }

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .navbar { padding: 0 18px; }
  .nav-links a span.full { display: none; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .page { padding: 40px 18px 80px; }
  .download-panel { flex-direction: column; align-items: flex-start; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 10px; font-size: 13px; }
}

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
}