/* ============================================
   SweepMac Landing Page — Premium Dark Theme
   ============================================ */

:root {
    --bg: #09090b;
    --bg-card: #131316;
    --bg-card-hover: #1a1a1f;
    --bg-subtle: #18181b;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99,102,241,0.25);
    --green: #10b981;
    --red: #ef4444;
    --orange: #f59e0b;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-w: 1200px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::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: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   Nav
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
    background: rgba(9,9,11,0.8);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
}

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

.nav-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition);
    font-weight: 500;
}

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

.nav-github {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    border-radius: 10px;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font);
    text-align: center;
    justify-content: center;
    position: relative;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-xl {
    padding: 18px 36px;
    font-size: 17px;
    border-radius: 14px;
    flex-direction: column;
    gap: 4px;
}

.btn-sub {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.7;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white;
    box-shadow: 0 4px 24px var(--accent-glow), 0 1px 2px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow), 0 2px 4px rgba(0,0,0,0.3);
}

.btn-ghost {
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.03);
}

.btn-outline {
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}

/* ============================================
   Hero
   ============================================ */

.hero {
    position: relative;
    padding: 160px 24px 40px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--accent-light), #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ============================================
   App Mockup
   ============================================ */

.hero-mockup {
    position: relative;
    max-width: 880px;
    margin: 60px auto 0;
    perspective: 1200px;
    width: 100%;
}

.mockup-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 20px 60px rgba(0,0,0,0.5),
        0 0 120px var(--accent-glow);
    animation: mockup-float 6s ease-in-out infinite;
    object-fit: contain;
    aspect-ratio: auto;
}

.mockup-window {
    background: #0c0c0f;
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 20px 60px rgba(0,0,0,0.5),
        0 0 120px var(--accent-glow);
    animation: mockup-float 6s ease-in-out infinite;
}

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

.mockup-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.titlebar-text {
    margin-left: 12px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.mockup-body {
    display: flex;
    min-height: 380px;
}

.mockup-sidebar {
    width: 180px;
    border-right: 1px solid var(--border);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.sb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    cursor: default;
}

.sb-icon {
    font-size: 8px;
    opacity: 0.5;
}

.sb-item.active {
    background: rgba(99,102,241,0.15);
    color: var(--accent-light);
}

.mockup-main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-chart-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.mockup-ring {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.mockup-ring svg {
    width: 100%;
    height: 100%;
}

.ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
}

.ring-label small {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
}

.mockup-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-row strong {
    color: var(--text);
    margin-left: auto;
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stat-dot.used { background: var(--orange); }
.stat-dot.free { background: var(--green); }
.stat-dot.clean { background: var(--accent-light); }

.mockup-bar {
    display: flex;
    height: 18px;
    border-radius: 6px;
    overflow: hidden;
    gap: 2px;
}

.bar-seg {
    border-radius: 4px;
    transition: opacity var(--transition);
}

.bar-seg:hover {
    opacity: 0.8;
}

.mockup-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.m-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.m-card-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.m-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.m-card-info strong {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-card-info span {
    font-size: 10px;
    color: var(--text-muted);
}

/* ============================================
   Social Proof
   ============================================ */

.social-proof {
    text-align: center;
    padding: 48px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.social-proof p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.proof-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
}

.proof-sep {
    color: var(--text-muted);
    opacity: 0.3;
}

/* ============================================
   Sections (shared)
   ============================================ */

.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   Features Grid
   ============================================ */

.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* ============================================
   Categories Grid
   ============================================ */

.categories {
    padding: 100px 0;
    background: var(--bg-subtle);
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.cat-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.cat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.ci-blue { background: rgba(99,102,241,0.12); }
.ci-orange { background: rgba(245,158,11,0.12); }
.ci-red { background: rgba(239,68,68,0.12); }
.ci-purple { background: rgba(139,92,246,0.12); }
.ci-indigo { background: rgba(99,102,241,0.12); }
.ci-cyan { background: rgba(6,182,212,0.12); }
.ci-teal { background: rgba(20,184,166,0.12); }
.ci-green { background: rgba(16,185,129,0.12); }
.ci-brown { background: rgba(180,130,70,0.12); }
.ci-pink { background: rgba(236,72,153,0.12); }
.ci-rose { background: rgba(244,63,94,0.12); }
.ci-mint { background: rgba(52,211,153,0.12); }

.cat-item div:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.cat-item div:nth-child(2) strong {
    font-size: 14px;
    font-weight: 600;
}

.cat-item div:nth-child(2) span {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cat-badge.safe {
    background: rgba(16,185,129,0.12);
    color: var(--green);
}

.cat-badge.review {
    background: rgba(245,158,11,0.12);
    color: var(--orange);
}

/* ============================================
   Comparison Table
   ============================================ */

.compare {
    padding: 100px 0;
}

.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
}

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

.compare-table th {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.compare-table th.highlight {
    color: var(--accent-light);
}

.compare-table td.highlight {
    background: rgba(99,102,241,0.04);
}

.compare-table td strong {
    color: var(--accent-light);
}

.check {
    color: var(--green);
    font-size: 18px;
    font-weight: 700;
}

.check.dim {
    opacity: 0.5;
}

.cross {
    color: var(--text-muted);
    opacity: 0.4;
    font-size: 16px;
}

/* ============================================
   Download CTA
   ============================================ */

.download {
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.download-glow {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.download-content {
    position: relative;
}

.download h2 {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.download p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.download-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.download-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    border-top: 1px solid var(--border);
    padding: 48px 24px;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 48px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.footer-left p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-copy {
    margin-top: 16px;
    font-size: 12px !important;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: color var(--transition);
}

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

/* ============================================
   Scroll Animations
   ============================================ */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .mockup-sidebar {
        display: none;
    }

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

    .nav-links a:not(.nav-cta):not(.nav-github) {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 120px 16px 40px;
    }

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

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

    .btn-lg, .btn-xl {
        width: 100%;
    }

    .download-buttons {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 40px;
    }

    .mockup-cards {
        grid-template-columns: 1fr 1fr;
    }

    .compare-table th,
    .compare-table td {
        padding: 12px 14px;
        font-size: 13px;
    }
}
