/* ============================================
   Sprint Planner Landing Page Styles
   Modern SaaS Design with Light Blue Accents
   ============================================ */

/* CSS Variables - Capacify Brand Colors */
:root {
    /* Brand Colors from StyleGuide */
    --brand-100: #EBF0FF;
    --brand-200: #CCD9FF;
    --brand-300: #789AFF;
    --brand-400: #5982FF;
    --brand-500: #265CFF;
    --brand-600: #214ED9;
    --brand-700: #1B40B2;
    --brand-800: #15338C;
    --brand-900: #0F2566;
    
    /* Primary colors using brand palette */
    --primary-color: var(--brand-500);
    --primary-dark: var(--brand-700);
    --primary-light: var(--brand-400);
    --accent-color: var(--brand-600);
    
    /* Neutral colors */
    --neutral-100: #FAFBFF;
    --neutral-200: #EEF1FA;
    --neutral-300: #E1E5F2;
    --neutral-700: #828A99;
    --neutral-800: #474E59;
    --neutral-900: #17181A;
    
    --text-dark: var(--neutral-900);
    --text-medium: var(--neutral-800);
    --text-light: var(--neutral-700);
    --border-color: var(--neutral-300);
    --bg-light: var(--neutral-100);
    --bg-white: #FFFFFF;
    
    /* Semantic colors */
    --success-color: #30F295;
    --success-dark: #1BB269;  /* Success700 from StyleGuide - better for badges */
    --warning-color: #FFC926;
    --danger-color: #FF4A26;
    
    /* Effects */
    --shadow-sm: 0 2px 4px rgba(38, 92, 255, 0.08);
    --shadow-md: 0 4px 12px rgba(38, 92, 255, 0.12);
    --shadow-lg: 0 8px 24px rgba(38, 92, 255, 0.16);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 100%);
    --gradient-brand-reverse: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
    --gradient-hero: linear-gradient(135deg, var(--brand-100) 0%, var(--neutral-100) 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--gradient-brand-reverse);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 92, 255, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

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

.btn-white:hover {
    background-color: var(--bg-light);
}

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

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-medium);
    font-weight: 500;
    font-size: 15px;
}

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

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(180deg, #1544D1 0%, #2D61FC 100%);
    position: relative;
    overflow: hidden;
    min-height: 560px;
    color: rgba(255, 255, 255, 0.92);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(38, 92, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(21, 68, 209, 0.75) 0%, rgba(33, 82, 241, 0.5) 40%, rgba(45, 97, 252, 0.18) 70%, rgba(45, 97, 252, 0) 95%);
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

.hero-visual {
    position: absolute;
    top: 70%;
    right: -4%;
    transform: translateY(-50%);
    width: min(720px, 70vw);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 32px;
    pointer-events: none;
    z-index: 2;
}

.hero-graphic {
    margin: 0;
    width: clamp(320px, 46vw, 520px);
    height: clamp(200px, 30vw, 300px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-graphic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-logo-lockup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
}

.hero-logo-lockup img {
    width: clamp(160px, 24vw, 260px);
    height: auto;
    display: block;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    color: #FFFFFF;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.hero-content {
    max-width: 520px;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 32px;
    line-height: 1.6;
}

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

.hero .btn-primary {
    background: #FFFFFF;
    color: #1544D1;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.hero .btn-primary::before {
    background: linear-gradient(90deg, rgba(21, 68, 209, 0) 0%, rgba(21, 68, 209, 0.16) 50%, rgba(21, 68, 209, 0) 100%);
}

.hero .btn-primary:hover {
    background: rgba(255, 255, 255, 0.92);
    color: #0F2566;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.65);
    color: rgba(255, 255, 255, 0.92);
    background-color: rgba(255, 255, 255, 0.08);
}

.hero .btn-outline:hover {
    border-color: #FFFFFF;
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.hero-note {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-medium);
}

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

.feature-gallery {
    margin-top: 80px;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.gallery-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.gallery-header h3 {
    font-size: 28px;
}

.gallery-subtitle {
    color: var(--text-medium);
    font-size: 16px;
}

.gallery-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
}

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

.gallery-slide {
    flex: 0 0 min(72vw, 720px);
    scroll-snap-align: center;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
}

.gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-controls {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 24px;
}

.gallery-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.gallery-btn:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-lg);
}

.lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 24, 26, 0.65);
    backdrop-filter: blur(6px);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 1100px);
    max-height: 90vh;
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lightbox-content figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(23, 24, 26, 0.08);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
}

.lightbox-close:hover {
    background: var(--primary-color);
    color: white;
}

.lightbox figcaption {
    color: var(--text-medium);
    font-size: 15px;
    text-align: center;
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 92vw;
        padding: 18px 18px 24px;
        border-radius: 12px;
    }

    .lightbox-content img {
        border-radius: 10px;
    }

    .lightbox-close {
        width: 36px;
        height: 36px;
    }
}

.feature-card {
    padding: 32px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--brand-200);
}

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

.feature-icon {
    margin-bottom: 16px;
    color: var(--primary-color);
}

.feature-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-medium);
    font-size: 15px;
}

.feature-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.feature-badge-pro {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 6px rgba(38, 92, 255, 0.35);
}

/* Roadmap Timeline */
.timeline {
    position: relative;
    margin: 0 auto;
    max-width: 920px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(180deg, var(--brand-200), var(--brand-500));
    transform: translateX(-50%);
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin: 24px 0;
}

.timeline-item.left {
    justify-content: flex-start;
}

.timeline-item.right {
    justify-content: flex-end;
}

.timeline-content {
    width: 46%;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-item.left .timeline-content {
    margin-right: 40px;
}

.timeline-item.right .timeline-content {
    margin-left: 40px;
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--brand-200);
}

.timeline-badge {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 0;
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    box-shadow: var(--shadow-sm);
}

.timeline-icon {
    margin-bottom: 8px;
    color: var(--primary-color);
}

/* Ensure inline SVGs size nicely */
.feature-icon i,
.feature-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    font-size: 24px;
}

.timeline-icon i,
.timeline-icon svg {
    width: 14px;
    height: 14px;
    display: block;
    font-size: 14px;
}

.timeline-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.timeline-description {
    color: var(--text-medium);
    font-size: 15px;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.toggle-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-medium);
}

.toggle-label.active {
    color: var(--primary-color);
}

.save-badge {
    display: inline-block;
    background: linear-gradient(135deg, #30F295 0%, #1BB269 100%);
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-left: 12px;
    box-shadow: 0 2px 8px rgba(27, 178, 105, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(27, 178, 105, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(27, 178, 105, 0.6);
    }
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    border-radius: 28px;
    transition: var(--transition);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: var(--transition);
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 32px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border: 2px solid transparent;
    background-image: 
        linear-gradient(white, white),
        var(--gradient-brand);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: var(--gradient-brand);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--gradient-brand);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.plan-name {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.plan-price {
    margin-bottom: 16px;
}

.price {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
}

.period {
    font-size: 16px;
    color: var(--text-light);
}

.plan-description {
    color: var(--text-medium);
    margin-bottom: 24px;
    min-height: 48px;
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.plan-features li {
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-medium);
    border-bottom: 1px solid var(--bg-light);
}

.plan-features li:last-child {
    border-bottom: none;
}

.feature-disabled {
    color: var(--text-light);
}

/* Comparison Table */
.comparison-table {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.comparison-title {
    font-size: 28px;
    margin-bottom: 32px;
    text-align: center;
}

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

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--bg-light);
    font-weight: 700;
    color: var(--text-dark);
}

.comparison-table td {
    color: var(--text-medium);
}

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

/* Download Section */
.download {
    padding: 100px 0;
    background-color: var(--bg-white);
}

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

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 48px 0 24px 0;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 32px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
    min-width: 240px;
}

.download-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(38, 92, 255, 0.2);
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(38, 92, 255, 0.03) 0%, rgba(27, 64, 178, 0.03) 100%);
}

.download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-700);
    transition: var(--transition);
}

.download-btn:hover .download-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-label {
    font-size: 13px;
    color: var(--text-light);
}

.download-platform {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.download-note {
    color: var(--text-light);
    font-size: 14px;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--gradient-brand);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: 42px;
    color: white;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    padding: 60px 0 24px 0;
    background-color: var(--text-dark);
    color: white;
}

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

.footer-column h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-column a,
.footer-column p {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-column a:hover {
    color: white;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 48px;
    border-radius: 16px;
    max-width: 480px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

/* Auth Forms */
.auth-form h2 {
    font-size: 28px;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 32px;
}

.auth-form input {
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: var(--transition);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.error-message {
    color: var(--danger-color);
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    color: var(--text-medium);
    font-size: 14px;
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle i {
    display: block;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    flex-direction: column;
}

.mobile-menu.active {
    display: flex;
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-white);
    z-index: 1;
}

.mobile-menu-header .logo {
    height: 32px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    overflow-y: auto;
}

.mobile-menu-content a {
    display: block;
    padding: 16px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-menu-content a:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.mobile-menu-buttons .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Navigation Mobile */
    .navbar {
        padding: 12px 0;
    }

    .nav-content {
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .nav-links a {
        display: none;
    }


    .logo {
        height: 32px;
    }

    /* Hero Mobile */
    .hero {
        padding: 48px 0 32px 0;
        min-height: 0;
    }

    .hero .container {
        gap: 24px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }

    .hero-buttons .btn {
        padding: 14px 24px;
        font-size: 16px;
        width: 100%;
    }

    .hero-note {
        font-size: 13px;
    }

    /* Hide or minimize hero visual on mobile */
    .hero-visual {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        align-items: center;
        gap: 20px;
        margin-top: 24px;
        order: 2;
    }

    .hero-graphic {
        width: 100%;
        max-width: 320px;
        height: auto;
        min-height: 160px;
    }

    .hero-graphic img {
        max-height: 160px;
    }

    /* Hide logo lockup on mobile to reduce scroll */
    .hero-logo-lockup {
        display: none;
    }

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

    .section-subtitle {
        font-size: 16px;
    }

    .features {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card {
        padding: 24px;
    }

    .pricing {
        padding: 60px 0;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .download {
        padding: 60px 0;
    }

    .download-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .download-btn {
        min-width: auto;
        padding: 16px 24px;
    }

    .comparison-table {
        overflow-x: auto;
        padding: 24px 16px;
    }

    .comparison-table table {
        font-size: 14px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }

    .modal-content {
        margin: 5% 16px;
        padding: 32px 24px;
        max-width: calc(100% - 32px);
    }

    .auth-form h2 {
        font-size: 24px;
    }

    .auth-form input {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .footer {
        padding: 48px 0 24px 0;
    }

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

    .cta {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-subtitle {
        font-size: 18px;
    }

    /* Timeline mobile stacking */
    .timeline::before {
        left: 24px;
        transform: none;
    }
    .timeline-item {
        justify-content: flex-start;
        margin: 20px 0 28px 0;
    }
    .timeline-badge {
        left: 24px;
        transform: translate(-50%, -50%);
    }
    .timeline-content {
        width: 100%;
        margin-left: 56px;
        margin-right: 0;
    }

    .feature-gallery {
        margin-top: 48px;
        padding: 24px 16px;
    }

    .gallery-header h3 {
        font-size: 22px;
    }

    .gallery-subtitle {
        font-size: 14px;
    }

    .gallery-carousel {
        gap: 16px;
    }

    .gallery-slide {
        flex: 0 0 100%;
    }

    .gallery-controls {
        justify-content: center;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success Message */
.success-message {
    color: var(--success-color);
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
}

