/* CSS Custom Properties */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --white: #ffffff;
    --black: #000000;

    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --gradient-card: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
}

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

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

ul, ol {
    list-style: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hidden Utility */
.hidden {
    display: none !important;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition-base);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--radius-lg);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.logo-au {
    color: var(--primary);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition-fast);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    overflow: hidden;
}

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

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.hero-visual {
    position: relative;
    height: 400px;
}

.card-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    width: 320px;
    height: 180px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: var(--transition-slow);
}

.card-1 {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    z-index: 3;
}

.card-2 {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    top: 45%;
    left: 55%;
    transform: translate(-50%, -50%) rotate(3deg);
    z-index: 2;
}

.card-3 {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    top: 55%;
    left: 45%;
    transform: translate(-50%, -50%) rotate(-10deg);
    z-index: 1;
}

.card-stack:hover .card-1 {
    transform: translate(-60%, -60%) rotate(-8deg);
}

.card-stack:hover .card-2 {
    transform: translate(-40%, -40%) rotate(8deg);
}

.card-stack:hover .card-3 {
    transform: translate(-50%, -50%) rotate(-15deg);
}

/* Features Bar */
.features-bar {
    background: var(--gray-900);
    padding: 1.5rem 0;
}

.features-bar .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
}

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

.feature-text {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* Products Section */
.products-section {
    padding: 5rem 0;
}

.products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.filter-btn:hover {
    background: var(--gray-200);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--gray-500);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.view-btn:hover {
    color: var(--gray-700);
}

.view-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition-base);
}

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

.product-image {
    position: relative;
    height: 200px;
    background: var(--gradient-card);
    overflow: hidden;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.product-badge.premium {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: var(--gray-900);
}

.product-badge.eco {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: var(--white);
}

.product-badge.budget {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: var(--white);
}

.product-badge.creative {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: var(--white);
}

.product-compare-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
    opacity: 0;
}

.product-card:hover .product-compare-btn {
    opacity: 1;
}

.product-compare-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.product-compare-btn.added {
    background: var(--success);
    color: var(--white);
    opacity: 1;
}

.product-content {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-description {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.product-rating .stars {
    color: var(--accent);
    font-size: 0.875rem;
}

.product-rating .count {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.product-actions {
    display: flex;
    gap: 0.75rem;
}

.product-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

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

.product-btn-primary:hover {
    background: var(--primary-dark);
}

.product-btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.product-btn-secondary:hover {
    background: var(--gray-200);
}

/* Products Table */
.products-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.products-table th,
.products-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.products-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
}

.products-table tbody tr:hover {
    background: var(--gray-50);
}

.products-table tbody tr:last-child td {
    border-bottom: none;
}

.table-product-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-product-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-card);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.table-product-info {
    display: flex;
    flex-direction: column;
}

.table-product-title {
    font-weight: 600;
    color: var(--gray-900);
}

.table-category-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-full);
}

.table-rating {
    color: var(--accent);
}

.table-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.table-btn:hover {
    background: var(--primary-dark);
}

/* Quiz Section */
.quiz-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
}

.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-progress {
    margin-bottom: 2.5rem;
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
    width: 20%;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-align: center;
    display: block;
}

.quiz-question {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-question h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.quiz-question p {
    color: var(--gray-500);
}

.quiz-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-option {
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: left;
}

.quiz-option:hover {
    border-color: var(--primary-light);
    background: rgba(37, 99, 235, 0.05);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.quiz-option-label {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.quiz-option-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.quiz-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.quiz-btn-back {
    background: var(--gray-100);
    color: var(--gray-700);
}

.quiz-btn-back:hover {
    background: var(--gray-200);
}

.quiz-btn-back:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quiz-btn-next {
    background: var(--primary);
    color: var(--white);
    margin-left: auto;
}

.quiz-btn-next:hover {
    background: var(--primary-dark);
}

.quiz-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quiz Results */
.quiz-results {
    text-align: center;
}

.results-header {
    margin-bottom: 2rem;
}

.results-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.results-header p {
    color: var(--gray-500);
}

.results-products {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-product {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    text-align: left;
}

.result-product-image {
    width: 80px;
    height: 80px;
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.result-product-info {
    flex: 1;
}

.result-product-match {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--success);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: 0.5rem;
}

.result-product-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.result-product-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.result-product-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.result-product-btn:hover {
    background: var(--primary-dark);
}

.quiz-restart {
    padding: 0.75rem 1.5rem;
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.quiz-restart:hover {
    background: var(--gray-200);
}

/* Compare Section */
.compare-section {
    padding: 5rem 0;
}

.compare-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.compare-slot {
    min-height: 180px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.compare-slot:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.compare-slot-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
}

.compare-slot-empty .plus-icon {
    width: 48px;
    height: 48px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.compare-slot:hover .plus-icon {
    border-color: var(--primary);
    color: var(--primary);
}

.compare-slot-filled {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    text-align: center;
}

.remove-compare {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    background: var(--gray-100);
    color: var(--gray-500);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.remove-compare:hover {
    background: var(--error);
    color: var(--white);
}

.compare-product-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.compare-product-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.compare-product-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.9375rem;
}

/* Compare Table */
.compare-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    margin-top: 2rem;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
}

.compare-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-50);
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-check {
    color: var(--success);
    font-size: 1.25rem;
}

.compare-x {
    color: var(--gray-300);
    font-size: 1.25rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    color: var(--gray-500);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal-products {
    display: grid;
    gap: 1rem;
}

.modal-product {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-product:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.modal-product-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-card);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.modal-product-info {
    flex: 1;
}

.modal-product-name {
    font-weight: 600;
    color: var(--gray-900);
}

.modal-product-category {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    color: var(--accent);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--gray-900);
}

.author-role {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* SEO Section */
.seo-section {
    padding: 5rem 0;
    background: var(--white);
}

.seo-content {
    max-width: 800px;
    margin: 0 auto;
}

.seo-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.seo-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-content p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.seo-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.seo-content li {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    list-style: disc;
}

.seo-content strong {
    color: var(--gray-800);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-brand .logo-text {
    color: var(--white);
}

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

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.affiliate-disclosure {
    font-size: 0.75rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0.5rem auto 0;
}

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

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

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

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

    .hero-visual {
        display: none;
    }

    .compare-selector {
        grid-template-columns: 1fr;
    }

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

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

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .features-bar .container {
        justify-content: center;
    }

    .products-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tabs {
        justify-content: center;
    }

    .view-toggle {
        justify-content: center;
    }

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

    .quiz-container {
        padding: 1.5rem;
    }

    .quiz-navigation {
        flex-direction: column;
    }

    .quiz-btn-back {
        order: 2;
    }

    .quiz-btn-next {
        margin-left: 0;
    }

    .result-product {
        flex-direction: column;
        text-align: center;
    }

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

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

    .footer-brand {
        margin-bottom: 1rem;
    }

    .footer-brand .logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

    .btn {
        width: 100%;
    }

    .filter-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
}

/* ==========================================
   AUTHORITY SITE ADDITIONS
   ========================================== */

/* Enhanced Typography for Authority Look */
.page-content {
    padding: 7rem 0 5rem;
    min-height: 60vh;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-header .subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Blog Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card-image::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -30px;
    right: -30px;
}

.blog-card-image::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -20px;
    left: -20px;
}

.blog-card-icon {
    font-size: 4rem;
    z-index: 1;
}

.blog-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.blog-card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.blog-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.blog-card-link:hover {
    gap: 0.75rem;
}

.blog-card-link::after {
    content: '→';
    transition: var(--transition-fast);
}

/* Article Page Styles */
.article-page {
    padding: 7rem 0 5rem;
}

.article-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.article-header .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.article-header .breadcrumb a {
    color: var(--primary);
    transition: var(--transition-fast);
}

.article-header .breadcrumb a:hover {
    text-decoration: underline;
}

.article-header h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-content {
    max-width: 760px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-content p {
    font-size: 1.0625rem;
    color: var(--gray-700);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

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

.article-content li {
    font-size: 1.0625rem;
    color: var(--gray-700);
    line-height: 1.85;
    margin-bottom: 0.75rem;
    list-style: disc;
}

.article-content ol li {
    list-style: decimal;
}

.article-content strong {
    color: var(--gray-900);
    font-weight: 600;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    text-decoration: none;
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 1.75rem 2rem;
    margin: 2rem 0;
}

.info-box-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.info-box p {
    margin-bottom: 0;
    color: var(--gray-700);
}

.info-box.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-left-color: var(--accent);
}

.info-box.warning .info-box-title {
    color: #b45309;
}

.info-box.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
    border-left-color: var(--success);
}

.info-box.success .info-box-title {
    color: #047857;
}

/* Key Takeaway Card */
.key-takeaway {
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.key-takeaway::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(124, 58, 237, 0.3) 100%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.key-takeaway-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.key-takeaway ul {
    position: relative;
    z-index: 1;
    padding-left: 1.25rem;
}

.key-takeaway li {
    color: var(--gray-300);
    line-height: 1.7;
    margin-bottom: 0.5rem;
    list-style: disc;
}

.key-takeaway li::marker {
    color: var(--primary-light);
}

/* Author Bio Section */
.author-bio {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-top: 4rem;
    border: 1px solid var(--gray-200);
}

.author-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar-initials {
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
}

.author-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.author-info .author-role {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.author-info p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* Related Articles */
.related-articles {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid var(--gray-200);
}

.related-articles h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Latest Guides Section (Homepage) */
.latest-guides {
    padding: 6rem 0;
    background: var(--gray-50);
}

.latest-guides .section-header {
    margin-bottom: 3.5rem;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.guides-cta {
    text-align: center;
    margin-top: 3rem;
}

/* About Page Styles */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.9;
    margin-bottom: 1.75rem;
}

.about-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
}

.about-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: var(--transition-base);
}

.team-member:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.team-member .author-avatar {
    margin: 0 auto 1.25rem;
}

.team-member h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.team-member .role {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

/* Contact Page Styles */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item-text {
    display: flex;
    flex-direction: column;
}

.contact-item-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 0.125rem;
}

.contact-item-value {
    font-weight: 600;
    color: var(--gray-900);
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    list-style: disc;
}

.legal-content .last-updated {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

/* Enhanced Mobile Menu */
.nav.active {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.nav.active .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
}

.nav.active .nav-link {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

/* Responsive Adjustments for New Sections */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 6rem 0 4rem;
    }

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

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin: 0 auto;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .key-takeaway {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

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