/* ==================== SWIFTSYNC WEBSITE PREMIUM CSS ==================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #e5e5e5;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== VARIABLES ==================== */

:root {
    --mint: #6ee7b7;
    --peach: #f87171;
    --lavender: #c4b5fd;
    --amber: #a78bfa;
    --dark-1: #0f0f0f;
    --dark-2: #1a1a1a;
    --dark-3: #252525;
    --dark-4: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #666666;
}

/* ==================== NAVIGATION ==================== */

.nav {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1000;
    background: rgba(25, 25, 25, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(20, 20, 20, 0.85);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-container {
    padding: 12px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
    text-decoration: none;
}

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

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-cta {
    background: linear-gradient(135deg, var(--mint) 0%, var(--mint) 100%);
    color: #0f0f0f !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
}

.nav-cta:hover {
    box-shadow: 0 0 20px rgba(110, 231, 183, 0.4);
}

/* ==================== HERO SECTION ==================== */

.hero {
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    padding: 80px 24px 120px;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    z-index: 0;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
    top: -100px;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--lavender) 0%, transparent 70%);
    bottom: 100px;
    right: 5%;
    animation: float 8s ease-in-out infinite reverse;
}

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

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

.hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(110, 231, 183, 0.1);
    border: 1px solid rgba(110, 231, 183, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mint);
    width: fit-content;
    margin-bottom: 24px;
}

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

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

.hero-title {
    font-family: 'Sora', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--mint) 0%, var(--lavender) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--mint) 0%, #5dd9a3 100%);
    color: #0f0f0f;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(110, 231, 183, 0.3);
}

.btn-glow {
    box-shadow: 0 8px 25px rgba(110, 231, 183, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 15px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--mint);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== HERO IMAGE (Phone Mockup) ==================== */

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 240px;
    aspect-ratio: 9 / 20;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(110, 231, 183, 0.1);
    position: relative;
    border: 2px solid rgba(110, 231, 183, 0.1);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 28px;
    background: #0f0f0f;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.screen-content {
    padding: 32px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-bar {
    height: 20px;
    margin-bottom: 8px;
}

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

.device-item {
    background: rgba(110, 231, 183, 0.1);
    border: 1px solid rgba(110, 231, 183, 0.2);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.device-dot {
    width: 6px;
    height: 6px;
    background: var(--mint);
    border-radius: 50%;
}

.device-name {
    font-size: 12px;
    color: var(--text-secondary);
    flex: 1;
}

.device-badge {
    font-size: 10px;
    background: var(--mint);
    color: #0f0f0f;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.file-transfer {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    padding: 12px;
    border-radius: 12px;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--peach) 0%, var(--mint) 100%);
    width: 65%;
    border-radius: 2px;
}

.transfer-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.transfer-speed {
    font-size: 10px;
    color: var(--peach);
    font-weight: 600;
}

/* ==================== SECTIONS ==================== */

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px;
    position: relative;
    /* Visible by default. JS opts sections into the hidden/animate-in
       state below — if JS never runs, content still shows correctly. */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Added by JS on page load, before the scroll observer kicks in.
   Only applied if JavaScript actually executes. */
.section.pre-animate {
    opacity: 0;
    transform: translateY(30px);
}

.section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

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

.section-header h2 {
    font-family: 'Sora', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ==================== WHY SECTION ==================== */

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.why-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(110, 231, 183, 0.3);
    transform: translateY(-4px);
}

.why-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== HOW IT WORKS SECTION ==================== */

.how-it-works-section {
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.05) 0%, rgba(192, 181, 253, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    margin: 120px auto;
    width: calc(100% - 48px);
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}

.step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--mint) 0%, var(--lavender) 100%);
    color: #0f0f0f;
    font-weight: 700;
    font-size: 20px;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.step-visual {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 32px;
}

.step-divider {
    font-size: 28px;
    color: var(--mint);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

/* ==================== FEATURES SECTION ==================== */

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

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 36px 24px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    border-color: rgba(110, 231, 183, 0.3);
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.05) 0%, rgba(192, 181, 253, 0.05) 100%);
}

.feature-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-tag {
    display: inline-block;
    background: rgba(110, 231, 183, 0.1);
    color: var(--mint);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

/* ==================== SECURITY SECTION ==================== */

.security-section {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.03) 0%, rgba(167, 139, 250, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    margin: 120px auto;
    width: calc(100% - 48px);
}

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

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

.security-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--peach) 0%, var(--amber) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 24px;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.security-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.security-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== COMPARISON SECTION ==================== */

.comparison-section {
    overflow-x: auto;
}

.comparison-table {
    min-width: 800px;
}

.comparison-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-row.header {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    padding: 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 0 0;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    min-height: 50px;
}

.comparison-row.header .comparison-cell {
    font-weight: 600;
}

.comparison-row .comparison-cell:first-child {
    justify-content: flex-start;
}

.comparison-row.header .comparison-cell:first-child {
    justify-content: flex-start;
}

/* ==================== CTA SECTION ==================== */

.cta-section {
    position: relative;
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.1) 0%, rgba(192, 181, 253, 0.1) 100%);
    border: 1px solid rgba(110, 231, 183, 0.3);
    border-radius: 24px;
    margin: 120px auto;
    width: calc(100% - 48px);
    overflow: hidden;
}

.cta-bg-blur {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
    z-index: 0;
}

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

.cta-content h2 {
    font-family: 'Sora', sans-serif;
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.cta-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-footer {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==================== FOOTER ==================== */

.footer {
    background: rgba(15, 15, 15, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 24px 24px;
    margin-top: 120px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-column .logo {
    margin-bottom: 8px;
}

.footer-column p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column ul li a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--mint);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: var(--text-muted);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-image {
        display: none;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 16px;
    }

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

    .step-divider {
        display: none;
    }

    .section {
        padding: 60px 24px;
    }

    .section-header h2 {
        font-size: 32px;
    }

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

    .comparison-cell {
        font-size: 11px;
        min-height: 40px;
    }

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

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== UTILITIES ==================== */

.fade-in {
    animation: fadeInUp 0.8s ease-out !important;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
