/* ==========================================================================
   AIR FTP SERVER — Premium Website Stylesheet (Authentic Light Material 3)
   Swaps neon/AI drop shadows for the actual flat Material 3 layout used in the app.
   Page Background: #FFFFFF | Card Background: #F3F5F9 | Accents: #2196F3
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Roboto+Mono:wght@400;500;700&display=swap');

/* ── CSS Custom Properties (Mapped directly to Android resources) ── */
:root {
    --primary: #2196F3;
    --primary-dark: #1976D2;
    --accent: #00BCD4;
    --bg-page: #FFFFFF;       /* App background color */
    --bg-card: #F3F5F9;       /* App card background color */
    --bg-card-hover: #E5EAF0;  /* Muted touch hover color */
    --border-color: #E5EAF0;   /* App divider color */
    
    /* Elegant Dark Slate Texts */
    --text-primary: #1A1A1A;
    --text-secondary: #707880;
    --text-muted: #8E96A0;
    
    /* Semantic Actions */
    --success: #4CAF50;
    --error: #FF5252;
    --warning: #FFC107;
    
    /* Layout Constants */
    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 24px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* ── Navigation ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary) !important;
    color: white !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1.5px);
}

/* ── Mobile Menu ── */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Hero Section (Light, Spacious, Clean) ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 140px 24px 80px;
    background: var(--bg-page);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E3F2FD;
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.25); }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 span {
    color: var(--primary);
}

.hero p.hero-desc {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    margin-bottom: 48px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

/* Quick Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 500px;
    margin-top: 24px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

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

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

/* ── App Mockup Visual (Pure Material Android Simulation) ── */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.phone-mockup {
    width: 310px;
    height: 640px;
    background: #FFFFFF;
    border: 11px solid #1E293B; /* Outer physical phone frame */
    border-radius: 40px;
    box-shadow: 0 24px 48px rgba(30, 41, 59, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Notch */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #1E293B;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

/* Simulator Status Bar */
.phone-status-bar {
    padding: 26px 18px 8px;
    background: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: #1A1A1A;
    font-weight: 600;
    z-index: 5;
}

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

/* Simulator Toolbar App Bar */
.phone-app-bar {
    background: #FFFFFF;
    padding: 8px 18px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid var(--border-color);
    z-index: 5;
}

.app-bar-title {
    color: #1A1A1A;
    font-weight: 700;
    font-size: 1.15rem;
}

.app-bar-actions {
    display: flex;
    gap: 16px;
    color: var(--text-secondary);
}

.action-icon {
    cursor: pointer;
    transition: color 0.15s;
}

.action-icon:hover {
    color: #1A1A1A;
}

/* Simulator Screen Body (Pure White screen, flat blue-gray cards) */
.screen-body {
    flex: 1;
    background: #FFFFFF; /* Pure White App Screen Background */
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    text-align: left;
}

/* 100% Flat Material Cards (No borders, no shadows) */
.app-card {
    background: var(--bg-card); /* F3F5F9 Blue-Gray card */
    border-radius: 16px;
    padding: 18px;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.card-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: none;
}

.status-value {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.status-value.stopped {
    color: var(--error);
}

.status-value.running {
    color: var(--success);
}

.card-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.card-row:last-of-type {
    margin-bottom: 0;
}

.row-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.row-value {
    color: var(--text-primary);
    font-weight: 600;
}

.row-value.wifi-enabled {
    color: var(--success);
}

.row-value.font-mono {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
}

.row-value.font-bold {
    font-weight: 700;
}

.row-value.text-primary {
    color: var(--primary);
}

/* App Flat Main Button (app:cornerRadius="12dp") */
.app-main-btn {
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

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

.btn-content-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* Secondary Action Card & Button */
.card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.app-secondary-btn {
    background: #FFFFFF;
    color: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 9px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    width: 100%;
}

.app-secondary-btn:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

/* Stats Card details */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 6px;
}

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

.stat-col .stat-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2px;
}

.stat-col .stat-num {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
}

.clients-empty {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: left;
}

/* ── Clean Light Sections ── */
.section {
    padding: 100px 24px;
    position: relative;
    z-index: 1;
    background: var(--bg-page);
}

/* Alternate light background for elegant hierarchy */
.section:nth-of-type(even) {
    background: var(--bg-card); /* Alternates using the soft blue-gray */
}

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

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Flat Spacious Features Grid ── */
.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card); /* Flat app card background */
    border-radius: var(--radius);
    padding: 36px;
    transition: var(--transition);
    border: none;
    box-shadow: none;
    position: relative;
}

/* Section alternate color handling for features */
.section:nth-of-type(even) .feature-card {
    background: #FFFFFF; /* If section is light gray, cards are white */
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

.section:nth-of-type(even) .feature-card:hover {
    background: var(--bg-card);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: #E3F2FD;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── Free vs Pro Feature Comparison Table ── */
.comparison-section {
    background: var(--bg-card);
}

.comparison-wrapper {
    max-width: 850px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.comparison-table th, .comparison-table td {
    padding: 18px 24px;
    border-bottom: 1.5px solid var(--border-color);
}

.comparison-table th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

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

.comparison-table td {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

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

.pro-badge-mini {
    display: inline-block;
    background: #FFE0B2;
    color: #E65100;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
}

.check-icon {
    color: var(--success);
    font-weight: 700;
}

.cross-icon {
    color: var(--error);
    font-weight: 700;
}

/* ── How It Works ── */
.steps-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 24px;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #E3F2FD;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ── CTA Section (Flat & Clean) ── */
.cta-section {
    text-align: center;
    padding: 100px 24px;
    background: var(--bg-page);
}

.cta-box {
    max-width: 750px;
    margin: 0 auto;
    background: var(--bg-card); /* Beautiful flat block */
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

/* ── Footer ── */
.footer {
    padding: 48px 24px;
    background: #FFFFFF;
    border-top: 1.5px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ── Privacy Policy Page (Light Material UI) ── */
.privacy-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 24px 80px;
    position: relative;
    z-index: 1;
}

.privacy-page h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.privacy-date {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 40px;
    display: block;
}

.privacy-page h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.privacy-page p, .privacy-page li {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.privacy-page ul, .privacy-page ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.privacy-page strong {
    color: var(--text-primary);
}

.privacy-note {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive Viewports ── */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 56px;
    }

    .hero-text {
        text-align: center;
    }

    .hero p.hero-desc {
        margin: 0 auto 36px;
    }

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

    .stats-bar {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1.5px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .stats-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

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

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

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-box {
        padding: 40px 20px;
    }
}

/* ── Pricing Section ── */
.pricing-section {
    background: var(--bg-page);
}

.pricing-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card.featured {
    background: #FFFFFF;
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.08);
}

.popular-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.save-badge {
    display: inline-block;
    background: #FFE0B2;
    color: #E65100;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 24px 0 32px;
    text-align: left;
}

.pricing-features li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-action {
    margin-top: auto;
}

.pricing-note {
    display: inline-block;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    width: 100%;
}

.pricing-card.featured .pricing-note {
    background: var(--primary);
    color: #FFFFFF;
}
