/* ========================================
   TheTechRank - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #0A0A0F;
    --bg-secondary: #1A1A2E;
    --bg-tertiary: #16213E;
    --accent-cyan: #00D4FF;
    --accent-purple: #7B2CBF;
    --accent-pink: #FF006E;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8D1;
    --text-muted: #6B6B8A;
    --success: #00C853;
    --warning: #FFB800;
    --error: #FF4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    --gradient-accent: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    --gradient-gold: linear-gradient(135deg, #FFB800 0%, #FF6B00 100%);
    --gradient-silver: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
    --gradient-bronze: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);

    /* Shadows */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 8px 40px rgba(0, 212, 255, 0.15);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.3);

    /* Spacing */
    --section-padding: 100px;
    --container-max: 1280px;
    --container-padding: 24px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* Selection */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2A2A3E;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========================================
   Typography
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* ========================================
   Header
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    transition: var(--transition-normal);
}

.header .container {
    height: 100%;
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: white;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
}


.logo-image {
    height: 56px;
    width: auto;
    object-fit: contain;
}


.logo-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    position: relative;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

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

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.btn-icon:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.header-actions .btn {
    padding: 8px 20px;
    height: 40px;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.8) 0%, rgba(10, 10, 15, 0.6) 50%, var(--bg-primary) 100%);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 80px 0;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Hero Card */
.hero-card {
    display: flex;
    justify-content: center;
}

.featured-card {
    position: relative;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.featured-card::before {
    content: '';
    position: absolute;
    inset: -16px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 44, 191, 0.2));
    border-radius: calc(var(--radius-lg) + 16px);
    filter: blur(24px);
    z-index: -1;
}

.featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    background: rgba(0, 200, 83, 0.2);
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.featured-rating {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-full);
    font-weight: 600;
}

.featured-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.featured-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.featured-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.featured-card .btn {
    width: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   Section Styles
   ======================================== */

.section {
    padding: var(--section-padding) 0;
}

.section-gradient {
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 26, 46, 0.3) 50%, transparent 100%);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
    gap: 24px;
}

.section-header.center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
}

.link-arrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-cyan);
    font-weight: 500;
    transition: var(--transition-fast);
}

.link-arrow:hover {
    color: var(--text-primary);
}

.link-arrow svg {
    transition: var(--transition-fast);
}

.link-arrow:hover svg {
    transform: translateX(4px);
}

/* ========================================
   Grid System
   ======================================== */

.grid {
    display: grid;
    gap: 24px;
}

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

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

/* ========================================
   Cards
   ======================================== */

.card {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

.card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.card-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.card-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-cyan);
    margin-bottom: 8px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-fast);
}

.card:hover .card-title {
    color: var(--accent-cyan);
}

.card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.card-sm .card-image {
    height: 160px;
}

.card-sm .card-title {
    font-size: 14px;
}

/* ========================================
   Category Cards
   ======================================== */

.category-card {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition-normal);
}

.category-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.category-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 44, 191, 0.2));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    transition: var(--transition-fast);
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(123, 44, 191, 0.3));
}

.category-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    transition: var(--transition-fast);
}

.category-card:hover .category-title {
    color: var(--accent-cyan);
}

.category-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.category-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

.category-footer svg {
    transition: var(--transition-fast);
}

.category-card:hover .category-footer svg {
    color: var(--accent-cyan);
    transform: translateX(4px);
}

/* ========================================
   Tabs
   ======================================== */

.tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    padding: 6px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--gradient-accent);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========================================
   Rankings
   ======================================== */

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.ranking-item:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.ranking-badge {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.ranking-badge.gold {
    background: var(--gradient-gold);
    color: white;
}

.ranking-badge.silver {
    background: var(--gradient-silver);
    color: white;
}

.ranking-badge.bronze {
    background: var(--gradient-bronze);
    color: white;
}

.ranking-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.ranking-name {
    font-size: 18px;
    font-weight: 700;
    margin: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-brand {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.ranking-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.ranking-score {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 24px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ========================================
   Newsletter
   ======================================== */

.newsletter-box {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: var(--radius-xl);
    padding: 64px;
    overflow: hidden;
}

.newsletter-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 44, 191, 0.1));
    border-radius: 50%;
    filter: blur(60px);
    transform: translate(30%, -50%);
}

.newsletter-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.newsletter-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.newsletter-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.newsletter-stats {
    display: flex;
    gap: 24px;
}

.newsletter-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-green {
    background: var(--success);
}

.dot-cyan {
    background: var(--accent-cyan);
}

.newsletter-input-group {
    display: flex;
    gap: 12px;
}

.newsletter-input {
    flex: 1;
    height: 56px;
    padding: 0 20px;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.newsletter-input:focus {
    border-color: var(--accent-cyan);
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

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

.newsletter-success {
    text-align: center;
    padding: 32px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 200, 83, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.newsletter-success h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.newsletter-success p {
    color: var(--text-secondary);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 20px 0;
    line-height: 1.6;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-contact svg {
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.footer-contact a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

/* ========================================
   Text Utilities
   ======================================== */

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

.mt-10 {
    margin-top: 40px;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

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

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

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

    .hero-content {
        text-align: center;
    }

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

    .hero-actions {
        justify-content: center;
    }

    .hero-card {
        display: none;
    }

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

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

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --container-padding: 16px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .btn[href="#newsletter"] {
        display: none;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

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

    .section-header {
        flex-direction: column;
    }

    .tabs {
        flex-direction: column;
        width: 100%;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
    }

    .ranking-item {
        flex-wrap: wrap;
    }

    .ranking-info {
        width: calc(100% - 120px);
    }

    .ranking-score {
        margin-left: auto;
    }

    .newsletter-box {
        padding: 32px;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-stats {
        flex-direction: column;
        gap: 12px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }

    .section-title {
        font-size: 24px;
    }

    .ranking-badge {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .ranking-image {
        width: 60px;
        height: 60px;
    }

    .ranking-info {
        width: calc(100% - 100px);
    }

    .ranking-name {
        font-size: 14px;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {

    .header,
    .footer,
    .scroll-indicator,
    .newsletter-box {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}