/*
 * Plasma Pay Calculator - Design System
 * Brand: Deep Teal + Yellow Gold
 * Typography: Libre Baskerville (headlines) + Outfit (body)
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    /* Brand Colors */
    --deep-teal: #0D4F4F;
    --teal-light: #1A6B6B;
    --teal-dark: #083939;

    /* Accent - Yellow Gold */
    --gold: #FBBF24;
    --gold-light: #FDE68A;
    --gold-dark: #D97706;

    /* Neutrals */
    --cream: #FFFBF5;
    --cream-dark: #FEF3E2;
    --charcoal: #1A1A1A;
    --gray: #6B6B6B;
    --gray-light: #9A9A9A;
    --white: #FFFFFF;

    /* Semantic */
    --success: #22C55E;
    --success-light: #DCFCE7;
    --error: #EF4444;
    --error-light: #FEE2E2;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(13, 79, 79, 0.92) 0%, rgba(26, 107, 107, 0.88) 100%);
    --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #FFFBF5 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 100px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
}

/* ============================================
   Base Reset & Typography
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

a {
    color: var(--deep-teal);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all var(--transition-slow);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-normal);
}

.nav.scrolled .logo {
    color: var(--deep-teal);
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
}

.nav.scrolled .nav-links a {
    color: var(--charcoal);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-cta {
    background: var(--gold) !important;
    color: var(--charcoal) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--gold-light) !important;
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav.scrolled .mobile-toggle {
    color: var(--charcoal);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--gold);
    color: var(--charcoal);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--deep-teal);
    border: 2px solid var(--deep-teal);
}

.btn-secondary:hover {
    background: var(--deep-teal);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-premium {
    background: var(--gradient-card);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.card-teal {
    background: var(--deep-teal);
    color: var(--white);
}

.card-teal h1,
.card-teal h2,
.card-teal h3,
.card-teal h4 {
    color: var(--white);
}

.card-teal p {
    color: rgba(255,255,255,0.8);
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 5rem 2rem;
}

.section-sm {
    padding: 3rem 2rem;
}

.section-lg {
    padding: 8rem 2rem;
}

.section-teal {
    background: var(--deep-teal);
    color: var(--white);
}

.section-teal h1,
.section-teal h2,
.section-teal h3 {
    color: var(--white);
}

.section-cream {
    background: var(--cream-dark);
}

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

.container-lg {
    max-width: 1400px;
    margin: 0 auto;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--gray-light);
    line-height: 1.7;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--gray-light);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--gray-light);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* Advertise Banner */
.advertise-banner {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.advertise-banner p {
    color: var(--charcoal);
    font-weight: 600;
    margin: 0;
}

.advertise-banner a {
    background: var(--charcoal);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.advertise-banner a:hover {
    background: var(--white);
    color: var(--charcoal);
}

/* ============================================
   Forms & Inputs
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--charcoal);
}

.form-input,
.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    border: 2px solid #E5E5E5;
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--charcoal);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--deep-teal);
    box-shadow: 0 0 0 4px rgba(13, 79, 79, 0.1);
}

.form-input::placeholder {
    color: var(--gray-light);
}

/* ============================================
   Badges & Tags
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-gold {
    background: rgba(251, 191, 36, 0.15);
    color: var(--gold-dark);
}

.badge-teal {
    background: rgba(13, 79, 79, 0.1);
    color: var(--deep-teal);
}

.badge-success {
    background: var(--success-light);
    color: #166534;
}

/* ============================================
   Trust Indicators
   ============================================ */
.trust-badges {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-badge-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.trust-badge-text strong {
    display: block;
    font-size: 1.1rem;
}

.trust-badge-text span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-teal { color: var(--deep-teal); }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-gray { color: var(--gray); }

.bg-teal { background: var(--deep-teal); }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.hidden { display: none; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.4s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--charcoal) !important;
    }

    .mobile-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .advertise-banner {
        flex-direction: column;
        text-align: center;
    }

    .trust-badges {
        justify-content: center;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .section-lg {
        padding: 5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .btn {
        width: 100%;
    }

    .card {
        padding: 1.5rem;
    }
}
