/* ===========================
   YouTube Analyzer by Norcanto
   Main Stylesheet
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ---- CSS Variables ---- */
:root {
  --yt-red: #FF0000;
  --yt-red-dark: #CC0000;
  --yt-red-light: #FF3333;
  --yt-red-glow: rgba(255,0,0,0.15);

  --black: #0A0A0B;
  --dark-1: #111113;
  --dark-2: #18181B;
  --dark-3: #1E1E22;
  --dark-4: #26262C;
  --dark-5: #313138;

  --white: #FFFFFF;
  --gray-50: #F8F8FA;
  --gray-100: #F1F1F5;
  --gray-200: #E2E2EA;
  --gray-300: #C9C9D6;
  --gray-400: #9999AA;
  --gray-500: #6B6B7D;
  --gray-600: #4A4A58;
  --gray-700: #343440;

  --green: #00C853;
  --green-dark: #00A845;
  --green-light: rgba(0,200,83,0.12);

  --gold: #F5A623;
  --blue: #2196F3;

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.18), 0 8px 24px rgba(0,0,0,0.10);
  --shadow-red: 0 8px 32px rgba(255,0,0,0.25), 0 2px 8px rgba(255,0,0,0.12);
  --shadow-green: 0 8px 32px rgba(0,200,83,0.20);

  --transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.4s cubic-bezier(0.4,0,0.2,1);

  /* Light mode */
  --bg: var(--white);
  --bg-2: var(--gray-50);
  --bg-3: var(--gray-100);
  --surface: var(--white);
  --surface-2: var(--gray-50);
  --border: var(--gray-200);
  --border-light: var(--gray-100);
  --text: #0A0A0B;
  --text-2: #3A3A48;
  --text-3: var(--gray-500);
  --text-4: var(--gray-400);
  --header-bg: rgba(255,255,255,0.88);
  --card-bg: var(--white);
  --card-border: var(--gray-100);
  --input-bg: var(--white);
}

[data-theme="dark"] {
  --bg: var(--dark-1);
  --bg-2: var(--dark-2);
  --bg-3: var(--dark-3);
  --surface: var(--dark-2);
  --surface-2: var(--dark-3);
  --border: var(--dark-5);
  --border-light: var(--dark-4);
  --text: #F4F4F8;
  --text-2: #C8C8D8;
  --text-3: var(--gray-400);
  --text-4: var(--gray-600);
  --header-bg: rgba(17,17,19,0.90);
  --card-bg: var(--dark-2);
  --card-border: var(--dark-4);
  --input-bg: var(--dark-3);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p { color: var(--text-2); }

/* ---- Layout ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header p { font-size: 1.05rem; color: var(--text-3); max-width: 540px; margin: 12px auto 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius-full);
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--yt-red); color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { background: var(--yt-red-dark); transform: translateY(-1px); box-shadow: 0 12px 36px rgba(255,0,0,0.32); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--gray-300); background: var(--surface-2); transform: translateY(-1px); }
.btn-outline-red {
  background: transparent; color: var(--yt-red);
  border: 1.5px solid var(--yt-red);
}
.btn-outline-red:hover { background: var(--yt-red); color: #fff; box-shadow: var(--shadow-red); }
.btn-green {
  background: var(--green); color: #fff;
  box-shadow: var(--shadow-green);
}
.btn-green:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-xl { padding: 18px 40px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-lg svg, .btn-xl svg { width: 18px; height: 18px; }

/* ---- Cards ---- */
.card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-xl); padding: 28px;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-glass {
  background: rgba(255,255,255,0.7); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.5);
}
[data-theme="dark"] .card-glass {
  background: rgba(30,30,34,0.7);
  border-color: rgba(255,255,255,0.08);
}

/* ---- Badge ---- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
}
.badge-red { background: var(--yt-red-glow); color: var(--yt-red); }
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-gray { background: var(--bg-3); color: var(--text-3); }

/* ========================
   HEADER
   ======================== */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.header-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--text); white-space: nowrap;
}
.header-logo img {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
}
.header-logo span { color: var(--yt-red); }
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  padding: 8px 14px; border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 500; color: var(--text-2);
  transition: var(--transition);
}
.header-nav a:hover, .header-nav a.active { color: var(--text); background: var(--bg-3); }
.header-controls { display: flex; align-items: center; gap: 10px; }
.lang-switcher {
  display: flex; align-items: center; gap: 0;
  background: var(--bg-3); border-radius: var(--radius-full);
  padding: 3px;
}
.lang-btn {
  padding: 5px 12px; border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 600; color: var(--text-3);
  transition: var(--transition);
}
.lang-btn.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.lang-btn:hover:not(.active) { color: var(--text-2); }
.theme-toggle {
  width: 38px; height: 38px; border-radius: var(--radius-full);
  background: var(--bg-3); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.theme-toggle:hover { background: var(--border); color: var(--text); }
.theme-toggle svg { width: 17px; height: 17px; }
.header-cta { flex-shrink: 0; }

.hamburger {
  display: none; width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm); background: var(--bg-3);
  color: var(--text-2);
}
.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 16px 24px; z-index: 999;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px; border-radius: var(--radius-md);
  font-weight: 500; color: var(--text-2);
  transition: var(--transition);
}
.mobile-menu a:hover { background: var(--bg-3); color: var(--text); }

/* ========================
   HERO
   ======================== */
#hero {
  padding: 140px 0 80px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(255,0,0,0.07) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 80% 60%, rgba(255,0,0,0.04) 0%, transparent 60%);
}
[data-theme="dark"] .hero-bg {
  background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(255,0,0,0.12) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 80% 60%, rgba(255,0,0,0.06) 0%, transparent 60%);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--border-light) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 80%);
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 780px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yt-red-glow); color: var(--yt-red);
  border: 1px solid rgba(255,0,0,0.2);
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em;
  margin-bottom: 24px;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--yt-red); }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-3); max-width: 560px; margin: 0 auto 36px;
  line-height: 1.65;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; margin-top: 40px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800;
  color: var(--text);
}
.hero-stat-label { font-size: 0.78rem; color: var(--text-3); margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 32px; background: var(--border); }

/* ========================
   ANALYZER BLOCK
   ======================== */
#analyzer {
  padding: 0 0 80px;
  position: relative; z-index: 1;
}
.analyzer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  max-width: 820px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.analyzer-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--yt-red), #FF6B6B, var(--yt-red));
}
.analyzer-label {
  font-size: 0.82rem; font-weight: 600; color: var(--text-3);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px;
}
.analyzer-input-group {
  display: flex; gap: 12px; align-items: stretch;
}
.analyzer-input-wrap {
  flex: 1; position: relative;
}
.analyzer-input-wrap svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--gray-400); pointer-events: none;
}
.analyzer-input {
  width: 100%; height: 56px; padding: 0 16px 0 48px;
  background: var(--input-bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); font-size: 0.95rem; color: var(--text);
  transition: var(--transition); outline: none;
}
.analyzer-input::placeholder { color: var(--text-4); }
.analyzer-input:focus {
  border-color: var(--yt-red);
  box-shadow: 0 0 0 3px rgba(255,0,0,0.1);
}
.analyze-btn {
  height: 56px; padding: 0 28px;
  background: var(--yt-red); color: #fff;
  border-radius: var(--radius-lg); font-weight: 600; font-size: 0.95rem;
  font-family: var(--font-body);
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-red); transition: var(--transition);
  white-space: nowrap; flex-shrink: 0;
}
.analyze-btn:hover { background: var(--yt-red-dark); transform: translateY(-1px); box-shadow: 0 12px 36px rgba(255,0,0,0.35); }
.analyze-btn:active { transform: translateY(0); }
.analyze-btn svg { width: 17px; height: 17px; }
.analyzer-hints {
  margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px;
}
.hint-tag {
  padding: 4px 12px; border-radius: var(--radius-full);
  background: var(--bg-3); color: var(--text-3);
  font-size: 0.75rem; font-weight: 500;
  border: 1px solid var(--border-light);
}

/* Spinner */
.spinner-overlay {
  display: none; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; padding: 32px;
}
.spinner-overlay.visible { display: flex; }
.spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--yt-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-text { color: var(--text-3); font-size: 0.875rem; }

/* ========================
   RESULTS SECTION
   ======================== */
#results {
  padding: 0 0 80px;
  display: none;
}
#results.visible { display: block; }

.results-header {
  display: flex; align-items: flex-start; gap: 24px;
  margin-bottom: 40px;
}
.channel-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--border);
  flex-shrink: 0;
}
.channel-info { flex: 1; }
.channel-name {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  margin-bottom: 4px;
}
.channel-handle { color: var(--text-3); font-size: 0.9rem; margin-bottom: 10px; }
.channel-meta-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.channel-banner {
  width: 100%; height: 160px; object-fit: cover;
  border-radius: var(--radius-lg); margin-bottom: 28px;
  border: 1px solid var(--border);
}

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.stat-card-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg-3); display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px; color: var(--text-3);
}
.stat-card-icon svg { width: 18px; height: 18px; }
.stat-card-value {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  color: var(--text); margin-bottom: 3px;
}
.stat-card-label { font-size: 0.78rem; color: var(--text-3); font-weight: 500; }

/* Revenue Cards */
.revenue-section { margin-bottom: 32px; }
.revenue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.revenue-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.revenue-card.featured {
  background: linear-gradient(135deg, rgba(0,200,83,0.06) 0%, transparent 60%);
  border-color: rgba(0,200,83,0.2);
}
.revenue-card-period {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.revenue-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border-light);
}
.revenue-row:last-child { border-bottom: none; }
.revenue-row-label { font-size: 0.85rem; color: var(--text-3); }
.revenue-row-value {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
}
.revenue-row.avg .revenue-row-value { color: var(--green); font-size: 1.25rem; }
.revenue-row.max .revenue-row-value { color: var(--text); }

/* Chart */
.chart-section { margin-bottom: 32px; }
.chart-container {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px;
  box-shadow: var(--shadow-sm);
}
.chart-title {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  margin-bottom: 20px;
}
.revenue-chart {
  width: 100%; height: 180px;
  display: flex; align-items: flex-end; gap: 8px;
  padding: 0 4px;
}
.chart-bar-group {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.chart-bars { display: flex; gap: 3px; align-items: flex-end; width: 100%; justify-content: center; }
.chart-bar {
  width: 12px; border-radius: 4px 4px 0 0;
  transition: height 0.6s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer; position: relative;
}
.chart-bar.min { background: var(--gray-200); }
.chart-bar.avg { background: var(--green); }
.chart-bar.max { background: var(--yt-red); }
[data-theme="dark"] .chart-bar.min { background: var(--dark-5); }
.chart-bar-label { font-size: 0.68rem; color: var(--text-3); text-align: center; }
.chart-legend {
  display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap;
}
.legend-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-3);
}
.legend-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }

/* Business Score */
.score-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px;
  box-shadow: var(--shadow-sm); margin-bottom: 32px;
}
.score-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 16px; }
.score-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.score-display { text-align: right; }
.score-num {
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 800;
  line-height: 1; color: var(--green);
}
.score-max { font-size: 1rem; color: var(--text-3); }
.score-level {
  font-size: 0.82rem; font-weight: 600; color: var(--green);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px;
}
.score-bar-wrap { background: var(--bg-3); border-radius: var(--radius-full); height: 8px; margin-bottom: 28px; overflow: hidden; }
.score-bar { height: 100%; border-radius: var(--radius-full); background: linear-gradient(90deg, var(--green-dark), var(--green)); transition: width 1s cubic-bezier(0.4,0,0.2,1); }
.score-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.score-metric {
  background: var(--bg-2); border-radius: var(--radius-md); padding: 16px;
  border: 1px solid var(--border-light);
}
.score-metric-label { font-size: 0.78rem; color: var(--text-3); font-weight: 500; margin-bottom: 8px; }
.score-metric-bar-wrap { background: var(--bg-3); border-radius: var(--radius-full); height: 6px; margin-bottom: 6px; overflow: hidden; }
.score-metric-bar { height: 100%; border-radius: var(--radius-full); transition: width 0.8s ease; }
.score-metric-bar.rpm { background: var(--yt-red); }
.score-metric-bar.sponsor { background: var(--gold); }
.score-metric-bar.affiliate { background: var(--blue); }
.score-metric-bar.growth { background: var(--green); }
.score-metric-val { font-size: 0.82rem; font-weight: 600; color: var(--text-2); }

/* ========================
   MANUAL CALCULATOR
   ======================== */
#calculator {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.calculator-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px;
  box-shadow: var(--shadow-md); max-width: 820px; margin: 0 auto;
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text-2); }
.form-input, .form-select {
  height: 46px; padding: 0 14px;
  background: var(--input-bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); font-size: 0.9rem; color: var(--text);
  transition: var(--transition); outline: none;
}
.form-select { cursor: pointer; }
.form-input:focus, .form-select:focus { border-color: var(--yt-red); box-shadow: 0 0 0 3px rgba(255,0,0,0.08); }
.content-type-toggle {
  display: flex; gap: 8px;
}
.type-btn {
  flex: 1; padding: 10px 16px; border-radius: var(--radius-md);
  border: 1.5px solid var(--border); background: var(--input-bg);
  font-size: 0.875rem; font-weight: 500; color: var(--text-2);
  transition: var(--transition); text-align: center;
}
.type-btn.active { border-color: var(--yt-red); background: var(--yt-red-glow); color: var(--yt-red); }
.type-btn:hover:not(.active) { border-color: var(--gray-300); }
.calc-result-row {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 24px;
}
.calc-result-item {
  background: var(--bg-2); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 18px; text-align: center;
}
.calc-result-item.featured { background: var(--green-light); border-color: rgba(0,200,83,0.2); }
.calc-result-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin-bottom: 6px; }
.calc-result-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--text); }
.calc-result-item.featured .calc-result-value { color: var(--green-dark); }

/* ========================
   FEATURES / HOW IT WORKS
   ======================== */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--yt-red-glow); color: var(--yt-red);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 0.875rem; color: var(--text-3); line-height: 1.6; }

/* ========================
   PROMO SECTIONS (Norcanto / QuickDocs)
   ======================== */
.promo-section {
  border-radius: var(--radius-xl);
  overflow: hidden; position: relative;
  padding: 60px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.promo-section.norcanto {
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 100%);
  border: 1px solid var(--dark-5);
}
.promo-section.quickdocs {
  background: linear-gradient(135deg, #0D1B3B 0%, #162040 100%);
  border: 1px solid #1E2D50;
}
.promo-content { max-width: 500px; }
.promo-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 16px;
}
.promo-section.norcanto .promo-badge { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.promo-section.quickdocs .promo-badge { background: rgba(33,150,243,0.15); color: #60A5FA; }
.promo-title { font-family: var(--font-display); font-size: clamp(1.4rem,3vw,1.9rem); font-weight: 700; color: #fff; margin-bottom: 12px; }
.promo-text { font-size: 0.925rem; color: rgba(255,255,255,0.55); line-height: 1.65; margin-bottom: 24px; }
.promo-visual { flex-shrink: 0; }
.promo-icon-wrap {
  width: 80px; height: 80px; border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
}
.promo-section.norcanto .promo-icon-wrap { background: rgba(255,255,255,0.08); }
.promo-section.quickdocs .promo-icon-wrap { background: rgba(33,150,243,0.12); }
.promo-icon-wrap svg { width: 38px; height: 38px; color: rgba(255,255,255,0.7); }

/* ========================
   FAQ
   ======================== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%; padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  color: var(--text); text-align: left; cursor: pointer;
  transition: var(--transition);
}
.faq-question:hover { color: var(--yt-red); }
.faq-icon {
  width: 22px; height: 22px; flex-shrink: 0; color: var(--text-3);
  transition: transform 0.25s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--yt-red); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p { font-size: 0.9rem; color: var(--text-3); padding-bottom: 18px; line-height: 1.65; }

/* ========================
   BLOG
   ======================== */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-thumb {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--bg-3), var(--border));
  display: flex; align-items: center; justify-content: center;
  color: var(--border);
  overflow: hidden; position: relative;
}
.blog-thumb-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.blog-thumb-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,0,0,0.08), rgba(255,0,0,0.02));
}
.blog-thumb svg { width: 40px; height: 40px; color: var(--yt-red); opacity: 0.4; position: relative; z-index: 1; }
.blog-body { padding: 22px; }
.blog-cat {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--yt-red); margin-bottom: 8px;
}
.blog-title {
  font-family: var(--font-display); font-size: 0.975rem; font-weight: 700;
  line-height: 1.35; margin-bottom: 10px; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-excerpt {
  font-size: 0.82rem; color: var(--text-3); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 14px;
}
.blog-meta { display: flex; align-items: center; gap: 10px; font-size: 0.75rem; color: var(--text-4); }
.blog-meta svg { width: 12px; height: 12px; }

/* ========================
   FOOTER
   ======================== */
#footer {
  background: var(--dark-1);
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.5);
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding: 60px 0 48px;
}
.footer-brand { max-width: 260px; }
.footer-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.footer-logo img { width: 32px; height: 32px; border-radius: var(--radius-sm); }
.footer-logo-text {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: #fff;
}
.footer-desc { font-size: 0.82rem; line-height: 1.65; color: rgba(255,255,255,0.38); }
.footer-col-title {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 0.85rem; color: rgba(255,255,255,0.35);
  transition: var(--transition);
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.25); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,0.3); transition: var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ========================
   COOKIE BANNER
   ======================== */
#cookie-banner {
  position: fixed; bottom: 24px; left: 24px; right: 24px; z-index: 9999;
  background: var(--dark-2); border: 1px solid var(--dark-5);
  border-radius: var(--radius-xl); padding: 20px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  box-shadow: var(--shadow-xl); max-width: 680px; margin: 0 auto;
  animation: slideUp 0.4s cubic-bezier(0.4,0,0.2,1);
}
#cookie-banner.hidden { display: none; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-text { flex: 1; font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.55; }
.cookie-text a { color: rgba(255,255,255,0.7); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  padding: 9px 20px; border-radius: var(--radius-full);
  background: var(--yt-red); color: #fff;
  font-size: 0.82rem; font-weight: 600; font-family: var(--font-body);
  transition: var(--transition);
}
.cookie-accept:hover { background: var(--yt-red-dark); }
.cookie-reject {
  padding: 9px 20px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5);
  font-size: 0.82rem; font-weight: 600; font-family: var(--font-body);
  transition: var(--transition);
}
.cookie-reject:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); }

/* ========================
   TOAST
   ======================== */
.toast {
  position: fixed; top: 80px; right: 20px; z-index: 9998;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 18px;
  box-shadow: var(--shadow-lg); font-size: 0.875rem; color: var(--text);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.3s ease forwards;
  max-width: 300px;
}
.toast.error { border-color: rgba(255,0,0,0.3); }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }
.toast.success svg { color: var(--green); }
.toast.error svg { color: var(--yt-red); }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ========================
   UTILITY
   ======================== */
.text-red { color: var(--yt-red); }
.text-green { color: var(--green); }
.text-muted { color: var(--text-3); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none !important; }
.divider { width: 100%; height: 1px; background: var(--border); }
.section-divider { width: 40px; height: 3px; background: var(--yt-red); border-radius: 2px; margin: 0 auto 20px; }

/* Scroll Animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .header-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .hero-stats { gap: 20px; }
  .hero-stat-divider { display: none; }
  .analyzer-input-group { flex-direction: column; }
  .analyze-btn { width: 100%; justify-content: center; }
  .revenue-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result-row { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .promo-section { flex-direction: column; padding: 40px 28px; }
  .promo-visual { display: none; }
  .score-grid { grid-template-columns: 1fr; }
  .results-header { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .section { padding: 56px 0; }
  #hero { padding: 110px 0 56px; }
  .analyzer-card { padding: 24px; }
  .calculator-card { padding: 24px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .lang-switcher { display: none; }
  h1 { font-size: 2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
