:root {
    --bg-color: #050505;
    --surface-color: #0f0f0f;
    --surface-hover: #161616;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-color: #aa1111;
    /* Discreet dark red */
    --accent-hover: #cc1515;
    --border-color: #222222;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.display-text {
    font-size: clamp(3rem, 5vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: clamp(2rem, 3vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.text-lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 60ch;
    font-weight: 300;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
    color: var(--text-primary);
    text-decoration: none;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: #cccccc;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--text-primary);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg-color);
}

/* Very subtle abstract shapes or grain could be added here */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-md);
}

.stat-item h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.stat-item p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Bento Grid Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    grid-auto-rows: minmax(200px, auto);
}

.bento-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-card:hover {
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.card-lg {
    grid-column: span 8;
}

.card-md {
    grid-column: span 4;
}

.card-sm {
    grid-column: span 3;
}

@media (max-width: 900px) {

    .card-lg,
    .card-md,
    .card-sm {
        grid-column: span 12;
    }
}

.card-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* "The Problem" Section (Dark minimalist) */
.problem-section {
    background: var(--surface-color);
    position: relative;
}

.problem-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 800px;
}

.problem-tag {
    color: var(--accent-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Services List (Minimal) */
.service-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
}

.service-row:hover {
    padding-left: 1rem;
    padding-right: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.service-info {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.service-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.25rem;
    padding-top: 0.5rem;
}

.service-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-row h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.service-row:hover h3 {
    color: var(--text-primary);
}

.service-description {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.5;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.service-row:hover .service-description {
    opacity: 1;
}

.service-row .arrow {
    margin-top: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.service-row:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .service-info {
        gap: 1.5rem;
    }

    .service-num {
        font-size: 1rem;
    }

    .service-row h3 {
        font-size: 2rem;
    }

    .service-description {
        font-size: 1rem;
    }
}

/* Contact Form */
.contact-section {
    position: relative;
    border-top: 1px solid var(--border-color);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Footer */
footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Circular Text Animation */
.circular-text-container {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    cursor: pointer;
}

.circular-text {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: spin 20s linear infinite;
}

.circular-text span {
    position: absolute;
    left: 50%;
    top: 0;
    transform-origin: 0 100px;
    /* Half of container height (radius) */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.circular-center-icon {
    position: absolute;
    z-index: 2;
    font-size: 2rem;
    color: var(--accent-color);
}

.circular-text-container:hover .circular-text {
    animation-duration: 5s;
    /* Speed up on hover */
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Guarantee Section */
.guarantee-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

/* True Focus Effect */
.focus-container {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
    gap: 0.5rem;
    /* Space between words */
    justify-content: center;
    align-items: center;
}

.focus-word {
    position: relative;
    cursor: default;
    transition: filter 0.3s ease, opacity 0.3s ease;
    filter: blur(4px);
    /* Default blur amount */
    opacity: 0.5;
}

.focus-word.active {
    filter: blur(0px) !important;
    opacity: 1;
}

.focus-frame {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    background: transparent;
    transition: all 0.3s ease;
    /* Smooth movement */
    opacity: 0;
    /* Hidden initially until activated */
    box-sizing: content-box;
    /* Important for padding calculations if added */
}

/* Frame Corners */
.corner {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    border-color: var(--accent-color);
    border-style: solid;
    transition: all 0.3s ease;
}

.corner.top-left {
    top: -4px;
    left: -4px;
    border-width: 2px 0 0 2px;
}

.corner.top-right {
    top: -4px;
    right: -4px;
    border-width: 2px 2px 0 0;
}

.corner.bottom-left {
    bottom: -4px;
    left: -4px;
    border-width: 0 0 2px 2px;
}

.corner.bottom-right {
    bottom: -4px;
    right: -4px;
    border-width: 0 2px 2px 0;
}

/* Scroll Reveal Effect */
.scroll-reveal {
    perspective: 1000px;
    /* needed for 3D rotation */
}

.scroll-reveal .word {
    display: inline-block;
    white-space: pre;
    /* Keep spaces */
    will-change: transform, opacity, filter;
}

/* Light Rays Effect */
#light-rays-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind content, inside hero-bg which is z-index -1, wait. Hero-bg is div. */
    pointer-events: none;
    opacity: 0.6;
    /* Adjustable intensity */
}

/* Optional: Add a subtle glow to the frame/text if desired, matches "glowColor" prop logic */
.focus-word.active {
    text-shadow: 0 0 10px rgba(170, 17, 17, 0.4);
    /* subtle red glow */
}

/* Glass Effect for POTÊNCIA word */
.glass-effect-word {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg,
            rgba(170, 17, 17, 0.1) 0%,
            rgba(170, 17, 17, 0.05) 50%,
            rgba(170, 17, 17, 0.1) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.1em 0.2em;
    border-radius: 0.1em;
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.05),
        0 0 20px rgba(170, 17, 17, 0.2);
    animation: glassShimmer 3s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.glass-effect-word::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    animation: glassSlide 3s ease-in-out infinite;
}

.glass-effect-word:hover {
    transform: translateZ(10px) scale(1.02);
}

@keyframes glassShimmer {

    0%,
    100% {
        box-shadow:
            inset 0 0 20px rgba(255, 255, 255, 0.05),
            0 0 20px rgba(170, 17, 17, 0.2);
    }

    50% {
        box-shadow:
            inset 0 0 30px rgba(255, 255, 255, 0.1),
            0 0 30px rgba(170, 17, 17, 0.4);
    }
}

@keyframes glassSlide {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* MAN PRO PRIME Section Styles */
.prime-section {
    background: url('assets/prime-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    border-top: 1px solid rgba(170, 17, 17, 0.4);
    border-bottom: 1px solid rgba(170, 17, 17, 0.4);
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 10vh;
}

.prime-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.7) 0%, transparent 30%, transparent 70%, rgba(5, 5, 5, 0.7) 100%);
    pointer-events: none;
    z-index: 1;
}

.prime-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.prime-content {
    /* Container for spacing if needed, but text is now in BG */
    margin-bottom: 1rem;
}

.btn-prime {
    background: linear-gradient(135deg, var(--accent-color), #880000);
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(170, 17, 17, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-prime:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(170, 17, 17, 0.5);
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
}

@media (max-width: 900px) {
    .btn-prime {
        width: 100%;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #20ba5a;
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Biblioteca Gamification */
.lib-progress-container {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 3rem;
}

.lib-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lib-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.lib-progress-fill {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--accent-color);
}

.complete-btn {
    margin-top: 1rem;
    padding: 0.75rem;
    font-size: 0.75rem;
    width: 100%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.complete-btn.active {
    background: rgba(170, 17, 17, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.complete-btn:hover {
    border-color: var(--text-secondary);
}

/* Global Navigation Updates */
.nav-links a.active {
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
}

/* Page Hero (Subpages) */
.page-hero {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    background: linear-gradient(180deg, #0a0a0a 0%, var(--bg-color) 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

/* Checkout & Forms */
.checkout-container {
    max-width: 1000px;
    margin: var(--spacing-lg) auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    padding: 0 var(--spacing-md);
}

.checkout-card {
    background: var(--surface-color);
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.order-summary {
    background: #0a0a0a;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.summary-total {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.security-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    opacity: 0.6;
    font-size: 0.8rem;
    align-items: center;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: var(--spacing-lg) auto;
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-content h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.legal-content p {
    margin-bottom: 1.5rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }
}