 :root {
    --bg: #FAFAFA;
    --bg-alt: #F3F4F6;
    --surface: #FFFFFF;
    --fg: #334155;
    --fg-light: #64748B;
    --accent: #2DD4BF;
    --accent-dark: #14B8A6;
    --accent-soft: #CCFBF1;
    --border: #F1F5F9;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
    --radius: 24px;
    --radius-sm: 12px;
    --nav-height: 65px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #1E293B;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent), #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(45, 212, 191, 0.4);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--fg);
    background: var(--surface);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 8px 0;
    background: white;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s ease;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    border-bottom-color: var(--border);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 10;
}

.logo-icon {
    width: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav { display: flex; gap: 4px; }

.nav-link {
    padding: 6px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--fg-light);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--fg);
    background: var(--bg-alt);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-line {
    width: 100%;
    height: 3px;
    background: var(--fg);
    border-radius: 999px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.hero-anim {
    opacity: 0;
    animation: hero-reveal 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: var(--d, 0s);
}

@keyframes hero-reveal {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-cat-item.hero-anim {
    animation-name: hero-cat-reveal;
}

@keyframes hero-cat-reveal {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-anim-scale {
    animation-name: hero-scale-reveal;
}

@keyframes hero-scale-reveal {
    from { opacity: 0; transform: scale(0.94) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.hero {
    padding: 120px 10px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: #0F172A;
    background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.55)), url('img/bg.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}

.hero-container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1.0fr 0.7fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.hero-cat-item {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    width: fit-content;
}

.hero-cat-emoji {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.07);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-cat-item:hover .hero-cat-emoji {
    background: rgba(255,255,255,0.14);
    transform: scale(1.08);
    border-color: rgba(255,255,255,0.2);
}

.hero-cat-text {
    font-size: 1.45rem;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.03em;
}

.hero-title {
    font-size: clamp(1.2rem, 4.2vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: white;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.843);
    margin-bottom: 20px;
    max-width: 540px;
    line-height: 1.6;
}

.search-container { margin-bottom: 0; width: 100%; }

.search-box {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 5px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    max-width: 500px;
    width: 100%;
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
    transform: translateY(-2px);
}

.search-icon { width: 24px; height: 24px; margin-left: 16px; color: var(--fg-light); flex-shrink: 0; }

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 10px;
    font-size: 1rem;
    background: transparent;
    color: var(--fg);
    font-family: inherit;
    min-width: 0;
}

.search-btn {
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.search-btn:hover { background: var(--accent-dark); }

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

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--fg-light);
}

.hero-img-placeholder { width: 100%; aspect-ratio: 3/3; padding: 10px; }

.floating-badge {
    position: absolute;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(16px);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
    color: white;
    z-index: 5;
}

.floating-badge svg { width: 20px; height: 20px; stroke: var(--accent); }
.fb-1 { top: 10%; left: -20px; animation-delay: 0s; }
.fb-2 { bottom: 6%; right: -10px; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}


.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 16px; }
.section-description { color: var(--fg-light); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

.features { padding: 100px 0; background: #F8FAFC; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon-wrapper {
    width: 64px; height: 64px;
    background: var(--accent-soft);
    border-radius: 10px;
    display: flex;
    padding: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon-wrapper { transform: scale(1.1) rotate(5deg); }

.feature-icon-wrapper.icon-orange { background: #FFEDD5; }
.feature-icon-wrapper.icon-purple { background: #EDE9FE; }

.feature-icon svg { width: 32px; height: 32px; stroke: var(--accent-dark); }
.icon-orange svg { stroke: #F97316; }
.icon-purple svg { stroke: #8B5CF6; }

.feature-title { font-size: 1.25rem; margin-bottom: 12px; }
.feature-description { color: var(--fg-light); font-size: 1rem; margin-bottom: 24px; line-height: 1.6; }

.feature-link {
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.feature-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.feature-link:hover svg { transform: translateX(4px); }

.articles {
    padding: 100px 0;
    background-color: #0F172A;
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)), url('img/bgeer.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.articles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 48px; }

.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.article-image { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.article-image .image-placeholder { width: 100%; height: 100%; border-radius: 0; border: none; }

.article-category {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(255,255,255,0.95);
    color: black;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.article-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-title { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.4; }
.article-excerpt { font-size: 0.95rem; color: var(--fg-light); margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }

.article-meta { display: flex; gap: 16px; color: var(--fg-light); font-size: 0.85rem; }
.meta-item { display: flex; align-items: center; gap: 6px; }
.meta-item svg { width: 14px; height: 14px; stroke: var(--fg-light); }

.articles-cta { text-align: center; }

.products {
    padding: 100px 0;
    background: #F8FAFC;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #60A5FA);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-banner {
    width: calc(100% + 56px);
    margin: -32px -28px 24px;
    height: 110px;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.product-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.product-banner svg {
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 1;
}

.product-banner-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    position: relative;
    z-index: 1;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-card:hover::before { opacity: 1; }

.product-logo {
    width: 50px; height: 50px;
    border-radius: 12px;
    border: 1px solid var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.product-card:hover .product-logo { transform: scale(1.1) rotate(5deg); }
.product-logo img { width: 100%; height: 100%; object-fit: contain; }

.product-badge {
    padding: 4px 12px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.product-name { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.3; }

.product-description {
    color: var(--fg-light);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.product-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.product-link:hover svg { transform: translateX(4px); }
.product-link:hover { color: var(--accent); }

.products-cta { text-align: center; }

.footer { background: #1E293B; color: #fff; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }

.footer-tagline { color: #94A3B8; margin: 16px 0 24px; max-width: 300px; line-height: 1.6; }

.social-links { display: flex; gap: 12px; }

.social-link {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    transition: all 0.25s;
}

.social-link:hover { background: var(--accent); transform: translateY(-3px); }
.social-link svg { width: 20px; height: 20px; fill: #fff; }

.footer-title { font-size: 1rem; margin-bottom: 24px; font-weight: 600; color: #fff; }
.footer-links ul { display: flex; flex-direction: column; gap: 16px; }
.footer-links a { color: #94A3B8; font-size: 0.95rem; transition: all 0.2s; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; text-align: center; color: #64748B; font-size: 0.9rem; }

.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.visible {
    opacity: 1;
    transform: translate(0);
}

.ck-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.15);
    z-index: 299;
    opacity: 0;
    visibility: hidden;
    transition: all .4s;
    backdrop-filter: blur(2px);
}

.ck-overlay.vis {
    opacity: 1;
    visibility: visible;
}

.ck-banner {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 640px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
    z-index: 300;
    transition: bottom .5s cubic-bezier(.4,0,.2,1);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ck-banner.vis {
    bottom: 24px;
}

.ck-ico {
    width: 40px;
    height: 40px;
    background: var(--accent-soft);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ck-ico svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-dark);
}

.ck-body {
    flex: 1;
}

.ck-body p {
    font-size: .85rem;
    color: var(--fg-light);
    line-height: 1.65;
    margin-bottom: 14px;
}

.ck-body p strong {
    color: var(--fg-heading);
}

.ck-acts {
    display: flex;
    gap: 10px;
}

.ck-yes {
    background: var(--accent);
    color: #fff;
    padding: 9px 22px;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 600;
    transition: all .2s;
    border: none;
    cursor: pointer;
}

.ck-yes:hover {
    background: var(--accent-dark);
}

.ck-no {
    color: var(--fg-muted);
    font-size: .84rem;
    font-weight: 500;
    padding: 9px 16px;
    transition: color .2s;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.ck-no:hover {
    color: var(--fg-light);
}

/* --- Theme Toggle Button Styling --- */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--fg);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    border-color: var(--accent);
    background: var(--bg-alt);
    color: var(--accent-dark);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
html:not([data-theme="dark"]) .sun-icon { display: none; }
html:not([data-theme="dark"]) .moon-icon { display: block; }

/* --- Dark Mode Color Overrides --- */
[data-theme="dark"] {
    --bg: #0B0F19;
    --bg-alt: #1E293B;
    --surface: #111827;
    --fg: #F1F5F9;
    --fg-light: #94A3B8;
    --accent-soft: rgba(45, 212, 191, 0.15);
    --border: #1F2937;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.4);
}

/* Ensure smooth background transition changes globally */
html, body, header, .feature-card, .article-card, .product-card, .ck-banner, .nav {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Overriding hardcoded light colors for dark theme consistency */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
    color: #F8FAFC !important;
}

[data-theme="dark"] .header {
    background: rgba(17, 24, 39, 0.8) !important;
}

[data-theme="dark"] .header.scrolled {
    background: rgba(11, 15, 25, 0.95) !important;
}

[data-theme="dark"] .features,
[data-theme="dark"] .products {
    background: #0F172A !important;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-categories {
        align-items: center;
    }

    .search-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .search-box {
        margin: 0 auto;
    }

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

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .header-actions .btn {
        display: none;
    }

    .nav {
        display: flex !important;
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        padding: 100px 24px 40px;
        background: var(--surface);
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-lg);
        height: 100vh;
        z-index: 9999;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        font-size: 1.25rem;
        padding: 16px 20px;
        border-radius: 8px;
    }

    .mobile-menu-btn {
        display: flex;
        position: relative;
        z-index: 10001;
    }

    .hero {
        padding: 90px 20px 40px;
        min-height: auto;
    }

    .hero-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        margin: 0 auto;
    }

    .hero-content {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        order: 1;
    }

    .hero-visual {
        order: 2;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-categories {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }

    .hero-cat-item {
        justify-content: center;
    }

    .hero-cat-text {
        font-size: 0.9rem;
    }

    .hero-cat-emoji {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .floating-badge {
        display: none;
    }

    .hero-categories {
        visibility: hidden;
        margin-top: -30px;
    }

    .search-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .search-box {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        justify-content: space-between;
    }

    .search-input {
        padding: 10px;
    }

    .search-btn-text {
        display: none;
    }

    .search-btn {
        padding: 12px 16px;
        min-width: 44px;
        justify-content: center;
        border-radius: 10px;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-tagline {
        margin: 16px auto 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    [data-theme="dark"] .nav {
        background: var(--surface) !important;
    }

    .theme-toggle-btn {
        margin-right: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}