/* ============================================
   AI Brandépítés - Main Stylesheet
   aibrandepites.hu
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --deep-night: #0a0a1a;
    --slate: #161625;
    --electric-violet: #7c3aed;
    --hot-magenta: #e040fb;
    --neon-cyan: #22d3ee;
    --ghost-white: #e8e8f0;
    --muted-lavender: #9898b0;
    --surface: #1e1e32;

    --glow-violet: rgba(124, 58, 237, 0.4);
    --glow-magenta: rgba(224, 64, 251, 0.3);
    --glow-cyan: rgba(34, 211, 238, 0.3);

    --gradient-primary: linear-gradient(135deg, var(--electric-violet), var(--hot-magenta));
    --gradient-violet-cyan: linear-gradient(135deg, var(--electric-violet), var(--neon-cyan));

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --max-width: 1400px;
}

/* --- Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--deep-night);
    color: var(--ghost-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Animated Background --- */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--glow-violet);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--glow-magenta);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--glow-cyan);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(-50px, -30px) scale(1.05); }
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 0 30px var(--glow-violet);
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--ghost-white), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
}

.main-nav a {
    color: var(--muted-lavender);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: var(--ghost-white);
    background: var(--surface);
}

.main-nav a.active {
    color: var(--neon-cyan);
    background: rgba(34, 211, 238, 0.1);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--electric-violet);
    box-shadow: 0 0 20px var(--glow-violet);
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--ghost-white);
    font-family: inherit;
    width: 180px;
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: var(--muted-lavender);
}

.search-icon {
    color: var(--muted-lavender);
    margin-right: 0.5rem;
}

/* Search Dropdown */
.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 320px;
    background: var(--slate);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

.search-result {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.search-result:hover {
    background: rgba(124, 58, 237, 0.15);
}

.search-result:last-child {
    border-bottom: none;
}

.search-result-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neon-cyan);
}

.search-result-title {
    color: var(--ghost-white);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

.search-no-result {
    padding: 1rem;
    color: var(--muted-lavender);
    text-align: center;
    font-size: 0.9rem;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ghost-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* --- Buttons --- */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 20px var(--glow-violet);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--glow-magenta);
}

.btn-secondary {
    background: var(--surface);
    color: var(--ghost-white);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--electric-violet);
    background: rgba(124, 58, 237, 0.1);
}

.btn-large {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    border-radius: 12px;
}

/* --- Main content wrapper --- */
main {
    position: relative;
    z-index: 1;
    padding-top: 100px;
}

/* --- Hero Section --- */
.hero {
    padding: 4rem 2rem 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(224, 64, 251, 0.15);
    border: 1px solid rgba(224, 64, 251, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--hot-magenta);
    margin-bottom: 1.5rem;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px transparent; }
    50% { box-shadow: 0 0 20px var(--glow-magenta); }
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--hot-magenta);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
    background: var(--gradient-violet-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--muted-lavender);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
}

.stat {
    text-align: left;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-cyan);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted-lavender);
    margin-top: 0.25rem;
}

/* --- Featured Card --- */
.featured-card {
    background: var(--slate);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.4s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    border-color: var(--electric-violet);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--glow-violet);
}

.featured-image {
    height: 220px;
    background: linear-gradient(135deg, var(--surface), var(--slate));
    position: relative;
    overflow: hidden;
}

.featured-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, var(--glow-violet) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, var(--glow-cyan) 0%, transparent 40%);
    opacity: 0.6;
}

.featured-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0.3;
}

.featured-content {
    padding: 1.5rem;
}

.featured-tag {
    display: inline-block;
    background: rgba(34, 211, 238, 0.15);
    color: var(--neon-cyan);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.featured-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted-lavender);
    font-size: 0.85rem;
}

/* --- Categories Grid --- */
.categories {
    padding: 0 2rem 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.category-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    background: var(--slate);
    border-color: var(--electric-violet);
    transform: translateY(-3px);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.category-icon.violet { background: rgba(124, 58, 237, 0.2); }
.category-icon.magenta { background: rgba(224, 64, 251, 0.2); }
.category-icon.cyan { background: rgba(34, 211, 238, 0.2); }

.category-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.category-count {
    color: var(--muted-lavender);
    font-size: 0.85rem;
}

/* --- Section Headers --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.view-all {
    color: var(--electric-violet);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: var(--hot-magenta);
    gap: 0.75rem;
}

/* --- News Grid --- */
.news-section {
    padding: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: var(--slate);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.news-image {
    height: 160px;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-image-gradient {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}

.news-image-gradient.g1 { background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(34, 211, 238, 0.2)); }
.news-image-gradient.g2 { background: linear-gradient(135deg, rgba(224, 64, 251, 0.3), rgba(124, 58, 237, 0.2)); }
.news-image-gradient.g3 { background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(224, 64, 251, 0.2)); }

.news-body {
    padding: 1.25rem;
}

.news-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.news-tag.models { background: rgba(124, 58, 237, 0.2); color: var(--electric-violet); }
.news-tag.apps { background: rgba(224, 64, 251, 0.2); color: var(--hot-magenta); }
.news-tag.prompts { background: rgba(34, 211, 238, 0.2); color: var(--neon-cyan); }
.news-tag.coding { background: rgba(124, 58, 237, 0.2); color: var(--electric-violet); }
.news-tag.videos { background: rgba(224, 64, 251, 0.2); color: var(--hot-magenta); }
.news-tag.images { background: rgba(34, 211, 238, 0.2); color: var(--neon-cyan); }
.news-tag.learn { background: rgba(124, 58, 237, 0.2); color: var(--electric-violet); }
.news-tag.fun { background: rgba(224, 64, 251, 0.2); color: var(--hot-magenta); }
.news-tag.templates { background: rgba(34, 211, 238, 0.2); color: var(--neon-cyan); }
.news-tag.products { background: rgba(224, 64, 251, 0.2); color: var(--hot-magenta); }

.news-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.news-excerpt {
    color: var(--muted-lavender);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted-lavender);
}

/* --- Content with Sidebar Layout --- */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    padding: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: var(--slate);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Trending items */
.trending-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item:hover {
    padding-left: 0.5rem;
}

.trending-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--electric-violet);
    min-width: 28px;
}

.trending-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.trending-content span {
    font-size: 0.8rem;
    color: var(--muted-lavender);
}

/* Download items */
.download-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.download-item:last-child {
    margin-bottom: 0;
}

.download-item:hover {
    background: rgba(124, 58, 237, 0.15);
}

.download-icon {
    width: 40px;
    height: 40px;
    background: rgba(34, 211, 238, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    flex-shrink: 0;
}

.download-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.download-info span {
    font-size: 0.75rem;
    color: var(--muted-lavender);
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.product-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    border-color: var(--hot-magenta);
    box-shadow: 0 0 20px var(--glow-magenta);
}

.product-image {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.product-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-price {
    font-size: 0.8rem;
    color: var(--neon-cyan);
    font-weight: 600;
}

/* --- Video Grid --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.video-card {
    background: var(--slate);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    height: 180px;
    background: var(--surface);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(34, 211, 238, 0.1));
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 0.3s ease;
}

.video-card:hover .play-button {
    transform: scale(1.1);
    background: white;
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid var(--electric-violet);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 4px;
}

.video-duration {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}

.video-info {
    padding: 1.25rem;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-meta {
    color: var(--muted-lavender);
    font-size: 0.85rem;
}

/* --- Gallery Grid --- */
.gallery-section {
    padding: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 1;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.gallery-gradient {
    position: absolute;
    inset: 0;
    opacity: 0.7;
}

.gallery-gradient.gg1 { background: linear-gradient(135deg, #7c3aed, #e040fb); }
.gallery-gradient.gg2 { background: linear-gradient(135deg, #22d3ee, #7c3aed); }
.gallery-gradient.gg3 { background: linear-gradient(135deg, #e040fb, #22d3ee); }
.gallery-gradient.gg4 { background: linear-gradient(135deg, #7c3aed, #22d3ee); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 26, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    font-size: 0.85rem;
}

.gallery-info span {
    display: block;
    color: var(--muted-lavender);
    font-size: 0.75rem;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.faq-item {
    background: var(--slate);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--electric-violet);
    background: var(--surface);
}

.faq-question {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    cursor: pointer;
}

.faq-icon {
    width: 24px;
    height: 24px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--electric-violet);
    flex-shrink: 0;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* CSS-only FAQ accordion */
.faq-item details summary {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    list-style: none;
}

.faq-item details summary::-webkit-details-marker {
    display: none;
}

.faq-item details[open] summary .faq-icon {
    transform: rotate(45deg);
    background: var(--electric-violet);
    color: white;
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--muted-lavender);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- Newsletter Section --- */
.newsletter {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(224, 64, 251, 0.1));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin: 2rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.newsletter h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.newsletter p {
    color: var(--muted-lavender);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    color: var(--ghost-white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--electric-violet);
    box-shadow: 0 0 20px var(--glow-violet);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--muted-lavender);
}

.newsletter-success {
    display: none;
    background: rgba(34, 211, 238, 0.15);
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    color: var(--neon-cyan);
    font-weight: 500;
    margin-top: 1rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--slate);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand p {
    color: var(--muted-lavender);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.footer-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--ghost-white);
}

.footer-section a {
    display: block;
    color: var(--muted-lavender);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--electric-violet);
    padding-left: 0.5rem;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted-lavender);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    background: var(--surface);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-lavender);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--electric-violet);
    color: white;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    padding: 1rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--muted-lavender);
}

.breadcrumbs a {
    color: var(--electric-violet);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--hot-magenta);
}

.breadcrumbs span {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* --- Category Filter Pills --- */
.category-pills {
    display: flex;
    gap: 0.5rem;
    padding: 0 2rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--surface);
    color: var(--muted-lavender);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pill:hover {
    border-color: var(--electric-violet);
    color: var(--ghost-white);
}

.pill.active {
    background: var(--electric-violet);
    border-color: var(--electric-violet);
    color: white;
}

/* --- Blog Post Article Page --- */
.article-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-header .news-tag {
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted-lavender);
    font-size: 0.9rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ghost-white);
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
}

.article-body h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

.article-body p {
    margin-bottom: 1.25rem;
    color: var(--ghost-white);
}

.article-body ul, .article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--surface);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--neon-cyan);
}

.article-body pre {
    background: var(--surface);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.article-body pre code {
    background: none;
    padding: 0;
}

.article-body blockquote {
    border-left: 3px solid var(--electric-violet);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: var(--muted-lavender);
    font-style: italic;
}

.article-body img {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.article-body a {
    color: var(--electric-violet);
    text-decoration: underline;
    text-decoration-color: rgba(124, 58, 237, 0.4);
    transition: all 0.3s ease;
}

.article-body a:hover {
    color: var(--hot-magenta);
    text-decoration-color: var(--hot-magenta);
}

/* Related posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.related-posts h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* --- Landing Page Styles --- */
.landing-hero {
    padding: 5rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.landing-hero .landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 211, 238, 0.15);
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--neon-cyan);
    margin-bottom: 2rem;
}

.landing-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.landing-hero p {
    font-size: 1.2rem;
    color: var(--muted-lavender);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.landing-price {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(124, 58, 237, 0.3);
    margin-bottom: 2rem;
}

.landing-price .price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon-cyan);
    font-family: 'JetBrains Mono', monospace;
}

.landing-price .price-label {
    color: var(--muted-lavender);
    font-size: 0.9rem;
}

.landing-features {
    padding: 3rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: var(--slate);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--muted-lavender);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Product Showcase Section (homepage) --- */
.products-section {
    padding: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.products-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-showcase-card {
    background: var(--slate);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-showcase-card:hover {
    border-color: var(--hot-magenta);
    box-shadow: 0 0 30px var(--glow-magenta);
    transform: translateY(-3px);
}

.product-showcase-card .product-image {
    width: 80px;
    height: 80px;
    margin: 0 0 1.25rem;
}

.product-showcase-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-showcase-card p {
    color: var(--muted-lavender);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-showcase-card .product-price {
    font-size: 1.1rem;
    font-weight: 700;
}

/* --- Page Header (Blog, Category pages) --- */
.page-header {
    padding: 3rem 2rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.page-header p {
    color: var(--muted-lavender);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--muted-lavender);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* --- Pills horizontal scroll wrapper --- */
.pills-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 2rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.pills-scroll::-webkit-scrollbar {
    display: none;
}

.pills-scroll .category-pills {
    padding: 0;
    overflow: visible;
}

/* Breadcrumb separator */
.breadcrumb-sep {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* --- Utility Classes --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- Light Mode --- */
body.light-mode {
    --deep-night: #f5f5f8;
    --slate: #ffffff;
    --surface: #eeeef2;
    --ghost-white: #1a1a2e;
    --muted-lavender: #555570;
    --glow-violet: rgba(124, 58, 237, 0.15);
    --glow-magenta: rgba(224, 64, 251, 0.1);
    --glow-cyan: rgba(34, 211, 238, 0.1);
}

body.light-mode .site-header {
    background: rgba(245, 245, 248, 0.85);
    border-bottom-color: rgba(124, 58, 237, 0.12);
}

body.light-mode .main-nav a:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .main-nav a.active {
    background: rgba(34, 211, 238, 0.12);
}

body.light-mode .news-card {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.light-mode .news-card:hover {
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.light-mode .featured-card {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

body.light-mode .category-card {
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .category-card:hover {
    border-color: var(--electric-violet);
    background: rgba(124, 58, 237, 0.05);
}

body.light-mode .sidebar-card {
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .faq-item {
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .faq-item:hover {
    border-color: var(--electric-violet);
}

body.light-mode .product-showcase-card {
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .newsletter {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(224, 64, 251, 0.05));
    border-color: rgba(124, 58, 237, 0.15);
}

body.light-mode .site-footer {
    background: #eeeef2;
    border-top-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .search-dropdown {
    background: #ffffff;
    border-color: rgba(124, 58, 237, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body.light-mode .search-result:hover {
    background: rgba(124, 58, 237, 0.08);
}

body.light-mode .search-result-title {
    color: #1a1a2e;
}

body.light-mode .pill {
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .bg-grid {
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
}

body.light-mode .logo-text {
    background: linear-gradient(135deg, #1a1a2e, var(--electric-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .download-item:hover {
    background: rgba(124, 58, 237, 0.08);
}

body.light-mode .social-link {
    background: rgba(0, 0, 0, 0.06);
}

body.light-mode .social-link:hover {
    background: var(--electric-violet);
    color: white;
}

/* Theme toggle button */
.theme-toggle {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.45rem 0.7rem;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: all 0.3s ease;
    color: var(--ghost-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    border-color: var(--electric-violet);
    background: rgba(124, 58, 237, 0.1);
}

body.light-mode .theme-toggle {
    border-color: rgba(0, 0, 0, 0.12);
}

/* Smooth transition for theme switch */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.site-header,
.news-card,
.featured-card,
.category-card,
.sidebar-card,
.faq-item,
.site-footer,
.search-box,
.pill,
.newsletter {
    transition: all 0.3s ease;
}

/* Mobile light mode nav */
@media (max-width: 768px) {
    body.light-mode .main-nav {
        background: rgba(245, 245, 248, 0.97);
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.15s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.25s; }
.animate-in:nth-child(5) { animation-delay: 0.3s; }
.animate-in:nth-child(6) { animation-delay: 0.35s; }

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 1rem;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    }

    .main-nav.open {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .search-box {
        display: none;
    }

    .header-actions .search-box {
        display: none;
    }

    .hero {
        padding: 2rem 1rem 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .categories {
        padding: 0 1rem 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .news-section {
        padding: 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .content-with-sidebar {
        padding: 1rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    .newsletter h2 {
        font-size: 1.5rem;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .products-showcase {
        grid-template-columns: 1fr;
    }

    .landing-hero h1 {
        font-size: 2rem;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

    .breadcrumbs {
        padding: 1rem;
    }

    .category-pills {
        padding: 0 1rem 1.5rem;
    }

    .faq-section {
        padding: 1rem;
    }

    .gallery-section {
        padding: 1rem;
    }

    .products-section {
        padding: 1rem;
    }

    .landing-features {
        padding: 2rem 1rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}
