/* MemeForge — Dark theme, neon green accent */

:root {
  --bg: #080b14;
  --bg-card: #0e1320;
  --bg-card-2: #121826;
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(57,255,20,0.3);
  --accent: #39ff14;
  --accent-dim: rgba(57,255,20,0.15);
  --accent-glow: rgba(57,255,20,0.4);
  --text: #f0f4ff;
  --text-muted: #7a8099;
  --text-dim: #4a5270;
  --red: #ff3b00;
  --blue: #00d4ff;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.22s ease;
}

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

html { scroll-behavior: smooth; }

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

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

/* ─── NOISE TEXTURE ─── */
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-1%, -1%); }
  20% { transform: translate(1%, 0%); }
  30% { transform: translate(0%, 1%); }
  40% { transform: translate(1%, -1%); }
  50% { transform: translate(-1%, 1%); }
  60% { transform: translate(1%, 1%); }
  70% { transform: translate(-1%, 0); }
  80% { transform: translate(0, -1%); }
  90% { transform: translate(-1%, -1%); }
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,11,20,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.logo-icon { font-size: 1.4rem; }
.logo-text { color: var(--text); }

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

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

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

.nav-cta {
  background: var(--accent) !important;
  color: #000 !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  transition: all var(--transition) !important;
  letter-spacing: 0.01em;
}

.nav-cta:hover {
  background: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-noise {
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.025;
  animation: grain 8s steps(10) infinite;
  pointer-events: none;
}

.hero-glow-left {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(57,255,20,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow-right {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 900px;
}

.headline-accent {
  color: var(--accent);
  position: relative;
}

.headline-accent::after {
  content: '';
  position: absolute;
  inset: -4px -8px;
  background: var(--accent-dim);
  border-radius: 4px;
  z-index: -1;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ─── URL INPUT ─── */
.hero-input-wrap {
  width: 100%;
  max-width: 720px;
  margin-bottom: 32px;
}

.url-form { width: 100%; }

.input-row {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  gap: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 8px 32px rgba(0,0,0,0.4);
}

.input-prefix {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  min-width: 0;
}

.url-input::placeholder { color: var(--text-dim); }

.cta-btn {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.cta-btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.cta-btn:active { transform: translateY(0); }

.input-hint {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

/* ─── HERO PROOF ─── */
.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proof-avatars {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card-2);
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: -8px;
  color: #000;
}

.avatar:first-child { margin-left: 0; }

.av1 { background: var(--accent); }
.av2 { background: var(--blue); }
.av3 { background: var(--red); }
.av4 { background: #f59e0b; }
.av5 { background: #a855f7; }

.proof-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.proof-text strong { color: var(--text); }

/* ─── CONTAINER ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── SECTION LABELS ─── */
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 56px;
  max-width: 600px;
}

/* ─── HOW IT WORKS ─── */
.how-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 56px;
}

.step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}

.step:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--text-dim);
  padding: 0 12px;
  margin-top: 60px;
  flex-shrink: 0;
}

/* ─── TEMPLATES ─── */
.templates-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.memes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 0;
}

.meme-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.meme-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 0 1px var(--border-bright);
}

.meme-visual {
  padding: 20px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.82rem;
}

.meme-label {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meme-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.meme-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* Drake meme */
.drake {
  background: linear-gradient(180deg, #1a1020 0%, #100a18 100%);
}

.drake-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
}

.drake-no { background: rgba(255,59,0,0.08); margin-bottom: 8px; }
.drake-yes { background: rgba(57,255,20,0.08); }

.drake-text {
  flex: 1;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.4;
}

.drake-face { font-size: 1.5rem; }

/* Expanding Brain */
.brain {
  background: linear-gradient(180deg, #0a1020 0%, #0a1830 100%);
  gap: 6px;
}

.brain-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
}

.small-brain { background: rgba(255,255,255,0.03); }
.medium-brain { background: rgba(57,255,20,0.04); }
.big-brain { background: rgba(57,255,20,0.08); }
.galaxy-brain { background: rgba(57,255,20,0.14); }

.brain-icon { font-size: 1rem; flex-shrink: 0; }
.brain-text { font-size: 0.74rem; color: var(--text-muted); flex: 1; }
.galaxy-brain .brain-text { color: var(--accent); font-weight: 600; }

/* Distracted */
.distracted {
  background: linear-gradient(180deg, #0d1020 0%, #121030 100%);
}

.distracted-scene {
  display: flex;
  gap: 12px;
  align-items: center;
}

.d-person { font-size: 2rem; }

.d-labels { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.d-label {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1.3;
}

.d-person-label { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.d-new-label { background: rgba(57,255,20,0.1); color: var(--accent); font-weight: 600; }
.d-new-label span { font-size: 0.65rem; opacity: 0.8; }
.d-old-label { background: rgba(255,59,0,0.08); color: #ff6b47; }

.d-arrows { display: flex; align-items: center; padding-left: 4px; }
.d-arrow { font-size: 1rem; }

/* Bernie */
.bernie {
  background: linear-gradient(135deg, #0a0f1a 0%, #101a20 100%);
  border: 1px dashed rgba(255,255,255,0.1);
}

.bernie-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.bernie-icon { font-size: 2rem; flex-shrink: 0; }
.bernie-text p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.bernie-text strong { color: var(--text); }

/* This Is Fine */
.this-is-fine {
  background: linear-gradient(180deg, #1a0a00 0%, #100800 100%);
}

.tif-scene {
  text-align: center;
}

.tif-fire { font-size: 1.5rem; margin-bottom: 4px; }
.tif-dog { font-size: 1.8rem; margin-bottom: 8px; }
.tif-text { font-size: 0.72rem; color: #ff8c5a; margin-bottom: 8px; }
.tif-caption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Roll Safe */
.roll-safe {
  background: linear-gradient(135deg, #0d1420 0%, #101820 100%);
}

.rs-inner { display: flex; gap: 12px; align-items: flex-start; }
.rs-face { font-size: 2rem; flex-shrink: 0; }
.rs-text p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; line-height: 1.4; }
.rs-punchline { color: var(--accent) !important; font-weight: 600; font-size: 0.78rem !important; }

/* Woman Yelling at Cat */
.woman-yelling {
  background: linear-gradient(135deg, #100a1a 0%, #0a1020 100%);
}

.wy-panels {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wy-panel { flex: 1; text-align: center; }
.wy-icon { font-size: 1.8rem; margin-bottom: 6px; }
.wy-caption { font-size: 0.7rem; color: var(--text-muted); line-height: 1.3; }
.wy-divider {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* Change My Mind */
.change-mind {
  background: linear-gradient(135deg, #0a1420 0%, #0a1818 100%);
}

.cm-inner { display: flex; gap: 12px; align-items: flex-start; }
.cm-person { font-size: 2rem; flex-shrink: 0; }
.cm-text p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; line-height: 1.4; }
.cm-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ─── PROOF BAR ─── */
.proof-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(57,255,20,0.02) 0%, transparent 100%);
}

.proof-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 160px;
}

.proof-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── TESTIMONIALS ─── */
.testimonials-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}

.t-quote {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.t-quote::before { content: '"'; color: var(--accent); font-size: 1.2rem; }
.t-quote::after { content: '"'; color: var(--accent); font-size: 1.2rem; }

.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.t-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #000;
  flex-shrink: 0;
}

.t-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 2px; }
.t-role { font-size: 0.75rem; color: var(--text-dim); }

/* ─── PRICING ─── */
.pricing-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
}

.pricing-card-featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, #0e1820 0%, #0a1418 100%);
  box-shadow: 0 0 0 1px rgba(57,255,20,0.1), 0 24px 48px rgba(57,255,20,0.05);
}

.featured-badge {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
  font-family: var(--font-mono);
}

.pricing-card-featured .price-amount { color: var(--accent); }

.price-period {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.price-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.5;
  font-style: italic;
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.feat-check { color: var(--accent); font-weight: 700; }
.feat-x { color: var(--text-dim); }
.feat-locked { color: var(--text-dim); text-decoration: line-through; }

.plan-btn {
  display: block;
  text-align: center;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.plan-btn-secondary {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}

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

.plan-btn-primary {
  background: var(--accent);
  color: #000;
}

.plan-btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* ─── FINAL CTA ─── */
.final-cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(57,255,20,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.final-headline {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.final-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.final-cta-section .hero-input-wrap {
  margin: 0 auto;
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ─── TOAST NOTIFICATIONS ─── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: toastIn 0.4s ease forwards;
  max-width: 300px;
}

.toast-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  color: #000;
  flex-shrink: 0;
}

.toast-content { flex: 1; line-height: 1.4; }
.toast-content strong { color: var(--text); font-weight: 600; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-20px); }
}

.toast.out { animation: toastOut 0.3s ease forwards; }

/* ─── SUBMIT STATE ─── */
.url-form.submitting .cta-btn {
  background: var(--bg-card-2);
  color: var(--text-dim);
  cursor: not-allowed;
}

.url-form.submitting .cta-btn::after {
  content: '⟳';
  display: inline-block;
  animation: spin 1s linear infinite;
  margin-left: 6px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ─── SCROLL ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .memes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }

  .hero { padding: 100px 20px 60px; }

  .steps {
    flex-direction: column;
  }

  .step-arrow {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .proof-bar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .proof-divider { display: none; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .input-row {
    flex-wrap: wrap;
    padding: 12px;
    gap: 8px;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .memes-grid {
    grid-template-columns: 1fr;
  }

  .hero-headline { font-size: 2.4rem; }
}

/* ─── BRAND RESULTS PANEL ─── */
.mf-results-panel {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  margin: 24px auto 0;
  max-width: 640px;
  padding: 0 16px;
}

.mf-results-panel.mf-results-visible {
  opacity: 1;
  transform: translateY(0);
}

.mf-results-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 0 32px rgba(57, 255, 20, 0.08);
}

.mf-results-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.mf-results-check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.mf-results-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
  font-family: var(--font-mono);
}

.mf-brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.mf-offer {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.55;
}

.mf-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.mf-tag {
  background: rgba(57, 255, 20, 0.1);
  color: var(--accent);
  border: 1px solid rgba(57, 255, 20, 0.25);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.mf-phrases {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.mf-phrase {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  padding-left: 10px;
  border-left: 2px solid var(--border-bright);
}

.mf-results-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.mf-generate-btn {
  flex: 1;
  min-width: 160px;
}

.mf-retry-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  font-family: var(--font-display);
  white-space: nowrap;
}

.mf-retry-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* Loading state on submit button */
.url-form.submitting .cta-btn {
  opacity: 0.7;
  cursor: not-allowed;
}

.url-form.submitting .cta-btn::after {
  content: ' ⏳';
}

/* ─── BUTTON SPINNER ─── */
.cta-btn { position: relative; }
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
  vertical-align: middle;
  margin-left: 6px;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

.url-form.submitting .btn-spinner { display: inline-block; }
.url-form.submitting .btn-label { opacity: 0.7; }

/* ─── SCRAPE PROGRESS BAR ─── */
.scrape-progress-wrap {
  display: none;
  margin-top: 12px;
}

.scrape-progress-wrap.active {
  display: block;
}

.scrape-progress-bar {
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.scrape-progress-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  animation: progressFill 8s cubic-bezier(0.4,0,0.6,1) forwards;
  box-shadow: 0 0 8px var(--accent-glow);
}

@keyframes progressFill {
  0%   { width: 0%; }
  20%  { width: 25%; }
  40%  { width: 45%; }
  60%  { width: 65%; }
  80%  { width: 80%; }
  95%  { width: 92%; }
  100% { width: 95%; }
}

.scrape-progress-msg {
  font-size: 0.8rem;
  color: var(--accent);
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  animation: msgFade 0.4s ease;
}

@keyframes msgFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── HAMBURGER NAV ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition);
}

.nav-hamburger:hover { border-color: var(--text-dim); }

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  gap: 4px;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-link {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.nav-mobile-link:hover { color: var(--text); }
.nav-mobile-link:last-child { border-bottom: none; }

.nav-mobile-cta {
  color: var(--accent) !important;
  font-weight: 700;
}

/* ─── ERROR SNACKBAR ─── */
.error-snackbar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1a0a0a;
  border: 1px solid rgba(255,59,0,0.4);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.84rem;
  color: var(--text);
  max-width: 340px;
  z-index: 1001;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transform: translateX(120%);
  transition: transform 0.35s ease;
  line-height: 1.5;
}

.error-snackbar.visible {
  transform: translateX(0);
}

/* ─── SKELETON LOADERS ─── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-2) 50%, var(--bg-card) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: 6px;
}

/* ─── MOBILE IMPROVEMENTS ─── */
@media (max-width: 768px) {
  /* Show hamburger, hide inline links */
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }

  /* Memes grid: 2 columns on tablet/large mobile */
  .memes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Full-width meme cards */
  .meme-card { width: 100%; }

  /* Bigger tap targets on plan buttons */
  .plan-btn {
    padding: 16px 20px;
    font-size: 1rem;
  }

  /* Download buttons / CTAs: min tap 48px */
  .cta-btn {
    min-height: 48px;
    font-size: 1rem;
    padding: 14px 20px;
  }

  /* Hero sub-text: don't break awkwardly */
  .hero-sub br { display: none; }

  /* Toast bottom-right on mobile */
  .toast-container {
    bottom: 16px;
    left: 12px;
    right: 12px;
    max-width: none;
  }

  .toast { max-width: 100%; }

  /* Error snackbar full-width bottom */
  .error-snackbar {
    right: 12px;
    left: 12px;
    max-width: none;
    bottom: 80px;
  }
}

@media (max-width: 480px) {
  /* 1 column on small phones */
  .memes-grid {
    grid-template-columns: 1fr;
  }

  /* Hero: tighter spacing */
  .hero { padding: 88px 16px 56px; }

  /* Nav inner: less padding */
  .nav-inner { padding: 0 16px; }

  /* Steps: tighter */
  .step { padding: 24px 20px; }

  /* Proof text: wrap gracefully */
  .proof-text { font-size: 0.78rem; }

  /* Pricing cards: full padding */
  .pricing-card { padding: 24px 20px; }

  /* Container: less side padding */
  .container { padding: 0 16px; }

  /* Footer stack */
  .footer-links { flex-direction: column; align-items: center; gap: 12px; }
}

/* ─── ENHANCED TOAST POSITIONING ─── */
@media (min-width: 769px) {
  /* Desktop: bottom-left */
  .toast-container {
    bottom: 24px;
    left: 24px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   INTERACTIVE TEMPLATE GALLERY
   ═══════════════════════════════════════════════════════════════ */

.tg-section {
  padding: 80px 0 100px;
  position: relative;
}

.tg-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
}

.tg-header {
  text-align: center;
  margin-bottom: 56px;
}

.tg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(57,255,20,0.08);
  border: 1px solid rgba(57,255,20,0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.tg-headline {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.tg-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 440px;
  margin: 0 auto 20px;
}

.tg-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(57,255,20,0.06);
  border: 1px solid rgba(57,255,20,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

/* ─── Grid ─────────────────────────────────────────────── */

.tg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

@media (max-width: 1024px) {
  .tg-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .tg-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ─── Card ──────────────────────────────────────────────── */

.tg-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  /* Reset button styles */
  font-family: var(--font-display);
  font-size: inherit;
  color: inherit;
  outline: none;
}

.tg-card:hover {
  border-color: rgba(57,255,20,0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 20px rgba(57,255,20,0.05);
}

.tg-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

/* Selected state */
.tg-card[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(57,255,20,0.04);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 40px rgba(57,255,20,0.12);
}

.tg-card-select-ring {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  transition: border-color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.tg-card[aria-pressed="true"] .tg-card-select-ring {
  border-color: var(--accent);
  background: var(--accent);
}

.tg-card[aria-pressed="true"] .tg-card-select-ring::after {
  content: '✓';
  color: #080b14;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

/* ─── Visual area ───────────────────────────────────────── */

.tg-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  gap: 6px;
  min-height: 140px;
}

/* Drake */
.tg-drake { padding: 0; gap: 0; }
.tg-drake-panel {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 500;
}
.tg-drake-no { background: rgba(255,59,0,0.08); border-bottom: 1px solid var(--border); color: #ff6b47; }
.tg-drake-yes { background: rgba(57,255,20,0.06); color: var(--accent); }
.tg-drake-face { font-size: 1.2rem; flex-shrink: 0; }
.tg-drake-text { line-height: 1.3; }

/* Expanding Brain */
.tg-brain { gap: 4px; }
.tg-brain-row {
  width: 100%;
  padding: 4px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background var(--transition);
}
.tg-brain-2 { background: rgba(57,255,20,0.04); color: rgba(57,255,20,0.6); }
.tg-brain-3 { background: rgba(57,255,20,0.07); color: rgba(57,255,20,0.8); }
.tg-brain-4 { background: rgba(57,255,20,0.12); color: var(--accent); font-weight: 600; }

/* Distracted Boyfriend */
.tg-distracted { gap: 8px; }
.tg-d-row { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; }
.tg-d-eye { animation: look 2s ease-in-out infinite; }
@keyframes look { 0%,100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
.tg-d-labels { display: flex; gap: 8px; width: 100%; justify-content: space-between; }
.tg-d-label { font-size: 0.7rem; padding: 3px 7px; border-radius: 4px; font-weight: 500; }
.tg-d-new { background: rgba(57,255,20,0.1); color: var(--accent); }
.tg-d-old { background: rgba(255,59,0,0.1); color: #ff6b47; text-decoration: line-through; }

/* Bernie */
.tg-bernie { background: rgba(0,0,0,0.15); border-radius: 8px; margin: 8px; width: calc(100% - 16px); min-height: 110px; }
.tg-bernie-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.tg-bernie-icon { font-size: 1.8rem; }
.tg-bernie-text { font-size: 0.72rem; line-height: 1.4; color: var(--text); max-width: 150px; }

/* This Is Fine */
.tg-tif { position: relative; background: rgba(255,59,0,0.06); border-radius: 8px; margin: 8px; width: calc(100% - 16px); min-height: 110px; gap: 4px; }
.tg-tif-fire { font-size: 1.4rem; }
.tg-tif-dog { font-size: 1.4rem; }
.tg-tif-caption { font-size: 0.72rem; color: var(--text-muted); font-style: italic; }

/* Roll Safe */
.tg-rollsafe { gap: 6px; }
.tg-rs-face { font-size: 2rem; }
.tg-rs-setup { font-size: 0.72rem; color: var(--text-muted); text-align: center; }
.tg-rs-punchline { font-size: 0.72rem; color: var(--accent); font-weight: 600; text-align: center; }

/* Woman Yelling at Cat */
.tg-wy { padding: 8px; }
.tg-wy-panels { display: flex; align-items: center; gap: 4px; width: 100%; }
.tg-wy-panel { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tg-wy-icon { font-size: 1.3rem; }
.tg-wy-cap { font-size: 0.65rem; color: var(--text-muted); text-align: center; line-height: 1.3; }
.tg-wy-vs { font-size: 0.65rem; color: var(--text-dim); font-weight: 700; }

/* Change My Mind */
.tg-changemind { gap: 6px; }
.tg-cm-icon { font-size: 1.8rem; }
.tg-cm-claim { font-size: 0.72rem; color: var(--text); text-align: center; line-height: 1.4; max-width: 140px; }
.tg-cm-sub { font-size: 0.68rem; color: var(--accent); font-weight: 600; }

/* One Does Not Simply */
.tg-onds { gap: 4px; }
.tg-onds-top { font-size: 0.7rem; color: var(--text-muted); font-style: italic; text-align: center; }
.tg-onds-icon { font-size: 2rem; }
.tg-onds-bottom { font-size: 0.7rem; color: var(--accent); text-align: center; font-weight: 600; }

/* Surprised Pikachu */
.tg-pikachu { gap: 4px; }
.tg-pika-setup { font-size: 0.7rem; color: var(--text-muted); text-align: center; line-height: 1.3; }
.tg-pika-icon { font-size: 1.8rem; }
.tg-pika-reaction { font-size: 0.7rem; color: var(--accent); text-align: center; font-weight: 600; }

/* Stonks */
.tg-stonks { gap: 4px; }
.tg-stonks-icon { font-size: 2rem; animation: stonks-up 1.5s ease-in-out infinite; }
@keyframes stonks-up { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-6px) rotate(5deg); } }
.tg-stonks-figure { font-size: 1.3rem; }
.tg-stonks-label { font-size: 0.72rem; color: var(--accent); font-weight: 600; }

/* Galaxy Brain */
.tg-galaxy { gap: 4px; }
.tg-gb-row {
  width: 100%;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
}
.tg-gb-2 { color: rgba(0,212,255,0.7); background: rgba(0,212,255,0.05); }
.tg-gb-3 { color: rgba(57,255,20,0.8); background: rgba(57,255,20,0.07); }
.tg-gb-4 { color: var(--accent); background: rgba(57,255,20,0.12); font-weight: 700; animation: pulse-glow 2s ease-in-out infinite; }
@keyframes pulse-glow { 0%,100% { box-shadow: none; } 50% { box-shadow: 0 0 12px rgba(57,255,20,0.3); } }

/* ─── Card footer ───────────────────────────────────────── */

.tg-card-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tg-card-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.tg-card-tag {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border-radius: 100px;
  padding: 2px 8px;
  flex-shrink: 0;
}

.tg-card[aria-pressed="true"] .tg-card-tag {
  background: rgba(57,255,20,0.1);
  color: var(--accent);
}

/* ─── Generate CTA ──────────────────────────────────────── */

.tg-generate-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

.tg-selected-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
  min-height: 38px;
  display: flex;
  align-items: center;
}

.tg-selected-info.has-selection {
  border-color: rgba(57,255,20,0.4);
  color: var(--accent);
}

.tg-selected-label { font-weight: 500; }

.tg-generate-btn {
  min-width: 240px;
  opacity: 0.45;
  pointer-events: none;
  transition: opacity var(--transition);
}

.tg-generate-btn:not(:disabled) {
  opacity: 1;
  pointer-events: auto;
}

.tg-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0;
}

/* Entrance animation */
.tg-section.tg-visible .tg-card {
  animation: tg-card-in 0.4s ease both;
}
.tg-section.tg-visible .tg-card:nth-child(1)  { animation-delay: 0.03s; }
.tg-section.tg-visible .tg-card:nth-child(2)  { animation-delay: 0.06s; }
.tg-section.tg-visible .tg-card:nth-child(3)  { animation-delay: 0.09s; }
.tg-section.tg-visible .tg-card:nth-child(4)  { animation-delay: 0.12s; }
.tg-section.tg-visible .tg-card:nth-child(5)  { animation-delay: 0.15s; }
.tg-section.tg-visible .tg-card:nth-child(6)  { animation-delay: 0.18s; }
.tg-section.tg-visible .tg-card:nth-child(7)  { animation-delay: 0.21s; }
.tg-section.tg-visible .tg-card:nth-child(8)  { animation-delay: 0.24s; }
.tg-section.tg-visible .tg-card:nth-child(9)  { animation-delay: 0.27s; }
.tg-section.tg-visible .tg-card:nth-child(10) { animation-delay: 0.30s; }
.tg-section.tg-visible .tg-card:nth-child(11) { animation-delay: 0.33s; }
.tg-section.tg-visible .tg-card:nth-child(12) { animation-delay: 0.36s; }

@keyframes tg-card-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
