/* ============================================================
   ObbyistMacro — website styles
   ============================================================ */

:root {
  --bg: #0d0a17;
  --bg-alt: #120e1f;
  --surface: #141021;
  --surface-2: #1b1530;
  --border: #2e2547;
  --text: #f2edff;
  --text-dim: #a79fc9;
  --accent: #3bff88;
  --accent-dim: #1f8f4f;
  --yellow: #ffc93c;
  --red: #e8544a;
  --radius: 18px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #06120b; }

/* ---------------- animated background ---------------- */

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(59, 255, 136, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 255, 136, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.orb-a {
  width: 560px; height: 560px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(59,255,136,0.35), transparent 65%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.orb-b {
  width: 480px; height: 480px;
  top: 30%; right: -160px;
  background: radial-gradient(circle, rgba(59,255,136,0.22), transparent 65%);
  animation: drift-b 26s ease-in-out infinite alternate;
}
.orb-c {
  width: 420px; height: 420px;
  bottom: -140px; left: 30%;
  background: radial-gradient(circle, rgba(232,84,74,0.16), transparent 65%);
  animation: drift-c 30s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate(90px, 70px) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-80px, -60px) scale(0.92); } }
@keyframes drift-c { to { transform: translate(60px, -50px) scale(1.1); } }

/* ---------------- layout ---------------- */

main, .nav, .footer-inner { position: relative; z-index: 1; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(13, 10, 23, 0.72);
  border-bottom: 1px solid rgba(46, 37, 71, 0.6);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}
.btn-big {
  background: linear-gradient(135deg, #3bff88, #22c96b);
  color: #06120b;
  font-size: 17px;
  padding: 17px 34px;
  box-shadow: 0 0 0 1px rgba(59,255,136,0.4), 0 10px 40px -8px rgba(59,255,136,0.55);
}
.btn-big:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(59,255,136,0.6), 0 16px 55px -6px rgba(59,255,136,0.7);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  font-size: 15px;
  padding: 16px 26px;
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent-dim); color: var(--accent); transform: translateY(-2px); }
.btn-small {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  padding: 9px 16px;
}
.btn-small:hover { border-color: var(--accent-dim); color: var(--accent); }

/* ---------------- hero ---------------- */

.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 110px 24px 70px;
  text-align: center;
}

.hero-logo {
  width: 108px;
  height: 108px;
  margin: 0 auto 30px;
  border-radius: 26px;
  padding: 14px;
  background: linear-gradient(160deg, rgba(59,255,136,0.16), rgba(59,255,136,0.03));
  border: 1px solid rgba(59, 255, 136, 0.35);
  box-shadow: 0 0 70px -6px rgba(59, 255, 136, 0.55);
}
.hero-logo img { width: 100%; height: 100%; border-radius: 16px; }

.glow-pulse { animation: glow-pulse 3.4s ease-in-out infinite; }
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 55px -6px rgba(59,255,136,0.45); }
  50%      { box-shadow: 0 0 90px 2px rgba(59,255,136,0.75); }
}

.eyebrow {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 8vw, 76px); line-height: 1.05; margin-bottom: 22px; }

.grad-text {
  background: linear-gradient(92deg, #3bff88 10%, #b7ffd6 45%, #3bff88 90%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 220% center; } }

.hero-sub {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto 38px;
}

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }

.release-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 14px;
  min-height: 24px;
  margin-bottom: 54px;
}

.spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 46px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-display); font-size: 30px; color: var(--accent); }
.stat span { color: var(--text-dim); font-size: 13px; }

/* ---------------- sections ---------------- */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px;
  text-align: center;
}
.section-alt { border-top: 1px solid rgba(46,37,71,0.5); border-bottom: 1px solid rgba(46,37,71,0.5); background: var(--bg-alt); }
.section h2 { font-family: var(--font-display); font-size: clamp(30px, 4.5vw, 46px); font-weight: 700; margin-bottom: 14px; }
.section-sub { color: var(--text-dim); font-size: 16px; max-width: 560px; margin: 0 auto 44px; }

/* cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 46px;
  text-align: left;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px 140px at 50% -40px, rgba(59,255,136,0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 60px -18px rgba(0,0,0,0.7); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}
.card-fps .card-icon { color: var(--accent); background: rgba(59,255,136,0.08); }
.card-wallhop .card-icon { color: var(--yellow); background: rgba(255,201,60,0.08); }
.card-freeze .card-icon { color: #7aa2ff; background: rgba(122,162,255,0.08); }

.card h3 { font-family: var(--font-display); font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 14px; }
.card b { color: var(--text); }
.card code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12.5px;
  color: var(--accent);
}
.card ul { list-style: none; }
.card li {
  color: var(--text-dim);
  font-size: 13.5px;
  padding: 3px 0 3px 22px;
  position: relative;
}
.card li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
  top: 6px;
}
.card li em { font-style: normal; color: var(--text); }

/* steps */

.steps {
  max-width: 640px;
  margin: 46px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step {
  display: flex;
  gap: 20px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.step:hover { background: rgba(59,255,136,0.04); border-color: var(--border); }
.step-num {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: #06120b;
  background: linear-gradient(135deg, #3bff88, #22c96b);
  box-shadow: 0 6px 22px -6px rgba(59,255,136,0.6);
}
.step h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--text-dim); font-size: 14px; }

/* download box */

.download-box {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 46px 34px;
  position: relative;
  overflow: hidden;
}
.download-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 180px at 50% -60px, rgba(59,255,136,0.14), transparent 70%);
  pointer-events: none;
}
.download-box .btn { position: relative; }
.download-box .release-info { margin-bottom: 14px; }
.small-note { color: var(--text-dim); font-size: 13px; }

/* ---------------- footer ---------------- */

.footer { border-top: 1px solid rgba(46,37,71,0.6); background: var(--bg-alt); }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer p { color: var(--text-dim); font-size: 13.5px; }
.heart { color: var(--red); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 13.5px; }
.footer-links a:hover { color: var(--accent); }

/* ---------------- reveal on scroll ---------------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, #particles { display: none; }
  .glow-pulse { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding-top: 70px; }
  .hero-stats { gap: 26px; }
}

/* ---------------- preview ---------------- */
.shot-frame {
  max-width: 880px; margin: 28px auto 0; padding: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.shot-frame img { display: block; max-width: 100%; width: auto; margin: 0 auto; border-radius: 10px; }

/* ---- phone fixes ---- */
html, body { overflow-x: hidden; overflow-x: clip; }
img, video, canvas, iframe { max-width: 100%; }
@media (max-width: 640px) {
  h1 { font-size: clamp(30px, 10.5vw, 48px); overflow-wrap: anywhere; }
  code, kbd, .mono { overflow-wrap: anywhere; word-break: break-word; }
}
@media (max-width: 380px) {
  .nav-inner { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .brand { font-size: 16px; gap: 8px; min-width: 0; }
  .brand img { width: 26px; height: 26px; }
}
