/* ===========================
   DOWNPOUR V2 — Light Mode
   ========================= */

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --white: #ffffff;
    --bg: var(--white);
    --bg-alt: var(--gray-50);
    --text: var(--gray-900);
    --text-secondary: var(--gray-500);
    --text-muted: var(--gray-400);
    --border: var(--gray-200);
    --accent: var(--blue-600);
    --accent-light: var(--blue-50);

    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-blue: 0 4px 20px rgba(37, 99, 235, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 800;
    color: var(--gray-900);
}

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

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

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


/* ===========================
   ANIMATIONS
   ========================= */

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

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

@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}


/* ===========================
   NAVBAR
   ========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.navbar.scrolled {
    border-bottom-color: var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--gray-900);
    z-index: 1001;
}

.logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

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

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s;
}

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

.nav-cta {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 100px;
    background: var(--accent);
    color: white;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--blue-700);
    box-shadow: var(--shadow-blue);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-800);
    margin: 5px 0;
    transition: all 0.2s;
}


/* ===========================
   BUTTONS
   ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    background: var(--blue-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-800);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
}


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

.hero {
    padding: 160px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--blue-700);
    background: var(--white);
    border: 1px solid var(--blue-200);
    padding: 8px 18px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.badge-icon {
    font-size: 0.9rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-ctas {
    margin-bottom: 12px;
}

.hero-caption {
    font-size: 0.82rem;
    color: var(--gray-400);
    margin-top: 12px;
    margin-bottom: 44px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gray-900);
    display: inline;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gray-900);
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--gray-200);
}


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

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    text-align: center;
    max-width: 520px;
    margin: 0 auto 56px;
}

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


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

.how-it-works {
    padding: 100px 0 120px;
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.step-card {
    flex: 1;
    max-width: 300px;
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card:hover {
    border-color: var(--blue-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 20px;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

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

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.step-arrow {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    color: var(--gray-300);
    margin-top: 80px;
    font-weight: 300;
}


/* ===========================
   VIDEO SHOWCASE
   ========================= */

.showcase {
    padding: 100px 0 40px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.showcase>.container {
    margin-bottom: 48px;
}

.showcase-panel {
    padding: 0 24px 60px;
}

.showcase-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    max-width: 1300px;
    margin: 0 auto;
}

.showcase-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.showcase-reverse {
    direction: ltr;
}

.showcase-reverse>* {
    direction: ltr;
}

.showcase-video {
    width: 100%;
    margin-bottom: 36px;
}

.showcase-video video {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.showcase-step {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-light);
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.showcase-text {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 24px;
}

.showcase-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.showcase-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
}

.showcase-muted {
    font-size: 0.88rem;
    color: var(--gray-400);
    font-style: italic;
}


/* ===========================
   TESTIMONIALS
   ========================= */

.testimonials {
    padding: 100px 0 0;
    background: var(--bg-alt);
}

.featured-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.featured-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.featured-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.featured-metric {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 2px;
}

.featured-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 16px;
}

.featured-card blockquote {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 16px;
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
}

.author-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}


/* Marquee */
.marquee-section {
    padding: 40px 0 80px;
    overflow: hidden;
}

.marquee-track {
    overflow: hidden;
    margin-bottom: 16px;
}

.marquee-content {
    display: flex;
    gap: 16px;
    width: max-content;
}

.marquee-row-1 .marquee-content {
    animation: marquee-left 40s linear infinite;
}

.marquee-row-2 .marquee-content {
    animation: marquee-right 45s linear infinite;
}

.marquee-card {
    flex-shrink: 0;
    width: 340px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
}

.marquee-card blockquote {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 10px;
}

.mc-author {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-800);
}


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

.features {
    padding: 100px 0;
}

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

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

.feature-card:hover {
    border-color: var(--blue-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

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

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


/* ===========================
   TEMPEST
   ========================= */

.tempest {
    padding: 100px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tempest-layout {
    max-width: 650px;
    margin: 0 auto;
}

.tempest-content .section-title {
    text-align: left;
}

.tempest-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.tempest-stats {
    display: flex;
    gap: 32px;
    margin-top: 28px;
}

.ts {
    font-size: 0.85rem;
    color: var(--gray-600);
    padding: 10px 18px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
}

.ts strong {
    color: var(--accent);
}


/* ===========================
   FOUNDER
   ========================= */

.founder {
    padding: 100px 0;
}

.founder-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 56px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.founder-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--blue-100);
    box-shadow: var(--shadow-lg);
}

.founder-content .section-title {
    text-align: left;
}

.founder-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.75;
}

.founder-content strong {
    color: var(--gray-800);
}


/* ===========================
   FAQ
   ========================= */

.faq {
    padding: 100px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.faq-list {
    max-width: 700px;
    margin: 40px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    text-align: left;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--gray-400);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}


/* ===========================
   PRICING
   ========================= */

.pricing {
    padding: 100px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 720px;
    margin: 0 auto 32px;
}

.pricing-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s;
}

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

.pricing-featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-blue);
}

.pricing-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 16px;
    background: var(--accent);
    color: white;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.price {
    margin-bottom: 8px;
}

.currency {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-500);
    vertical-align: top;
}

.price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1;
}

.period {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-400);
}

.price-savings {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}

.pricing-card ul {
    margin: 20px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.pricing-card li {
    font-size: 0.88rem;
    color: var(--gray-600);
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

.guarantee {
    text-align: center;
    font-size: 0.88rem;
    color: var(--gray-500);
}


/* ===========================
   FINAL CTA
   ========================= */

.final-cta {
    padding: 80px 0;
}

.cta-box {
    text-align: center;
    padding: 64px 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
    color: white;
}

.cta-box h2 {
    color: white;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-bottom: 12px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

.cta-box .btn-primary {
    background: white;
    color: var(--accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-box .btn-primary:hover {
    background: var(--gray-50);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}


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

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
}

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

.footer-links a {
    font-size: 0.85rem;
    color: var(--gray-500);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gray-800);
}

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

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--gray-400);
    text-align: center;
}


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

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        justify-content: center;
        align-items: center;
        gap: 24px;
        z-index: 999;
    }

    .nav-links.open a {
        font-size: 1.3rem;
        color: var(--gray-900);
    }

    .hero {
        padding: 140px 0 60px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 0;
    }

    .showcase-inner,
    .showcase-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 28px;
    }

    .showcase-panel {
        padding: 48px 0;
    }

    .featured-testimonials {
        grid-template-columns: 1fr;
    }

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

    .tempest-stats {
        flex-wrap: wrap;
    }

    .founder-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .founder-image img {
        margin: 0 auto;
    }

    .founder-content .section-title {
        text-align: center;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}