/* MemeSec Factory — Marketing Site Styles */
/* VULN-A-004: No CSP; inline styles and scripts allowed freely */

:root {
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --bg-card-hover: #1c2128;
  --border: #30363d;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --accent-green: #3fb950;
  --accent-blue: #58a6ff;
  --accent-orange: #f0883e;
  --accent-red: #f85149;
  --accent-purple: #bc8cff;
  --font-mono: "Courier New", Courier, monospace;
  --font-impact: Impact, "Arial Black", Haettenschweiler, sans-serif;
  --radius: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-brand .logo { font-size: 1.4rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent-green);
  color: #000;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: background 0.2s;
  display: inline-block;
}
.btn-secondary:hover { background: var(--bg-card); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--text-secondary); }

.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 5rem 4rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 80vh;
}

.hero-left {
  flex: 1;
  max-width: 560px;
}

.hero-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(63, 185, 80, 0.12);
  border: 1px solid rgba(63, 185, 80, 0.35);
  color: var(--accent-green);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.highlight { color: var(--accent-green); }

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

/* Hero inline stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.hstat {
  display: flex;
  flex-direction: column;
  padding: 0 1.25rem;
}
.hstat:first-child { padding-left: 0; }

.hstat-n {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-green);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hstat-l {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

.hstat-div {
  width: 1px;
  height: 2rem;
  background: var(--border);
}

/* ── Meme Cards ──────────────────────────────────────────────────────────── */
.meme-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

/* Template themes */
.tmpl-redteam {
  background: linear-gradient(160deg, #1a0010 0%, #3b0020 100%);
  border-color: #6b0030;
}
.tmpl-redteam .meme-img-area {
  background: linear-gradient(135deg, #2a0015 0%, #500025 60%, #1a0010 100%);
}
.tmpl-redteam .meme-bg-text { color: rgba(255,50,80,0.18); }

.tmpl-terminal {
  background: linear-gradient(160deg, #001a00 0%, #002a00 100%);
  border-color: #004d00;
}
.tmpl-terminal .meme-img-area {
  background: #000e00;
}
.tmpl-terminal .meme-bg-text { color: rgba(0,255,50,0.15); font-family: var(--font-mono); }

.tmpl-matrix {
  background: linear-gradient(160deg, #000a00 0%, #001500 100%);
  border-color: #003300;
}
.tmpl-matrix .meme-img-area {
  background: radial-gradient(ellipse at center, #001800 0%, #000800 100%);
}
.tmpl-matrix .meme-bg-text { color: rgba(0,200,30,0.2); font-family: var(--font-mono); }

.tmpl-alert {
  background: linear-gradient(160deg, #1a1200 0%, #2a1e00 100%);
  border-color: #5a3e00;
}
.tmpl-alert .meme-img-area {
  background: linear-gradient(135deg, #1a1000 0%, #3d2800 100%);
}
.tmpl-alert .meme-bg-text { color: rgba(255,165,0,0.15); }

.tmpl-dark {
  background: linear-gradient(160deg, #0a0a14 0%, #12121e 100%);
  border-color: #2a2a40;
}
.tmpl-dark .meme-img-area {
  background: linear-gradient(135deg, #080810 0%, #15152a 100%);
}
.tmpl-dark .meme-bg-text { color: rgba(88,166,255,0.14); }

/* Meme card internals */
.meme-badge {
  display: inline-block;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-secondary);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  margin: 0.6rem 0.6rem 0;
  align-self: flex-start;
}

.meme-img-area {
  flex: 1;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.meme-bg-text {
  font-family: var(--font-impact);
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  user-select: none;
  pointer-events: none;
}

.meme-textbar {
  font-family: var(--font-impact);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 1.5px 1.5px 0 #000, -1.5px -1.5px 0 #000,
               1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000;
  padding: 0.5rem 0.75rem;
  text-align: center;
  line-height: 1.25;
  background: rgba(0,0,0,0.45);
}

.meme-textbar.top {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.meme-textbar.bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.meme-footer {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.meme-views, .meme-likes { display: inline-flex; align-items: center; gap: 0.2rem; }
.meme-likes { color: #f85149; }

/* ── Hero Meme Stack ─────────────────────────────────────────────────────── */
.hero-meme-stack {
  position: relative;
  width: 300px;
  height: 360px;
}

.hero-card {
  position: absolute;
  width: 280px;
  top: 0;
  left: 0;
}

.hero-card--back2 {
  transform: rotate(-8deg) translate(-18px, 18px);
  opacity: 0.55;
  z-index: 1;
}

.hero-card--back1 {
  transform: rotate(-4deg) translate(-8px, 8px);
  opacity: 0.75;
  z-index: 2;
}

.hero-card--front {
  transform: rotate(0deg) translate(0, 0);
  z-index: 3;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
}

.hero-card--front:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

/* ── Ticker ──────────────────────────────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}

.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-track span {
  padding: 0 2rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  display: inline-block;
}

.ticker-track span::before {
  content: "◆";
  color: var(--accent-green);
  margin-right: 2rem;
  font-size: 0.6rem;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Section Shared ──────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Meme Gallery ────────────────────────────────────────────────────────── */
.gallery-section {
  padding: 5rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.security-life-section {
  background: var(--bg-card);
  max-width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.security-life-section .meme-gallery,
.security-life-section .section-header,
.security-life-section .gallery-cta {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.18s;
}

.filter-btn:hover {
  border-color: var(--accent-green);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #000;
  font-weight: 700;
}

.meme-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.gallery-card {
  cursor: pointer;
  background: #000;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
}

.gallery-card.hidden {
  display: none;
}

/* Real meme image layout */
.meme-img-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #111;
  line-height: 0;
  flex: 1;
}

.meme-template-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-card:hover .meme-template-img {
  transform: scale(1.02);
}

.gallery-cta {
  text-align: center;
  padding-top: 1rem;
}

/* ── Tactics Section ─────────────────────────────────────────────────────── */
.tactics-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 4rem;
}

.tactics-section .section-header {
  max-width: 1280px;
  margin: 0 auto 3rem;
}

.tactics-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.tactic-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-top: 3px solid var(--tc, #3fb950);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  cursor: default;
}

.tactic-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  border-color: var(--tc, #3fb950);
}

.tactic-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.tactic-name { font-size: 0.8rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--text-primary); }
.tactic-count {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ── Features Section ────────────────────────────────────────────────────── */
.features-section {
  padding: 5rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}

.feature-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-3px);
}

.feature-step {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--accent-green);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ── API Section ─────────────────────────────────────────────────────────── */
.api-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 4rem;
}

.api-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}

.api-left {
  flex: 1;
  max-width: 420px;
}

.api-left h2 {
  text-align: left;
  margin-bottom: 1rem;
}

.api-left p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.api-features {
  list-style: none;
  margin-bottom: 2rem;
}

.api-features li {
  padding: 0.35rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.api-features li::before {
  content: "";
  margin-right: 0;
}

.api-right { flex: 1; }

/* Code window */
.code-window {
  background: #010409;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: #0d1117;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #27c93f; }

.code-filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-left: 0.5rem;
}

.code-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-green);
  white-space: pre;
  overflow-x: auto;
  line-height: 1.7;
}

.code-comment { color: #6e7681; }

/* ── Team Section ────────────────────────────────────────────────────────── */
.team-section {
  padding: 5rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 0;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.team-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-3px);
}

.team-avatar { font-size: 2.5rem; margin-bottom: 0.75rem; }
.team-name { font-weight: 700; font-size: 0.92rem; margin-bottom: 0.2rem; }
.team-title { color: var(--text-secondary); font-size: 0.75rem; margin-bottom: 0.75rem; }

.team-quote {
  font-size: 0.78rem;
  color: var(--accent-green);
  font-style: italic;
  font-family: var(--font-mono);
  padding: 0.5rem;
  background: rgba(63, 185, 80, 0.07);
  border-radius: 6px;
  border-left: 2px solid var(--accent-green);
  text-align: left;
  line-height: 1.4;
}

/* ── Social Proof ────────────────────────────────────────────────────────── */
.social-proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 4rem;
  background: var(--bg-dark);
}

.sp-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.sp-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.sp-logos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sp-company {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  transition: color 0.2s, border-color 0.2s;
}

.sp-company:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* ── Testimonials ────────────────────────────────────────────────────────── */
.testimonials-section {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 4rem;
}

.testimonials-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.2s;
}

.testimonial-card:hover {
  border-color: var(--accent-blue);
}

.testimonial-quote {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial-quote::before {
  content: "\201C";
  font-size: 2rem;
  color: var(--accent-green);
  line-height: 0;
  vertical-align: -0.5rem;
  margin-right: 0.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.testimonial-avatar {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.88rem;
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* ── Blog Section ────────────────────────────────────────────────────────── */
.blog-section {
  padding: 5rem 4rem;
  border-top: 1px solid var(--border);
}

.blog-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.blog-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-3px);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-green);
  background: rgba(63,185,80,0.1);
  border: 1px solid rgba(63,185,80,0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

.blog-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.blog-card-cta {
  font-size: 0.82rem;
  color: var(--accent-green);
  font-weight: 600;
  margin-top: auto;
}

.blog-cta {
  text-align: center;
}

/* ── Stats Bar (legacy — keep for compatibility) ─────────────────────────── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-green);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 4rem 4rem 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto 3rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.footer-location { font-size: 0.82rem !important; }

.footer-links { display: flex; gap: 4rem; flex-wrap: wrap; }

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.fade-in { animation: fadeInUp 0.5s ease both; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding: 3rem 2rem;
    text-align: center;
    min-height: unset;
    gap: 3rem;
  }
  .hero-left { max-width: 100%; }
  .hero-subtitle { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-title { font-size: 2.8rem; }

  .hero-meme-stack {
    width: 260px;
    height: 300px;
  }
  .hero-card { width: 240px; }

  .api-inner { flex-direction: column; gap: 2rem; }
  .api-left { max-width: 100%; }
  .api-left h2 { text-align: center; }

  .gallery-section,
  .features-section,
  .team-section { padding: 3.5rem 1.5rem; }

  .tactics-section { padding: 3.5rem 1.5rem; }
  .tactics-section .section-header { margin: 0 auto 2rem; padding: 0 1.5rem; }
  .tactics-grid { padding: 0; }

  .api-section { padding: 3.5rem 1.5rem; }

  .social-proof { padding: 1.5rem; }
  .sp-inner { gap: 1rem; }
  .testimonials-section { padding: 3rem 1.5rem; }
  .blog-section { padding: 3.5rem 1.5rem; }

  .footer { padding: 3rem 1.5rem 1.5rem; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-links { gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    gap: 1rem;
  }
  .navbar { position: relative; }

  .hero-title { font-size: 2.2rem; }
  .hero-right { display: none; }

  .meme-gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .tactics-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .team-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  .hstat { padding: 0 0.75rem; }
  .hstat-n { font-size: 1.5rem; }
}
