/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --primary: #0ea5e9;
    --primary-rgb: 14, 165, 233;
    --primary-hover: #0284c7;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --accent-rgb: 245, 158, 11;
    --accent-hover: #d97706;
    --green: #10b981;
    --green-rgb: 16, 185, 129;
    --purple: #8b5cf6;
    --purple-rgb: 139, 92, 246;
    --border-color: #e2e8f0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 30px 60px -20px rgba(0, 0, 0, 0.18);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
    --max-width: 1280px;
}

[data-theme="dark"] {
    --bg-primary: #090d16;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --primary: #38bdf8;
    --primary-rgb: 56, 189, 248;
    --primary-hover: #7dd3fc;
    --secondary: #cbd5e1;
    --accent: #fbbf24;
    --accent-rgb: 251, 191, 36;
    --accent-hover: #fcd34d;
    --border-color: #1e293b;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

html { scroll-behavior: smooth; font-size: 16px; }

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; display: block; }

/* ===========================
   LAYOUT
=========================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   NAVIGATION
=========================== */
.glass-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}
.logo span { color: var(--primary); }

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--border-radius-sm);
    color: #fff;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 18px;
}

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

.nav-links > li { position: relative; }

.nav-links > li > a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.08);
}

/* Dropdown */
.nav-dropdown { position: relative; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-xl);
    min-width: 260px;
    padding: 8px;
    list-style: none;
    z-index: 200;
    animation: dropIn 0.18s ease;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
    transition: background 0.15s, color 0.15s;
}
.dropdown-menu li a:hover { background: var(--bg-tertiary); color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    background-color: var(--bg-tertiary);
    transition: all 0.2s;
}
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun-icon { display: none; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; }

/* ===========================
   BUTTONS
=========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    border: none;
    gap: 8px;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.45); }

.btn-secondary { background-color: var(--bg-tertiary); color: var(--text-primary); }
.btn-secondary:hover { background-color: var(--border-color); transform: translateY(-2px); }

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.3);
}
.btn-accent:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.45); }

.btn-ghost {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}
.btn-ghost:hover { background: rgba(var(--primary-rgb), 0.15); color: var(--primary-hover); }

.btn-ghost-white {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ===========================
   HERO SECTION
=========================== */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    overflow: hidden;
    background-color: var(--bg-primary);
}

/* Aurora animated background */
.hero-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-aurora::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 800px; height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.12) 0%, transparent 65%);
    animation: aurora1 8s ease-in-out infinite alternate;
}

.hero-aurora::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, transparent 65%);
    animation: aurora2 10s ease-in-out infinite alternate;
}

@keyframes aurora1 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, -20px) scale(1.1); }
}
@keyframes aurora2 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-30px, 30px) scale(1.12); }
}

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 70%, var(--bg-primary) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.hero-badge-dot {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-text h1 {
    font-size: 50px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-weight: 400;
    line-height: 1.7;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    padding: 8px 8px 8px 16px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 520px;
    margin-bottom: 24px;
    gap: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}
.search-box svg { color: var(--text-muted); flex-shrink: 0; }
.search-box input {
    flex: 1; border: none; background: none;
    font-family: var(--font-body); font-size: 15px;
    color: var(--text-primary); outline: none;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box button {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.search-box button:hover { background: var(--primary-hover); }

.hero-cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.hero-image-container { position: relative; }

.hero-img-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--glass-border);
}
.hero-img-wrapper img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16/10;
    transition: transform 0.4s ease;
}
.hero-img-wrapper:hover img { transform: scale(1.03); }

.hero-img-badge {
    position: absolute;
    bottom: 20px; left: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-primary);
    display: flex; align-items: center; gap: 8px;
}

/* ===========================
   STATS STRIP
=========================== */
.stats-strip {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 100%);
    padding: 32px 0;
    margin-bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item { padding: 16px; }

.stat-number {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #38bdf8, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    font-family: var(--font-heading);
}

/* ===========================
   FEATURES SECTION
=========================== */
.features-section { padding: 64px 0 0 0; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.feature-icon {
    width: 56px; height: 56px;
    border-radius: var(--border-radius-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.feature-icon--blue  { background: rgba(var(--primary-rgb), 0.1); color: var(--primary); }
.feature-icon--amber { background: rgba(var(--accent-rgb), 0.1); color: var(--accent); }
.feature-icon--green { background: rgba(var(--green-rgb), 0.1); color: var(--green); }

.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ===========================
   FILTER BAR
=========================== */
.filter-section {
    padding: 0 0 32px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 48px;
}

.filter-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    font-family: var(--font-heading);
}

.filter-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.filter-btn {
    background-color: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    color: var(--text-secondary);
    padding: 9px 20px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

/* ===========================
   ARTICLE GRID & CARDS
=========================== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 64px;
}

.card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.25s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--primary-rgb), 0.25);
}

.card--featured { border-color: rgba(var(--primary-rgb), 0.15); }

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-tertiary);
}
.card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card:hover .card-image img { transform: scale(1.05); }

/* SVG placeholder backgrounds */
.card-svg-bg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.card-svg-bg--teal   { background: linear-gradient(135deg, #0d9488, #0891b2); }
.card-svg-bg--purple { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.card-svg-bg--orange { background: linear-gradient(135deg, #ea580c, #dc2626); }

.card-svg-bg svg { width: 60%; height: 60%; max-width: 140px; }

.card-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-badge--new {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
    font-family: var(--font-heading);
}

.card h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.4; }

.card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.read-more {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
}
.read-more svg { transition: transform 0.2s ease; }
.card:hover .read-more svg { transform: translateX(4px); }

/* ===========================
   TOOLS SECTION
=========================== */
.tools-section {
    margin-bottom: 80px;
    padding: 56px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.tools-header {
    text-align: center;
    margin-bottom: 40px;
}
.tools-header h2 { font-size: 32px; margin-bottom: 10px; }
.tools-header p { color: var(--text-secondary); font-size: 16px; }

.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.tool-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 32px;
    transition: all 0.2s;
}
.tool-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }

.tool-icon {
    width: 60px; height: 60px;
    border-radius: var(--border-radius-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.tool-icon--blue  { background: rgba(var(--primary-rgb), 0.1); color: var(--primary); }
.tool-icon--amber { background: rgba(var(--accent-rgb), 0.1); color: var(--accent); }

.tool-content h3 { font-size: 20px; margin-bottom: 10px; }
.tool-content p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }

/* ===========================
   TESTIMONIALS
=========================== */
.testimonials-section { margin-bottom: 80px; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 36px; margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 17px; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.testimonial-quote {
    font-size: 64px;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.3;
    line-height: 0.8;
    margin-bottom: 16px;
}

.testimonial-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    font-family: var(--font-heading);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.testimonial-author strong { display: block; font-size: 15px; margin-bottom: 2px; }
.testimonial-author span { font-size: 13px; color: var(--text-muted); }

/* ===========================
   CTA BANNER
=========================== */
.cta-banner {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 60%, #0d2137 100%);
    color: #fff;
    border-radius: var(--border-radius-lg);
    padding: 56px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-bottom: 80px;
    border: 1px solid rgba(255,255,255,0.06);
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.18) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}
.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -40%; left: -5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-text h2 { font-size: 34px; color: #fff; margin-bottom: 14px; font-weight: 800; }
.cta-text p  { color: #cbd5e1; font-size: 16px; margin-bottom: 28px; line-height: 1.7; }

.cta-links { display: flex; flex-direction: column; gap: 14px; }

.cta-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}
.cta-links a:hover { background: rgba(255,255,255,0.12); border-color: rgba(var(--primary-rgb), 0.5); transform: translateX(4px); color: #fff; }
.cta-links a span { display: flex; align-items: center; gap: 10px; }

/* ===========================
   NEWSLETTER
=========================== */
.newsletter-section {
    margin-bottom: 80px;
    text-align: center;
}

.newsletter-inner {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 56px;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.newsletter-icon {
    width: 64px; height: 64px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    margin: 0 auto 24px auto;
}

.newsletter-inner h2 { font-size: 30px; margin-bottom: 12px; }
.newsletter-inner > p { color: var(--text-secondary); font-size: 16px; margin-bottom: 28px; }

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto 16px auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-family: var(--font-body);
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--primary); }

.newsletter-disclaimer { font-size: 12px; color: var(--text-muted); }

/* ===========================
   FOOTER
=========================== */
footer {
    background: #070e1a;
    color: #cbd5e1;
    padding: 72px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}
.footer-logo span { color: #38bdf8; }

.footer-about p { font-size: 14px; line-height: 1.7; color: #94a3b8; margin-bottom: 20px; }

.footer-badges { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #94a3b8; }

.footer-links h4 { color: #fff; font-size: 15px; font-family: var(--font-heading); font-weight: 700; margin-bottom: 18px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #64748b; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: #cbd5e1; }

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #475569;
}

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: #475569; font-size: 13px; }
.footer-bottom-links a:hover { color: #94a3b8; }

/* ===========================
   ARTICLE DETAIL PAGES
=========================== */
.article-detail { padding-top: 140px; padding-bottom: 80px; }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-family: var(--font-heading);
    font-weight: 500;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { opacity: 0.4; }

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 2000;
    transition: width 0.1s linear;
}

.article-header { max-width: 820px; margin: 0 auto 40px auto; text-align: center; }

.article-header-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 600;
    font-family: var(--font-heading);
    flex-wrap: wrap;
}

.article-header h1 {
    font-size: 42px;
    letter-spacing: -1px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-header > p { font-size: 18px; color: var(--text-secondary); line-height: 1.6; }

.article-hero-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 48px auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}
.article-hero-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.article-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 48px;
    align-items: start;
}

.article-body {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-body h2 {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-primary);
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.15);
    padding-bottom: 10px;
}
.article-body h2:first-child { margin-top: 0; }

.article-body h3 { font-size: 20px; margin-top: 32px; margin-bottom: 12px; color: var(--text-primary); }

.article-body p { margin-bottom: 24px; }
.article-body p:last-child { margin-bottom: 0; }

.article-body ul, .article-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}
.article-body li { margin-bottom: 10px; }

.article-body blockquote {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.04), rgba(var(--accent-rgb), 0.04));
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    margin: 32px 0;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    font-style: italic;
    color: var(--text-primary);
}
.article-body blockquote p { margin-bottom: 0; }

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 14px;
}
.article-body th {
    background: rgba(var(--primary-rgb), 0.06);
    padding: 12px 16px;
    text-align: left;
    font-family: var(--font-heading);
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.15);
}
.article-body td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
.article-body tr:hover td { background: var(--bg-tertiary); }

/* Callout Box */
.seo-callout {
    background: rgba(var(--primary-rgb), 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-radius: var(--border-radius-md);
    padding: 24px;
    margin: 32px 0;
}
.seo-callout-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.seo-callout-title svg { color: var(--primary); flex-shrink: 0; }
.seo-callout p { margin-bottom: 12px; font-size: 15px; }
.seo-callout p:last-child { margin-bottom: 0; }

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.sidebar-widget h4 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.2);
    color: var(--text-primary);
}

.widget-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.widget-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 10px;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s;
}
.widget-links a:hover { color: var(--primary); background: rgba(var(--primary-rgb), 0.06); }

.partner-ad {
    background: linear-gradient(135deg, #0d1b2a, #1e3a5f);
    color: #fff;
    border: none;
}
.partner-ad h4 { color: #fff; border-bottom-color: rgba(var(--accent-rgb), 0.4); }
.partner-ad p { font-size: 14px; color: #94a3b8; margin-bottom: 18px; line-height: 1.6; }

/* ===========================
   STATIC PAGES (O nas, Kontakt)
=========================== */
.page-hero {
    padding-top: 140px;
    padding-bottom: 64px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; right: -20%;
    width: 600px; height: 400px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 65%);
    border-radius: 50%;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}
.page-hero-content h1 { font-size: 48px; margin-bottom: 16px; }
.page-hero-content p { font-size: 18px; color: var(--text-secondary); }

.page-content { padding: 64px 0; }

.page-section { max-width: 900px; margin: 0 auto 64px auto; }
.page-section h2 { font-size: 30px; margin-bottom: 24px; }
.page-section p { color: var(--text-secondary); font-size: 16px; line-height: 1.8; margin-bottom: 16px; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 64px;
}

.about-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}
.about-card-icon {
    width: 56px; height: 56px;
    border-radius: var(--border-radius-md);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.about-card h3 { font-size: 22px; margin-bottom: 12px; }
.about-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; max-width: 1000px; margin: 0 auto; }

.contact-form { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); padding: 48px; box-shadow: var(--shadow-sm); }
.contact-form h2 { font-size: 28px; margin-bottom: 32px; }

.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 14px; font-weight: 700; font-family: var(--font-heading); margin-bottom: 8px; color: var(--text-primary); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-family: var(--font-body);
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.contact-info { display: flex; flex-direction: column; gap: 24px; }

.contact-info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 28px;
}
.contact-info-card h3 { font-size: 18px; margin-bottom: 16px; }
.contact-info-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-question:hover { background: var(--bg-tertiary); }
.faq-answer {
    display: none;
    padding: 20px 24px;
    background: var(--bg-primary);
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question { color: var(--primary); }

/* Quick-answer / AEO section */
.answers-section {
    padding: 88px 0;
    border-top: 1px solid var(--border-color);
}
.answers-section .section-header {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}
.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.answers-section .faq-question {
    width: 100%;
    border: 0;
    text-align: left;
}
.answers-section .faq-question span {
    font-size: 24px;
    line-height: 1;
}
.answers-section .faq-answer p { margin: 0; }

.source-note {
    margin: 32px 0;
    padding: 22px 24px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--border-radius-md);
    background: var(--bg-secondary);
    color: var(--text-secondary);
}
.source-note strong { color: var(--text-primary); }
.source-note a { color: var(--primary); font-weight: 700; }

/* ===========================
   TOOLS (Planer, Kalkulator)
=========================== */
.tool-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.checklist-group { margin-bottom: 32px; }
.checklist-group-title {
    font-size: 18px; font-weight: 700; color: var(--primary);
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid var(--border-color); padding-bottom: 10px;
    font-family: var(--font-heading);
}

.checklist-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
}
.checklist-item:hover { border-color: var(--primary); background: var(--bg-tertiary); }
.checklist-item input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; accent-color: var(--primary); }
.checklist-item.checked { opacity: 0.55; }
.checklist-item.checked span { text-decoration: line-through; color: var(--text-muted); }

.checklist-progress-bar {
    width: 100%; height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 32px;
}
.checklist-progress-fill {
    width: 0%; height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
    border-radius: 4px;
}

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.calc-items-list { max-height: 450px; overflow-y: auto; padding-right: 8px; }
.calc-item-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px; border-bottom: 1px solid var(--border-color);
}
.calc-item-controls { display: flex; align-items: center; gap: 12px; }
.calc-btn {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid var(--border-color); background: var(--bg-tertiary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-weight: 700; transition: all 0.15s;
}
.calc-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.calc-qty { font-weight: 700; min-width: 20px; text-align: center; }
.calc-summary {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-md);
    padding: 32px;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
}
.calc-result {
    font-size: 48px; font-family: var(--font-heading); font-weight: 800;
    color: var(--primary); margin: 16px 0;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 80px; left: 0;
        width: 100%; height: calc(100vh - 80px);
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 24px;
        overflow-y: auto;
        z-index: 999;
        gap: 4px;
    }
    .nav-links.open { display: flex; }
    .nav-links > li > a { font-size: 17px; padding: 14px 16px; }
    .dropdown-menu { position: static; box-shadow: none; border: none; background: var(--bg-tertiary); margin-top: 4px; }
    .mobile-menu-btn { display: flex; }

    .hero { padding-top: 110px; padding-bottom: 48px; }
    .hero-content { grid-template-columns: 1fr; gap: 32px; }
    .hero-text { text-align: center; }
    .hero-text h1 { font-size: 34px; }
    .search-box { max-width: 100%; }
    .hero-cta-row { justify-content: center; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 32px; }

    .features-grid { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .cta-grid { grid-template-columns: 1fr; }
    .cta-banner { padding: 36px 24px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    .article-layout { grid-template-columns: 1fr; }
    .article-body { padding: 24px; }
    .article-header h1 { font-size: 28px; }

    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

    .tools-section { padding: 32px 24px; }
    .calc-grid { grid-template-columns: 1fr; }

    .newsletter-form { flex-direction: column; }
}
