:root {
    --orange: #ff7900;
    --orange2: #ffad45;
    --orange-dark: #cc6100;
    --dark: #070707;
    --dark-surface: #111111;
    --dark-elevated: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #777777;
    
    --max: 980px;
    --glass-bg: rgba(17, 17, 17, 0.6);
    --glass-border: rgba(255, 121, 0, 0.2);
    --glass-border-hover: rgba(255, 121, 0, 0.5);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(var(--max), 92%);
    margin: auto;
}

/* Typography */
h1, h2, h3, h4, .amount {
    font-family: var(--font-heading);
}

/* Glassmorphism utility */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.glass-effect:hover {
    border-color: var(--glass-border-hover);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 121, 0, 0.1);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.brand h1 {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.1em;
    background: linear-gradient(90deg, #fff, var(--orange2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand p {
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

.menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.menu a:hover {
    color: var(--orange);
}

.menu .btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange2));
    color: #000;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 121, 0, 0.3);
}

.menu .btn-primary:hover {
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 121, 0, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background-image: url("../fundolouvor.jpg");
    background-position: center 20%;
    background-size: cover;
    background-repeat: no-repeat;
    margin-bottom: -50px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(7,7,7,0.4) 0%, rgba(7,7,7,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0 120px;
    text-align: center;
}

.hero-title {
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-title span {
    color: var(--orange);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Campaign Section */
.campaign {
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card {
    padding: 40px;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.value-item {
    text-align: center;
}

.label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.amount {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1;
    font-weight: 900;
}

.goal {
    color: var(--orange);
    text-shadow: 0 0 30px rgba(255, 121, 0, 0.3);
}

.progress-wrapper {
    margin-top: 35px;
}

.progress-bar {
    height: 16px;
    overflow: hidden;
    border-radius: 100px;
    background: #222;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
    position: relative;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--orange), var(--orange2));
    border-radius: 100px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    margin-top: 12px;
    text-align: right;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

/* PIX Section */
.pix-section {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.pix-info {
    max-width: 500px;
}

.pix-title {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 20px;
}

.pix-title span {
    color: var(--orange);
}

.pix-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.qr-card {
    width: 220px;
    height: 220px;
    padding: 15px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 4px var(--orange);
}

.qr-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-copy-pix {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 100px;
    background: var(--dark-elevated);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy-pix:hover {
    background: var(--orange);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 121, 0, 0.3);
}

.btn-copy-pix.success {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
}

/* Contribution Form */
.contrib-box {
    width: 320px;
}

[hidden] {
    display: none !important;
}

.contrib-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.field span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.field input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: var(--dark-elevated);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.2);
}

.field .money-input {
    position: relative;
    display: block;
    margin: 0;
    font-size: inherit;
    letter-spacing: normal;
    text-transform: none;
}

.money-input em {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--orange);
    font-family: var(--font-heading);
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
}

.money-input input {
    padding-left: 48px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
}

.form-error {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 14px;
}

.btn-contribuir {
    padding: 16px 24px;
    border: none;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--orange), var(--orange2));
    color: #000;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 121, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-contribuir:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 121, 0, 0.45);
}

.btn-contribuir:disabled {
    opacity: 0.7;
    cursor: wait;
}

.form-note {
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

.pix-amount {
    color: var(--text-secondary);
}

.pix-amount strong {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 20px;
}

.pix-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}

.pix-status .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--orange);
    animation: pulse 1.4s infinite ease-in-out;
}

.pix-status.expired {
    color: #fca5a5;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

.btn-link {
    border: none;
    background: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.btn-link:hover {
    color: var(--orange);
}

.thanks-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.thanks-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
}

.thanks-box h4 {
    font-size: 24px;
    font-weight: 900;
}

.thanks-box p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 40px;
}

.footer p {
    font-weight: 600;
    color: var(--text-secondary);
}

.footer small {
    color: var(--text-muted);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 860px) {
    .pix-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 20px;
    }
    
    .pix-info {
        margin: 0 auto;
    }

    .contrib-box {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    
    .menu {
        position: absolute;
        top: 80px;
        right: 4%;
        background: var(--glass-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        flex-direction: column;
        padding: 20px;
        width: 200px;
        gap: 15px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    .menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .card {
        padding: 24px 20px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .hero-content {
        padding: 40px 20px 80px;
    }
}
