:root {
    --bg-dark: #050507;
    --bg-light: #f5f5f7;
    --text-light: #f5f5f7;
    --text-dark: #1d1d1f;

    --accent-blue: #0044ff;
    --accent-vibrant: #2d6eff;
    --accent-glow: rgba(45, 110, 255, 0.7);

    --card-bg-dark: rgba(255, 255, 255, 0.03);
    --card-bg-light: #ffffff;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.8s ease, color 0.5s ease;
}

body.light-mode {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-border {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
}

.page-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--accent-blue), #8A2BE2, var(--accent-vibrant), #000) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0.5;
    animation: borderRotate 10s linear infinite;
    background-size: 300% 300%;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
        opacity: 0.3;
    }

    50% {
        background-position: 100% 50%;
        opacity: 0.6;
    }

    100% {
        background-position: 0% 50%;
        opacity: 0.3;
    }
}

h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.text-highlight {
    color: var(--accent-vibrant);
    text-shadow: 0 0 20px rgba(45, 110, 255, 0.5);
    font-weight: 700;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #0c0c14 0%, #000 100%);
}

.hero-content {
    z-index: 10;
    padding: 20px;
    position: relative;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    line-height: 1;
    color: #fff;
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-vibrant));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px var(--accent-glow);
    border: none;
}

.cta-button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    mix-blend-mode: screen;
    animation: floatOrb 15s infinite alternate ease-in-out;
}

.orb-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 68, 255, 0.4) 0%, transparent 60%);
    top: -20%;
    left: -10%;
}

.orb-2 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(80, 50, 255, 0.3) 0%, transparent 60%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.2) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseGlow 8s infinite alternate;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 2rem;
    animation: floatParticle 10s infinite ease-in-out;
}

.icon-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    font-size: 3rem;
}

.icon-2 {
    top: 70%;
    left: 15%;
    animation-delay: -3s;
    font-size: 1.5rem;
}

.icon-3 {
    top: 30%;
    right: 25%;
    animation-delay: -5s;
    font-size: 2.5rem;
}

.icon-4 {
    bottom: 20%;
    right: 10%;
    animation-delay: -7s;
    font-size: 4rem;
    opacity: 0.05;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, -40px) rotate(10deg);
    }
}

section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.services .section-header {
    text-align: center;
    margin-bottom: 80px;
}

.services h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.services .subtitle {
    font-size: 1.3rem;
    opacity: 0.7;
}

.value-prop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.prop-card {
    padding: 40px;
    border-radius: 20px;
    background: var(--card-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

body.light-mode .prop-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.prop-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.prop-card p {
    opacity: 0.7;
}

/* Timeline Popups */
.process h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 80px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.line-container {
    position: absolute;
    left: 29px;
    top: 30px;
    bottom: 30px;
    width: 3px;
    z-index: 0;
}

.line-background {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--accent-vibrant);
    box-shadow: 0 0 20px var(--accent-vibrant);
    transition: height 0.1s linear;
}

.step {
    display: flex;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.step.active {
    opacity: 1;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin-right: 40px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: #fff;
    position: relative;
}

.step.active .step-icon {
    background: var(--accent-vibrant);
    border-color: var(--accent-vibrant);
    color: #fff;
    box-shadow: 0 0 30px var(--accent-glow);
    transform: scale(1.1);
}

.timeline-popup {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    background: #fff;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.step.active .timeline-popup {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    left: 90px;
}

.timeline-popup::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}

.step-content h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.step-content p {
    opacity: 0.7;
    font-size: 1.1rem;
}

/* Pricing */
.pricing {
    text-align: center;
}

.reveal-btn {
    background: transparent;
    border: 1px solid currentColor;
    color: #1d1d1f;
    padding: 18px 45px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reveal-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.pricing-content.hidden {
    display: none;
}

.pricing-content {
    margin-top: 50px;
    animation: fadeInUp 0.8s ease forwards;
}

.price-main-card {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: 40px;
    padding: 60px 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header h3 {
    font-size: 2rem;
    color: #1d1d1f;
    margin-bottom: 30px;
    line-height: 1.2;
}

.price-display {
    margin-bottom: 40px;
    color: var(--accent-blue);
}

.price-display .currency {
    font-size: 2rem;
    vertical-align: top;
    margin-right: 5px;
    font-weight: 600;
}

.price-display .amount {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -2px;
}

.payment-details {
    margin-bottom: 40px;
}

.pix-note {
    font-size: 1.1rem;
    color: #1d1d1f;
    font-weight: 500;
    margin-bottom: 5px;
}

.highlight-green {
    color: #00a000;
    background: rgba(0, 160, 0, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 700;
}

.divider {
    font-size: 0.9rem;
    color: #888;
    margin: 8px 0;
}

.credit-note {
    font-size: 1rem;
    color: #555;
}

.select-plan-btn {
    display: block;
    width: 100%;
    padding: 22px;
    background: #1d1d1f;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s;
    margin-bottom: 20px;
}

.select-plan-btn:hover {
    transform: scale(1.02);
    background: #000;
}

.invoice-note {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.check-icon {
    color: #00a000;
    font-weight: bold;
}

.addon-card {
    position: relative;
    margin-top: 20px;
    background: #fbfbfd;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    width: 100%;
}

.addon-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--accent-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.addon-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.3;
}

.addon-text strong {
    color: #1d1d1f;
    display: block;
}

/* About Me - Logo Overlay */
.about {
    background: #000;
    color: #fff;
    margin-bottom: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.about-image:hover img {
    filter: grayscale(0%);
}

.logo-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 150px;
    opacity: 0.8;
}

.momento-logo {
    width: 100%;
    height: auto;
    filter: brightness(0);
    /* Force black logo */
}

@media (max-width: 768px) {
    .logo-overlay {
        width: 100px;
        /* Smaller on mobile */
        bottom: 10px;
        right: 10px;
    }
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.about-text h3 {
    font-size: 1.1rem;
    color: var(--accent-vibrant);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

footer {
    background: #000;
    padding: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .container {
        padding: 0 30px;
        /* Safe zone from edges */
    }

    .hero-content {
        padding: 0 30px;
    }

    .page-border {
        display: none;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Timeline adjustments */
    .timeline {
        padding-left: 0;
    }

    .line-container {
        left: 15px;
    }

    .step-icon {
        margin-right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .timeline-popup {
        display: none;
    }

    /* Pricing adjustments */
    .price-main-card {
        padding: 40px 25px;
    }

    .price-display .amount {
        font-size: 3.5rem;
    }

    .floating-icon {
        display: none;
    }

    .addon-card {
        flex-direction: column;
        text-align: center;
    }
}