/* ============================================================
   PeakFlow — Landing Page Styles
   Premium dark theme with purple-blue gradients
   ============================================================ */

:root {
    /* Core palette */
    --bg-primary: #07070a;
    --bg-secondary: #0d0d12;
    --bg-card: #12121a;
    --bg-card-hover: #181822;
    --bg-elevated: #1a1a26;

    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Accent gradient */
    --accent-1: #6c3aed;
    --accent-2: #a855f7;
    --accent-3: #c084fc;
    --accent-glow: rgba(108, 58, 237, 0.3);

    /* Text */
    --text-primary: #f0f0f5;
    --text-secondary: #8b8b9e;
    --text-muted: #5a5a6e;

    /* Functional */
    --success: #22c55e;
    --pricing-highlight: #a855f7;

    /* Spacing */
    --section-pad: 120px;
    --container-max: 1140px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s var(--ease-out);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(7, 7, 10, 0.8);
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    padding: 10px 0;
    border-bottom-color: var(--border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--accent-1) !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}

.nav-cta:hover {
    background: var(--accent-2) !important;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile menu open state */
@media (max-width: 768px) {
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(7, 7, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 20px 24px 28px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        animation: fade-up 0.3s var(--ease-out);
    }

    .nav-links.mobile-open .nav-cta {
        text-align: center;
        display: block;
    }
}

/* ============================================================
   HERO
   ============================================================ */

#hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    animation: glow-pulse 6s ease-in-out infinite;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    top: 100px;
    left: 30%;
    animation-delay: -3s;
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 58, 237, 0.12);
    border: 1px solid rgba(108, 58, 237, 0.25);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-3);
    margin-bottom: 32px;
    animation: fade-up 0.8s var(--ease-out) both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: dot-blink 2s infinite;
}

@keyframes dot-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

#hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fade-up 0.8s 0.1s var(--ease-out) both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-2), var(--accent-3), #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fade-up 0.8s 0.2s var(--ease-out) both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fade-up 0.8s 0.3s var(--ease-out) both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    animation: fade-up 0.8s 0.4s var(--ease-out) both;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    box-shadow: 0 4px 20px rgba(108, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 58, 237, 0.4);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: 14px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================================
   SOCIAL PROOF BAR
   ============================================================ */

#proof {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.proof-bar {
    text-align: center;
}

.proof-bar p {
    color: var(--text-muted);
    font-size: 1rem;
    font-style: italic;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-2);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

/* ============================================================
   TOOLS SECTION
   ============================================================ */

#tools {
    padding: var(--section-pad) 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    transition: all 0.35s var(--ease-out);
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-1), var(--accent-2), transparent);
    opacity: 0;
    transition: opacity 0.35s;
}

.tool-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.tool-badge-soon {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-3);
    border-color: rgba(168, 85, 247, 0.2);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.tool-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.tool-tagline {
    color: var(--accent-3);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.tool-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tool-replaces {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.8rem;
}

.replaces-label {
    color: var(--text-muted);
}

.replaces-app {
    color: var(--accent-3);
    font-weight: 500;
}

.tool-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tool-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ============================================================
   PRICING SECTION
   ============================================================ */

#pricing {
    padding: var(--section-pad) 0;
}

.pricing-card {
    max-width: 480px;
    margin: 0 auto 60px;
    background: var(--bg-card);
    border: 1px solid rgba(108, 58, 237, 0.3);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108, 58, 237, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-plan {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-3);
    margin-bottom: 24px;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.pricing-currency {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.pricing-number {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-period {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-primary);
}

.check {
    color: var(--success);
    font-weight: 700;
    font-size: 1.1rem;
}

.pricing-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Price comparison */
.pricing-compare {
    max-width: 600px;
    margin: 0 auto;
}

.pricing-compare h4 {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.compare-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.compare-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-card);
    border-radius: 0;
    font-size: 0.95rem;
}

.compare-item:first-child {
    border-radius: 12px 12px 0 0;
}

.compare-app {
    color: var(--text-secondary);
}

.compare-price {
    color: var(--text-muted);
    font-weight: 500;
}

.compare-total {
    border-top: 2px solid var(--border);
}

.compare-total .compare-app,
.compare-total .compare-price {
    color: var(--text-primary);
    font-weight: 600;
}

.compare-peak {
    background: linear-gradient(135deg, rgba(108, 58, 237, 0.15), rgba(168, 85, 247, 0.1));
    border-radius: 0 0 12px 12px;
    border: 1px solid rgba(108, 58, 237, 0.3);
}

.compare-peak .compare-app {
    color: var(--accent-3);
    font-weight: 700;
}

.compare-peak .compare-price {
    color: var(--accent-2);
    font-weight: 700;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */

#faq {
    padding: var(--section-pad) 0;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 0;
    overflow: hidden;
}

.faq-item:first-child {
    border-radius: 16px 16px 0 0;
}

.faq-item:last-child {
    border-radius: 0 0 16px 16px;
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    transition: color 0.2s;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.3s var(--ease-out);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--accent-2);
}

.faq-item summary:hover {
    color: var(--accent-3);
}

.faq-item p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    animation: faq-open 0.3s var(--ease-out);
}

@keyframes faq-open {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   DOWNLOAD / CTA SECTION
   ============================================================ */

#download {
    padding: var(--section-pad) 0;
}

.download-card {
    background: linear-gradient(135deg, rgba(108, 58, 237, 0.08), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(108, 58, 237, 0.2);
    border-radius: 28px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 58, 237, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.download-card h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.download-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
    position: relative;
}

.download-actions {
    margin-bottom: 16px;
    position: relative;
}

.download-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */

#footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand .logo-text {
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-col a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 968px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 80px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    #hero {
        padding: 140px 0 60px;
    }

    .hero-stats {
        gap: 24px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pricing-card {
        padding: 36px 28px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 32px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .download-card {
        padding: 48px 24px;
    }
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.tool-card,
.pricing-card,
.faq-item,
.download-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.tool-card.visible,
.pricing-card.visible,
.faq-item.visible,
.download-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.tool-card:nth-child(2) {
    transition-delay: 0.1s;
}

.tool-card:nth-child(3) {
    transition-delay: 0.2s;
}

.tool-card:nth-child(4) {
    transition-delay: 0.1s;
}

.tool-card:nth-child(5) {
    transition-delay: 0.2s;
}

.tool-card:nth-child(6) {
    transition-delay: 0.3s;
}