/* =========================================
   DOODLEVPN V3.1: TITANIUM-GRADE NEO-BRUTALISM
   ========================================= */

:root {
    /* Color Tokens */
    --color-bg: #f3f4f6;
    --color-card-bg: #ffffff;
    --color-text-main: #0f172a;
    --color-text-muted: #475569;
    --color-dark: #000000;
    --color-accent: #ffd200;
    --color-accent-hover: #ffea70;
    --color-error: #ef4444;
    --color-grid: #cbd5e1;

    /* Spacing & Borders */
    --border-fw: 3px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Strict Brutalist Shadows */
    --shadow-solid: 6px 6px 0px var(--color-dark);
    --shadow-solid-sm: 4px 4px 0px var(--color-dark);
    --shadow-solid-hover: 8px 8px 0px var(--color-dark);
    --shadow-solid-pressed: 0px 0px 0px var(--color-dark);
    
    /* Fluid Typography via clamp(MIN, VAL, MAX) 
       Viewport range: 320px to 1200px (20rem to 75rem) */
    --fs-hero-title: clamp(2rem, 4vw + 1rem, 3.5rem);     /* 32px - 56px */
    --fs-hero-subtitle: clamp(1rem, 1.5vw + 0.5rem, 1.25rem); /* 16px - 20px */
    --fs-section-title: clamp(1.75rem, 3vw + 0.8rem, 2.5rem);  /* 28px - 40px */
    --fs-h3: clamp(1.125rem, 1.5vw + 0.8rem, 1.5rem);         /* 18px - 24px */
    --fs-body: clamp(0.9375rem, 1vw + 0.5rem, 1.0625rem);     /* 15px - 17px */

    /* Fluid Spacing */
    --space-section: clamp(3rem, 6vw + 2rem, 6rem);       /* 48px - 96px */
    --space-card-pad: clamp(1.5rem, 3vw + 0.5rem, 2rem);  /* 24px - 32px */
}

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

html {
    scroll-behavior: smooth;
    /* Prevent sticky header from covering anchor links */
    scroll-padding-top: 100px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: var(--fs-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    
    /* Precision bg grid */
    background-image: radial-gradient(var(--color-grid) 1px, transparent 1px);
    background-size: 24px 24px;
    padding-bottom: 0; /* Updated dynamically via media queries for Mobile CTA */
}

/* Accessibility: Focus visible outline for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

/* Typography Base */
h1, h2, h3, h4, .logo-text, .btn, .step-number, .badge, .price-badge, .marquee-content span {
    font-family: 'Unbounded', display, sans-serif;
    text-transform: uppercase;
    color: var(--color-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 1.5rem);
}

/* =========================================
   REUSABLE TOKENS / COMPONENTS
   ========================================= */

/* Button Physics */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem);
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 14px 28px;
    border: var(--border-fw) solid var(--color-dark);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-solid);
    /* Snappy transform for real tactile feel */
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), 
                background-color 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-solid-hover);
}

.btn:active {
    /* Extreme physical press logic */
    transform: translate(6px, 6px);
    box-shadow: var(--shadow-solid-pressed);
    transition-duration: 0.05s;
}

.btn-primary {
    background-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
}

.btn-outline {
    background-color: var(--color-card-bg);
}

.btn-lg {
    font-size: 1.125rem;
    padding: 20px 40px;
}

.btn-full {
    width: 100%;
}

/* Cards */
.card {
    background-color: var(--color-card-bg);
    border: var(--border-fw) solid var(--color-dark);
    border-radius: var(--radius-md);
    padding: var(--space-card-pad);
    box-shadow: var(--shadow-solid);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
}

/* Standard Badge Tokens */
.badge {
    display: inline-flex;
    padding: 6px 12px;
    background-color: var(--color-card-bg);
    border: 2px solid var(--color-dark);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

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

/* Header Sticky Setup */
.header {
    background-color: var(--color-card-bg);
    border-bottom: var(--border-fw) solid var(--color-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: clamp(1.125rem, 2vw + 1rem, 1.375rem);
    font-weight: 900;
    letter-spacing: 1px;
}

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

.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--color-dark);
    text-decoration: none;
    font-size: 0.9375rem;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-dark);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link:focus-visible::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: var(--space-section) 0;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.hero-content {
    flex: 1.2;
}

.hero-title {
    font-size: var(--fs-hero-title);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: var(--fs-hero-subtitle);
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    margin-bottom: 1rem;
}

.hero-guarantee {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Picture Image Container Optimization */
.image-showcase {
    position: relative;
    width: clamp(250px, 35vw + 100px, 450px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(8px 12px 0px rgba(0,0,0,0.1));
}

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

/* Social Proof Banner */
.social-proof {
    text-align: center;
    padding: 24px 0;
    background: var(--color-card-bg);
    border-top: var(--border-fw) solid var(--color-dark);
    border-bottom: var(--border-fw) solid var(--color-dark);
}

.social-proof-text {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.social-stars {
    color: var(--color-accent);
    letter-spacing: 2px;
    font-size: 1.25rem;
    -webkit-text-stroke: 1px var(--color-dark);
}

/* Content Marquee - Seamless execution */
.marquee-strip {
    background-color: var(--color-dark);
    color: #fff;
    padding: 16px 0;
    border-top: var(--border-fw) solid var(--color-dark);
    border-bottom: var(--border-fw) solid var(--color-dark);
    overflow: hidden;
    position: relative;
    display: flex;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee-scroll 20s linear infinite;
}

/* Pause on hover for a11y */
.marquee-strip:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content span {
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 700;
    padding: 0 16px;
    letter-spacing: 1px;
    color: #fff;
}

@keyframes marquee-scroll {
    to { transform: translateX(calc(-50%)); }
}

/* Generic Section Header */
.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 4rem);
}

.section-title {
    font-size: var(--fs-section-title);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-desc {
    font-size: var(--fs-hero-subtitle);
    color: var(--color-text-muted);
    max-width: 650px;
    margin: 0 auto;
}

/* Features Component */
.features {
    padding: var(--space-section) 0;
}

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

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--color-card-bg);
    border: 3px solid var(--color-dark);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 3px 3px 0 var(--color-dark);
}

.feature-icon {
    width: 32px;
    height: 32px;
    color: var(--color-dark);
}

.feature-card h3 {
    font-size: var(--fs-h3);
    margin-bottom: 1rem;
}

/* Pricing Model - Conversion heavy */
.pricing {
    padding: var(--space-section) 0;
    background-color: var(--color-grid);
    border-top: var(--border-fw) solid var(--color-dark);
    border-bottom: var(--border-fw) solid var(--color-dark);
    /* Dual diagonal stroke background texture */
    background-image: repeating-linear-gradient(45deg, #cbd5e1 25%, transparent 25%, transparent 75%, #cbd5e1 75%, #cbd5e1), 
                      repeating-linear-gradient(45deg, #cbd5e1 25%, var(--color-bg) 25%, var(--color-bg) 75%, #cbd5e1 75%, #cbd5e1);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

.pricing .section-header {
    background: var(--color-card-bg);
    display: inline-block;
    padding: 24px 48px;
    border: var(--border-fw) solid var(--color-dark);
    box-shadow: var(--shadow-solid);
    border-radius: var(--radius-md);
    margin: 0 auto clamp(3rem, 6vw, 4rem);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
    align-items: stretch;
}

.price-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.price-header {
    margin-bottom: 1.5rem;
    border-bottom: 2px dashed var(--color-grid);
    padding-bottom: 1.5rem;
}

.price-header h3 {
    font-size: var(--fs-h3);
    margin-bottom: 0.5rem;
}

.price-header p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 600;
}

.price-value-box {
    margin-bottom: 1.5rem;
}

.price-value {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1;
}

.price-value span {
    font-size: 1.125rem;
}

.price-billing-cycle {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.price-old {
    font-size: 0.875rem;
    color: var(--color-error);
    font-weight: 700;
    text-decoration: line-through;
    margin-top: 4px;
}

.price-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.price-features li {
    padding: 12px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-features li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--color-dark);
    border-radius: 50%;
}

/* Featured Pricing Interlock */
.price-featured {
    background-color: var(--color-dark);
    color: #fff;
    transform: scale(1.03);
    z-index: 2;
}

.price-featured:hover {
    transform: translateY(-4px) scale(1.03);
}

.price-featured .price-header p,
.price-featured .price-old,
.price-featured .price-billing-cycle {
    color: #94a3b8;
}

.price-featured .price-header {
    border-bottom-color: #334155;
}

.price-featured .price-features li::before {
    background-color: var(--color-accent);
}

.price-featured h3, 
.price-featured .price-value {
    color: #fff;
}

.price-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-dark);
    padding: 6px 16px;
    font-size: 0.75rem;
    border: 2px solid var(--color-dark);
    border-radius: 4px;
    font-weight: 900;
    white-space: nowrap;
}

/* Steps Process */
.steps {
    padding: var(--space-section) 0;
}

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

.step-card {
    border-top: var(--border-fw) solid var(--color-dark);
    padding-top: 2rem;
}

.step-number {
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 1rem;
    line-height: 1;
}

.step-card h3 {
    font-size: var(--fs-h3);
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--color-text-muted);
}

/* Bottom CTA Heavy Zone */
.bottom-cta {
    padding: 0 0 var(--space-section);
}

.cta-box {
    background-color: var(--color-accent);
    text-align: center;
    padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem);
}

.cta-title {
    font-size: var(--fs-section-title);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.cta-desc {
    font-size: var(--fs-hero-subtitle);
    font-weight: 500;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Semantic Structure */
.footer {
    background-color: var(--color-card-bg);
    border-top: var(--border-fw) solid var(--color-dark);
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
}

.footer-info p {
    color: var(--color-text-muted);
    margin: 1rem 0 1.5rem;
    max-width: 300px;
}

.copyright {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-heading {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 2px;
    transition: color 0.2s, text-decoration 0.2s;
    width: fit-content;
}

.footer-links a:hover, .footer-links a:focus-visible {
    color: var(--color-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Floating Mobile CTA (Hidden by default, shown on mobile) */
.mobile-floating-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-bg);
    padding: 16px;
    border-top: var(--border-fw) solid var(--color-dark);
    z-index: 1000;
    box-shadow: 0px -10px 30px rgba(0,0,0,0.1);
}

/* =========================================
   MEDIA QUERIES (FLUID FAILSATE)
   ========================================= */

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(1, 1fr);
        max-width: 500px;
        margin: 0 auto;
    }
    
    .price-featured {
        transform: scale(1);
    }

    .price-featured:hover {
        transform: translateY(-4px) scale(1);
    }
    
    .pricing .section-header {
        padding: 24px;
        width: 100%;
        text-align: center;
        left: 0;
        transform: none;
    }

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

@media (max-width: 768px) {
    body {
        padding-bottom: 90px; /* Space for fixed mobile CTA */
    }

    /* Horizontal Native Swipe Carousels for strict Space-Saving */
    .features-grid, .pricing-grid, .steps-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 16px;
        /* Bleed out of the container to allow edge swipe */
        margin-left: calc(-1 * clamp(1rem, 5vw, 1.5rem));
        margin-right: calc(-1 * clamp(1rem, 5vw, 1.5rem));
        padding: 8px clamp(1rem, 5vw, 1.5rem) 24px;
        scrollbar-width: none; /* Firefox */
        -webkit-overflow-scrolling: touch;
    }
    
    .pricing-grid {
        max-width: none; /* Override 1024px rule */
    }
    
    .features-grid::-webkit-scrollbar, 
    .pricing-grid::-webkit-scrollbar, 
    .steps-grid::-webkit-scrollbar {
        display: none;
    }

    .feature-card, .price-card, .step-card {
        flex: 0 0 85%;
        max-width: 320px;
        scroll-snap-align: center;
    }

    /* Small hack to ensure right-side padding when scrolled to end */
    .features-grid::after, .pricing-grid::after, .steps-grid::after {
        content: '';
        flex: 0 0 1px;
    }

    .mobile-floating-cta {
        display: block;
    }

    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    
    .header-nav {
        display: none;
    }
}

