:root {
    /* Midnight Emerald Theme Variables */
    --bg-dark: #070b14;
    --bg-card: rgba(15, 23, 42, 0.6);
    --bg-card-hover: rgba(15, 23, 42, 0.8);
    --primary: #06b6d4;
    --primary-hover: #0891b2;
    --secondary: #3b82f6;
    --accent: #22d3ee;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --border-light: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(6, 182, 212, 0.3);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}

.text-primary {
    color: var(--primary);
}

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

.font-bold {
    font-weight: bold;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* Glassmorphism base */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(7, 11, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover:not(.btn) {
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    font-family: var(--font-body);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(6, 182, 212, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(7, 11, 20, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--border-glow);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Offer Section */
.offer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.pricing-card, .referral-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.card-title {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px;
}

.price-strike {
    font-size: 1.5rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-current {
    font-size: 3.5rem;
    font-weight: 800;
    color: #10b981;
    font-family: var(--font-heading);
}

.price-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.feature-list svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.referral-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-desc {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.calculator {
    background: rgba(0, 0, 0, 0.2);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.calculator label {
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
}

.slider {
    width: 100%;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.1);
    height: 8px;
    border-radius: 4px;
    outline: none;
    margin-bottom: 24px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.calc-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
}

.earn-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #10b981;
}

/* Portfolio */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--primary);
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.15);
}

.card-image-placeholder {
    height: 200px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

/* Decorative gradients for placeholders */
.hvac-bg { background: linear-gradient(135deg, #1e3a8a, #0f172a); }
.cafe-bg { background: linear-gradient(135deg, #78350f, #0f172a); }
.gym-bg { background: linear-gradient(135deg, #831843, #0f172a); }

.placeholder-text {
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.niche-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.card-content h3 {
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-actions {
    display: flex;
    gap: 12px;
}

.card-actions .btn {
    flex: 1;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.timeline-item {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    position: relative;
}

.timeline-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin: 0 auto 24px auto;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.timeline-item h3 {
    margin-bottom: 12px;
}

.timeline-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
}

.contact-info {
    padding: 60px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), transparent);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-perks {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.perk {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 1.1rem;
}

.perk svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.contact-form-container {
    padding: 60px;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.form-success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    border-radius: inherit;
    z-index: 10;
    opacity: 1;
    transition: var(--transition);
}

.form-success.hidden {
    opacity: 0;
    pointer-events: none;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: #10b981;
    margin-bottom: 24px;
    background: rgba(16, 185, 129, 0.1);
    padding: 12px;
    border-radius: 50%;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 40px 0;
    background: rgba(0,0,0,0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-links {
    text-align: right;
}

.footer-links a {
    text-decoration: none;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .offer-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: 1fr; max-width: 400px; }
    .contact-info, .contact-form-container { padding: 40px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Could add a hamburger menu for full mobile support */
    .hero-title { font-size: 2.5rem; }
    .hero-cta { flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { text-align: center; }
}
