/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    width: 100%;
    overflow-x: hidden;
    background-color: #FAFAFA;
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background-color: #FAFAFA;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
}

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --brand-primary: #D49DF4;
    --brand-bg: #F8F6FF;
    --ink: #0F1020;
    --ink-2: #2C2D3A;
    --accent: #9AD8F4;
    --success: #21C48C;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 30px rgba(15,16,32,0.1);
    
    /* Typography scale */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.6rem + 1.375vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.9rem + 1.75vw, 3rem);
    
    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Container max-widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: -100px;
    background: var(--ink);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top var(--transition-fast);
    opacity: 0;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
*:focus {
    outline: none;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Prevent focus outlines on common elements */
a:focus,
button:focus,
img:focus {
    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;
    }
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-sm);
    border: none;
    outline: none;
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--ink);
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

p {
    font-size: var(--text-base);
    color: var(--ink-2);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 44px;
    min-width: 44px;
}

/* Official App Store Badge */
.appstore-badge {
    display: inline-block;
    transition: transform 0.08s ease;
    height: 44px;
    min-height: 44px;
}

.appstore-badge img {
    height: 44px;
    width: auto;
    display: block;
}

/* Header App Store Badge - smaller size */
.header .appstore-badge {
    height: 32px;
    min-height: 32px;
}

.header .appstore-badge img {
    height: 32px;
    width: auto;
}

.appstore-badge:active {
    transform: scale(0.98);
}

/* Optional: subtle hover without altering the badge artwork */
@media (hover: hover) {
    .appstore-badge:hover {
        filter: brightness(1.05);
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .appstore-badge {
        transition: none;
    }
}

/* App Store Badge Responsive Styles */
@media (max-width: 768px) {
    .appstore-badge {
        display: flex;
        justify-content: center;
    }
    
    .hero__actions {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }
    
    .cta__downloads {
        display: flex;
        justify-content: center;
    }
}


.play-store-btn {
    background: #01875f;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px 0 rgba(1, 135, 95, 0.2);
    border-radius: 8px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.play-store-btn:hover,
.play-store-btn:focus {
    background: #016b4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(1, 135, 95, 0.3);
}

.play-store-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn--primary {
    background: var(--brand-primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn--primary:hover,
.btn--primary:focus {
    background: #C28AE8;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(212, 157, 244, 0.3);
}

.btn--secondary {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
    height: 44px;
    min-height: 44px;
}

.btn--secondary:hover,
.btn--secondary:focus {
    background: var(--ink);
    color: white;
}

.btn--large {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-lg);
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, rgba(248, 246, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(12px);
    border-top: none;
    border-bottom: 1px solid rgba(212, 157, 244, 0.15);
    box-shadow: 0 1px 3px rgba(212, 157, 244, 0.08);
    z-index: 100;
    transition: all var(--transition-base);
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    gap: var(--space-lg);
    border: none;
    outline: none;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    border: none;
    outline: none;
}

.logo {
    font-size: var(--text-2xl);
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
    transition: color var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    outline: none;
    border: none;
    box-shadow: none;
    line-height: 1;
}

.logo:focus {
    outline: none;
    box-shadow: none;
}

.logo__icon {
    border-radius: 6px;
    box-shadow: none;
    display: block;
    border: none;
    outline: none;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.logo:hover,
.logo:focus {
    color: var(--brand-primary);
}

.logo:hover .logo__icon,
.logo:focus .logo__icon {
    transform: scale(1.05);
    transition: transform var(--transition-base);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
}

.nav__link {
    color: var(--ink-2);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-base);
    transition: all var(--transition-base);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-primary), var(--accent));
    transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link:focus {
    color: var(--brand-primary);
}

.nav__link:hover::after,
.nav__link:focus::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(212, 157, 244, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(212, 157, 244, 0.15);
}

.language-switcher__link {
    color: var(--ink-2);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    transition: color var(--transition-base);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.language-switcher__link:hover,
.language-switcher__link:focus {
    color: var(--brand-primary);
}

.language-switcher__link--active {
    color: var(--brand-primary);
    background: rgba(212, 157, 244, 0.15);
}

.language-switcher__divider {
    color: rgba(15, 16, 32, 0.2);
    font-weight: 400;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .header__content {
        padding: var(--space-sm) 0;
    }
    
    .header__actions {
        gap: var(--space-sm);
    }
    
    .language-switcher {
        padding: 0.3rem 0.6rem;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    padding: var(--space-3xl) 0;
    position: relative;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 157, 244, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(154, 216, 244, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(212, 157, 244, 0.05) 0%, transparent 70%),
        linear-gradient(135deg, rgba(212, 157, 244, 0.03) 0%, rgba(154, 216, 244, 0.06) 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(212, 157, 244, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 85% 80%, rgba(154, 216, 244, 0.08) 1px, transparent 1px);
    background-size: 50px 50px, 70px 70px;
    opacity: 0.4;
    pointer-events: none;
}

.hero__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
    position: relative;
    z-index: 1;
}

.hero__title {
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--ink) 0%, var(--brand-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
    color: var(--ink-2);
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__illustration {
    max-width: 400px;
    width: 100%;
}

.hero__svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(212, 157, 244, 0.15));
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none;
    }
    
    .hero__svg animate,
    .hero__svg animateTransform {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: var(--space-2xl) 0;
        background: 
            radial-gradient(circle at 20% 30%, rgba(212, 157, 244, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(154, 216, 244, 0.08) 0%, transparent 50%),
            #FAFAFA;
    }
    
    .hero::before {
        opacity: 0.2;
    }
    
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero__actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero__illustration {
        max-width: 320px;
        padding: 0 var(--space-sm);
    }
    
    .cta__downloads {
        flex-direction: column;
        align-items: center;
    }
    
    .cta__downloads .btn {
        width: 100%;
        max-width: 280px;
    }
}


/* ===== HOW IT WORKS SECTION ===== */
.how {
    padding: var(--space-3xl) 0;
    background: #FAFAFA;
}

.section__title {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.step {
    text-align: center;
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-base);
}

.step:hover {
    transform: translateY(-4px);
}

.step__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--brand-primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.step__icon svg {
    width: 30px;
    height: 30px;
}

.step__title {
    margin-bottom: var(--space-sm);
    font-size: var(--text-xl);
}

.step__description {
    color: var(--ink-2);
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: var(--space-2xl) 0;
    background: 
        radial-gradient(circle at 70% 20%, rgba(212, 157, 244, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(154, 216, 244, 0.06) 0%, transparent 50%),
        #FAFAFA;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.feature {
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(212, 157, 244, 0.05) 0%, rgba(154, 216, 244, 0.05) 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 157, 244, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.feature__icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--brand-primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.feature__icon svg {
    width: 20px;
    height: 20px;
}

.feature__title {
    margin-bottom: var(--space-xs);
    font-size: var(--text-lg);
    font-weight: 600;
}

.feature__description {
    margin-bottom: 0;
    color: var(--ink-2);
    font-size: var(--text-sm);
    line-height: 1.5;
}


/* ===== PROGRESS SECTION ===== */
.progress {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, rgba(212, 157, 244, 0.08) 0%, rgba(154, 216, 244, 0.08) 100%);
}

.section__subtitle {
    text-align: center;
    font-size: var(--text-lg);
    color: var(--ink-2);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.progress__chart {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.skill-label {
    font-size: var(--text-sm);
    font-weight: 600;
    fill: var(--ink-2);
}

/* ===== COMPARISON SECTION ===== */
.compare {
    padding: var(--space-3xl) 0;
    background: #FAFAFA;
}

.compare__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    max-width: 800px;
    margin: 0 auto;
}

.compare__column {
    text-align: center;
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(212, 157, 244, 0.05) 0%, rgba(154, 216, 244, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 157, 244, 0.1);
}

.compare__title {
    margin-bottom: var(--space-lg);
    font-size: var(--text-2xl);
}

.compare__list {
    list-style: none;
    text-align: left;
}

.compare__list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(15, 16, 32, 0.1);
    position: relative;
    padding-left: var(--space-lg);
}

.compare__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.compare__column:last-child .compare__list li::before {
    content: "✗";
    color: #e74c3c;
}

@media (max-width: 768px) {
    .features__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .feature {
        padding: var(--space-md);
        min-height: 120px;
    }
    
    .compare__content {
        grid-template-columns: 1fr;
    }
}

/* ===== USE CASES SECTION ===== */
.usecases {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, rgba(212, 157, 244, 0.05) 0%, rgba(154, 216, 244, 0.05) 100%);
}

.usecases__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.usecase {
    text-align: center;
    padding: var(--space-xl);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-base);
}

.usecase:hover {
    transform: translateY(-4px);
}

.usecase__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--accent), var(--brand-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.usecase__icon svg {
    width: 30px;
    height: 30px;
}

.usecase__title {
    margin-bottom: var(--space-sm);
    font-size: var(--text-xl);
}

.usecase__description {
    color: var(--ink-2);
}

/* ===== FAQ SECTION ===== */
.faq {
    padding: var(--space-3xl) 0;
    background: #FAFAFA;
}

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

.faq__item {
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, rgba(212, 157, 244, 0.05) 0%, rgba(154, 216, 244, 0.05) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(212, 157, 244, 0.1);
}

.faq__question {
    padding: var(--space-lg);
    font-weight: 600;
    font-size: var(--text-lg);
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: background-color var(--transition-base);
}

.faq__question:hover {
    background: rgba(212, 157, 244, 0.1);
}

.faq__question::after {
    content: "+";
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--text-xl);
    transition: transform var(--transition-base);
}

.faq__item[open] .faq__question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq__answer {
    padding: 0 var(--space-lg) var(--space-lg);
}

.faq__answer p {
    margin-bottom: var(--space-sm);
}

.faq__answer a {
    color: var(--brand-primary);
    text-decoration: none;
}

.faq__answer a:hover,
.faq__answer a:focus {
    text-decoration: underline;
}

/* ===== COMPARISON SECTION ===== */
.comparison {
    padding: var(--space-2xl) 0;
    background: #FAFAFA;
}

.comparison__table {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.comparison__header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 0;
    background: linear-gradient(135deg, rgba(212, 157, 244, 0.08) 0%, rgba(154, 216, 244, 0.08) 100%);
    border-bottom: 1px solid rgba(212, 157, 244, 0.15);
}

.comparison__header .comparison__cell {
    padding: var(--space-sm) var(--space-md);
    text-align: center;
    font-weight: 600;
    font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
}

.comparison__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.comparison__brand img {
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(212, 157, 244, 0.2);
    width: 28px;
    height: 28px;
}

.comparison__row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 0;
    border-bottom: 1px solid rgba(212, 157, 244, 0.08);
    transition: background-color var(--transition-base);
}

.comparison__row:hover {
    background: rgba(212, 157, 244, 0.02);
}

.comparison__row:last-child {
    border-bottom: none;
}

.comparison__cell {
    padding: var(--space-sm) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.comparison__cell--label {
    align-items: flex-start;
    justify-content: center;
}

.comparison__cell--label strong {
    font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
    color: var(--ink);
    display: block;
    margin-bottom: 2px;
}

.comparison__desc {
    font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.85rem);
    color: var(--ink-2);
    font-weight: 400;
}

.comparison__cell--nuva,
.comparison__cell--tutor {
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 0.4rem;
}

.comparison__cell--nuva {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.04) 0%, rgba(34, 197, 94, 0.01) 100%);
}

.comparison__cell--tutor {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04) 0%, rgba(239, 68, 68, 0.01) 100%);
}

.comparison__check {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #22c55e;
    stroke-width: 3;
}

.comparison__cross {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #ef4444;
    stroke-width: 3;
}

.comparison__cell--nuva span,
.comparison__cell--tutor span {
    font-size: clamp(0.8rem, 0.75rem + 0.2vw, 0.9rem);
    line-height: 1.3;
}

.comparison__cell--nuva span {
    color: #166534;
    font-weight: 500;
}

.comparison__cell--tutor span {
    color: #991b1b;
    font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .comparison__header,
    .comparison__row {
        grid-template-columns: 1fr;
    }
    
    .comparison__header .comparison__cell--label {
        display: none;
    }
    
    .comparison__cell--label {
        grid-column: 1 / -1;
        text-align: center;
        background: rgba(212, 157, 244, 0.05);
        padding: var(--space-xs) var(--space-sm);
    }
    
    .comparison__cell--nuva,
    .comparison__cell--tutor {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .comparison__check,
    .comparison__cross {
        width: 16px;
        height: 16px;
    }
}

/* ===== CTA SECTION ===== */
.cta {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--accent) 100%);
    color: white;
}

.cta__content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta__downloads {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.cta__title {
    margin-bottom: var(--space-xl);
    color: white;
    font-size: var(--text-3xl);
}

.cta .btn--primary {
    background: white;
    color: var(--ink);
    margin-bottom: var(--space-md);
}

.cta .btn--primary:hover,
.cta .btn--primary:focus {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.cta__caption,
.cta__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-base);
}

/* ===== FOOTER ===== */
.footer {
    padding: var(--space-xl) 0;
    background: var(--ink);
    color: white;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__links {
    display: flex;
    gap: var(--space-lg);
}

.footer__link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer__link:hover,
.footer__link:focus {
    color: white;
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
}

@media (max-width: 768px) {
    .footer__content {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero {
        padding: var(--space-2xl) 0;
    }
    
    .section__title {
        font-size: var(--text-2xl);
    }
    
    /* Ensure all sections have proper background containment */
    .hero,
    .features,
    .comparison,
    .cta,
    .footer {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Prevent SVG overflow */
    .hero__svg,
    .hero__illustration {
        max-width: 100%;
        height: auto;
    }
}

@media (min-width: 768px) {
    .hero__content {
        margin-bottom: var(--space-3xl);
    }
    
    .steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: var(--space-3xl) 0 var(--space-2xl);
    }
    
    .hero__content {
        margin-bottom: var(--space-2xl);
    }
}

@media (min-width: 1280px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

/* ===== LEGAL PAGES (PRIVACY & TERMS) ===== */
.legal-hero {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--accent) 100%);
    color: white;
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px;
    opacity: 0.3;
}

.legal-hero__title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
    color: white;
}

.legal-hero__subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

.legal-hero__date {
    font-size: var(--text-sm);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.legal-page {
    background: 
        radial-gradient(circle at 80% 20%, rgba(212, 157, 244, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(154, 216, 244, 0.04) 0%, transparent 50%),
        #fafafa;
    min-height: 60vh;
}

.legal-page__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding: var(--space-3xl) 0;
}

/* Side Navigation */
.legal-nav {
    display: none;
}

.legal-nav__list {
    list-style: none;
    position: sticky;
    top: 100px;
}

.legal-nav__link {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--ink-2);
    text-decoration: none;
    border-radius: 8px;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-base);
    border-left: 3px solid transparent;
}

.legal-nav__link:hover,
.legal-nav__link:focus {
    background: rgba(212, 157, 244, 0.08);
    color: var(--brand-primary);
    border-left-color: var(--brand-primary);
}

/* Content */
.legal-content {
    max-width: 800px;
}

.legal-section {
    margin-bottom: var(--space-3xl);
}

.legal-section h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-lg);
    color: var(--ink);
}

.legal-section h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    color: var(--ink);
}

.legal-card {
    background: white;
    border-radius: 12px;
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(212, 157, 244, 0.1);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.legal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 157, 244, 0.15);
}

.legal-card--highlight {
    background: linear-gradient(135deg, rgba(212, 157, 244, 0.08) 0%, rgba(154, 216, 244, 0.08) 100%);
    border: 2px solid var(--brand-primary);
}

.legal-card p {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.legal-list {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.legal-list li {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
    color: var(--ink-2);
}

.legal-list li strong {
    color: var(--ink);
}

.legal-contact {
    font-size: var(--text-lg);
    line-height: 1.8;
}

.legal-card a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
}

.legal-card a:hover,
.legal-card a:focus {
    color: var(--accent);
    text-decoration: underline;
}

/* Desktop Layout */
@media (min-width: 1024px) {
    .legal-page__container {
        grid-template-columns: 240px 1fr;
        gap: var(--space-3xl);
    }
    
    .legal-nav {
        display: block;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .legal-hero {
        padding: var(--space-2xl) 0 var(--space-xl);
    }
    
    .legal-hero__title {
        font-size: var(--text-3xl);
    }
    
    .legal-section h2 {
        font-size: var(--text-2xl);
    }
    
    .legal-card {
        padding: var(--space-md) var(--space-lg);
    }
}

/* ===== INTERACTIVE & RESPONSIVE EFFECTS ===== */

/* Smooth transitions for all interactive elements */
a, button, .btn, .feature, .comparison__cell, .legal-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced hover effects */
.feature:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 157, 244, 0.15);
}

.comparison__cell:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(212, 157, 244, 0.12);
}

.legal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(212, 157, 244, 0.12);
}

/* Interactive buttons with cursor feedback */
.btn {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Smooth scroll reveal animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature, .comparison__row, .legal-section {
    animation: fadeInUp 0.6s ease-out backwards;
}

.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.2s; }
.feature:nth-child(3) { animation-delay: 0.3s; }
.feature:nth-child(4) { animation-delay: 0.4s; }
.feature:nth-child(5) { animation-delay: 0.5s; }
.feature:nth-child(6) { animation-delay: 0.6s; }

/* Parallax effect on scroll */
.hero__illustration {
    transition: transform 0.3s ease-out;
}

/* Cursor interaction for cards */
@media (hover: hover) {
    .feature {
        cursor: pointer;
    }
    
    .feature:active {
        transform: translateY(-4px) scale(0.98);
    }
}

/* Smooth link hover effects */
a:not(.btn):hover {
    color: var(--brand-primary);
    transition: color 0.2s ease;
}

/* Header scroll effect */
.header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(212, 157, 244, 0.1);
}

/* Interactive comparison cells */
.comparison__cell {
    cursor: default;
    position: relative;
}

.comparison__cell::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(212, 157, 244, 0.05), rgba(154, 216, 244, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comparison__cell:hover::after {
    opacity: 1;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .feature:hover,
    .comparison__cell:hover,
    .legal-card:hover {
        transform: none;
    }
}
