/* ==============================
   TCGLens — Main Stylesheet
   tcgcardscan.com
   ============================== */

/* ── Google Fonts ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Page transition overlay ──────────────────── */
#page-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #080C24;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.32s ease;
}
#page-overlay.out { opacity: 0; }

/* ── Scroll-reveal animation ──────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

:root {
  --bg-primary: #080C24;
  --bg-secondary: #0F1535;
  --bg-card: #141B3C;
  --bg-card-hover: #1A2348;
  --gold: #F4C430;
  --gold-light: #FFD700;
  --gold-dark: #C9A227;
  --blue: #3B82F6;
  --blue-light: #60A5FA;
  --purple: #7C3AED;
  --red-live: #EF4444;
  --green: #22C55E;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: rgba(244, 196, 48, 0.15);
  --border-blue: rgba(59, 130, 246, 0.2);
  --shadow-gold: 0 0 40px rgba(244, 196, 48, 0.15);
  --shadow-blue: 0 0 40px rgba(59, 130, 246, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: 0.3s ease;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ==============================
   Typography
   ============================== */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-secondary); }

.text-gold { color: var(--gold); }
.text-blue { color: var(--blue-light); }
.text-green { color: var(--green); }
.text-white { color: var(--text-primary); }

/* ==============================
   Layout
   ============================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ==============================
   Navigation
   ============================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(8, 12, 36, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 24px; max-width: 1200px; margin: 0 auto;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem;
  white-space: nowrap;
}
.nav-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  object-fit: cover; display: block; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.nav-logo .logo-text { color: var(--text-primary); letter-spacing: 0; }
.nav-logo .logo-text span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--text-secondary);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-links a.active { color: var(--gold); }
.nav-mobile a.active {
  color: var(--gold);
  background: rgba(244, 196, 48, 0.08);
  border-left: 3px solid var(--gold);
  padding-left: 13px;
}
.nav-cta {
  padding: 9px 18px !important;
  background: var(--gold) !important;
  color: var(--bg-primary) !important;
  font-weight: 700 !important; border-radius: var(--radius-sm) !important;
}
.nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-1px); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 16px 24px; border-top: 1px solid var(--border);
  background: rgba(8, 12, 36, 0.98);
}
.nav-mobile a {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 1rem; color: var(--text-secondary);
  transition: var(--transition);
}
.nav-mobile a:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-mobile.open { display: flex; animation: slideDown 0.25s ease; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
/* Nav scrolled state */
.nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  background: rgba(8,12,36,0.97);
}

/* ==============================
   Hero Section
   ============================== */



.hero {
  padding: 140px 0 80px;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 70%),
              radial-gradient(ellipse at 80% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
              var(--bg-primary);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F4C430' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(244, 196, 48, 0.1);
  border: 1px solid rgba(244, 196, 48, 0.3);
  font-size: 0.85rem; font-weight: 600; color: var(--gold);
  margin-bottom: 20px;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title { margin-bottom: 20px; }
.hero-title .highlight {
  background: linear-gradient(135deg, var(--gold), #FF9500);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc { font-size: 1.15rem; margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; }
.hero-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-phones {
  display: flex; justify-content: center; align-items: flex-end;
  gap: -20px; position: relative;
  padding: 40px 20px 20px;
}
.phone-mockup {
  width: 200px; flex-shrink: 0;
  background: none;
  border-radius: 28px;
  border: none;
  overflow: hidden;
  position: relative;
}
.phone-mockup:nth-child(2) {
  transform: scale(1.08) translateY(-20px);
  z-index: 2;
  border-color: rgba(244, 196, 48, 0.4);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), var(--shadow-gold);
}
.phone-screen {
  width: 100%; aspect-ratio: 9/19.5;
  background: linear-gradient(160deg, #1A2040, #0E1428);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 16px 12px; gap: 12px;
}
.phone-scan-area {
  width: 80%; aspect-ratio: 1;
  border: 2px solid var(--gold);
  border-radius: 12px; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.phone-scan-area::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: scan-line 2s linear infinite;
}
@keyframes scan-line {
  0% { top: 0; }
  100% { top: 100%; }
}
.phone-mockup--screenshot {
  width: 190px; border-radius: 26px; display: block;
  object-fit: cover; object-position: top;
  background: none; border: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Left card — rotated left, behind center */
.phone-mockup--screenshot:first-child {
  transform: rotate(-10deg) translateY(40px) translateX(30px);
  opacity: 0.75;
  z-index: 1;
  box-shadow: -8px 24px 48px rgba(0,0,0,0.6);
}

/* Center card — straight, front */
.phone-mockup--center {
  width: 250px;
  border-radius: 30px;
  transform: rotate(0deg) translateY(0);
  z-index: 3;
  opacity: 1;
  background: none; border: none;
  box-shadow: 0 40px 80px rgba(0,0,0,0.75);
}

/* Right card — rotated right, behind center */
.phone-mockup--screenshot:last-child {
  transform: rotate(10deg) translateY(40px) translateX(-30px);
  opacity: 0.75;
  z-index: 1;
  box-shadow: 8px 24px 48px rgba(0,0,0,0.6);
}

/* Hover — fan розкривається */
.hero-phones:hover .phone-mockup--screenshot:first-child {
  transform: rotate(-14deg) translateY(50px) translateX(10px);
  opacity: 0.85;
}
.hero-phones:hover .phone-mockup--center {
  transform: translateY(-8px);
  box-shadow:
    0 56px 100px rgba(0,0,0,0.8),
    0 0 0 2px rgba(244,196,48,0.6),
    0 0 80px rgba(244,196,48,0.3);
}
.hero-phones:hover .phone-mockup--screenshot:last-child {
  transform: rotate(14deg) translateY(50px) translateX(-10px);
  opacity: 0.85;
}
.phone-card-img { font-size: 48px; opacity: 0.7; }
.phone-price { font-weight: 800; font-size: 1.1rem; color: var(--gold); }
.phone-price-label { font-size: 0.65rem; color: var(--text-muted); }
.phone-btn {
  width: 90%; padding: 8px; border-radius: 8px;
  background: var(--gold); color: var(--bg-primary);
  font-weight: 700; font-size: 0.75rem; text-align: center;
}

/* ==============================
   Buttons
   ============================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1rem;
  cursor: pointer; border: none;
  transition: var(--transition); text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
  box-shadow: 0 8px 24px rgba(244, 196, 48, 0.3);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(244, 196, 48, 0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 36px; font-size: 1.1rem; border-radius: var(--radius); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

.app-store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-radius: var(--radius-sm);
  background: var(--text-primary); color: #000;
  font-weight: 700; transition: var(--transition);
}
.app-store-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.app-store-btn svg { width: 24px; height: 24px; }
.app-store-btn-text { display: flex; flex-direction: column; line-height: 1.2; }
.app-store-btn-sub { font-size: 0.7rem; font-weight: 400; opacity: 0.7; }
.app-store-btn-name { font-size: 1rem; font-weight: 800; }

/* ==============================
   Section Headers
   ============================== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; padding: 6px 14px;
  background: rgba(244, 196, 48, 0.1);
  border: 1px solid rgba(244, 196, 48, 0.25);
  border-radius: 100px; color: var(--gold);
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.section-title { margin-bottom: 16px; }
.section-desc { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ==============================
   Feature Cards
   ============================== */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  opacity: 0; transition: var(--transition);
}
.feature-card:hover { border-color: rgba(244, 196, 48, 0.3); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px;
  background: rgba(244, 196, 48, 0.1);
  border: 1px solid rgba(244, 196, 48, 0.2);
}
.feature-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}
.feature-icon.purple {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.2);
}
.feature-icon.green {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
}
.feature-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.feature-card p { font-size: 0.95rem; }

/* ==============================
   Steps
   ============================== */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px; position: relative;
}
.step {
  text-align: center; position: relative;
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary); font-weight: 900; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(244, 196, 48, 0.3);
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.95rem; }

/* ==============================
   Testimonials / Review Cards
   ============================== */
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.review-card-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.review-avatar {
  width: 52px; height: 52px; border-radius: 12px;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border);
}
.review-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 14px; }
.review-text { font-size: 0.95rem; margin-bottom: 16px; font-style: italic; color: var(--text-secondary); }
.review-author { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.review-role { font-size: 0.8rem; color: var(--text-muted); }

/* ==============================
   CTA Section
   ============================== */
.cta-section {
  background: linear-gradient(135deg, #0F1535 0%, #1A0F35 50%, #0F1535 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center; position: relative; overflow: hidden;
  margin: 0 24px;
}
.cta-section::before {
  content: ''; position: absolute; top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,196,48,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { font-size: 1.1rem; margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ==============================
   Supported TCGs
   ============================== */
.tcg-logos {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 16px; padding: 32px 0;
}
.tcg-logo {
  padding: 12px 24px; border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-weight: 700; font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.tcg-logo:hover { border-color: var(--gold); color: var(--gold); }

/* ==============================
   Pricing / Stats Banner
   ============================== */
.stats-banner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  background: var(--bg-card); padding: 36px 24px; text-align: center;
}
.stat-value {
  font-size: 2.2rem; font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--blue-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.9rem; color: var(--text-secondary); margin-top: 6px; }

/* ==============================
   FAQ
   ============================== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq-question {
  padding: 20px 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 1rem;
  user-select: none; transition: var(--transition);
}
.faq-question:hover { color: var(--gold); }
.faq-arrow { font-size: 1.2rem; transition: var(--transition); color: var(--text-muted); }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--gold); }
.faq-answer {
  padding: 0 24px; max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }
.faq-answer p { font-size: 0.95rem; }

/* ==============================
   Blog Cards
   ============================== */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { border-color: rgba(244,196,48,0.3); transform: translateY(-4px); }
.blog-card-img {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card-hover));
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; overflow: hidden;
}
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 24px; }
.blog-card-tag {
  display: inline-block; padding: 4px 10px;
  background: rgba(244,196,48,0.1); border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.blog-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.blog-card p { font-size: 0.9rem; }
.blog-card-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; font-size: 0.8rem; color: var(--text-muted);
}

/* ==============================
   Article / Blog Post
   ============================== */
.article-hero { padding: 130px 0 60px; }
.article-meta {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 20px;
}
.article-tag {
  padding: 5px 12px; border-radius: 100px;
  background: rgba(244,196,48,0.1); border: 1px solid rgba(244,196,48,0.25);
  font-size: 0.8rem; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.article-date { font-size: 0.85rem; color: var(--text-muted); }
.article-body {
  max-width: 760px; margin: 0 auto; padding: 0 24px 80px;
}
.article-body h2 { margin: 48px 0 16px; color: var(--text-primary); }
.article-body h3 { margin: 32px 0 12px; color: var(--text-primary); }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol {
  margin: 0 0 20px 24px; display: flex; flex-direction: column; gap: 8px;
  list-style: disc;
}
.article-body ol { list-style: decimal; }
.article-body li { color: var(--text-secondary); font-size: 0.95rem; }
.article-body strong { color: var(--text-primary); }
.article-callout {
  background: rgba(244,196,48,0.08); border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px; margin: 24px 0;
}
.article-callout p { color: var(--text-primary); margin: 0; }
.article-cta {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; text-align: center;
  margin: 48px 0;
}
.article-cta h3 { margin-bottom: 12px; }
.article-cta p { margin-bottom: 20px; }

/* ==============================
   Footer
   ============================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p { margin-top: 16px; font-size: 0.9rem; max-width: 280px; }
.footer-brand .nav-logo { margin-bottom: 4px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.9rem; color: var(--text-secondary); transition: var(--transition); }
.footer-col ul a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.85rem; color: var(--text-muted); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--text-secondary); }

/* ==============================
   Live Badge
   ============================== */
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 100px;
  background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3);
  font-size: 0.75rem; font-weight: 800; color: var(--red-live);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red-live); animation: pulse 1.5s infinite; }

/* ==============================
   Keyword Pills
   ============================== */
.keyword-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.keyword-pill {
  padding: 6px 14px; border-radius: 100px;
  background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2);
  font-size: 0.8rem; color: var(--blue-light);
}

/* ==============================
   Page-specific hero variants
   ============================== */
.page-hero {
  padding: 130px 0 72px;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.1) 0%, transparent 60%), var(--bg-primary);
  text-align: center;
}
.page-hero h1 { margin-bottom: 20px; }
.page-hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 32px; }

/* ==============================
   Comparison Table
   ============================== */
.compare-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
}
.compare-table th {
  padding: 16px 20px; text-align: left;
  background: var(--bg-secondary); font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
}
.compare-table th.highlight { color: var(--gold); }
.compare-table td { padding: 14px 20px; border-top: 1px solid var(--border); font-size: 0.95rem; }
.compare-table tr:hover td { background: var(--bg-card-hover); }
.check { color: var(--green); font-size: 1.1rem; }
.cross { color: var(--text-muted); }

/* ==============================
   Responsive
   ============================== */
/* ── Tablet ────────────────────────────────────── */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-phones { order: -1; }
  .phone-mockup { width: 160px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Mobile ────────────────────────────────────── */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }

  .container { padding: 0 20px; }

  .section { padding: 52px 0; }
  .section-sm { padding: 36px 0; }

  /* Hero */
  .hero { padding: 96px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-badge { font-size: 0.78rem; padding: 5px 12px; }
  .hero-title { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .hero-desc {
    font-size: 1rem; max-width: 100%;
    overflow-wrap: break-word; word-break: break-word;
  }

  /* Buttons — стек + обмежена ширина */
  .hero-actions {
    flex-direction: column; align-items: stretch; gap: 10px;
  }
  .hero-actions .app-store-btn,
  .hero-actions .btn {
    width: 100%; justify-content: center;
  }

  /* App Store button мобільний */
  .app-store-btn {
    padding: 14px 20px;
    border-radius: 12px;
  }

  /* Stats під hero */
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .hero-stat-value { font-size: 1.3rem; }

  .hero-visual { display: none !important; }

  /* Section headers */
  .section-header { margin-bottom: 36px; }
  .section-tag { font-size: 0.72rem; }
  .section-desc { font-size: 1rem; }

  /* Features grid — 1 колонка */
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 24px 20px; }

  /* Steps — 1 колонка */
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Reviews — 1 колонка */
  .reviews-grid { grid-template-columns: 1fr; }

  /* Blog grid */
  .blog-grid { grid-template-columns: 1fr; }

  /* Stats banner */
  .stats-banner { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 24px 16px; }
  .stat-value { font-size: 1.7rem; }

  /* CTA section */
  .cta-section { padding: 40px 20px; margin: 0 12px; border-radius: 16px; }
  .cta-section h2 { font-size: 1.5rem; }
  .cta-section p { font-size: 1rem; }
  .cta-buttons { flex-direction: column; align-items: center; gap: 12px; }
  .cta-buttons .app-store-btn,
  .cta-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* TCG logos */
  .tcg-logos { gap: 10px; padding: 20px 0; }
  .tcg-logo { padding: 9px 16px; font-size: 0.82rem; }

  /* Footer */
  .footer { padding: 48px 0 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-brand p { max-width: 100%; }

  /* Page hero */
  .page-hero { padding: 100px 0 52px; }
  .page-hero h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .page-hero p { font-size: 1rem; }

  /* Keyword pills */
  .keyword-pills { gap: 8px; }
  .keyword-pill { font-size: 0.74rem; padding: 5px 11px; }

  /* Buttons general */
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }
  .btn { font-size: 0.95rem; }

  /* Compare table */
  .compare-table th, .compare-table td { padding: 12px 14px; font-size: 0.85rem; }

  /* Article body */
  .article-body { padding: 0 20px 60px; }
  .article-hero { padding: 100px 0 40px; }

  /* FAQ */
  .faq-question { font-size: 0.95rem; padding: 16px 18px; }
  .faq-answer { padding: 0 18px; }
  .faq-item.open .faq-answer { padding: 0 18px 16px; }
}
