/* ================================
   LaptopTester — Main stylesheet
   ================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    transition: background .3s ease, color .3s ease;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; transition: color .2s; }
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
ul { padding: 0; list-style: none; }

/* ---------- Variables ---------- */
:root[data-theme="dark"] {
    --bg: #0a0a0f;
    --bg-elev: #13131a;
    --bg-card: #16161f;
    --bg-hover: #1d1d28;
    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.14);
    --text: #f1f1f5;
    --text-muted: #9494a5;
    --text-dim: #6b6b7b;

    --accent-1: #7C3AED;
    --accent-2: #06B6D4;
    --accent-grad: linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
    --accent-grad-hover: linear-gradient(135deg, #8B4EF5 0%, #1FC4DC 100%);

    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.3);
}

:root[data-theme="light"] {
    --bg: #fafafa;
    --bg-elev: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f3f4f6;
    --border: rgba(0,0,0,0.08);
    --border-strong: rgba(0,0,0,0.14);
    --text: #0f0f15;
    --text-muted: #5a5a6b;
    --text-dim: #8b8b9a;

    --accent-1: #7C3AED;
    --accent-2: #06B6D4;
    --accent-grad: linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
    --accent-grad-hover: linear-gradient(135deg, #6B21D9 0%, #0891B2 100%);

    --success: #059669;
    --danger: #DC2626;
    --warning: #D97706;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: 80px 0; }
.gradient-text {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px,1px,1px,1px);
}
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--accent-1);
    color: #fff;
    padding: 12px 20px;
    z-index: 999;
    border-radius: 8px;
}
.skip-link:focus { top: 16px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 72px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--text);
}
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--accent-grad);
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
    box-shadow: var(--shadow-glow);
}
.logo-mark span { opacity: .7; }
.logo-text strong { font-weight: 700; }
.logo-text { font-weight: 500; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav .menu {
    display: flex;
    gap: 4px;
}
.main-nav .menu a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: all .2s;
}
.main-nav .menu a:hover,
.main-nav .menu .current-menu-item > a {
    color: var(--text);
    background: var(--bg-hover);
}

.header-actions { display: flex; gap: 4px; align-items: center; }
.icon-btn {
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text-muted);
    transition: all .2s;
    position: relative;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.mobile-toggle { display: none; flex-direction: column; gap: 4px; }
.mobile-toggle span {
    display: block;
    width: 20px; height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .3s;
}

/* Search overlay */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}
.search-form {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 8px 8px 20px;
    align-items: center;
}
.search-form .search-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text);
}
.search-form .search-submit {
    padding: 10px 16px;
    background: var(--accent-grad);
    color: #fff;
    border-radius: 8px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 120px 0 100px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(124, 58, 237, 0.25), transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.2), transparent 50%);
    pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.pulse {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--accent-2);
    border-radius: 50%;
    box-shadow: 0 0 0 0 var(--accent-2);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}
.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    margin-bottom: 24px;
}
.hero-subtitle {
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 40px;
}
.hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.hero-stats .stat { text-align: center; }
.hero-stats .stat strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 700;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stats .stat span {
    font-size: 13px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all .2s;
    cursor: pointer;
}
.btn-primary {
    background: var(--accent-grad);
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
    background: var(--accent-grad-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}
.btn-ghost {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-hover); border-color: var(--accent-1); }

/* ---------- Section headers ---------- */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 24px;
    flex-wrap: wrap;
}
.section-header h2 {
    font-size: clamp(28px, 3vw, 40px);
    margin-bottom: 8px;
}
.section-header p { color: var(--text-muted); }
.section-link {
    color: var(--accent-2);
    font-weight: 600;
    font-size: 15px;
}
.section-link:hover { color: var(--accent-1); }

/* ---------- Category grid ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.cat-card {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all .3s;
    overflow: hidden;
}
.cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-grad);
    opacity: 0;
    transition: opacity .3s;
    z-index: 0;
}
.cat-card > * { position: relative; z-index: 1; }
.cat-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 