:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #10b981;
    --accent: #6366f1;
    --accent-light: #e0e7ff;
    --background: #ffffff;
    --surface: #ffffff;
    --surface-light: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #f1f5f9;
    --border-rich: #e2e8f0;
    --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    --premium-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.1);
    --inner-glow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .title-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism replacement for Light Theme - REMOVED to fix conflicts
   .glass-panel {
       background: var(--surface);
       border: 1px solid var(--border);
       border-radius: 24px;
       box-shadow: var(--premium-shadow);
   }
*/

.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

/* Buttons */
.btn-nebula {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2.2rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    gap: 0.75rem;
    white-space: nowrap;
}

.btn-nebula i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 1.2em;
    margin-top: -1px; /* Optical center fix */
}

.btn-nebula-primary {
    background: var(--primary);
    color: white;
}

.btn-nebula-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.btn-nebula-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
}

.btn-nebula-outline:hover {
    background: var(--surface-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Navbar */
.nebula-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nebula-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nebula-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
}

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

.nebula-nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nebula-nav-links a:hover, .nebula-nav-links a.active {
    color: var(--primary);
}

/* Form Styles */
.nebula-form-group {
    margin-bottom: 1.5rem;
}

.nebula-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.nebula-input {
    width: 100%;
    background: var(--surface-light);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.nebula-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Features */
.icon-box {
    transition: transform 0.3s ease;
}
.glass-card:hover .icon-box {
    transform: scale(1.1);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Advanced Aesthetics */
.mesh-bg {
    background-color: #ffffff;
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.03) 0, transparent 50%), 
        radial-gradient(at 50% 0%, rgba(99, 102, 241, 0.03) 0, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.03) 0, transparent 50%);
}

.premium-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.premium-card:hover::before {
    opacity: 1;
}

/* Floating Animation */
@keyframes float-premium {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.animate-float-premium {
    animation: float-premium 6s ease-in-out infinite;
}

/* Text Gradient Advanced */
.text-gradient-premium {
    background: linear-gradient(135deg, #2563eb 0%, #6366f1 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient-shift 5s linear infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Section Transitions */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    z-index: 2000;
    width: 0%;
    transition: width 0.1s ease;
}

/* Layout Fixes */
.flex-center-y {
    display: flex;
    align-items: center;
}

.section-title-area {
    margin-bottom: 4rem;
}

/* Newsletter Fix */
.newsletter-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    padding: 6px;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    transition: border-color 0.3s ease;
}

.newsletter-wrapper:focus-within {
    border-color: var(--primary);
}

.newsletter-wrapper input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.8rem 1.25rem !important;
}

.newsletter-btn {
    height: 48px;
    width: 48px;
    border-radius: 12px;
    padding: 0;
    flex-shrink: 0;
}

/* Step Card Fix */
.step-number-box {
    width: 64px;
    height: 64px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .premium-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    .nebula-nav-container {
        padding: 0 1rem;
    }
}

.py-100 {
    padding-top: 100px;
    padding-bottom: 100px;
}
