/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Lexend Giga", sans-serif;
    font-optical-sizing: auto;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile-first touch targets */
@media (max-width: 768px) {
    /* Ensure minimum touch target size of 44px */
    .btn,
    .nav-link,
    .download-btn,
    .contact-link,
    .help-link,
    .footer-section a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve text readability on mobile */
    body {
        font-size: 16px; /* Prevent zoom on iOS */
        padding-top: 0; /* Reset any inherited padding */
    }
    
    /* Ensure main content sections start below navbar */
    main {
        padding-top: 100px; /* Default spacing for main content */
    }
    
    /* Override for sections that already have their own padding-top */
    .hero {
        padding-top: 120px; /* Override main padding for hero */
    }
    
    .privacy-page,
    .support-page,
    .about-page,
    .rax-page,
    .error-page {
        padding-top: 120px; /* Override main padding for dedicated pages */
    }
    
    /* Better tap highlight */
    a, button, .btn {
        -webkit-tap-highlight-color: rgba(74, 144, 164, 0.3);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    height: auto;
    min-height: 70px; /* Ensure consistent navbar height */
}

/* Ensure no content gets hidden under navbar */
body {
    padding-top: 0; /* Remove any default padding */
}

/* Safety margin for first elements that might get hidden */
section:first-of-type,
main:first-of-type,
.hero,
.privacy-page,
.support-page,
.about-page,
.rax-page,
.error-page {
    margin-top: 0; /* Reset any default margins */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4A90A4;
}

.nav-logo svg {
    height: 120px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: #4A90A4;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4A90A4;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
    padding-top: 100px; /* Account for fixed navbar */
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap; /* Prevent wrapping on desktop */
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: #4A90A4;
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 164, 0.4);
}

.btn-primary:hover {
    background: #3d7a8f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 164, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.phone-screen {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    z-index: 10;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.app-interface {
    height: 100%;
    background: linear-gradient(135deg, #6B46C1 0%, #9333EA 100%);
    border-radius: 20px;
    padding: 20px 16px;
    color: white;
    font-size: 0.8rem;
    position: relative;
}

.app-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.time {
    font-weight: 700;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.battery {
    background: #10B981;
    color: black;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 700;
}

.app-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.tab-nav {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 1.2rem;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px;
    border-radius: 7px;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.tab-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tab-item i {
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.section-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 1rem;
}

.stat-small {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-number.green {
    color: #10B981;
}

.stat-number.red {
    color: #EF4444;
}

.stat-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.1;
}

.win-rate-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    margin-bottom: 1rem;
}

.win-rate {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #A855F7;
    line-height: 1;
}

.win-rate-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.break-stats {
    display: grid;
    grid-template-columns: 1fr repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 1.2rem;
}

.break-card {
    background: rgba(255, 182, 193, 0.9);
    border-radius: 8px;
    padding: 18px 6px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.break-card i {
    color: rgba(0, 0, 0, 0.6);
    font-size: 1.1rem;
}

.rax-rating {
    text-align: center;
    margin-top: 1rem;
}

.rax-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.rax-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.bottom-nav {
    position: absolute;
    bottom: 15px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 10px 4px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.nav-item.active {
    color: #A855F7;
}

.nav-item i {
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.battery {
    font-weight: 600;
    color: #4ade80;
}

.app-header h3 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
}

.tab-nav {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1rem;
    gap: 2px;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border-radius: 8px;
    font-size: 0.7rem;
    opacity: 0.7;
}

.tab-item.active {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.tab-item i {
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 1rem;
}

.stat-small {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
}

.stat-small .stat-number {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #A855F7;
}

.stat-small .stat-number.green {
    color: #4ade80;
}

.stat-small .stat-number.red {
    color: #ef4444;
}

.stat-small .stat-label {
    font-size: 0.6rem;
    opacity: 0.8;
    display: block;
    margin-top: 2px;
}

.win-rate-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.win-rate {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #A855F7;
}

.win-rate-label {
    font-size: 0.7rem;
    opacity: 0.8;
}

.break-stats {
    display: grid;
    grid-template-columns: auto 1fr 1fr 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 1rem;
}

.break-card {
    background: rgba(255, 182, 193, 0.3);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
}

.break-card i {
    color: #fbb6ce;
}

.rax-rating {
    text-align: center;
    margin-top: 1rem;
}

.rax-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.rax-label {
    font-size: 0.7rem;
    opacity: 0.8;
    display: block;
}

/* Floating Balls Animation */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-ball {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.ball-1 {
    background: #e74c3c;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.ball-2 {
    background: #f39c12;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.ball-3 {
    background: #2ecc71;
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #4A90A4, #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.about-text p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #4A90A4;
}

.stat span {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #4A90A4, #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Rax System Section */
.rax-system {
    padding: 5rem 0;
    background: #f8f9fa;
}

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

.rax-explanation h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.rax-explanation h4 {
    font-size: 1.5rem;
    color: #4A90A4;
    margin: 2rem 0 1rem;
}

.rax-explanation p {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.rax-features {
    list-style: none;
    margin: 1.5rem 0;
}

.rax-features li {
    padding: 0.5rem 0;
    color: #7f8c8d;
    padding-left: 1.5rem;
    position: relative;
}

.rax-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4A90A4;
    font-weight: bold;
}

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

.rating-range {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.range-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.range-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.rating-range.beginner .range-number { color: #95a5a6; }
.rating-range.intermediate .range-number { color: #3498db; }
.rating-range.advanced .range-number { color: #2ecc71; }
.rating-range.expert .range-number { color: #f39c12; }
.rating-range.master .range-number { color: #e74c3c; }

/* Privacy Section */
.privacy {
    padding: 5rem 0;
    background: white;
}

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

.privacy-section {
    margin-bottom: 3rem;
}

.privacy-section h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.privacy-section p {
    color: #7f8c8d;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.privacy-section ul {
    color: #7f8c8d;
    padding-left: 1.5rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-section a {
    color: #4A90A4;
    text-decoration: none;
}

.privacy-section a:hover {
    text-decoration: underline;
}

/* Support Section */
.support {
    padding: 5rem 0;
    background: #f8f9fa;
}

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

.support-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.support-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4A90A4, #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.support-card h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.support-card p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.faq-item p {
    font-size: 0.9rem;
}

.contact-methods {
    margin-top: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #4A90A4;
    text-decoration: none;
}

.contact-link i {
    margin-right: 0.5rem;
    width: 20px;
}

.getting-started-list {
    padding-left: 1.5rem;
}

.getting-started-list li {
    margin-bottom: 0.5rem;
    color: #7f8c8d;
}

/* Download Section */
.download {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.download-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn,
.coming-soon {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.download-btn i,
.coming-soon i {
    font-size: 2rem;
    margin-right: 1rem;
}

.download-btn div,
.coming-soon div {
    text-align: left;
}

.download-btn span,
.coming-soon span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

.download-btn strong,
.coming-soon strong {
    display: block;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo svg {
    height: 96px;
    width: auto;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #4A90A4;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4A90A4;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        right: -100%; /* Changed from left: -100% to right: -100% */
        top: 60px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0; /* Changed from left: 0 to right: 0 */
    }

    /* Remove hover effects on mobile */
    .nav-link:hover,
    .btn:hover,
    .feature-card:hover,
    .download-btn:hover,
    .help-link:hover {
        transform: none;
        color: inherit;
        background: inherit;
        box-shadow: inherit;
    }

    /* Ensure active states still work */
    .nav-link.active {
        color: #4A90A4;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-logo svg {
        height: 80px;
        width: auto;
    }

    /* Ensure proper spacing for mobile navbar */
    .hero {
        padding-top: 120px; /* Increased padding for mobile navbar */
        min-height: calc(100vh - 120px);
    }

    .privacy-page,
    .support-page,
    .about-page,
    .rax-page {
        padding-top: 120px; /* Increased padding for mobile navbar */
    }

    .error-page {
        padding-top: 120px; /* Increased padding for mobile navbar */
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .about-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .rating-ranges {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section-cta {
        margin-top: 2rem;
        padding: 1rem;
    }

    .section-cta .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .rax-content {
        padding: 0 1rem;
    }

    .rax-features {
        padding-left: 1rem;
    }

    .rax-features li {
        margin-bottom: 0.8rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    /* Ensure proper spacing for smaller mobile screens */
    .hero {
        padding-top: 100px; /* Account for smaller navbar on very small screens */
        min-height: calc(100vh - 100px);
    }

    .privacy-page,
    .support-page,
    .about-page,
    .rax-page {
        padding-top: 100px; /* Account for smaller navbar on very small screens */
    }

    .error-page {
        padding-top: 100px; /* Account for smaller navbar on very small screens */
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .rating-ranges {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .phone-screen {
        width: 250px;
        height: 500px;
    }

    .nav-logo svg {
        height: 60px;
        width: auto;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .section-cta .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .container {
        padding: 0 0.8rem;
    }

    .about-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .stat {
        min-width: 120px;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .rax-explanation h3 {
        font-size: 1.5rem;
    }

    .rax-explanation h4 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.8rem;
    }

    .rax-explanation p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .download-content h2 {
        font-size: 2rem;
    }

    .download-content p {
        font-size: 1rem;
    }

    .download-btn,
    .coming-soon {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-logo svg {
        height: 60px;
        width: auto;
    }
}

/* Dedicated Page Styles */
.privacy-page,
.support-page,
.about-page,
.rax-page {
    padding-top: 100px;
    min-height: 100vh;
    background: #f8f9fa;
}

.page-header {
    text-align: center;
    padding: 3rem 0;
    background: white;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.last-updated {
    font-size: 1rem;
    color: #95a5a6;
    margin-top: 0.5rem;
}

/* Detailed Content Layout */
.detailed-content {
    padding: 2rem 20px 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-grid {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-main {
    background: white;
    border-radius: 15px;
    padding: 4rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: none;
}

/* Content sections with improved spacing */
.content-section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.content-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.content-section h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #4A90A4;
    text-align: center;
}

.content-section h3 {
    font-size: 1.8rem;
    color: #4A90A4;
    margin: 2.5rem 0 1.5rem;
    text-align: center;
}

.content-section h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 1.8rem 0 0.8rem;
}

.content-section p {
    color: #7f8c8d;
    line-height: 1.9;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.content-section ul {
    color: #7f8c8d;
    padding-left: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-section li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.content-section strong {
    color: #2c3e50;
    font-weight: 600;
}

.content-section a {
    color: #4A90A4;
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

/* Content Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.sidebar-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.sidebar-links {
    list-style: none;
    padding: 0;
}

.sidebar-links li {
    margin-bottom: 0.5rem;
}

.sidebar-links a {
    color: #4A90A4;
    text-decoration: none;
    font-weight: 500;
}

.sidebar-links a:hover {
    text-decoration: underline;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.stat-item strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.stat-item span {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Section CTAs */
.section-cta {
    margin-top: 2.5rem;
    text-align: center;
    padding: 1rem 0;
}

.section-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 164, 0.3);
}

.section-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 164, 0.4);
}

/* Features Detailed */
.features-detailed {
    display: grid;
    gap: 3rem;
    margin-top: 2.5rem;
}

.feature-detailed {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #4A90A4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-detailed:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon-large {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4A90A4, #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.feature-content h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.feature-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Game Types Grid */
.game-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-type {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #4A90A4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-type:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.game-type h4 {
    color: #2c3e50;
    margin: 0 0 0.8rem 0;
    font-size: 1.2rem;
}

.game-type p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Tech Features */
.tech-features {
    margin-top: 1rem;
}

.tech-features li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.tech-features li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    color: #4A90A4;
    font-weight: bold;
}

/* Roadmap Items */
.roadmap-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.roadmap-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-top: 4px solid #4A90A4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.roadmap-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.roadmap-item h4 {
    color: #2c3e50;
    margin: 0 0 0.8rem 0;
    font-size: 1.2rem;
}

.roadmap-item p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Rax-specific styles */
.algorithm-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.factor-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    border-left: 4px solid #4A90A4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.factor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.factor-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4A90A4, #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.factor-content h4 {
    color: #2c3e50;
    margin: 0 0 0.8rem 0;
    font-size: 1.2rem;
}

.factor-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Rating Ranges Detailed */
.rating-ranges-detailed {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.rating-range-detailed {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.range-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.range-header .range-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.range-header .range-label {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.range-description {
    padding: 0 1.5rem 1.5rem;
}

.range-description p {
    margin-bottom: 1rem;
}

.range-description ul {
    margin: 0;
    padding-left: 1.5rem;
}

.range-description li {
    margin-bottom: 0.3rem;
}

.rating-range-detailed.beginner .range-header { background: linear-gradient(135deg, #95a5a6, #bdc3c7); color: white; }
.rating-range-detailed.intermediate .range-header { background: linear-gradient(135deg, #3498db, #5dade2); color: white; }
.rating-range-detailed.advanced .range-header { background: linear-gradient(135deg, #2ecc71, #58d68d); color: white; }
.rating-range-detailed.expert .range-header { background: linear-gradient(135deg, #f39c12, #f8c471); color: white; }
.rating-range-detailed.master .range-header { background: linear-gradient(135deg, #e74c3c, #ec7063); color: white; }

/* Comparison Sections */
.comparison-section {
    margin: 2rem 0;
}

.comparison-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.comparison-grid {
    display: grid;
    gap: 1.5rem;
}

.comparison-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #4A90A4;
}

.comparison-item h4 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.comparison-item p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.comparison-item p:last-child {
    margin-bottom: 0;
}

/* Accessibility Comparison */
.accessibility-comparison {
    margin-top: 2rem;
}

.access-factor {
    background: white;
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.factor-header {
    background: linear-gradient(135deg, #4A90A4, #667eea);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.factor-header i {
    font-size: 1.5rem;
}

.factor-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.factor-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem;
}

.rax-side,
.traditional-side {
    padding: 1rem;
    border-radius: 8px;
}

.rax-side {
    background: #e8f5e8;
    border-left: 4px solid #2ecc71;
}

.traditional-side {
    background: #fff3cd;
    border-left: 4px solid #f39c12;
}

.rax-side strong,
.traditional-side strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.rax-side p,
.traditional-side p {
    margin: 0;
    font-size: 0.9rem;
}

/* Science Topics */
.science-topics {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.science-topic {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-top: 4px solid #4A90A4;
}

.science-topic h4 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.science-topic p {
    margin: 0;
    font-size: 0.9rem;
}

/* Reliability Levels */
.reliability-levels {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.reliability-level {
    display: flex;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.reliability-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.reliability-icon.provisional { background: linear-gradient(135deg, #95a5a6, #bdc3c7); }
.reliability-icon.developing { background: linear-gradient(135deg, #3498db, #5dade2); }
.reliability-icon.established { background: linear-gradient(135deg, #2ecc71, #58d68d); }

.reliability-content h4 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.reliability-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* Usage Tips */
.usage-tips {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.tip-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #4A90A4;
}

.tip-category h4 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.tip-category ul {
    margin: 0;
    padding-left: 1.5rem;
}

.tip-category li {
    margin-bottom: 0.5rem;
    color: #7f8c8d;
}

/* Quick Ranges in Sidebar */
.quick-ranges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-range {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 5px;
}

.quick-range.beginner { background: rgba(149, 165, 166, 0.1); }
.quick-range.intermediate { background: rgba(52, 152, 219, 0.1); }
.quick-range.advanced { background: rgba(46, 204, 113, 0.1); }
.quick-range.expert { background: rgba(243, 156, 18, 0.1); }
.quick-range.master { background: rgba(231, 76, 60, 0.1); }

.quick-number {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.quick-label {
    color: #7f8c8d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Privacy Page Styles */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.privacy-section {
    margin-bottom: 3rem;
}

.privacy-section:last-child {
    margin-bottom: 0;
}

.privacy-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #4A90A4;
    padding-bottom: 0.5rem;
}

.privacy-section h3 {
    font-size: 1.5rem;
    color: #4A90A4;
    margin: 2rem 0 1rem;
}

.privacy-section p {
    color: #7f8c8d;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.privacy-section ul {
    color: #7f8c8d;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-section strong {
    color: #2c3e50;
}

.privacy-section a {
    color: #4A90A4;
    text-decoration: none;
}

.privacy-section a:hover {
    text-decoration: underline;
}

.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.contact-method {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method:last-child {
    margin-bottom: 0;
}

/* Support Page Styles */
.quick-help {
    margin-bottom: 4rem;
}

.quick-help h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

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

.help-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.help-card:hover {
    transform: translateY(-5px);
}

.help-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #4A90A4, #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.help-card h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.help-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.help-link {
    color: #4A90A4;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.help-link:hover {
    text-decoration: underline;
}

/* Getting Started Styles */
.getting-started {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 4rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.getting-started h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.steps-container {
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #4A90A4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* FAQ Styles */
.faq-section {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 4rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.faq-categories {
    display: grid;
    gap: 2rem;
}

.faq-category h3 {
    font-size: 1.5rem;
    color: #4A90A4;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: #f8f9fa;
    border: none;
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: #4A90A4;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 1rem;
    background: white;
    border-top: 1px solid #f0f0f0;
    display: none;
}

.faq-answer.active {
    display: block;
}

.faq-answer p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* Contact Support Styles */
.contact-support {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 4rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-support h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-support > p {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

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

.contact-option {
    text-align: center;
    padding: 2rem;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    transition: border-color 0.3s ease;
}

.contact-option:hover {
    border-color: #4A90A4;
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #4A90A4, #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.contact-option h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-option p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.support-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.support-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.support-info p {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.support-info ul {
    color: #7f8c8d;
    padding-left: 1.5rem;
}

.support-info li {
    margin-bottom: 0.5rem;
}

/* App Info Styles */
.app-info {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.app-info h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item strong {
    color: #2c3e50;
}

.info-item span,
.info-item a {
    color: #4A90A4;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

/* Responsive Design for Dedicated Pages */
@media (max-width: 768px) {
    .detailed-content {
        padding: 1.5rem 1rem 3rem;
    }

    .privacy-content,
    .getting-started,
    .faq-section,
    .contact-support,
    .app-info,
    .content-main {
        padding: 2rem 1.5rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        border-radius: 10px;
    }

    .page-header {
        padding: 2rem 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .page-header p {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
        text-align: left;
    }

    .content-section h3 {
        font-size: 1.5rem;
        text-align: left;
        margin: 2rem 0 1rem;
    }

    .content-section h4 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.8rem;
    }

    .content-section p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .help-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .step-number {
        margin: 0 auto 1rem;
    }

    .algorithm-factors {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .factor-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .factor-icon {
        margin: 0 auto;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .factor-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .game-types-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .roadmap-items {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-detailed {
        gap: 2rem;
    }

    .feature-detailed {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .feature-icon-large {
        margin: 0 auto;
    }

    .usage-tips {
        gap: 1.5rem;
    }

    .science-topics {
        gap: 1.5rem;
    }

    .reliability-levels {
        gap: 1.5rem;
    }

    .reliability-level {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .reliability-icon {
        margin: 0 auto;
    }

    .rating-ranges-detailed {
        gap: 1.5rem;
    }

    .range-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .range-description {
        padding: 1rem 1.5rem 1.5rem;
    }

    .access-factor {
        margin-bottom: 1.5rem;
    }

    .factor-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .faq-question {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0.8rem;
    }

    .contact-option {
        padding: 1.5rem;
    }

    .help-card {
        padding: 1.5rem;
    }

    .support-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .detailed-content {
        padding: 1rem 0.5rem 2rem;
    }

    .privacy-content,
    .getting-started,
    .faq-section,
    .contact-support,
    .app-info,
    .content-main {
        padding: 1.5rem 1rem;
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }

    .page-header {
        padding: 1.5rem 0.5rem;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section h3 {
        font-size: 1.3rem;
    }

    .content-section h4 {
        font-size: 1.1rem;
    }

    .content-section p {
        font-size: 0.9rem;
    }

    .factor-card,
    .feature-detailed,
    .roadmap-item,
    .game-type {
        padding: 1rem;
    }

    .algorithm-factors,
    .features-detailed,
    .roadmap-items,
    .game-types-grid {
        gap: 1rem;
    }

    .factor-icon,
    .feature-icon-large {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .help-icon,
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .info-item {
        padding: 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .faq-question {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 0.6rem;
    }

    .faq-answer p {
        font-size: 0.85rem;
    }
}

/* Enhanced Accessibility and Mobile Optimizations */

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1001;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced focus indicators for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #4A90A4;
    outline-offset: 2px;
}

/* Prevent horizontal scrolling on mobile */
html, body {
    overflow-x: hidden;
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Mobile-optimized touch targets for touch devices */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-link, .download-btn, .hamburger {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Disable hover effects on touch devices */
    .btn:hover,
    .nav-link:hover,
    .feature-item:hover,
    .download-btn:hover,
    .feature-card:hover,
    .support-card:hover,
    .help-link:hover,
    .contact-method:hover {
        transform: none !important;
        box-shadow: inherit !important;
        background: inherit !important;
        color: inherit !important;
    }
    
    /* Ensure active states still work */
    .nav-link.active {
        color: #4A90A4 !important;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .card,
    .feature-item,
    .support-form {
        border: 1px solid currentColor;
    }
}

/* Print styles */
@media print {
    .navbar, 
    .hamburger, 
    .download-buttons, 
    .email-signup,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: black;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    section {
        padding: 1rem 0;
    }
}

/* Final mobile safety checks */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    /* Extra safety padding for very small screens */
    .hero {
        padding-top: 90px; /* Reduced navbar height on very small screens */
        min-height: calc(100vh - 90px);
    }

    .privacy-page,
    .support-page,
    .about-page,
    .rax-page,
    .error-page {
        padding-top: 90px; /* Reduced navbar height on very small screens */
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* 404 Error Page Styles */
.error-page {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.error-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
    max-width: 1000px;
    width: 100%;
}

.error-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
}

.error-number {
    font-size: 8rem;
    font-weight: 900;
    color: #4A90A4;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

.error-balls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.error-text {
    flex: 1;
    text-align: left;
}

.error-text h1 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.error-subtitle {
    font-size: 1.3rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-weight: 500;
}

.error-text p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.helpful-links {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.helpful-links h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

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

.help-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.help-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 144, 164, 0.2);
    color: #4A90A4;
}

.help-link i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #4A90A4;
}

.help-link span {
    font-weight: 600;
    font-size: 1rem;
}

/* Mobile styles for 404 page */
@media (max-width: 768px) {
    .error-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .error-visual {
        min-width: auto;
    }
    
    .error-number {
        font-size: 6rem;
    }
    
    .error-text h1 {
        font-size: 2.2rem;
    }
    
    .error-subtitle {
        font-size: 1.1rem;
    }
    
    .error-actions {
        justify-content: center;
    }
    
    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .help-link {
        padding: 1.5rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .error-page {
        padding: 4rem 0 2rem;
    }
    
    .error-number {
        font-size: 4.5rem;
    }
    
    .error-text h1 {
        font-size: 1.8rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .help-link {
        padding: 1rem 0.5rem;
    }
    
    .help-link i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .help-link span {
        font-size: 0.9rem;
    }
}
