/* ============================================
   STREAKER WEBSITE STYLES
   ============================================ */

/* Root Variables */
:root {
    --primary: #FF6B1A;
    --secondary: #4A90E2;
    --accent: #FF8C42;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray: #6B7280;
    --gradient: linear-gradient(135deg, #FF6B1A, #FF8C42);
    --gradient-reverse: linear-gradient(135deg, #FF8C42, #FF6B1A);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --shadow-3d: 0 20px 40px rgba(0,0,0,0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #FF6B1A, #FF8C42);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
    cursor: pointer;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* User Control: Skip button for loading screen */
.loader-skip {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.loader-skip:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateX(-50%) translateY(-2px);
}

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

.streak-flame {
    font-size: 60px;
    animation: pulse 1s infinite;
}

.loader-text {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin: 20px 0;
    letter-spacing: -1px;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    height: 100%;
    background: white;
    animation: loading 2s ease-in-out;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

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

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-icon {
    font-size: 28px;
}

.brand-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: height 0.3s ease;
}

/* Tablet: Slightly larger logo */
@media (min-width: 768px) {
    .brand-logo {
        height: 40px;
    }
}

/* Desktop: Full-size prominent logo */
@media (min-width: 1024px) {
    .brand-logo {
        height: 48px;
    }
}

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

.nav-link {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-cta {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 26, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 2rem;
    transform: translateY(-100%);
    transition: transform 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-link {
    display: block;
    padding: 1rem 0;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-cta {
    width: 100%;
    margin-top: 1rem;
    display: flex;  /* Added for proper centering */
    justify-content: center;
    align-items: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    background: var(--gradient);
    color: white;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 100px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

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

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FF6B1A10 0%, #FF8C4210 100%);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.float-element {
    position: absolute;
    font-size: 30px;
    opacity: 0.2;
    animation: float 20s infinite;
}

.float-element:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.float-element:nth-child(2) { top: 20%; right: 10%; animation-delay: 3s; }
.float-element:nth-child(3) { bottom: 30%; left: 15%; animation-delay: 6s; }
.float-element:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 9s; }
.float-element:nth-child(5) { top: 50%; left: 50%; animation-delay: 12s; }
.float-element:nth-child(6) { top: 60%; right: 30%; animation-delay: 15s; }

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

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 26, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 2rem;
    animation: slideIn 0.6s ease-out;
}

.badge-icon {
    font-size: 20px;
}

.badge-text {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    animation: slideIn 0.8s ease-out backwards;
}

.title-line:nth-child(2) { animation-delay: 0.2s; }
.title-line:nth-child(3) { animation-delay: 0.4s; }

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    animation: slideIn 0.8s ease-out 0.8s backwards;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

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

.hero-cta {
    display: flex;
    gap: 1rem;
    animation: slideIn 0.8s ease-out 1s backwards;
}

.cta-primary, .cta-secondary {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    border: none;
}

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

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px rgba(255, 107, 26, 0.3);
}

.cta-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   WAITLIST SECTION
   ============================================ */
.scroll-anchor {
    position: absolute;
    top: -80px;
}

.waitlist-section {
    margin-top: 2rem;
    animation: slideIn 0.8s ease-out 1s backwards;
}

.waitlist-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 50px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.waitlist-counter .counter-icon {
    font-size: 1.25rem;
    animation: flicker 1.5s ease-in-out infinite;
}

.waitlist-counter .counter-text {
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 500;
}

.waitlist-counter .counter-number {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.waitlist-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.form-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(255, 107, 26, 0.2);
}

.waitlist-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: var(--dark);
}

.waitlist-input::placeholder {
    color: var(--gray);
}

.waitlist-submit {
    padding: 14px 32px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.waitlist-submit:hover:not(:disabled) {
    transform: translateX(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 26, 0.3);
}

.submit-text {
    font-size: 16px;
}

.submit-icon {
    font-size: 14px;
    transition: transform 0.3s;
}

.waitlist-submit:hover:not(:disabled) .submit-icon {
    transform: translateX(3px);
}

.waitlist-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray);
}

/* Error State Styles */
.error-message {
    display: none;
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    text-align: center;
    font-weight: 500;
    animation: slideDown 0.3s ease;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    border-left: 3px solid #EF4444;
}

.form-group.error {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    animation: shake 0.4s ease;
}

.waitlist-input[aria-invalid="true"] {
    color: #EF4444;
}

.waitlist-input[aria-invalid="true"]::placeholder {
    color: rgba(239, 68, 68, 0.5);
}

/* Loading State */
.waitlist-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.waitlist-submit .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: float-device 6s ease-in-out infinite;
}

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

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    margin: 0 auto;
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.3s;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
}

.screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(255, 107, 26, 0.1) 100%);
    pointer-events: none;
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: black;
    border-radius: 15px;
}

.mockup-cards {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    pointer-events: none;
}

.feature-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float-card 4s ease-in-out infinite;
    transform-style: preserve-3d;
}

.feature-card:nth-child(1) {
    top: -20px;
    left: -60px;
}

.feature-card:nth-child(2) {
    top: 50%;
    right: -80px;
    animation-delay: 1.3s;
}

.feature-card:nth-child(3) {
    bottom: 20px;
    left: -40px;
    animation-delay: 2.6s;
}

@keyframes float-card {
    0%, 100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }
    50% {
        transform: translateY(-10px) rotateX(10deg) rotateY(10deg);
    }
}

.card-icon {
    font-size: 24px;
}

.card-text {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

/* Social Proof Bar */
.social-proof {
    background: white;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.proof-container {
    position: relative;
}

.proof-track {
    display: flex;
    animation: scroll-proof 30s linear infinite;
}

@keyframes scroll-proof {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 3rem;
    white-space: nowrap;
}

.proof-item i {
    color: var(--primary);
}

.proof-item span {
    font-weight: 500;
    color: var(--gray);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: linear-gradient(180deg, white 0%, #F9FAFB 100%);
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    /* WCAG Fix: Added solid color fallback for better contrast */
    color: var(--primary);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;  /* Increased from 600 for better visibility */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Fallback for browsers that don't support background-clip */
@supports not (background-clip: text) {
    .section-badge {
        color: var(--primary);
        background: none;
    }
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1F2937;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 3 columns on desktop for even layout */
    gap: 2rem;
}

/* Responsive grid for features */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);  /* 2 columns on tablet */
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;  /* 1 column on mobile */
    }
}

.feature-box {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-icon-3d {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-3d 10s linear infinite;
}

@keyframes rotate-3d {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.icon-inner {
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 10px 30px rgba(255, 107, 26, 0.3);
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.feature-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-badge {
    background: rgba(255, 107, 26, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* How It Works */
.how-it-works {
    padding: 4rem 0;
    background: linear-gradient(180deg, #F9FAFB 0%, white 100%);
}

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

.step-card {
    text-align: center;
    position: relative;
    padding: 2rem 1.5rem;
    background: white;
    border: 2px solid rgba(255, 107, 26, 0.15);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.how-it-works .step-card {
    opacity: 1;
    visibility: visible;
}

.how-it-works .step-card * {
    opacity: 1;
    visibility: visible;
}

.step-card:hover {
    border-color: rgba(255, 107, 26, 0.3);
    box-shadow: 0 15px 40px rgba(255, 107, 26, 0.15);
    transform: translateY(-5px);
}

.step-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.5rem;
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    display: none;
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5rem;
    font-weight: 900;
    /* WCAG Fix: Increased opacity from 0.1 to 0.15 for better visibility */
    color: rgba(255, 107, 26, 0.15);
}

.how-it-works .step-icon {
    width: 80px;
    height: 80px;
    margin: 2rem auto 1rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    position: relative;
    z-index: 1;
}

.how-it-works .step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1F2937;
    font-weight: 700;
}

.how-it-works .step-card p {
    color: #6B7280;
    margin-bottom: 2rem;
}

.step-visual {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

/* Sync Animation */
.sync-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.sync-icon {
    width: 48px;
    height: 48px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.sync-icon.samsung {
    background: #1428A0;
    color: white;
    border-color: #1428A0;
}

.sync-icon.google {
    background: #4285F4;
    color: white;
    border-color: #4285F4;
}

.sync-icon.streaker {
    background: var(--gradient);
    border-color: var(--primary);
    font-size: 24px;
}

.sync-line {
    width: 40px;
    height: 3px;
    background: var(--primary);
    position: relative;
    flex-shrink: 0;
}

.sync-line::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    top: -3.5px;
    animation: sync-pulse 2s linear infinite;
}

@keyframes sync-pulse {
    0% { left: 0; }
    100% { left: calc(100% - 10px); }
}

/* Progress Rings */
.progress-rings {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.ring-container {
    position: relative;
    width: 60px;
    height: 60px;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 107, 26, 0.1);
    stroke-width: 4;
    cx: 30;
    cy: 30;
    r: 25;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 4;
    stroke-linecap: round;
    cx: 30;
    cy: 30;
    r: 25;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    animation: fill-ring 2s ease-out forwards;
}

@keyframes fill-ring {
    to {
        stroke-dashoffset: 0;
    }
}

.ring-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #6B7280;
    font-weight: 500;
}

/* Badges Preview */
.badges-preview {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.badge-item {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    animation: bounce-badge 2s ease-in-out infinite;
    flex-shrink: 0;
}

.badge-item:nth-child(2) { animation-delay: 0.2s; }
.badge-item:nth-child(3) { animation-delay: 0.4s; }
.badge-item:nth-child(4) { animation-delay: 0.6s; }

@keyframes bounce-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.badge-item.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.badge-item.silver {
    background: linear-gradient(135deg, #C0C0C0, #808080);
    box-shadow: 0 10px 20px rgba(192, 192, 192, 0.3);
}

.badge-item.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    box-shadow: 0 10px 20px rgba(205, 127, 50, 0.3);
}

.badge-item.special {
    background: var(--gradient);
    box-shadow: 0 10px 20px rgba(255, 107, 26, 0.3);
}

/* Achievements Section */
.achievements {
    padding: 5rem 0;
    background: linear-gradient(180deg, #F9FAFB 0%, white 100%);
}

.achievement-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
}

.achievement-card.unlocked {
    box-shadow: 0 10px 30px rgba(255, 107, 26, 0.2);
    border: 2px solid var(--primary);
}

.achievement-card.in-progress {
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1);
    border: 2px solid var(--secondary);
}

.achievement-card.locked {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 2px solid #E5E7EB;
    opacity: 0.7;
}

.achievement-card:hover {
    transform: translateY(-5px) scale(1.05);
}

.achievement-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}

.achievement-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.achievement-card p {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.achievement-progress {
    height: 6px;
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 1s ease-out;
}

.progress-bar.complete {
    width: 100%;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-icon {
    font-size: 36px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

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

/* Screenshots Section */
.screenshots {
    padding: 4rem 0;
    background: white;
}

.screenshots-carousel {
    position: relative;
    margin-top: 3rem;
}

.carousel-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2rem 0;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    min-width: 300px;
    text-align: center;
    opacity: 0.5;
    transform: scale(0.9);
    transition: all 0.3s;
}

.screenshot-item.active {
    opacity: 1;
    transform: scale(1);
}

.phone-frame {
    width: 250px;
    height: 500px;
    margin: 0 auto 1rem;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.screenshot-item p {
    color: var(--gray);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    width: 100%;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    width: 30px;
    border-radius: 5px;
    background: var(--primary);
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background: linear-gradient(180deg, white 0%, #F9FAFB 100%);
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

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

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Error Prevention: Hide broken images and show initials fallback */
.user-avatar img[src*="user"] {
    display: none; /* Hide placeholder images */
}

.user-info h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.streak-badge {
    display: inline-block;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: #FFD700;
    font-size: 18px;
}

.testimonial-text {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-badges {
    display: flex;
    gap: 0.5rem;
}

.badge-earned {
    background: rgba(255, 107, 26, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Benefits Section */
.benefits {
    padding: 4rem 0;
    background: white;
}

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

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

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.benefit-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.benefit-item p {
    color: var(--gray);
}

/* Final CTA */
.final-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #FF6B1A 0%, #FF8C42 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.cta-visual {
    margin: 3rem 0;
}

.streak-counter {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 3rem;
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.2);
}

.counter-flame {
    font-size: 48px;
    margin-bottom: 1rem;
}

.counter-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.counter-label {
    font-size: 1rem;
    opacity: 0.9;
}

.download-btn-large {
    padding: 18px 48px;
    font-size: 18px;
    background: white;
    color: var(--primary);
    border-radius: 50px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 2rem;
}

.download-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.store-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.store-badge {
    height: 50px;
    cursor: pointer;
    transition: transform 0.3s;
}

.store-badge:hover {
    transform: scale(1.05);
}

.qr-section {
    display: inline-block;
    background: white;
    padding: 1rem;
    border-radius: 20px;
}

.qr-code {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background: #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-text {
    color: var(--dark);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.link-group a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.3s;
}

.link-group a:hover {
    color: white;
}

.footer-social h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: none;
}

.modal-close:hover {
    background: rgba(0,0,0,0.1);
    transform: rotate(90deg);
}

/* Download Modal Specific Styles */
.download-modal-icon {
    font-size: 64px;
    margin-bottom: 1.5rem;
}

.download-modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
}

.download-modal-text {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.download-modal-platforms {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 107, 26, 0.05);
    border-radius: 12px;
    font-weight: 500;
}

.platform-item strong {
    color: var(--primary);
    min-width: 80px;
    text-align: left;
}

#demoVideo {
    width: 100%;
    border-radius: 10px;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   MOBILE-FIRST ENHANCEMENTS
   ============================================ */

/* Mobile Touch Targets - Ensure tappable elements are at least 44x44px */
button,
.nav-link,
.mobile-link,
.carousel-btn,
.dot {
    min-height: 44px;
    min-width: 44px;
}

/* Mobile Typography - Optimize readability on small screens */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Prevent iOS zoom on focus */
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    /* Better line height for mobile reading */
    p, li {
        line-height: 1.7;
    }
}

/* Mobile Container Padding */
.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 100%;
}

/* Mobile Hero Section Optimizations */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }

    .hero-container {
        gap: 2rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 5vw, 3rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }

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

    .hero-visual {
        order: -1; /* Show phone mockup first on mobile */
        margin-bottom: 2rem;
    }

    .phone-mockup {
        max-width: 280px;
        margin: 0 auto;
    }

    .mockup-cards {
        display: none; /* Hide floating cards on mobile for cleaner look */
    }

    /* Hick's Law: Reduce visual clutter on mobile */
    .floating-elements {
        display: none; /* Hide floating emojis on mobile */
    }
}

/* Mobile Navigation Improvements */
@media (max-width: 900px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    .mobile-menu {
        padding: 2rem 1.5rem;
        gap: 0.5rem;
    }

    .mobile-link,
    .mobile-cta {
        padding: 1rem;
        font-size: 1.125rem;
    }
}

/* Mobile Button Optimizations */
@media (max-width: 768px) {
    .cta-primary,
    .cta-secondary,
    .download-btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.0625rem;
        justify-content: center;
    }

    .hero-cta {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

    /* Mobile Waitlist Optimizations */
    .waitlist-counter {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .waitlist-counter .counter-text {
        font-size: 0.85rem;
    }

    .form-group {
        flex-direction: column;
        padding: 0.75rem;
    }

    .waitlist-input {
        padding: 12px 16px;
        text-align: center;
    }

    .waitlist-submit {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }
}

/* Mobile Feature Cards */
@media (max-width: 768px) {
    .feature-box {
        padding: 2rem 1.5rem;
    }

    .feature-icon-3d {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .feature-box h3 {
        font-size: 1.25rem;
        margin: 1rem 0 0.75rem;
    }

    .feature-box p {
        font-size: 0.9375rem;
    }
}

/* Mobile Screenshots Section */
@media (max-width: 768px) {
    .screenshots {
        padding: 3rem 0;
    }

    .phone-frame {
        width: 220px;
        height: 440px;
        margin: 0 auto 1.5rem;
    }

    .screenshot-item h4 {
        font-size: 1.125rem;
    }

    .screenshot-item p {
        font-size: 0.875rem;
        padding: 0 1rem;
    }
}

/* Mobile Form Inputs */
@media (max-width: 768px) {
    input[type="email"],
    input[type="text"],
    input[type="tel"],
    textarea {
        font-size: 16px; /* Prevent iOS zoom */
        padding: 0.875rem;
    }
}

/* Mobile Spacing Improvements */
@media (max-width: 768px) {
    .features,
    .how-it-works,
    .screenshots,
    .achievements,
    .testimonials,
    .benefits,
    .cta-section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 0.9375rem;
        padding: 0 1rem;
    }
}

/* Mobile Stats */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .stat-item {
        width: 100%;
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Mobile Achievement Wall */
@media (max-width: 768px) {
    .achievement-wall {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }

    .achievement-hex {
        width: 100px;
        height: 110px;
    }
}

/* Mobile Testimonials */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

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

/* Improve tap targets for carousel dots */
@media (max-width: 768px) {
    .carousel-dots {
        padding: 1.5rem 0;
    }

    .dot {
        width: 12px;
        height: 12px;
        margin: 0 8px;
        padding: 8px; /* Larger tap area */
    }
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .float-element {
        animation-duration: 4s; /* Slower animations */
    }

    /* Simplify shadows on mobile */
    .phone-screen,
    .feature-box,
    .screenshot-item {
        box-shadow: var(--shadow-md);
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 4rem 0 2rem;
    }

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

    .phone-mockup {
        max-width: 220px;
    }
}

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

    .hero-visual {
        order: -1;
        margin-bottom: 2rem;
    }

    .phone-mockup {
        transform: none;
    }

    .mockup-cards {
        display: none;
    }

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

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

/* Jakob's Law Fix: Adjusted breakpoint from 768px to 900px for better tablet support */
@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

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

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

    .step-card::after {
        display: none;
    }

    .carousel-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;  /* Reduced from 2.5rem for smaller phones */
    }

    .section-title {
        font-size: 1.75rem;  /* Reduced from 2rem for better fit */
    }

    .achievement-wall {
        grid-template-columns: 1fr;
    }

    .proof-item {
        padding: 0 1.5rem;
        font-size: 0.875rem;  /* Smaller text for mobile */
    }

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

    /* Better mobile padding */
    .container {
        padding: 0 1rem;
    }

    /* Reduce section padding on mobile */
    .features,
    .how-it-works,
    .achievements,
    .testimonials,
    .benefits {
        padding: 3rem 0;  /* Reduced from 5rem */
    }

    /* Better mobile CTA buttons */
    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Extra small phones */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

/* Minimum supported device width */
@media (max-width: 320px) {
    .features-grid {
        grid-template-columns: 1fr !important;
    }

    .feature-box {
        min-width: auto;
    }
}

/* Accessibility - Focus Indicators */
button:focus,
a:focus,
.nav-link:focus,
.download-btn:focus,
.carousel-btn:focus,
.dot:focus {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .float-element,
    .feature-icon-3d,
    .hero-visual {
        animation: none !important;
    }
}

/* Dark Mode Support - DISABLED for now to ensure visibility */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --dark: #F9FAFB;
        --light: #1F2937;
        --gray: #9CA3AF;
    }

    body {
        background: #111827;
    }

    .navbar {
        background: rgba(17, 24, 39, 0.95);
    }

    .feature-box,
    .testimonial-card,
    .achievement-card {
        background: #1F2937;
    }
}
*/