@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --primary-50:  #FFF7ED;
  --primary-100: #FFEDD5;
  --primary-400: #FB923C;
  --primary-500: #FF6B2C;
  --primary-600: #EA580C;
  --primary-700: #C2410C;

  --bg-primary:   #0A0A0F;
  --bg-secondary: #12121A;
  --bg-tertiary:  #1A1A25;
  --bg-elevated:  #222230;
  --bg-hover:     #2A2A38;

  --text-primary:   #FFFFFF;
  --text-secondary: #B8B8CC;
  --text-muted:     #7A7A8E;

  --border-default: #2A2A35;
  --border-hover:   #3A3A45;
  --border-focus:   var(--primary-500);

  --success: #22C55E;
  --error:   #EF4444;
  --info:    #3B82F6;
  --warning: #F59E0B;

  --shadow-glow:       0 0 30px rgba(255,107,44,0.3);
  --gradient-primary:  linear-gradient(135deg, var(--primary-500) 0%, var(--primary-400) 100%);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --font-sans: 'Roboto', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
  --bg-primary:   #F5F5FA;
  --bg-secondary: #FFFFFF;
  --bg-tertiary:  #EEEEF6;
  --bg-elevated:  #E7E7F2;
  --bg-hover:     #DEDEED;
  --text-primary:   #0A0A15;
  --text-secondary: #3A3A55;
  --text-muted:     #7A7A9A;
  --border-default: #D8D8EE;
  --border-hover:   #BCBCDC;
  --shadow-glow:    0 0 30px rgba(255,107,44,0.2);
}

/* ── Light theme element overrides ── */
[data-theme="light"] .navbar { background: rgba(245,245,250,0.92); }
[data-theme="light"] .article-card { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .article-card:hover { border-color: rgba(255,107,44,0.3); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
[data-theme="light"] .nl-box, [data-theme="light"] .dl-box { background: rgba(255,255,255,0.88); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .fcard { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .fcard:hover { border-color: rgba(255,107,44,0.3); box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
[data-theme="light"] .modal-box { background: #FFFFFF; }
[data-theme="light"] .toast { background: #FFFFFF; border-color: rgba(0,0,0,0.1); box-shadow: 0 4px 24px rgba(0,0,0,0.12); }
[data-theme="light"] footer { background: #FFFFFF; }
[data-theme="light"] .btn-theme { background: rgba(194,65,12,0.08); border-color: rgba(194,65,12,0.3); color: var(--primary-600); }
[data-theme="light"] .btn-theme:hover { border-color: rgba(194,65,12,0.55); background: rgba(194,65,12,0.15); box-shadow: 0 0 14px rgba(194,65,12,0.18); }

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Background ── */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
#skyCanvas {
  display: block; width: 100%; height: 100%;
}

.page-wrap { position: relative; z-index: 1; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-default);
  padding: 0 2rem;
}
.navbar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-size: 1.3rem; font-weight: 900; text-decoration: none;
  color: var(--text-primary); letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 0.6rem;
}
.nav-logo span { color: var(--primary-500); }
.nav-logo-mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: linear-gradient(135deg, #FF6B2C, #FB923C);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px rgba(255,107,44,0.5);
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.btn-theme {
  background: none; border: 1px solid rgba(255,107,44,0.28); cursor: pointer;
  color: var(--primary-500); width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
  position: relative; overflow: hidden;
  background: rgba(255,107,44,0.07);
}
.btn-theme:hover { border-color: rgba(255,107,44,0.55); background: rgba(255,107,44,0.14); box-shadow: 0 0 14px rgba(255,107,44,0.22); }
.btn-theme .icon-moon, .btn-theme .icon-sun {
  position: absolute; inset: 0; margin: auto;
  pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
}
.btn-theme .icon-sun  { opacity: 0; transform: rotate(45deg) scale(0.7); }
.btn-theme .icon-moon { opacity: 1; transform: rotate(0deg)  scale(1); }
[data-theme="light"] .btn-theme .icon-moon { opacity: 0; transform: rotate(-45deg) scale(0.7); }
[data-theme="light"] .btn-theme .icon-sun  { opacity: 1; transform: rotate(0deg)   scale(1); }


/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-lg);
  font-size: 0.9rem; font-weight: 700; text-decoration: none;
  cursor: pointer; border: none; transition: all 0.2s; line-height: 1;
}
.btn-primary {
  background: var(--gradient-primary); color: #fff;
  box-shadow: 0 0 0 1px rgba(255,107,44,0.3), 0 8px 32px rgba(255,107,44,0.4), 0 0 80px rgba(255,107,44,0.15);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  border-radius: inherit;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,107,44,0.5), 0 12px 40px rgba(255,107,44,0.5), 0 0 100px rgba(255,107,44,0.2); }
.btn-outline {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border-default);
}
.btn-outline:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* ── Section wrapper ── */
.section { padding: 80px 2rem; }
.section-sm { padding: 60px 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.s-head { text-align: center; margin-bottom: 48px; }
.s-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.2; }
.s-title span {
  background: linear-gradient(135deg, #FF6B2C, #FFB347);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.s-sub { color: var(--text-secondary); font-size: 1.1rem; margin-top: 0.75rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ── Animations ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes live-pulse {
  0%  { box-shadow: 0 0 0 0 rgba(255,107,44,0.6); }
  70% { box-shadow: 0 0 0 7px rgba(255,107,44,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,107,44,0); }
}

/* ── Hero ── */
.hero { padding: 120px 2rem 40px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,107,44,0.1); border: 1px solid rgba(255,107,44,0.3);
  color: var(--primary-400); font-size: 0.8rem; font-weight: 700;
  padding: 0.4rem 1rem; border-radius: 20px; margin-bottom: 1.5rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  animation: fade-up 0.6s ease both; animation-delay: 0s;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #FF6B2C;
  box-shadow: 0 0 0 0 rgba(255,107,44,0.6);
  animation: live-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: 1.25rem;
  animation: fade-up 0.6s ease both; animation-delay: 0.1s;
}
.hero h1 span { color: var(--primary-500); }
.hero-gradient-text {
  background: linear-gradient(135deg, #FF6B2C 0%, #FF9A5C 40%, #FFB347 70%, #FF6B2C 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}
.hero p {
  font-size: 1.15rem; color: var(--text-secondary); max-width: 600px;
  margin: 0 auto 2.5rem; line-height: 1.7;
  animation: fade-up 0.6s ease both; animation-delay: 0.2s;
}
.hero-btns {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fade-up 0.6s ease both; animation-delay: 0.3s;
}
.hero-stats {
  display: flex; gap: 3rem; justify-content: center; align-items: flex-start; margin-top: 60px; flex-wrap: wrap;
  animation: fade-up 0.6s ease both; animation-delay: 0.4s;
}
.hero-stat-num { font-size: 2.75rem; font-weight: 900; color: var(--primary-500); line-height: 1; display: flex; align-items: center; justify-content: center; min-height: 1em; }
.od-slot { display: inline-block; overflow: hidden; height: 1em; line-height: 1em; vertical-align: middle; }
.od-digit { display: block; }
.od-sep { display: inline-block; line-height: 1em; vertical-align: middle; }
@keyframes odRoll { 0%{transform:translateY(110%);opacity:0;filter:blur(2px)} 60%{filter:blur(0)} 100%{transform:translateY(0);opacity:1} }
.hero-stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ── Newsletter signup ── */
.nl-box {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-2xl); padding: 48px; max-width: 560px; margin: 0 auto;
  text-align: center;
}
.nl-icon {
  width: 56px; height: 56px; background: rgba(255,107,44,0.1);
  border: 1px solid rgba(255,107,44,0.2); border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-500); margin: 0 auto 1.5rem;
}
.nl-box h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.75rem; }
.nl-counter {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.85rem; color: var(--text-secondary);
  background: rgba(255,107,44,0.07); border: 1px solid rgba(255,107,44,0.2);
  border-radius: 2rem; padding: 0.3rem 0.9rem; margin-bottom: 1.1rem;
}
.nl-counter strong { color: var(--text-primary); font-weight: 700; }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #FF6B2C; flex-shrink: 0;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.5)} }
.nl-box p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.95rem; }
.nl-form { display: flex; flex-direction: column; gap: 0.75rem; }
.nl-input {
  width: 100%; padding: 0.8rem 1rem;
  background: var(--bg-tertiary); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); color: var(--text-primary);
  font-family: var(--font-sans); font-size: 0.9rem; transition: border-color 0.2s;
}
.nl-input:focus { outline: none; border-color: var(--border-focus); }
.nl-input::placeholder { color: var(--text-muted); }
.nl-form .btn { width: 100%; justify-content: center; padding: 0.9rem; font-size: 0.95rem; }
.nl-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }
.nl-note a { color: var(--primary-400); text-decoration: none; }
.nl-collab { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 1.25rem; padding: 0.85rem 1rem; background: rgba(255,107,44,0.07); border: 1px solid rgba(255,107,44,0.2); border-radius: var(--radius-md); font-size: 0.82rem; color: var(--text-secondary); text-align: left; }
.nl-collab-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.nl-collab strong { color: var(--text-primary); }
.nl-collab-link { color: var(--primary-400); font-weight: 700; text-decoration: none; }
.nl-collab-link:hover { text-decoration: underline; }
.nl-collab-desc { color: var(--text-muted); }

/* ── Downloads ── */
.dl-box {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-2xl); padding: 48px; max-width: 560px; margin: 0 auto;
  text-align: center;
}
.lock-ic {
  width: 56px; height: 56px; background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2); border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  color: #3B82F6; margin: 0 auto 1.5rem;
}
.dl-row { display: flex; gap: 0.5rem; }
.dl-row .nl-input { flex: 1; }
.dl-row .btn { white-space: nowrap; }
.dl-files { margin-top: 1.5rem; text-align: left; display: none; }
.dl-file-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-tertiary); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 0.875rem 1rem; margin-bottom: 0.5rem;
}
.dl-file-name { font-size: 0.9rem; color: var(--text-primary); font-weight: 500; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--gradient-primary); color: #fff;
  font-size: 0.8rem; font-weight: 700; padding: 0.4rem 0.875rem;
  border-radius: var(--radius-md); text-decoration: none;
  border: none; cursor: pointer; transition: opacity 0.2s;
}
.dl-btn:hover { opacity: 0.9; }
.dl-note-small { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.75rem; }

/* ── Articles ── */
.articles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem;
}
.article-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl); cursor: pointer; overflow: hidden;
  transition: all 0.2s; text-decoration: none; display: block; color: inherit;
}
.article-card:hover { border-color: rgba(255,107,44,0.2); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.article-thumb {
  width: 100%; height: 180px; object-fit: cover; display: block;
  background: var(--bg-elevated);
}
.article-thumb-placeholder {
  width: 100%; height: 180px; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 2rem;
}
.article-body { padding: 1.25rem; }
.article-credit {
  font-size: 0.7rem; color: var(--text-muted); margin-top: 0.625rem;
}
.article-credit a { color: var(--text-muted); text-decoration: underline; }
.article-cat {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 0.25rem 0.625rem; border-radius: 20px; margin-bottom: 0.875rem;
}
.article-cat.news       { background: rgba(59,130,246,0.15);  color: #3B82F6;  border: 1px solid rgba(59,130,246,0.25); }
.article-cat.tutorial   { background: rgba(34,197,94,0.15);   color: #22C55E;  border: 1px solid rgba(34,197,94,0.25); }
.article-cat.tools      { background: rgba(139,92,246,0.15);  color: #8B5CF6;  border: 1px solid rgba(139,92,246,0.25); }
.article-cat.prompts    { background: rgba(255,107,44,0.15);  color: #FF6B2C;  border: 1px solid rgba(255,107,44,0.25); }
.article-cat.automation { background: rgba(245,158,11,0.15);  color: #F59E0B;  border: 1px solid rgba(245,158,11,0.25); }
.article-cat.analysis   { background: rgba(239,68,68,0.15);   color: #EF4444;  border: 1px solid rgba(239,68,68,0.25); }
.article-cat.beginners  { background: rgba(6,182,212,0.15);   color: #06B6D4;  border: 1px solid rgba(6,182,212,0.25); }
.article-title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 0.5rem; }
.article-summary { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }
.article-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; justify-content: space-between; }
.article-read-more { color: var(--primary-500); font-weight: 600; font-size: 0.8rem; }

/* Modal hero image */
.modal-hero-img { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 1.5rem; display: block; }
.modal-hero-credit { font-size: 0.72rem; color: var(--text-muted); margin-top: -1rem; margin-bottom: 1.5rem; }
.modal-hero-credit a { color: var(--text-muted); text-decoration: underline; }

/* Article modal */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg-secondary); border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl); padding: 48px; max-width: 720px; width: 100%;
  position: relative; animation: modal-in 0.2s ease;
}
@keyframes modal-in { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
.modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: var(--bg-elevated); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); transition: all 0.2s;
}
.modal-close:hover { color: var(--text-primary); border-color: var(--border-hover); }
.modal-content h2, .modal-content h3 { margin: 1.5rem 0 0.75rem; line-height: 1.35; }
.modal-content h2 { font-size: 1.35rem; }
.modal-content h3 { font-size: 1.1rem; }
.modal-content p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.75; }
.modal-content ul, .modal-content ol { color: var(--text-secondary); padding-left: 1.5rem; margin-bottom: 1rem; }
.modal-content li { margin-bottom: 0.4rem; line-height: 1.65; }
.modal-content strong { color: var(--text-primary); }
.modal-content blockquote {
  border-left: 3px solid var(--primary-500); padding-left: 1rem;
  color: var(--text-muted); font-style: italic; margin: 1rem 0;
}
.modal-content code {
  font-family: var(--font-mono); font-size: 0.85em;
  background: var(--bg-elevated); padding: 0.15em 0.4em;
  border-radius: var(--radius-sm); color: var(--primary-400);
}
.modal-article-title {
  font-size: clamp(1.25rem, 4vw, 1.6rem); font-weight: 800;
  line-height: 1.3; margin-bottom: 0.75rem;
}

/* Share section */
.share-section {
  margin-top: 2.5rem; padding-top: 1.75rem;
  border-top: 1px solid var(--border-default);
}
.share-label {
  font-size: 0.8rem; color: var(--text-muted);
  text-align: center; margin-bottom: 1rem;
}
.share-btns {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1rem; border-radius: var(--radius-md);
  font-size: 0.8rem; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap; border: none;
}
.share-btn:hover { opacity: 0.82; transform: translateY(-1px); }
.share-x  { background: #000; color: #fff; }
.share-fb { background: #1877f2; color: #fff; }
.share-li { background: #0a66c2; color: #fff; }
.share-copy {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border-default) !important;
}
.share-copy:hover { color: var(--primary-500); border-color: var(--primary-500) !important; }
[data-theme="light"] .share-x { background: #000; }

/* ── About / features ── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem;
}
.fcard {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl); padding: 1.5rem; transition: border-color 0.2s;
}
.fcard:hover { border-color: rgba(255,107,44,0.2); box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.ficon {
  width: 44px; height: 44px; background: rgba(255,107,44,0.1);
  border-radius: var(--radius-lg); display: flex; align-items: center;
  justify-content: center; color: var(--primary-500); margin-bottom: 1rem;
}
.fcard h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.fcard p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ── YouTube ── */
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.yt-card {
  background: var(--bg-secondary); border: 1px solid var(--border-default);
  border-radius: var(--radius-xl); overflow: hidden;
}
.yt-thumb {
  position: relative; padding-top: 56.25%; background: var(--bg-elevated);
  overflow: hidden;
}
.yt-thumb a {
  position: absolute; inset: 0; display: block;
}
.yt-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s;
}
.yt-card:hover .yt-thumb img { transform: scale(1.04); }
.yt-play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35); transition: background 0.2s;
}
.yt-card:hover .yt-play-btn { background: rgba(0,0,0,0.5); }
.yt-play-btn svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.yt-info { padding: 1rem; }
.yt-info h4 { font-size: 0.9rem; font-weight: 600; line-height: 1.4; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border-default);
  padding: 48px 2rem; background: var(--bg-secondary);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.75rem; line-height: 1.6; }
.footer-socials { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.footer-social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--bg-elevated); border: 1px solid var(--border-default);
  color: var(--text-muted); text-decoration: none; transition: all 0.18s;
  font-size: 1rem;
}
.footer-social-btn:hover { border-color: rgba(255,107,44,0.5); color: var(--primary-400); background: rgba(255,107,44,0.08); }
/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: var(--bg-elevated); border-top: 1px solid var(--border-default);
  padding: 1rem 2rem; backdrop-filter: blur(12px);
  animation: toast-in 0.3s ease;
}
.cookie-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cookie-inner p { font-size: 0.875rem; color: var(--text-secondary); margin: 0; }
.cookie-inner a { color: var(--primary-400); text-decoration: none; }
.cookie-btns { display: flex; gap: 0.5rem; flex-shrink: 0; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.875rem; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary-500); }
.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--primary-500); }

/* ── Toast ── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  background: var(--bg-elevated); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 0.875rem 1.25rem;
  font-size: 0.875rem; max-width: 320px;
  animation: toast-in 0.25s ease; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.success { border-color: rgba(34,197,94,0.4); }
.toast.error   { border-color: rgba(239,68,68,0.4); }
.toast-title { font-weight: 700; margin-bottom: 0.2rem; }
.toast.success .toast-title { color: #22C55E; }
.toast.error   .toast-title { color: #EF4444; }
.toast-body { color: var(--text-secondary); }
@keyframes toast-in { from { opacity:0; transform:translateX(16px); } to { opacity:1; transform:none; } }

/* ── Load more ── */
.load-more-wrap { text-align: center; margin-top: 2.5rem; }

/* ── Skeleton loader ── */
.skeleton { background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-hover) 50%, var(--bg-elevated) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-md); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Divider ── */
.divider {
  border: none; border-top: 1px solid var(--border-default); margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  /* Navbar */
  .navbar { padding: 0 1rem; }
  .navbar-inner { padding: 0; height: 54px; }
  .nav-links { display: none; }
  .nav-logo { font-size: 1.1rem; }

  /* Layout */
  .section { padding: 56px 1.1rem; }
  .section-sm { padding: 44px 1.1rem; }
  .container { padding: 0; }

  /* Hero */
  .hero { padding: 72px 1.1rem 48px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .hero p { font-size: 1rem; margin-bottom: 2rem; }
  .hero-btns { flex-direction: column; align-items: center; gap: 0.75rem; }
  .hero-btns .btn { width: 100%; max-width: 320px; justify-content: center; }
  .hero-stats { gap: 1.5rem; margin-top: 40px; }
  .hero-stat-num { font-size: 1.6rem; }

  /* Newsletter box */
  .nl-box { padding: 2rem 1.25rem; }
  .nl-box h2 { font-size: 1.4rem; }

  /* Download box */
  .dl-box { padding: 2rem 1.25rem; }
  .dl-row { flex-direction: column; gap: 0.75rem; }
  .dl-row .btn { width: 100%; justify-content: center; }

  /* Articles */
  .articles-grid { grid-template-columns: 1fr; gap: 1rem; }
  .article-thumb { height: 160px; }

  /* Feature cards */
  .features-grid { grid-template-columns: 1fr !important; }

  /* Modal */
  .modal-overlay { padding: 12px 0; align-items: flex-start; }
  .modal-box { padding: 1.5rem 1rem; border-radius: var(--radius-xl); margin: 0 0.5rem; }
  .modal-content h2 { font-size: 1.1rem; }
  .modal-content h3 { font-size: 1rem; }
  .modal-hero-img { max-height: 200px; }
  .share-btns { gap: 0.5rem; }
  .share-btn { padding: 0.5rem 0.75rem; font-size: 0.75rem; }

  /* YouTube */
  .yt-grid { grid-template-columns: 1fr !important; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(1.75rem, 10vw, 2.5rem); }
  .nl-box { padding: 1.5rem 1rem; }
  .hero-stats { flex-direction: column; gap: 1rem; align-items: center; }
  .navbar { padding: 0 0.75rem; }
  .section { padding: 44px 0.9rem; }
}

/* ── Unsubscribe page ── */
.unsub-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.unsub-card {
  background: var(--bg-secondary); border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl); padding: 3rem 2.5rem; max-width: 460px;
  text-align: center;
}
.unsub-icon { font-size: 3rem; margin-bottom: 1rem; }
.unsub-card h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.unsub-card p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* ── Partner rotator ── */
.partners-rotator {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.partners-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.partner-card {
  flex: 0 0 calc(33.333% - 0.84rem);
  min-width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, opacity 0.5s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 1;
}
.partner-card:hover { border-color: rgba(255,107,44,0.5); transform: translateY(-2px); }
.partner-card.fading { opacity: 0; }
.partner-logo { width: 120px; height: 50px; object-fit: contain; border-radius: 6px; }
.partner-logo-placeholder {
  width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,107,44,0.2), rgba(107,150,255,0.2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: var(--primary-400);
}
.partner-name { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.partner-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.partner-link { font-size: 0.75rem; color: var(--primary-400); font-weight: 600; margin-top: auto; }
@media (max-width: 768px) {
  .partner-card { flex: 0 0 calc(50% - 0.63rem); }
}
@media (max-width: 480px) {
  .partner-card { flex: 0 0 85%; }
}
