/* ═══════════════════════════════════════════════
   INFERNOKIT — fomo.family design system
   Aeonik font, #060510 bg, #516af6 accent
   ═══════════════════════════════════════════════ */

@font-face {
  font-family: 'Aeonik';
  src: url('fonts/Aeonik-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('fonts/Aeonik-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* fomo.family exact palette */
  --bg: #060510;
  --bg-secondary: #12111a;
  --bg-tertiary: rgba(203, 208, 235, 0.10);
  --bg-tertiary-solid: #161522;
  --bg-card: #12111a;
  --bg-elevated: #161522;
  --bg-nav: rgba(6, 5, 16, 0.75);

  --text: #f7f7f7;
  --text-secondary: #9899a3;
  --text-tertiary: #474b52;
  --text-muted: #9899a3;
  --text-dim: rgba(152, 153, 163, 0.5);

  --accent: #516af6;
  --accent-secondary: #221d4b;
  --accent-transparent: rgba(81, 106, 246, 0.16);
  --accent-glow: rgba(81, 106, 246, 0.08);
  --accent-glow-strong: rgba(81, 106, 246, 0.20);

  --border: #474b52;
  --border-subtle: rgba(203, 208, 235, 0.08);
  --border-light: rgba(203, 208, 235, 0.05);
  --border-bright: rgba(203, 208, 235, 0.15);

  --green: #21c95e;
  --red: #ff622e;
  --yellow: #ffc74f;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-pill: 100px;

  --font: 'Aeonik', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.15s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2545; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #3a3560; }
html { scrollbar-width: thin; scrollbar-color: #2a2545 var(--bg); }

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

::selection {
  background: var(--accent-transparent);
  color: var(--text);
}

/* ═══════════════ NAV ═══════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: var(--transition);
}
#nav.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.nav-logo svg { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 16px rgba(0, 0, 0, 0.2);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.88rem;
  transition: var(--transition);
}
.nav-cta:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}
.nav-mobile-toggle {
  display: none;
  color: var(--text);
  padding: 4px;
}

/* ═══════════════ HERO ═══════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.75;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, transparent 0%, var(--bg) 80%),
    linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 55%, var(--bg) 95%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  user-select: none;
  -webkit-user-select: none;
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text);
}
.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  font-weight: 400;
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.6;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 0;
  width: 200px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.25);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.hero-cta:hover {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 40px rgba(0, 0, 0, 0.4);
}
.hero-cta:hover::before {
  transform: translateX(100%);
}
.hero-astronaut {
  position: absolute;
  bottom: 8%;
  right: 4%;
  z-index: 1;
  width: 380px;
  opacity: 0.55;
  pointer-events: none;
  filter: brightness(0.75) saturate(0.85);
  animation: astronautFloat 6s ease-in-out infinite;
}
@keyframes astronautFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}
.astronaut-img {
  width: 100%;
  height: auto;
}
.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--text-tertiary) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, var(--text-secondary) 50%, transparent 100%);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

/* ═══════════════ SECTIONS ═══════════════ */
section {
  padding: 120px 24px;
  position: relative;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.12;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

/* ═══════════════ BENEFITS ═══════════════ */
#benefits {
  background: var(--bg);
}
#benefits .section-inner {
  text-align: center;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 72px;
  text-align: left;
}
.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
}
.benefit-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  background: var(--bg-elevated);
}
.benefit-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}
.benefit-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ═══════════════ TABS / SERVICES ═══════════════ */
#services {
  background: var(--bg);
}
.tabs-wrapper {
  margin-top: 56px;
}
.tabs-list {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.tab {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  transition: var(--transition-fast);
}
.tab:hover { color: var(--text); }
.tab.active {
  background: var(--accent);
  color: #fff;
}
.tab-content {
  display: none;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.tab-content.active { display: block; }
.tab-text h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--text);
}
.tab-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════ FEATURES ═══════════════ */
#features {
  background: var(--bg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 72px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  background: var(--bg-elevated);
}
.feature-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════ INSTALL / CTA ═══════════════ */
#install {
  padding: 140px 24px;
  background: var(--bg);
}
.install-wrapper {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.install-instruction {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 16px;
  margin-bottom: 40px;
}
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  text-align: left;
}
.install-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.install-step p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.install-step kbd {
  margin: 0 2px;
}
.install-drag-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
}
.bookmarklet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  width: 220px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.25);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: grab;
  user-select: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.bookmarklet-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.bookmarklet-btn:hover {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 40px rgba(0, 0, 0, 0.4);
}
.bookmarklet-btn:hover::before {
  transform: translateX(100%);
}
.bookmarklet-btn:active {
  cursor: grabbing;
  transform: scale(0.97);
}
.bookmarklet-btn.dragging {
  opacity: 0.6;
}
.install-hint {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-align: center;
  display: none;
}
.hint-mac { display: none; }
body.is-mac .hint-windows { display: none; }
body.is-mac .hint-mac { display: inline; }
kbd {
  display: inline-block;
  padding: 3px 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.trust-banner {
  margin-top: 32px;
  padding: 14px 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.trust-banner svg { color: var(--accent); flex-shrink: 0; }
.trust-banner strong { color: var(--text); }

/* ═══════════════ FOOTER ═══════════════ */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 56px 24px;
  background: var(--bg);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
}
.footer-logo svg { color: var(--accent); }
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.footer-links a:hover { color: var(--text); }
.footer-disclaimer {
  text-align: right;
}
.footer-disclaimer p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.footer-disclaimer strong { color: var(--text); }
.footer-copy {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-disclaimer { text-align: left; }
  .hero-astronaut { width: 240px; right: 2%; bottom: 5%; opacity: 0.3; }
  .nav-inner { padding: 16px 20px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  #nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 24px;
    gap: 16px;
  }
  section { padding: 80px 16px; }
  .install-drag-zone { padding: 40px 24px; }
  .tabs-list { gap: 4px; }
  .tab { padding: 8px 16px; font-size: 0.8rem; }
  .hero-astronaut { width: 160px; right: 0; bottom: 3%; opacity: 0.2; }
  .hero-title { font-size: 2.2rem; }
}

/* ═══════════════ SCROLL REVEAL ═══════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
