/* Social Meme - marketing site styles
   Dark editorial / print-zine aesthetic. Vanilla CSS, no build step. */

:root {
  --bg: #07070b;
  --bg-soft: #0e0e16;
  --panel: #13131d;
  --panel-2: #181826;
  --ink: #f4f3ee;
  --ink-dim: #b9b7ad;
  --ink-faint: #76746b;
  --line: #26262f;
  --accent: #fffb00;
  --accent-2: #ffa600;
  --hot: #ff3b6b;
  --cool: #00c6ff;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: "Times New Roman", "Georgia", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

img { max-width: 100%; display: block; }

h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.accent-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary {
  background: linear-gradient(95deg, var(--accent), var(--accent-2));
  color: #11110a;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink-dim); transform: translateY(-2px); }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.stores a { transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.stores a:hover { transform: translateY(-3px); }
.stores img { height: 52px; width: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 7, 11, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-size: 1.08rem; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink-dim); font-size: 0.92rem; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(0, 198, 255, 0.10), transparent 60%),
    radial-gradient(50% 60% at 0% 30%, rgba(255, 166, 0, 0.10), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  margin: 18px 0 0;
}
.hero h1 em { font-style: italic; }
.hero-sub {
  margin: 22px 0 0;
  font-size: 1.18rem;
  color: var(--ink-dim);
  max-width: 36ch;
}
.hero-actions { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero-note { font-size: 0.86rem; color: var(--ink-faint); }
.hero-note strong { color: var(--ink-dim); }

/* phone mock */
.phone {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 18;
  border-radius: 36px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(0, 198, 255, 0.18), transparent 55%),
    linear-gradient(160deg, var(--panel-2), var(--bg-soft));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.phone::after {
  content: "";
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 6px; border-radius: 99px; background: #000;
}
.phone-logo { width: 64px; height: 64px; border-radius: 16px; margin: 26px auto 4px; box-shadow: 0 10px 30px -8px rgba(0,0,0,0.7); }
.phone-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
}
.phone-card .pc-top { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.pc-dot { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex: none; }
.pc-line { height: 8px; border-radius: 5px; background: #2b2b39; }
.pc-meme { height: 96px; border-radius: 10px; background: linear-gradient(135deg, #1d1d2b, #2a2a3c); display: flex; align-items: center; justify-content: center; color: var(--ink-faint); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pc-react { display: flex; gap: 12px; margin-top: 10px; font-size: 1.05rem; }

/* ---------- Marquee / ticker ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
  padding: 14px 0;
}
.ticker-track {
  display: flex;
  gap: 46px;
  white-space: nowrap;
  animation: scrollx 32s linear infinite;
  width: max-content;
}
.ticker-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-dim);
}
.ticker-track span::after { content: "/"; margin-left: 46px; color: var(--accent); font-style: normal; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  margin-top: 16px;
}
.section-head p { color: var(--ink-dim); margin: 18px 0 0; font-size: 1.08rem; }

/* feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  background: var(--panel);
  padding: 34px 28px;
  transition: background 0.3s var(--ease);
}
.feature:hover { background: var(--panel-2); }
.feature .ficon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255, 251, 0, 0.08);
  border: 1px solid rgba(255, 251, 0, 0.18);
  margin-bottom: 18px;
}
.feature .ficon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.feature h3 { font-size: 1.22rem; margin-bottom: 9px; }
.feature p { color: var(--ink-dim); font-size: 0.97rem; margin: 0; }
.feature .tag { display: inline-block; margin-top: 14px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }

/* split showcase rows */
.showcase { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.show-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--panel);
  align-items: stretch;
}
.show-row:nth-child(even) .show-text { order: 2; }
.show-text { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.show-text .num { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--accent); }
.show-text h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 10px 0 14px; }
.show-text p { color: var(--ink-dim); margin: 0; }
.show-visual {
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  background: var(--panel-2);
  border-left: 1px solid var(--line);
}
.show-row:nth-child(even) .show-visual { border-left: none; border-right: 1px solid var(--line); }

/* visual mini-cards used inside showcase */
.vcard { width: 100%; max-width: 340px; }
.duel { display: flex; gap: 14px; }
.duel-side { flex: 1; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--panel); text-align: center; }
.duel-side.win { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.duel-side .face { font-size: 1.9rem; }
.duel-side .votes { margin-top: 10px; font-size: 0.78rem; color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; }
.duel-vs { align-self: center; font-family: var(--serif); font-style: italic; color: var(--ink-faint); }

.podium { display: flex; align-items: flex-end; gap: 12px; width: 100%; max-width: 340px; }
.podium .col { flex: 1; border-radius: 12px 12px 0 0; border: 1px solid var(--line); border-bottom: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 14px 8px; gap: 6px; background: var(--panel); }
.podium .col .medal { font-size: 1.5rem; }
.podium .col .place { font-size: 0.74rem; color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; }
.podium .c1 { height: 150px; border-color: var(--accent); }
.podium .c2 { height: 118px; }
.podium .c3 { height: 92px; }

.streak-vis { display: flex; gap: 7px; flex-wrap: wrap; max-width: 320px; }
.streak-vis .day { width: 38px; height: 38px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.streak-vis .day.on { background: linear-gradient(135deg, var(--accent-2), var(--hot)); border-color: transparent; }

.bouncer-vis { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.bouncer-row { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: 0.92rem; }
.bouncer-row .b-state { margin-left: auto; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; }
.b-pass { color: #7ee787; background: rgba(126, 231, 135, 0.12); }
.b-block { color: var(--hot); background: rgba(255, 59, 107, 0.12); }

/* reactions strip */
.editor-vis { width: 100%; max-width: 320px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.editor-vis .ev-canvas { height: 150px; background: linear-gradient(135deg, #20202e, #2c2c40); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.editor-vis .ev-bar { display: flex; gap: 8px; padding: 12px; flex-wrap: wrap; }
.editor-vis .ev-chip { font-size: 0.72rem; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-dim); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--panel); padding: 34px 24px; text-align: center; }
.stat .big { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); }
.stat .lbl { color: var(--ink-faint); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; }

/* ---------- Open source band ---------- */
.oss {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(0, 198, 255, 0.10), transparent 60%),
    var(--panel);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
}
.oss h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.oss p { color: var(--ink-dim); margin: 16px 0 0; }
.oss .oss-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 100px 0;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(255, 166, 0, 0.10), transparent 60%);
}
.cta h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.3rem, 6vw, 4.2rem); }
.cta p { color: var(--ink-dim); margin: 18px auto 0; max-width: 44ch; font-size: 1.1rem; }
.cta .stores { justify-content: center; margin-top: 34px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--ink-faint); font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 16px; font-weight: 700; }
.footer-col a { display: block; color: var(--ink-dim); font-size: 0.94rem; margin-bottom: 11px; transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; color: var(--ink-faint); font-size: 0.86rem; }
.footer-bottom a { color: var(--ink-dim); font-weight: 600; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Simple content pages ---------- */
.page-hero { padding: 80px 0 30px; }
.page-hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4rem); }
.page-hero p { color: var(--ink-dim); margin-top: 16px; font-size: 1.1rem; }
.prose { max-width: 760px; margin: 0 auto; padding-bottom: 90px; }
.prose h2 { font-family: var(--serif); font-size: 1.7rem; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-dim); }
.prose ul { padding-left: 20px; }
.prose a { color: var(--accent); }
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .features { grid-template-columns: 1fr 1fr; }
  .show-row { grid-template-columns: 1fr; }
  .show-row:nth-child(even) .show-text { order: 0; }
  .show-visual, .show-row:nth-child(even) .show-visual { border-left: none; border-right: none; border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; }
  .oss { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .nav.open .nav-links a { padding: 14px 24px; width: 100%; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .show-text { padding: 40px 26px; }
  .oss { padding: 36px 26px; }
  .section-pad { padding: 64px 0; }
}
