/* CSS for CashClaw AI Landing Page */

:root {
    --dark-bg: #18181b;
    --primary-red: #ff2d2d;
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    background-color: var(--dark-bg);
    color: #ffffff;
    font-family: 'Inter', sans-serif; /* A modern, clean font */
    margin: 0;
    /* Apply word wrapping globally */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
header {
    background-color: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

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

.header-logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

header nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

header nav a {
    color: #aaa;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #fff;
}

header .button {
    padding: 10px 20px; /* Smaller button for the header */
}

section[id] {
  scroll-margin-top: 100px; /* Adjust based on header height */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section .container {
    max-width: 100%;
}

.hero {
    background-image: linear-gradient(rgba(24, 24, 27, 0.7), rgba(24, 24, 27, 0.7)), url('hero-background.png');
    background-size: cover;
    background-position: center;
    padding: 150px 0;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, var(--dark-bg));
}

.hero h1 {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.button {
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
    display: inline-block;
}

.button-primary {
    background-color: var(--primary-red);
    color: #ffffff;
}

.button-secondary {
    border: 2px solid #fff;
    color: #fff;
}

.trust-bar {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.trust-bar p {
    margin-bottom: 20px;
    color: #aaa;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.logo-item {
    font-size: 22px;
    color: #777;
    font-weight: bold;
}

.what-is {
    padding: 100px 0;
    text-align: center;
}

.what-is h2 {
    font-size: 48px;
    margin-bottom: 30px;
}

.what-is p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.how-it-works {
    padding: 100px 0;
    background-color: #1a1a1a;
}

.how-it-works .container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.step {
    text-align: center;
}

.step h3 {
    font-size: 24px;
    color: var(--primary-red);
}

.step h4 {
    font-size: 28px;
    margin-bottom: 15px;
}

.cta-button-container {
    text-align: center;
    margin-top: 50px;
}

.viral-proof {
    padding: 100px 0;
    text-align: center;
}

.viral-proof h2 {
    font-size: 16px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.live-counter {
    font-size: 120px;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.viral-proof > .container > p {
    font-size: 20px;
    color: #aaa;
    margin-bottom: 50px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat-item strong {
    font-size: 48px;
    font-weight: bold;
    display: block;
}

.stat-item span {
    font-size: 18px;
    color: #aaa;
}

.why-cashclaw {
    padding: 100px 0;
    background-color: #1a1a1a;
}

.why-cashclaw h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 50px;
}

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

.grid-item {
    background-color: #222;
    padding: 40px;
    border-radius: 10px;
}

.grid-item h4 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-red);
}

.grid-item p {
    font-size: 18px;
    line-height: 1.6;
}

.testimonials {
    padding: 100px 0;
}

blockquote {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    border-left: 5px solid var(--primary-red);
    padding-left: 40px;
}

blockquote p {
    font-size: 28px;
    font-style: italic;
    line-height: 1.5;
}

blockquote footer {
    margin-top: 20px;
    font-size: 18px;
    color: #aaa;
}

.testimonial-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    text-align: center;
}

.testimonial-stat-item strong {
    font-size: 48px;
    font-weight: bold;
    display: block;
    color: var(--primary-red);
}

.testimonial-stat-item span {
    font-size: 18px;
    color: #aaa;
}

.use-cases {
    padding: 100px 0;
    background-color: #1a1a1a;
}

.use-cases h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 50px;
}

.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.tab-link {
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    padding: 15px 30px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-link.active {
    color: #fff;
    border-bottom-color: var(--primary-red);
}

.tab-content {
    display: none;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 20px;
    line-height: 1.6;
}

.tab-content.active {
    display: block;
}

.security {
    padding: 100px 0;
    text-align: center;
}

.security h2 {
    font-size: 48px;
    margin-bottom: 30px;
}

.security p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.text-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

.final-cta {
    padding: 100px 0;
    text-align: center;
    background-color: #000;
}

.final-cta h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 20px;
    margin-bottom: 40px;
    color: #aaa;
}

footer {
    padding: 50px 0;
    border-top: 1px solid #333;
}

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

.footer-logo {
    font-size: 24px;
    font-weight: bold;
}

.footer-links a, .social-icons a {
    color: #aaa;
    text-decoration: none;
    margin: 0 15px;
}

.footer-bottom {
    text-align: center;
    color: #777;
}

/* General Page Styles */
.page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 20px 60px;
    text-align: center;
}

.content-wrapper {
    max-width: 800px;
    width: 100%;
}

.page-container h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(45deg, var(--primary-red), #ff7b7b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-container .subtitle {
    font-size: 20px;
    color: #a0a0a0;
    margin-bottom: 60px;
}

/* Thank You & Payments Page Specifics */
.thank-you-page, .payments-page {
    background: #111;
}

.download-section, .payment-section, .dfy-section, .faq-section {
    background: var(--dark-bg);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid #333;
}

.download-section h2, .payment-section h2, .dfy-section h2, .faq-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #fff;
}

.download-section p, .payment-section p, .dfy-section p, .faq-section p {
    font-size: 18px;
    color: #a0a0a0;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 25px;
}

.button.button-secondary {
    background-color: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
}

.button.button-special {
    background: linear-gradient(45deg, #ff2d2d, #ff7b7b);
    border: none;
}

.secure-note {
    font-size: 14px !important;
    color: #777 !important;
}

.faq-item {
    text-align: left;
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 20px;
}

.faq-item:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.faq-item h4 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Aggressive Mobile Reset */
    body, html {
        width: 100%;
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    h2 {
        font-size: 28px;
    }

    .live-counter {
        font-size: 12vw;
        line-height: 1;
    }

    .stats h3,
    .testimonial-stats h3 {
        font-size: 28px;
    }

    blockquote p {
        font-size: 18px;
    }

    header .container {
        flex-direction: column;
        gap: 15px;
    }

    header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    header nav a {
        font-size: 12px;
        padding: 5px 8px;
    }

    header nav .button {
        padding: 8px 12px;
    }

    .how-it-works .container,
    .stats,
    .testimonial-stats,
    .footer-content,
    .grid {
        flex-direction: column;
        gap: 40px;
    }

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

    .live-counter {
        font-size: min(10vw, 48px); /* Dynamic font size */
        word-break: break-all;
    }

    blockquote p {
        font-size: 22px;
    }

    .stats h3,
    .testimonial-stats h3 {
        font-size: 32px;
    }

    .logos {
        flex-wrap: wrap;
        gap: 30px;
    }

    .logos svg {
        max-width: 80px;
        height: auto;
    }

    .tab-links-showcase {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        border-bottom: none;
    }

    .tab-link-showcase {
        text-align: center;
        padding-bottom: 15px;
        white-space: normal; /* Allow text to wrap */
    }

    /* Universal fix for flexbox children overflow */
    .how-it-works .container > *,
    .stats > *,
    .testimonial-stats > * {
        min-width: 0;
    }
}
