/* ===== Design Tokens ===== */
:root {
    --color-primary: #2563eb;
    --color-primary-light: #3b82f6;
    --color-accent: #06b6d4;
    --color-dark: #0f172a;
    --color-surface: #f8fafc;
    --color-border: rgba(226, 232, 240, 0.8);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Tech Grid Background ===== */
.tech-bg {
    position: relative;
    overflow: hidden;
}
.tech-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
    pointer-events: none;
}
.tech-bg::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== Image Zoom ===== */
.img-zoom-container {
    overflow: hidden;
}
.img-zoom-container img {
    transition: transform 0.6s var(--ease-out);
}
.group:hover .img-zoom-container img {
    transform: scale(1.06);
}

/* ===== Header Scroll State ===== */
header.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ===== Mobile Navigation ===== */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease-out);
}
#mobile-menu.open {
    max-height: 400px;
}
#menu-toggle .bar {
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
#menu-toggle.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===== Spec Table ===== */
.spec-table {
    border-collapse: separate;
    border-spacing: 0;
}
.spec-table thead th {
    background: var(--color-surface);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.65rem;
}
.spec-table tbody tr {
    transition: background 0.2s;
}
.spec-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.02);
}
.spec-table td:first-child {
    color: #94a3b8;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    width: 40%;
}

/* ===== Feature Cards ===== */
.feature-card {
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

/* ===== Stat Counter Glow ===== */
.stat-glow {
    position: relative;
}
.stat-glow::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 1px;
}

/* ===== Tech Badge Pulse ===== */
.tech-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== CTA Sidebar (Product Pages) ===== */
.cta-sidebar {
    position: sticky;
    top: 96px;
}

/* ===== Trust Bar ===== */
.trust-item {
    transition: color 0.2s;
}
.trust-item:hover .trust-icon {
    color: var(--color-primary);
    border-color: rgba(37, 99, 235, 0.3);
}

/* ===== Nav Active Indicator ===== */
.nav-active {
    color: var(--color-primary) !important;
}
.nav-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* ===== Smooth Focus ===== */
input:focus, textarea:focus, button:focus-visible, a:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.4);
    outline-offset: 2px;
}

/* ===== Selection ===== */
::selection {
    background: var(--color-primary);
    color: white;
}
