/* TubeRank Theme | style-v13.css | v13.0 */
/* ==========================================================================
   CSS Variables & Theme Setup
   ========================================================================== */
:root {
    --bg-primary: #0A0F1E;
    --bg-secondary: #111827;
    --bg-card: #151d2e;
    --accent: #6366F1;
    --accent-hover: #4F46E5;
    --accent-light: rgba(99, 102, 241, 0.12);
    --highlight: #FF0000;
    --highlight-hover: #DC2626;
    --highlight-light: rgba(255, 0, 0, 0.12);
    --green: #10B981;
    --text-primary: #F1F5F9;
    --text-secondary: #64748B;
    --text-muted: #475569;
    --border-color: rgba(255, 255, 255, 0.07);
    --border-accent: rgba(99, 102, 241, 0.25);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --glass-bg: rgba(17, 24, 39, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.07);
    --glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    --neon-accent: 0 0 24px rgba(99, 102, 241, 0.45);
    --neon-highlight: 0 0 24px rgba(255, 0, 0, 0.45);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
a { color: var(--text-primary); text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   Layout
   ========================================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dual-col  { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.text-accent    { color: var(--accent); }
.text-highlight { color: var(--highlight); }
.text-muted     { color: var(--text-secondary); }
.text-center    { text-align: center; }
.text-green     { color: var(--green); }
.mt-4           { margin-top: 2rem; }

section { padding: clamp(60px,8vw,100px) 0; position: relative; overflow: hidden; }
/* Comments section must not inherit the global section padding/overflow */
section.sp-comments-section { padding: 24px 0 48px; overflow: visible; }
.section-header { margin-bottom: clamp(36px,5vw,60px); }
.section-title {
    font-size: clamp(1.75rem,4vw,2.75rem);
    margin-bottom: 14px;
    background: linear-gradient(135deg,#fff 10%,#94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-desc { color: var(--text-secondary); font-size: clamp(0.9375rem,2vw,1.1rem); max-width: 580px; margin: 0 auto; line-height: 1.7; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading); font-weight: 600; font-size: 0.9375rem;
    cursor: pointer; transition: var(--transition); border: none;
    position: relative; overflow: hidden; white-space: nowrap;
}
.btn-sm   { padding: 9px 18px; font-size: 0.875rem; }
.btn-lg   { padding: 15px 30px; font-size: 1.0625rem; }
.btn-full { width: 100%; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #818CF8 100%);
    color: white; box-shadow: var(--neon-accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(99,102,241,0.6); }
.btn-outline {
    background: transparent; border: 1px solid var(--border-color);
    color: var(--text-primary); backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ==========================================================================
   Glass Cards
   ========================================================================== */
.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border); border-radius: var(--radius-lg);
    padding: 24px; box-shadow: var(--glass-shadow); transition: var(--transition);
}
.glass-card:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: 0 16px 60px rgba(0,0,0,0.4); }

.glow-bg {
    position: absolute; width: 700px; height: 700px;
    background: radial-gradient(circle,rgba(99,102,241,0.13) 0%,transparent 70%);
    top: -250px; left: -250px; border-radius: 50%; z-index: 0; pointer-events: none;
}
.glow-bg.bg-alt {
    background: radial-gradient(circle,rgba(255,0,0,0.09) 0%,transparent 70%);
    top: 50%; left: auto; right: -250px; transform: translateY(-50%);
}

.badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 14px; background: var(--accent-light);
    border: 1px solid var(--border-accent); border-radius: 100px;
    color: #A5B4FC; font-family: var(--font-heading); font-weight: 500;
    font-size: 0.8125rem; letter-spacing: 0.02em; margin-bottom: 20px;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
    opacity: 0; transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.revealed { 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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-left  { opacity:0; transform:translateX(-32px); transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1); }
.reveal-left.revealed  { opacity:1; transform:translateX(0); }
.reveal-right { opacity:0; transform:translateX(32px);  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1); }
.reveal-right.revealed { opacity:1; transform:translateX(0); }

/* ==========================================================================
   Navigation
   ========================================================================== */
/* ── Header / Nav ──────────────────────────────────────────────────────── */
:root { --header-h: 68px; }

.header {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000;
    height: var(--header-h);
    display: flex; align-items: center;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background: transparent;
}
.header.scrolled {
    background: rgba(8, 12, 24, 0.96);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(99,102,241,0.14);
    box-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    width: 100%;
}

/* Logo */
.logo {
    display: flex; align-items: center; gap: 9px;
    font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800;
    z-index: 1001; flex-shrink: 0; letter-spacing: -0.02em;
    color: white;
}
.logo-icon-wrap {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(239,68,68,0.45);
    flex-shrink: 0;
}
.logo-icon-wrap i { color: white; }
.logo-text { display: flex; gap: 1px; }
.logo-text-main { color: white; }
.logo-text-accent { color: #818CF8; }

/* Desktop nav pill container */
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-links {
    display: flex; gap: 2px; align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 40px;
    padding: 5px 6px;
}
.nav-links li a {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.875rem; font-weight: 600;
    color: #94a3b8;
    padding: 7px 15px;
    border-radius: 30px;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.nav-links li a:hover {
    color: white;
    background: rgba(255,255,255,0.08);
}
.nav-links li a.active, .nav-links li.current-menu-item a {
    background: linear-gradient(135deg, #6366F1, #818CF8);
    color: white;
    box-shadow: 0 2px 12px rgba(99,102,241,0.4);
}

/* CTA button */
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 20px;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    border-radius: 30px;
    font-family: var(--font-heading); font-size: 0.875rem; font-weight: 700;
    border: none; cursor: pointer;
    box-shadow: 0 4px 16px rgba(239,68,68,0.4);
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.nav-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(239,68,68,0.55);
    color: white;
}

/* Hamburger toggle */
.mobile-menu-toggle {
    display: none;
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white; font-size: 1.25rem; cursor: pointer;
    align-items: center; justify-content: center;
    z-index: 1001; transition: var(--transition);
    flex-shrink: 0;
}
.mobile-menu-toggle:hover { background: rgba(99,102,241,0.2); border-color: rgba(99,102,241,0.4); }

/* ── Mobile Drawer ─────────────────────────────────────────────────────── */
.mobile-nav-drawer {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; z-index: 1100; pointer-events: none;
}
.mobile-nav-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,10,0.75); backdrop-filter: blur(6px);
    opacity: 0; transition: opacity 0.3s ease;
}
.mobile-nav-panel {
    position: absolute; top: 0; right: 0;
    width: min(300px, 82vw); height: 100%;
    background: #080d1c;
    border-left: 1px solid rgba(99,102,241,0.18);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column;
    overflow-y: auto;
}

/* Panel top bar with logo repeat */
.mobile-nav-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.mobile-nav-close {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: white; font-size: 1.1rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.mobile-nav-close:hover { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.4); color: #f87171; }

.mobile-nav-links {
    display: flex; flex-direction: column; gap: 3px;
    padding: 16px 14px;
    flex: 1;
}
.mobile-nav-links a {
    display: flex; align-items: center; gap: 11px;
    padding: 13px 16px;
    font-family: var(--font-heading); font-size: 1rem; font-weight: 600;
    color: #94a3b8;
    border-radius: 12px;
    transition: all 0.2s ease;
}
.mobile-nav-links a i {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.05);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
    transition: all 0.2s ease;
}
.mobile-nav-links a:hover { color: white; background: rgba(99,102,241,0.1); }
.mobile-nav-links a:hover i { background: rgba(99,102,241,0.25); color: #818CF8; }
.mobile-nav-links a.active-link { color: white; background: rgba(99,102,241,0.15); }
.mobile-nav-links a.active-link i { background: rgba(99,102,241,0.3); color: #818CF8; }

.mobile-nav-cta {
    padding: 16px 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.mobile-nav-cta .btn { width: 100%; justify-content: center; border-radius: 12px; padding: 14px; font-size: 1rem; }

/* Drawer open state */
.mobile-nav-open .mobile-nav-drawer { pointer-events: all; }
.mobile-nav-open .mobile-nav-backdrop { opacity: 1; }
.mobile-nav-open .mobile-nav-panel { transform: translateX(0); }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding-top: clamp(110px,15vw,160px);
    padding-bottom: clamp(60px,8vw,80px);
    min-height: 100svh; display: flex; align-items: center;
}
.hero-container {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 56px; align-items: center; position: relative; z-index: 1;
}
.hero-content { max-width: 560px; }
.hero-title { font-size: clamp(2rem,5.5vw,3.75rem); margin-bottom: 20px; line-height: 1.08; }
.hero-title span { color: var(--highlight); text-shadow: var(--neon-highlight); }
.hero-subtitle { font-size: clamp(0.9375rem,2vw,1.1875rem); color: var(--text-secondary); margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 44px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; padding-top: 28px; border-top: 1px solid var(--border-color); }
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-number { font-family: var(--font-heading); font-size: clamp(1.5rem,3vw,2rem); font-weight: 800; color: white; letter-spacing: -0.02em; }
.stat-label { color: var(--text-secondary); font-size: 0.8125rem; font-weight: 500; }

.hero-visual { position: relative; }
.hero-decor { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; z-index: 0; }
.glass-orb { position: absolute; border-radius: 50%; filter: blur(50px); z-index: 0; }
.orb-hero-1 { width: 160px; height: 160px; background: var(--highlight); top: -40px; right: -40px; opacity: 0.35; }
.orb-hero-2 { width: 280px; height: 280px; background: var(--accent); bottom: -60px; left: -80px; opacity: 0.25; }

.floating-ring {
    position: absolute; bottom: 20px; right: -30px;
    width: 56px; height: 56px; border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--highlight); border-right-color: var(--highlight);
    z-index: 5; animation: simpleSpin 7s linear infinite; opacity: 0.7;
}
@keyframes simpleSpin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.mini-stat-card {
    position: absolute; top: 16px; right: -64px;
    padding: 14px 20px; display: flex; align-items: center; gap: 14px;
    pointer-events: auto;
    background: rgba(10,15,30,0.96); backdrop-filter: blur(16px);
    border: 1px solid var(--border-accent);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), var(--neon-accent);
    z-index: 10; border-radius: var(--radius-md);
    animation: float 6s ease-in-out infinite;
}
.mini-stat-card i { font-size: 1.375rem; }
.mini-stat-card .stat-title { font-size: 0.6875rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; }
.mini-stat-card .stat-value { font-weight: 700; font-size: 0.9375rem; }

.animated-float { animation: float 6s ease-in-out infinite; }
.delay-1 { animation-delay: -3s; }
.delay-2 { animation-delay: -1.5s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

/* Dashboard */
.dashboard-hero { position: relative; padding: 0; overflow: hidden; z-index: 2; }
.dash-header {
    background: rgba(0,0,0,0.25); padding: 11px 20px;
    display: flex; align-items: center; border-bottom: 1px solid var(--border-color);
}
.dots { display: flex; gap: 6px; margin-right: 16px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; }
.dots span:nth-child(1){ background: #FF5F56; }
.dots span:nth-child(2){ background: #FFBD2E; }
.dots span:nth-child(3){ background: #27C93F; }
.dash-title { font-size: 0.8125rem; color: var(--text-secondary); font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-content { padding: clamp(16px,3vw,28px); }

.ranking-badge {
    background: var(--highlight-light); border: 1px solid rgba(255,0,0,0.2);
    border-radius: var(--radius-md); padding: 14px 18px;
    display: inline-flex; flex-direction: column; margin-bottom: 20px;
}
.ranking-badge span { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); }
.rank-number { font-size: clamp(2rem,5vw,3rem); font-weight: 800; line-height: 1.1; font-family: var(--font-heading); text-shadow: var(--neon-highlight); }

.chart-container { height: 110px; margin-bottom: 0; }

/* ── SVG trend line chart ────────────────────────────────────────────── */
.chart-line { width: 100%; height: 100%; }
.chart-line svg { width: 100%; height: 100%; overflow: visible; }

/* Animated line draw */
.path-animate {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: dash 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.4s;
}
@keyframes dash { to { stroke-dashoffset: 0; } }

/* Area fill fades in after line finishes */
.area-animate {
    opacity: 0;
    animation: areaFadeIn 0.6s ease forwards 2.6s;
}
@keyframes areaFadeIn { to { opacity: 1; } }

/* Dot pulses at the peak */
.peak-dot {
    opacity: 0;
    animation: dotPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 2.7s;
    filter: drop-shadow(0 0 4px #6366F1);
}
@keyframes dotPop {
    from { opacity: 0; transform: scale(0); transform-origin: 100px 0px; }
    to   { opacity: 1; transform: scale(1); transform-origin: 100px 0px; }
}

/* Light theme grid lines */
.light-theme .chart-line svg line { stroke: rgba(0,0,0,0.07) !important; }
.light-theme #areaGradient stop:first-child { stop-color: #6366F1; stop-opacity: 0.12; }
.chart-line { width: 100%; height: 100%; }
.chart-line svg { width: 100%; height: 100%; overflow: visible; }
.path-animate { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: dash 2.8s ease-out forwards 0.5s; }
@keyframes dash { to{stroke-dashoffset:0} }

.views-counter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(99, 102, 241, 0.07);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin: 12px 0 18px;
}
.views-counter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.counter-value {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--accent);
    text-shadow: var(--neon-accent);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.search-mockup { background: rgba(0,0,0,0.3); border-radius: var(--radius-sm); padding: 13px 16px; display: flex; gap: 14px; align-items: center; }
.search-mockup i { font-size: 1.75rem; flex-shrink: 0; }
.mockup-title { font-weight: 600; font-size: 0.9375rem; margin-bottom: 3px; }
.mockup-meta { font-size: 0.6875rem; color: var(--text-secondary); }

/* ==========================================================================
   Services Section
   ========================================================================== */
.growth-graphic { position: relative; height: clamp(300px,40vw,420px); }
.orb-1 { width: 200px; height: 200px; background: var(--accent); top: 10%; left: 10%; opacity: 0.35; }
.orb-2 { width: 140px; height: 140px; background: var(--highlight); bottom: 10%; right: 10%; opacity: 0.25; }

.card-icon {
    width: 46px; height: 46px; background: var(--accent-light);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.375rem; color: var(--accent); margin-bottom: 14px;
}

.progress-bar { width: 100%; height: 7px; background: rgba(255,255,255,0.08); border-radius: 4px; margin: 14px 0 7px; overflow: hidden; }
.progress-fill {
    height: 100%; background: linear-gradient(90deg,var(--accent),#A5B4FC);
    border-radius: 4px; position: relative; width: 0;
    transition: width 1.4s cubic-bezier(0.4,0,0.2,1);
}
.progress-fill.animated { width: 95%; }
.progress-fill::after {
    content:''; position: absolute; inset: 0;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,0.35),transparent);
    animation: shimmer 2.2s infinite;
}
@keyframes shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.progress-text { font-size: 0.8125rem; color: var(--text-secondary); }

.card-small { position: absolute; bottom: -16px; right: 16px; width: 175px; background: rgba(10,15,30,0.9); border: 1px solid var(--border-color); }
.arrow-up { color: var(--green); font-size: 1.5rem; margin-bottom: 6px; }
.stat-huge { font-size: 2.125rem; font-weight: 800; font-family: var(--font-heading); color: white; letter-spacing: -0.03em; }

.benefits-list { margin-top: 36px; display: flex; flex-direction: column; gap: 28px; }
.benefits-list li { display: flex; gap: 18px; align-items: flex-start; }
.benefit-icon {
    width: 52px; height: 52px; background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.625rem; color: var(--accent); flex-shrink: 0; transition: var(--transition);
}
.benefits-list li:hover .benefit-icon { background: var(--accent-light); border-color: var(--border-accent); }
.benefit-text h4 { font-size: 1.0625rem; margin-bottom: 6px; }
.benefit-text p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.65; }

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 36px; }

/* ── Base card ── */
.pricing-card {
    text-align: center; position: relative;
    padding: clamp(24px,4vw,40px) clamp(16px,3vw,28px);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    overflow: hidden;
}
/* Allow the popular badge to render above the card boundary */
.pricing-card.popular {
    overflow: visible;
    padding-top: calc(clamp(24px,4vw,40px) + 14px);
}

/* Subtle top edge glow on hover */
.pricing-card::before {
    content: '';
    position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.7), transparent);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 0 1px rgba(99,102,241,0.25);
    border-color: rgba(99,102,241,0.35);
}
.pricing-card:hover::before { opacity: 1; }

/* Price number soft colour shift */
.amount { transition: color 0.25s ease; }
.pricing-card:hover .amount { color: #c7d2fe; }

/* Tags soft highlight */
.ptag { transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease; }
.pricing-card:hover .ptag { background: rgba(99,102,241,0.14); border-color: rgba(99,102,241,0.35); color: #c7d2fe; }

/* Select Plan button */
.pricing-card:hover .btn-outline { border-color: rgba(99,102,241,0.5); color: #c7d2fe; }

/* ── Popular card ── */
.pricing-card.popular {
    background: linear-gradient(145deg,rgba(239,68,68,0.14) 0%,rgba(10,15,30,0.9) 100%);
    border-color: rgba(239,68,68,0.45);
    box-shadow: 0 0 0 1px rgba(239,68,68,0.35), 0 0 30px rgba(239,68,68,0.15);
}
.pricing-card.popular::before {
    left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(239,68,68,0.8), transparent);
    opacity: 1;
    animation: none;
}
.pricing-card.popular:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(239,68,68,0.2), 0 0 0 1px rgba(239,68,68,0.55);
    border-color: rgba(239,68,68,0.65);
}
.pricing-card.popular:hover .amount { color: #fca5a5; }
.pricing-card.popular:hover .ptag { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.4); color: #fecaca; }

@keyframes borderGlow { 0%,100%{opacity:0.6} 50%{opacity:1} }

.popular-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg,#EF4444,#DC2626); color: white;
    padding: 4px 16px; border-radius: 20px; font-size: 0.6875rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; box-shadow: 0 0 18px rgba(239,68,68,0.5); white-space: nowrap;
}
.card-header h3 { font-size: clamp(1rem,2.5vw,1.375rem); margin-bottom: 6px; }
.card-header p { color: var(--text-secondary); font-size: 0.8125rem; margin-bottom: 24px; }
.price { display: flex; align-items: flex-start; justify-content: center; gap: 3px; margin-bottom: 2px; }
.currency { font-size: 1.375rem; font-weight: 600; color: var(--text-secondary); margin-top: 7px; }
.amount { font-size: clamp(2.5rem,5vw,3.5rem); font-weight: 800; font-family: var(--font-heading); color: white; line-height: 1; letter-spacing: -0.03em; }
.period { align-self: flex-end; color: var(--text-secondary); margin-bottom: 6px; font-size: 0.875rem; }
.price-tags { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; margin: 4px 0 10px; }
.ptag { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: var(--text-secondary); font-size: 0.6875rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.ptag i { font-size: 11px; opacity: .8; }
.pricing-card.popular .ptag { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.25); color: #fca5a5; }
.pricing-card.popular .card-header p { color: rgba(255,255,255,0.6); }
.pricing-card.popular .min-text { color: rgba(255,255,255,0.55); }
.pricing-card.popular .currency { color: #fca5a5; }
.min-text { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 24px; }
.pricing-note { color: var(--text-secondary); font-size: 0.875rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pricing-note i { color: var(--accent); font-size: 1rem; }

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; position: relative; margin-top: 56px; }
.process-steps::before {
    content:''; position: absolute; top: 40px; left: 12.5%; width: 75%; height: 2px;
    background: linear-gradient(90deg,transparent,var(--border-accent) 20%,var(--border-accent) 80%,transparent);
    z-index: 0;
}
.step-card { text-align: center; position: relative; z-index: 2; padding: 0 8px; }
.step-icon-wrapper {
    width: 80px; height: 80px; background: var(--bg-secondary);
    border: 1px solid var(--border-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px; position: relative;
    box-shadow: 0 0 0 6px var(--bg-primary); transition: var(--transition);
}
.step-card:hover .step-icon-wrapper {
    background: linear-gradient(135deg,var(--accent),#818CF8);
    border-color: var(--accent); transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 0 6px var(--bg-primary), var(--neon-accent);
}
.step-number {
    position: absolute; top: -8px; right: -8px;
    width: 26px; height: 26px; background: var(--highlight);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.6875rem; font-weight: 700; color: white; box-shadow: var(--neon-highlight);
}
.step-icon { font-size: 1.875rem; color: white; }
.step-card h3 { font-size: 1.0625rem; margin-bottom: 10px; }
.step-card p  { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; }

/* ==========================================================================
   Case Study Section
   ========================================================================== */
.results-grid {
    display: flex; align-items: center; gap: 28px;
    background: rgba(0,0,0,0.2); padding: clamp(18px,4vw,28px);
    border-radius: var(--radius-md); border: 1px solid var(--border-color); margin: 36px 0;
}
.result-item { flex: 1; }
.result-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.result-value { font-size: clamp(1.75rem,4vw,2.5rem); font-weight: 800; font-family: var(--font-heading); letter-spacing: -0.03em; }
.result-icon { font-size: 1.75rem; color: var(--text-secondary); }

.chart-card { padding: clamp(18px,3vw,28px); }
.chart-card .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.chart-card .card-header h3 { font-size: 1rem; }
.legend { display: flex; gap: 16px; }
.legend-item { display: flex; align-items: center; gap: 7px; font-size: 0.8125rem; color: var(--text-secondary); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.views { background: var(--accent); }
.dot.impressions { background: rgba(255,255,255,0.2); }
.chart-illustration { height: clamp(180px,25vw,250px); border-bottom: 1px solid var(--border-color); border-left: 1px solid var(--border-color); position: relative; display: flex; align-items: flex-end; }
.bars-container { width: 100%; height: 100%; display: flex; justify-content: space-around; align-items: flex-end; padding: 0 8px; }
.bar-group { flex: 1; max-width: 48px; height: 100%; position: relative; display: flex; justify-content: center; align-items: flex-end; }
.bar { position: absolute; bottom: 0; width: 44%; border-radius: 4px 4px 0 0; height: 0; transition: height 1.2s cubic-bezier(0.4,0,0.2,1); }
.bar.imp  { background: rgba(255,255,255,0.08); right: 5%; z-index: 1; }
.bar.view { background: linear-gradient(0deg,var(--accent) 0%,#A5B4FC 100%); left: 5%; z-index: 2; box-shadow: var(--neon-accent); }
.bar-label { position: absolute; bottom: -26px; font-size: 0.6875rem; color: var(--text-secondary); white-space: nowrap; }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 36px; }
/* blog-card styles defined in archive section below */
.blog-category { position: absolute; top: 14px; left: 14px; background: rgba(10,15,30,0.85); backdrop-filter: blur(8px); padding: 3px 11px; border-radius: 5px; font-size: 0.6875rem; font-weight: 600; color: var(--accent); border: 1px solid var(--border-accent); }
.blog-content { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.blog-content h3 { font-size: 1rem; margin-bottom: 10px; line-height: 1.4; }
.blog-content h3 a { color: white; }
.blog-content h3 a:hover { color: var(--accent); }
.excerpt { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 20px; flex: 1; line-height: 1.6; }
.read-more { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-weight: 600; font-size: 0.8125rem; transition: var(--transition); }
.read-more:hover { gap: 11px; color: #818CF8; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-btn { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-md); background: rgba(255,255,255,0.04); border: 1px solid var(--border-color); transition: var(--transition); }
.contact-btn i { font-size: 2.25rem; flex-shrink: 0; }
.contact-btn.telegram i { color: #0088cc; }
.contact-btn.whatsapp i { color: #25D366; }
.contact-btn:hover { background: rgba(255,255,255,0.08); transform: translateX(8px); border-color: rgba(255,255,255,0.14); }
.contact-btn .label   { display: block; font-size: 0.75rem; color: var(--text-secondary); }
.contact-btn .platform { display: block; font-size: 1.125rem; font-weight: 700; color: white; }
/* ==========================================================================
   Contact Form — Redesigned
   ========================================================================== */
.form-col { display: flex; flex-direction: column; }

.form-card-wrap {
    background: #0e1627;
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(99,102,241,0.1);
    transition: var(--transition);
}
.form-card-wrap:hover {
    border-color: rgba(99,102,241,0.35);
    box-shadow: 0 28px 90px rgba(0,0,0,0.55), var(--neon-accent);
}

/* Coloured header strip */
.form-card-header {
    background: linear-gradient(135deg, #1a1f3a 0%, #131929 100%);
    border-bottom: 1px solid rgba(99,102,241,0.18);
    padding: 20px 26px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.form-card-header-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--accent), #818CF8);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.375rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(99,102,241,0.45);
}
.form-card-title { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; color: white; }
.form-card-sub   { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }
.form-response-badge {
    margin-left: auto;
    display: flex; align-items: center; gap: 7px;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #34d399;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Form body */
.form-card-body { padding: 26px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Form groups */
.form-group { margin-bottom: 16px; position: relative; }
.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-group label i { font-size: 0.9rem; color: #6366F1; }
.req { color: var(--highlight); font-size: 0.9em; margin-left: 1px; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #e2e8f0;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #3d4f6b; }

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(99,102,241,0.3);
    background: rgba(255,255,255,0.06);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: #6366F1;
    background: rgba(99,102,241,0.06);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.18), 0 2px 8px rgba(0,0,0,0.2);
}

/* Error state */
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: var(--highlight);
    background: rgba(255,0,0,0.05);
}
.form-group.has-error input:focus,
.form-group.has-error textarea:focus {
    box-shadow: 0 0 0 3px rgba(255,0,0,0.18);
}
.field-error {
    display: block;
    font-size: 0.75rem;
    color: #f87171;
    margin-top: 5px;
    min-height: 16px;
}

/* Valid state */
.form-group.is-valid input,
.form-group.is-valid textarea {
    border-color: rgba(16,185,129,0.5);
}

/* Input with prefix icon */
.input-prefix-wrap { position: relative; }
.input-prefix-wrap input { padding-left: 42px; }
.input-prefix {
    position: absolute;
    left: 13px; top: 50%;
    transform: translateY(-50%);
    font-size: 1.125rem;
    color: #475569;
    pointer-events: none;
    line-height: 1;
}

.form-group textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

/* Status banner */
.form-status {
    border-radius: 10px;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 500;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease, margin 0.3s ease;
    display: flex; align-items: center; gap: 10px;
}
.form-status.show {
    max-height: 80px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.form-status.success {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.3);
    color: #34d399;
}
.form-status.error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}

/* Submit button */
.btn-submit-form {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #6366F1 0%, #818CF8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 20px rgba(99,102,241,0.4), 0 1px 3px rgba(0,0,0,0.3);
    position: relative; overflow: hidden;
    margin-top: 4px;
}
.btn-submit-form::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.2s;
}
.btn-submit-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99,102,241,0.55);
}
.btn-submit-form:hover::before { opacity: 1; }
.btn-submit-form:active { transform: translateY(0); }
.btn-submit-form:disabled {
    opacity: 0.7; cursor: not-allowed; transform: none;
}
.btn-submit-form.success-state {
    background: linear-gradient(135deg, #059669, #10B981);
    box-shadow: 0 4px 20px rgba(16,185,129,0.4);
}

.btn-submit-loading { display: none; align-items: center; gap: 9px; }
.btn-submit-form.is-loading .btn-submit-text { display: none; }
.btn-submit-form.is-loading .btn-submit-loading { display: flex; }

@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.spin-icon { animation: spin 0.8s linear infinite; font-size: 1.1rem; }

/* Privacy note */
.form-privacy {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin-top: 12px;
    font-size: 0.75rem; color: #475569; text-align: center;
}
.form-privacy i { color: #6366F1; font-size: 0.85rem; }

/* Mobile: stack the two-column row */
@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-card-header { flex-wrap: wrap; }
    .form-response-badge { margin-left: 0; }
    .form-card-body { padding: 18px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
/* ==========================================================================
   Footer — Minimal Black Bar
   ========================================================================== */
.site-footer {
    width: 100%;
    background: #000;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 0;
}
.footer-inner {
    max-width: 100%;
    padding: 18px clamp(16px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-copy {
    font-size: 0.8125rem;
    color: #475569;
    white-space: nowrap;
    flex-shrink: 0;
}
.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-legal a {
    font-size: 0.8125rem;
    color: #64748b;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.footer-legal a:hover { color: #a5b4fc; }
.footer-dot {
    width: 3px; height: 3px;
    background: #334155;
    border-radius: 50%;
    flex-shrink: 0;
}
.footer-sitemap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: #64748b;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s ease;
}
.footer-sitemap i { font-size: 0.9rem; }
.footer-sitemap:hover { color: #a5b4fc; }

@media (max-width: 640px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 16px;
        gap: 12px;
    }
    .footer-copy { white-space: normal; }
}

/* ==========================================================================
   Blog Archive Page — Full Redesign
   ========================================================================== */
:root { --header-h: 68px; }
.page-main { padding-top: var(--header-h); }

/* ── Blog Hero Banner ──────────────────────────────────────────────────── */
.blog-hero {
    position: relative; overflow: hidden;
    padding: clamp(48px,8vw,80px) 0 clamp(36px,6vw,60px);
    background: linear-gradient(160deg,#0b0f22 0%,#0e1530 60%,#111827 100%);
    border-bottom: 1px solid rgba(99,102,241,0.12);
}
.blog-hero::before {
    content:''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 80% at 15% 50%, rgba(99,102,241,0.15) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 85% 20%, rgba(239,68,68,0.08) 0%, transparent 70%);
}
.blog-hero-inner {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 22px;
}
.blog-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 15px; background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.25); border-radius: 30px;
    font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700;
    color: #a5b4fc; letter-spacing: 0.08em; text-transform: uppercase;
}
.blog-hero-title {
    font-size: clamp(2rem,5vw,3.25rem); font-family: var(--font-heading); font-weight: 800;
    background: linear-gradient(135deg,#fff 20%,#94a3b8 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1.1; letter-spacing: -0.03em; margin: 0;
}
.blog-hero-sub {
    color: var(--text-secondary); font-size: clamp(0.9375rem,2vw,1.0625rem);
    max-width: 500px; line-height: 1.7; margin: 0;
}
.blog-search-bar {
    display: flex; align-items: center;
    width: 100%; max-width: 540px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 14px; overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-search-bar:focus-within {
    border-color: rgba(99,102,241,0.5);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.12), 0 4px 20px rgba(0,0,0,0.3);
}
.blog-search-icon { padding: 0 12px 0 16px; color: #475569; font-size: 1.1rem; display: flex; align-items: center; flex-shrink: 0; }
.blog-search-input {
    flex: 1; padding: 13px 4px; background: transparent; border: none; outline: none;
    color: white; font-family: var(--font-body); font-size: 0.9375rem;
}
.blog-search-input::placeholder { color: #3d4f6b; }
.blog-search-btn {
    display: flex; align-items: center; gap: 7px;
    padding: 9px 18px; margin: 5px;
    background: linear-gradient(135deg,#6366F1,#818CF8);
    color: white; border: none; border-radius: 10px;
    font-family: var(--font-heading); font-size: 0.875rem; font-weight: 700;
    cursor: pointer; flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(99,102,241,0.4); transition: all 0.2s ease;
}
.blog-search-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(99,102,241,0.55); }
.blog-category-pills { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; }
.cat-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 30px;
    font-size: 0.8rem; font-weight: 600; color: #94a3b8;
    cursor: pointer; transition: all 0.2s ease; text-decoration: none;
}
.cat-pill:hover { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.3); color: #a5b4fc; }
.cat-pill.active { background: rgba(99,102,241,0.18); border-color: rgba(99,102,241,0.45); color: #c7d2fe; }
.cat-pill-count { background: rgba(255,255,255,0.08); border-radius: 9px; padding: 1px 6px; font-size: 0.625rem; }
.blog-breadcrumbs { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: #475569; flex-wrap: wrap; }
.blog-breadcrumbs a { color: #64748b; transition: color 0.2s; }
.blog-breadcrumbs a:hover { color: #a5b4fc; }
.blog-breadcrumbs .sep { opacity: 0.4; }
.blog-breadcrumbs .current { color: #94a3b8; font-weight: 500; }

/* ── Archive layout ────────────────────────────────────────────────────── */
.blog-archive { padding: clamp(36px,5vw,60px) 0 80px; }
.blog-archive-layout { display: grid; grid-template-columns: 1fr 290px; gap: 36px; align-items: start; }
/* ── Archive layout ────────────────────────────────────────────────────── */
.blog-archive { padding: clamp(32px,4vw,56px) 0 72px; }
.blog-archive-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

/* 2-col grid on desktop */
/* ── Archive grid — desktop: featured first + 2-col rest ── */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 36px;
}

/* Featured first post — full-width horizontal card */
.blog-card--featured {
    grid-column: 1 / -1;
    flex-direction: row;
    min-height: 280px;
}
.blog-card--featured .blog-image {
    width: 45%;
    flex-shrink: 0;
    padding-top: 0;
    position: relative;
    aspect-ratio: unset;
}
.blog-card--featured .blog-content {
    padding: 28px 30px;
    justify-content: center;
}
.blog-card--featured .blog-content h3 {
    font-size: 1.375rem;
    -webkit-line-clamp: 3;
    margin-bottom: 10px;
}
.blog-card--featured .excerpt {
    -webkit-line-clamp: 4;
    font-size: 0.9375rem;
}
.blog-card--featured .blog-category {
    top: 14px; left: 14px;
}
/* Featured label badge */
.blog-card--featured .blog-image::after {
    content: '✦ Featured';
    position: absolute; bottom: 12px; left: 12px; z-index: 3;
    background: linear-gradient(135deg, #6366F1, #818CF8);
    color: #fff; font-size: 0.625rem; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase;
    padding: 3px 10px; border-radius: 6px;
}

/* Tablet — stack layout, 2-col cards */
@media (max-width: 992px) {
    .blog-archive-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .blog-sidebar { display: none; } /* hide sidebar on tablet/mobile */
    .archive-grid { grid-template-columns: repeat(2,1fr); gap: 18px; }
    /* Featured card stays horizontal on tablet */
    .blog-card--featured { min-height: 240px; }
    .blog-card--featured .blog-image { width: 42%; }
    .blog-card--featured .blog-content { padding: 22px 24px; }
}

/* Mobile — single column full-width cards */
@media (max-width: 600px) {
    .archive-grid { grid-template-columns: 1fr; gap: 10px; }
    .blog-archive { padding: 24px 0 56px; }
}
.blog-card {
    padding: 0; overflow: hidden; display: flex; flex-direction: column;
    border-radius: var(--radius-lg);
    background: #0e1627;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.blog-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.3); box-shadow: 0 16px 48px rgba(0,0,0,0.5); }

/* 16:9 image */
.blog-image {
    position: relative; width: 100%; padding-top: 56.25%;
    overflow: hidden; background: #080d1c; flex-shrink: 0;
}
.blog-image > img,
.blog-image > .img-placeholder {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-image > img { transform: scale(1.05); }
.img-placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 2.75rem; color: rgba(255,255,255,0.18);
    background: linear-gradient(135deg,#0e1627,#080d1c);
}
.blog-category {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    display: flex; align-items: center; gap: 4px;
    background: rgba(8,12,24,0.88); backdrop-filter: blur(10px);
    padding: 3px 10px; border-radius: 6px; font-size: 0.6875rem;
    font-weight: 700; color: #a5b4fc; letter-spacing: 0.04em;
    text-transform: uppercase; border: 1px solid rgba(99,102,241,0.25);
}
.blog-category a { color: inherit; }
.blog-read-time {
    position: absolute; bottom: 10px; right: 10px; z-index: 2;
    background: rgba(0,0,0,0.72); backdrop-filter: blur(8px);
    padding: 3px 10px; border-radius: 20px; font-size: 0.6875rem;
    font-weight: 600; color: #94a3b8; display: flex; align-items: center; gap: 4px;
}
.blog-content { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.blog-content h3 { font-size: 1.0625rem; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-content h3 a { color: white; }
.blog-content h3 a:hover { color: #a5b4fc; }
.excerpt { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.65; flex: 1; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.07); margin-top: auto; }
.date { display: flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--text-secondary); }
.read-more { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8125rem; font-weight: 700; color: #818CF8; transition: all 0.2s ease; }
.read-more:hover { gap: 8px; color: #a5b4fc; }
.blog-empty { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.blog-empty i { font-size: 3rem; display: block; margin-bottom: 16px; opacity: 0.3; }

/* Mobile: near full-width edge-to-edge cards */
@media (max-width: 600px) {
    .blog-card { border-radius: 10px; }
    .blog-content { padding: 14px 16px 16px; gap: 8px; }
    .blog-content h3 { font-size: 1rem; -webkit-line-clamp: 3; }
    /* Featured card reverts to stacked on mobile */
    .blog-card--featured {
        flex-direction: column;
        min-height: unset;
        grid-column: unset;
    }
    .blog-card--featured .blog-image {
        width: 100%;
        padding-top: 56.25%;
    }
    .blog-card--featured .blog-content {
        padding: 14px 16px 16px;
    }
    .blog-card--featured .blog-content h3 {
        font-size: 1.0625rem;
    }
}

@media (max-width: 480px) {
    /* Pull archive grid to screen edges */
    .blog-archive .container {
        padding-left: 0;
        padding-right: 0;
    }
    .archive-grid {
        gap: 10px;
        margin-bottom: 24px;
    }
    /* Breadcrumbs & hero — restore padding for those */
    .blog-hero-inner,
    .blog-pagination {
        padding-left: 16px;
        padding-right: 16px;
    }
    .blog-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .blog-card--featured {
        border-radius: 0;
    }
}

/* ── Pagination ────────────────────────────────────────────────────────── */
.blog-pagination .nav-links { display:flex;flex-wrap:wrap;gap:8px;justify-content:center;background:none;border:none;padding:0;border-radius:0; }
.blog-pagination .nav-links a,
.blog-pagination .nav-links span { display:flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;border-radius:10px;font-weight:600;font-size:0.875rem;transition:all 0.2s ease;border:1px solid rgba(255,255,255,0.08); }
.blog-pagination .nav-links a { background:rgba(255,255,255,0.04);color:#94a3b8; }
.blog-pagination .nav-links a:hover { background:rgba(99,102,241,0.15);color:white;border-color:rgba(99,102,241,0.35); }
.blog-pagination .nav-links span.current { background:linear-gradient(135deg,#6366F1,#818CF8);color:white;border-color:transparent;box-shadow:0 2px 12px rgba(99,102,241,0.4); }

/* ── Sidebar ───────────────────────────────────────────────────────────── */
.blog-sidebar { position:sticky;top:calc(var(--header-h) + 20px);display:flex;flex-direction:column;gap:18px; }
.widget { background:#0e1627;border:1px solid rgba(255,255,255,0.07);border-radius:var(--radius-lg);padding:20px;transition:border-color 0.2s; }
.widget:hover { border-color:rgba(99,102,241,0.2); }
.widget-title { font-family:var(--font-heading);font-size:0.8125rem;font-weight:700;text-transform:uppercase;letter-spacing:0.08em;color:#64748b;margin-bottom:16px;display:flex;align-items:center;gap:8px; }
.widget-title::before { content:'';width:3px;height:14px;background:linear-gradient(135deg,#6366F1,#818CF8);border-radius:2px;flex-shrink:0; }
.sidebar-search-form { display:flex;flex-direction:column;gap:8px; }
.sidebar-search-field { position:relative; }
.sidebar-search-field i { position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#475569;font-size:1rem;pointer-events:none; }
.sidebar-search-field input { width:100%;padding:11px 12px 11px 36px;background:rgba(255,255,255,0.04);border:1.5px solid rgba(255,255,255,0.08);border-radius:10px;color:white;font-family:var(--font-body);font-size:0.875rem;transition:border-color 0.2s,box-shadow 0.2s;outline:none;-webkit-appearance:none; }
.sidebar-search-field input::placeholder { color:#3d4f6b; }
.sidebar-search-field input:focus { border-color:rgba(99,102,241,0.5);box-shadow:0 0 0 3px rgba(99,102,241,0.12);background:rgba(99,102,241,0.05); }
.sidebar-search-submit { width:100%;padding:10px;background:linear-gradient(135deg,#6366F1,#818CF8);color:white;border:none;border-radius:10px;font-family:var(--font-heading);font-size:0.875rem;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:7px;box-shadow:0 2px 12px rgba(99,102,241,0.35);transition:all 0.2s ease; }
.sidebar-search-submit:hover { transform:translateY(-1px);box-shadow:0 4px 18px rgba(99,102,241,0.5); }
.widget-list { list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:3px; }
.categories-list a { display:flex;align-items:center;justify-content:space-between;padding:9px 12px;color:#94a3b8;border-radius:9px;font-size:0.875rem;transition:all 0.2s ease;border:1px solid transparent; }
.categories-list a:hover { background:rgba(99,102,241,0.1);color:#c7d2fe;border-color:rgba(99,102,241,0.2);padding-left:16px; }
.categories-list .count { background:rgba(255,255,255,0.07);border-radius:8px;padding:2px 8px;font-size:0.6875rem;font-weight:600;flex-shrink:0; }
.popular-posts-list { display:flex;flex-direction:column;gap:12px; }
.popular-posts-list a { display:flex;gap:11px;align-items:center;padding:7px;border-radius:10px;transition:background 0.2s ease;border:1px solid transparent; }
.popular-posts-list a:hover { background:rgba(99,102,241,0.08);border-color:rgba(99,102,241,0.15); }
.post-thumb { width:50px;height:50px;border-radius:9px;flex-shrink:0;overflow:hidden;background:#151f35;display:flex;align-items:center;justify-content:center;font-size:1.25rem;color:rgba(255,255,255,0.3); }
.post-thumb img { width:100%;height:100%;object-fit:cover; }
.post-info { display:flex;flex-direction:column;gap:3px;min-width:0; }
.post-title { font-weight:600;font-size:0.8125rem;color:#e2e8f0;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.popular-posts-list a:hover .post-title { color:#a5b4fc; }
.post-date { font-size:0.6875rem;color:var(--text-secondary); }
.sidebar-cta { background:linear-gradient(145deg,#0f1730,#0e1627);border-color:rgba(99,102,241,0.2);text-align:center;position:relative;overflow:hidden; }
.sidebar-cta::before { content:'';position:absolute;top:-40px;left:50%;transform:translateX(-50%);width:200px;height:200px;background:radial-gradient(circle,rgba(99,102,241,0.18) 0%,transparent 70%);pointer-events:none; }
.cta-icon { font-size:2.25rem;margin-bottom:10px;display:block;position:relative; }
.sidebar-cta h3 { font-size:1rem;margin-bottom:8px;position:relative; }
.sidebar-cta p { color:var(--text-secondary);font-size:0.8125rem;line-height:1.6;margin-bottom:14px;position:relative; }
.mt-3 { margin-top:0 !important; }
.sidebar-glow { display:none; }

/* Single Post */
.single-post-main { max-width: 750px; margin: 0 auto; padding-bottom: 80px; }
.post-header { text-align: center; padding: 40px 0; }
.post-meta { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; color: var(--text-secondary); font-size: 0.9rem; margin-top: 22px; }
.meta-item { display: flex; align-items: center; gap: 7px; }
.post-featured-image { width: 100%; height: clamp(220px,30vw,400px); border-radius: var(--radius-lg); margin-bottom: 56px; overflow: hidden; }
.post-featured-image .img-placeholder { font-size: 5rem; }
.post-content { border-radius: var(--radius-lg); }
.post-content h2 { font-size: clamp(1.375rem,3vw,1.75rem); margin: 44px 0 22px; color: white; }
.post-content h3 { font-size: clamp(1.1rem,2.5vw,1.4rem); margin: 30px 0 15px; color: white; }
.post-content p  { font-size: clamp(1rem,2vw,1.125rem); line-height: 1.8; color: #CBD5E1; margin-bottom: 22px; }
.post-content ul, .post-content ol { font-size: clamp(1rem,2vw,1.125rem); line-height: 1.8; color: #CBD5E1; margin-bottom: 22px; padding-left: 24px; }
.post-content li { margin-bottom: 10px; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: white; }
.toc-box { background: rgba(15,23,42,0.8); border: 1px solid var(--border-color); padding: 22px; border-radius: var(--radius-md); margin-bottom: 36px; }
.toc-box h3 { font-size: 1.125rem; margin: 0 0 14px; }
.toc-box ul { list-style: none; padding: 0; margin: 0; }
.toc-box li { margin-bottom: 10px; }
.toc-box a { text-decoration: none; color: var(--text-secondary); font-size: 0.9375rem; }
.toc-box a:hover { color: var(--accent); }
.post-footer { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--border-color); }
.share-buttons { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }
.share-label { font-weight: 600; color: var(--text-secondary); font-size: 0.9375rem; }
.share-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.125rem; transition: var(--transition); }
.share-btn.yt:hover { background: #FF0000; }
.share-btn.tw:hover { background: #1DA1F2; }
.share-btn.fb:hover { background: #4267B2; }
.share-btn.tg:hover { background: #0088cc; }
.author-box { display: flex; align-items: center; gap: 18px; padding: 22px; background: rgba(15,23,42,0.5); border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.author-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: var(--text-secondary); flex-shrink: 0; }
.author-info h4 { font-size: 1.125rem; margin-bottom: 7px; }
.author-info p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }
.related-posts { background: var(--bg-secondary); padding: 70px 0; border-top: 1px solid var(--border-color); }
.related-posts .section-title { text-align: center; margin-bottom: 36px; }
.bottom-cta-banner { width: 100%; padding: 48px 24px; margin-top: 8px; text-align: center; }
.cta-banner-content { max-width: 860px; margin: 0 auto; background: linear-gradient(135deg,rgba(99,102,241,0.12) 0%,rgba(10,15,30,1) 100%); border: 1px solid var(--border-accent); padding: clamp(36px,6vw,60px) clamp(20px,5vw,40px); border-radius: var(--radius-xl); position: relative; overflow: hidden; }
.cta-banner-content h2 { font-size: clamp(1.5rem,4vw,2.5rem); margin-bottom: 14px; }
.cta-banner-content p { font-size: clamp(0.9375rem,2vw,1.125rem); color: var(--text-secondary); margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.pagination { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.page-link { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); font-weight: 600; font-size: 0.875rem; padding: 0 10px; }
.page-link:hover, .page-link.active { background: var(--accent); border-color: var(--accent); color: white; }

/* ==========================================================================
   RESPONSIVE — TABLET (≤992px)
   ========================================================================== */
@media (max-width: 992px) {
    .dual-col, .hero-container {
        grid-template-columns: 1fr; gap: clamp(32px,5vw,48px);
    }
    .hero-content { max-width: 100%; }
    .hero-visual { order: -1; max-width: 520px; margin: 0 auto; width: 100%; }
    .mini-stat-card { right: 8px; top: 8px; }
    .process-steps { grid-template-columns: repeat(2,1fr); gap: 36px 20px; }
    .process-steps::before { display: none; }
    .pricing-grid { grid-template-columns: repeat(2,1fr); }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-6px); }
    .blog-grid { grid-template-columns: repeat(2,1fr); }
    .growth-graphic { height: clamp(280px,40vw,380px); }
    /* Blog archive */
    .blog-archive-layout { grid-template-columns: 1fr; gap: 32px; }
    .blog-sidebar { position: static; top: auto; }
}

/* ==========================================================================
   RESPONSIVE — MOBILE (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Nav — hide desktop links, show hamburger */
    .main-nav, .nav-cta-btn { display: none; }
    .mobile-menu-toggle { display: flex; }
    .mobile-nav-drawer { display: block; }

    .hero { padding-top: clamp(90px,20vw,120px); min-height: auto; padding-bottom: 50px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { gap: 0; justify-content: space-around; }
    .hero-visual { max-width: 100%; }
    .mini-stat-card { display: none; }
    .floating-ring { display: none; }
    .dash-content { padding: 16px; }

    .pricing-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
    .pricing-card { padding: 22px 14px; }
    
    .pricing-card.popular:hover { transform: translateY(-6px); }

    .process-steps { grid-template-columns: 1fr; gap: 28px; }
    .step-card { display: flex; align-items: flex-start; gap: 18px; text-align: left; }
    .step-icon-wrapper { margin: 0; flex-shrink: 0; width: 60px; height: 60px; }
    .step-icon { font-size: 1.5rem; }
    .step-number { top: -5px; right: -5px; width: 22px; height: 22px; font-size: 0.6rem; }

    .results-grid { flex-direction: column; gap: 16px; text-align: center; }
    .result-icon { transform: rotate(90deg); }

    .blog-grid { grid-template-columns: 1fr; gap: 14px; }

    .cta-buttons
    .author-box { flex-direction: column; text-align: center; }
    .blog-search-btn span { display: none; }
    .blog-search-btn { padding: 9px 13px; }
}
/* ==========================================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: clamp(1.625rem,8vw,2.25rem); }
    .hero-stats { gap: 0; }
    .stat-number { font-size: 1.5rem; }
    .pricing-grid { grid-template-columns: 1fr; gap: 14px; }
    .section-title { font-size: clamp(1.5rem,7vw,2rem); }
    .result-value { font-size: 2rem; }
    .btn-lg { padding: 14px 22px; font-size: 1rem; }
    .glass-card { border-radius: var(--radius-md); }
    .step-icon-wrapper { width: 52px; height: 52px; }
    .chart-card .card-header { flex-direction: column; align-items: flex-start; }
}

/* Misc */
.bg-gradient-1 { background: linear-gradient(135deg,#1E293B 0%,#0F172A 100%); }
.bg-gradient-2 { background: linear-gradient(135deg,#2D3748 0%,#1A202C 100%); }
.bg-gradient-3 { background: linear-gradient(135deg,#4A5568 0%,#2D3748 100%); }
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(16,185,129,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(16,185,129,0.6)} 70%{box-shadow:0 0 0 8px rgba(16,185,129,0)} 100%{box-shadow:0 0 0 0 rgba(16,185,129,0)} }

/* ==========================================================================
   Theme Toggle Button
   ========================================================================== */
.theme-toggle {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.theme-toggle-track {
    display: flex;
    align-items: center;
    width: 52px; height: 28px;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.14);
    border-radius: 30px;
    padding: 3px;
    transition: background 0.3s ease, border-color 0.3s ease;
    position: relative;
}
.theme-toggle-thumb {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg,#818CF8,#6366F1);
    box-shadow: 0 2px 8px rgba(99,102,241,0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.625rem;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.toggle-icon-dark, .toggle-icon-light { position: absolute; transition: opacity 0.2s, transform 0.2s; }
.toggle-icon-dark  { opacity: 1;  transform: scale(1);    color: #e2e8f0; }
.toggle-icon-light { opacity: 0;  transform: scale(0.5);  color: #fbbf24; }

/* Hover */
.theme-toggle:hover .theme-toggle-track {
    background: rgba(255,255,255,0.13);
    border-color: rgba(99,102,241,0.4);
}

/* Light theme state — thumb slides right, icon swaps */
.light-theme .theme-toggle-track {
    background: rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.15);
}
.light-theme .theme-toggle-thumb {
    transform: translateX(24px);
    background: linear-gradient(135deg,#f59e0b,#fbbf24);
    box-shadow: 0 2px 8px rgba(251,191,36,0.5);
}
.light-theme .toggle-icon-dark  { opacity: 0; transform: scale(0.5); }
.light-theme .toggle-icon-light { opacity: 1; transform: scale(1); }

/* Mockup link styles */
.mockup-link {
    display: inline-flex; align-items: center; gap: 5px;
    color: white; font-weight: 600; font-size: 0.9375rem;
    text-decoration: none; transition: color 0.2s;
}
.mockup-link:hover { color: #a5b4fc; }
.mockup-link-icon  { font-size: 0.75rem; opacity: 0.7; }

/* ==========================================================================
   Light Theme — full variable override
   ========================================================================== */
.light-theme {
    --bg-primary:    #f8fafc;
    --bg-secondary:  #f1f5f9;
    --bg-card:       #ffffff;
    --text-primary:  #0f172a;
    --text-secondary:#475569;
    --text-muted:    #64748b;
    --border-color:  rgba(0,0,0,0.08);
    --border-accent: rgba(99,102,241,0.3);
    --glass-bg:      rgba(255,255,255,0.85);
    --glass-border:  1px solid rgba(0,0,0,0.07);
    --glass-shadow:  0 8px 40px rgba(0,0,0,0.08);
    --neon-accent:   0 0 20px rgba(99,102,241,0.2);
    --neon-highlight:0 0 20px rgba(220,38,38,0.2);
}

/* Light: body background */
.light-theme body,
.light-theme { background-color: var(--bg-primary); color: var(--text-primary); }

/* Light: header */
.light-theme .header.scrolled {
    background: rgba(248,250,252,0.95);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.light-theme .header { background: transparent; }
.light-theme .nav-links {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
}
.light-theme .nav-links li a { color: #475569; }
.light-theme .nav-links li a:hover { color: #0f172a; background: rgba(0,0,0,0.05); }
.light-theme .nav-links li a.active { background: linear-gradient(135deg,#6366F1,#818CF8); color: white; }
.light-theme .logo-text-main { color: #0f172a; }
.light-theme .mobile-menu-toggle {
    background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); color: #0f172a;
}

/* Light: glass cards */
.light-theme .glass-card {
    background: rgba(255,255,255,0.9);
    border-color: rgba(0,0,0,0.07);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.light-theme .glass-card:hover { border-color: rgba(99,102,241,0.25); box-shadow: 0 8px 40px rgba(0,0,0,0.1); }

/* Light: hero */
.light-theme .hero { background: linear-gradient(160deg,#eef2ff 0%,#f8fafc 60%,#f0f9ff 100%); }
.light-theme .hero-title { color: #0f172a; }
.light-theme .hero-title span { color: var(--highlight); }
.light-theme .hero-subtitle { color: #475569; }
.light-theme .hero-stats { border-top-color: rgba(0,0,0,0.08); }
.light-theme .stat-number { color: #0f172a; }
.light-theme .glow-bg { background: radial-gradient(circle,rgba(99,102,241,0.08) 0%,transparent 70%); }

/* Light: dashboard card */
.light-theme .dashboard-hero { background: white; border-color: rgba(0,0,0,0.08); }
.light-theme .dash-header { background: rgba(0,0,0,0.03); border-bottom-color: rgba(0,0,0,0.06); }
.light-theme .dash-title { color: #64748b; }
.light-theme .ranking-badge { background: rgba(220,38,38,0.06); border-color: rgba(220,38,38,0.15); }
.light-theme .search-mockup { background: rgba(0,0,0,0.04); }
.light-theme .mockup-title,.light-theme .mockup-meta { color: #1e293b; }
.light-theme .mockup-meta { color: #64748b; }
.light-theme .views-counter-row { background: rgba(99,102,241,0.06); border-color: rgba(99,102,241,0.2); }
.light-theme .views-counter-label { color: #64748b; }
.light-theme .counter-value { color: #4f46e5; text-shadow: none; }

/* Light: sections */
.light-theme section { color: var(--text-primary); }
.light-theme .section-title {
    background: linear-gradient(135deg,#0f172a 10%,#475569 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.light-theme .section-desc { color: #64748b; }
.light-theme .badge { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.2); color: #4f46e5; }

/* Light: pricing */
.light-theme .pricing-card { background: white; border-color: rgba(0,0,0,0.07); }
.light-theme .pricing-card.popular { background: linear-gradient(145deg,rgba(99,102,241,0.08),white); }
.light-theme .card-header h3 { color: #0f172a; }
.light-theme .amount { color: #0f172a; }

/* Light: growth / services floating card */
.light-theme .card-small { background: rgba(255,255,255,0.97); border-color: rgba(0,0,0,0.08); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.light-theme .stat-huge  { color: #0f172a; }
.light-theme .progress-text { color: #64748b; }

/* Light: process steps */
.light-theme .step-icon-wrapper { background: #f1f5f9; border-color: rgba(0,0,0,0.08); }
.light-theme .step-card h3 { color: #0f172a; }
.light-theme .step-card p  { color: #64748b; }

/* Light: benefits */
.light-theme .benefit-icon { background: rgba(99,102,241,0.06); border-color: rgba(99,102,241,0.15); }
.light-theme .benefit-text h4 { color: #0f172a; }

/* Light: blog cards */
.light-theme .blog-card { background: white; border-color: rgba(0,0,0,0.07); box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.light-theme .blog-card:hover { border-color: rgba(99,102,241,0.25); }
.light-theme .blog-content h3 a { color: #0f172a; }
.light-theme .blog-content h3 a:hover { color: #4f46e5; }
.light-theme .excerpt { color: #64748b; }
.light-theme .blog-meta { border-top-color: rgba(0,0,0,0.06); }
.light-theme .date { color: #94a3b8; }

/* Light: blog hero */
.light-theme .blog-hero {
    background: linear-gradient(160deg,#eef2ff 0%,#f8fafc 60%,#f0f9ff 100%);
    border-bottom-color: rgba(99,102,241,0.12);
}
.light-theme .blog-hero-title {
    background: linear-gradient(135deg, #0f172a 10%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.light-theme .blog-hero-sub { color: #475569; }
.light-theme .blog-hero-eyebrow { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.2); color: #4f46e5; }
.light-theme .blog-breadcrumbs a { color: #64748b; }
.light-theme .blog-breadcrumbs .current { color: #334155; }
.light-theme .blog-search-bar { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
.light-theme .blog-search-input { color: #0f172a; }
.light-theme .blog-search-icon { color: #94a3b8; }
.light-theme .cat-pill { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); color: #64748b; }
.light-theme .cat-pill:hover { background: rgba(99,102,241,0.08); color: #4f46e5; }

/* Light: sidebar widgets */
.light-theme .widget { background: white; border-color: rgba(0,0,0,0.07); }
.light-theme .widget:hover { border-color: rgba(99,102,241,0.2); }
.light-theme .sidebar-search-field input { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: #0f172a; }
.light-theme .categories-list a { color: #64748b; }
.light-theme .categories-list a:hover { background: rgba(99,102,241,0.06); color: #4f46e5; }
.light-theme .post-title { color: #1e293b; }
.light-theme .sidebar-cta { background: linear-gradient(145deg,#eef2ff,white); }

/* Light: contact form */
.light-theme .form-card-wrap { background: white; border-color: rgba(99,102,241,0.15); box-shadow: 0 8px 40px rgba(0,0,0,0.08); }
.light-theme .form-card-header { background: linear-gradient(135deg,#eef2ff,#f8fafc); border-bottom-color: rgba(99,102,241,0.12); }
.light-theme .form-card-title { color: #0f172a; }
.light-theme .form-group input,
.light-theme .form-group textarea { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.1); color: #0f172a; }
.light-theme .form-group input:hover,
.light-theme .form-group textarea:hover { background: rgba(0,0,0,0.05); }
.light-theme .form-group input:focus,
.light-theme .form-group textarea:focus { background: rgba(99,102,241,0.04); }
.light-theme .form-privacy { color: #94a3b8; }

/* Light: contact buttons */
.light-theme .contact-btn { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
.light-theme .contact-btn:hover { background: rgba(0,0,0,0.06); }
.light-theme .contact-btn .platform { color: #0f172a; }

/* Light: footer */
.light-theme .site-footer { background: #0f172a; }
.light-theme .footer-copy, .light-theme .footer-legal a, .light-theme .footer-sitemap { color: #94a3b8; }

/* Light: mini stat card */
.light-theme .mini-stat-card { background: rgba(255,255,255,0.95); border-color: rgba(99,102,241,0.25); }
.light-theme .mini-stat-card .stat-title { color: #64748b; }
.light-theme .mini-stat-card .stat-value { color: #0f172a; }

/* Light: case study */
.light-theme .results-grid { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.07); }
.light-theme .result-value { color: #0f172a; }
.light-theme .chart-card { background: white; }
.light-theme .chart-illustration { border-color: rgba(0,0,0,0.08); }
.light-theme .bar-label { color: #94a3b8; }

/* Light: mobile drawer */
.light-theme .mobile-nav-panel { background: #ffffff; border-left-color: rgba(0,0,0,0.08); }
.light-theme .mobile-nav-head { border-bottom-color: rgba(0,0,0,0.06); }
.light-theme .mobile-nav-links a { color: #64748b; }
.light-theme .mobile-nav-links a:hover { background: rgba(99,102,241,0.06); color: #4f46e5; }
.light-theme .mobile-nav-cta { border-top-color: rgba(0,0,0,0.06); }
.light-theme .mobile-nav-close { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); color: #475569; }

/* Light: scroll-noise overlay — hidden in light mode */
.light-theme body::before { opacity: 0; }

/* Smooth transition for theme switch */
body, .header, .glass-card, .blog-card, .widget,
.form-card-wrap, .mobile-nav-panel, section,
.dashboard-hero, .search-mockup, .pricing-card {
    transition-property: background-color, border-color, color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}
