/**
 * EasyFunder Theme Styles - Premium Edition
 * Color Scheme: Teal (#2CB1A2) → Purple (#5F5FFF)
 * Font: Inter (Google Fonts)
 */

/* ========================================
   CSS VARIABLES - ENHANCED
   ======================================== */
:root {
    /* Core brand colours */
    --primary: #2CB1A2;
    --primary-light: #3DCBB9;
    --primary-dark: #249889;
    --secondary: #5F5FFF;
    --secondary-light: #7D7DFF;
    --secondary-dark: #4545E6;
    --gradient-start: var(--primary);
    --gradient-end: var(--secondary);
    --accent: #5F5FFF;

    /* Neutrals - Enhanced */
    --neutral-50: #fafbfc;
    --neutral-100: #f4f6f9;
    --neutral-200: #e5e9f0;
    --neutral-300: #d1d8e3;
    --neutral-400: #9ba5b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;

    --card-bg: #ffffff;
    --card-border: rgba(15, 23, 42, 0.06);

    /* Sophisticated shadows */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.12);
    --shadow-hover: 0 24px 56px rgba(15, 23, 42, 0.16);

    /* Legacy support */
    --primary-color: var(--primary);
    --secondary-color: var(--secondary);
    --accent-color: var(--accent);
    --text-color: var(--neutral-900);
    --border-color: var(--card-border);
    --neutral-light: var(--neutral-50);
    --neutral-dark: var(--neutral-900);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--neutral-900);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--neutral-50);
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.navbar-brand:hover {
    color: var(--primary);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--neutral-900);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary);
}

/* ========================================
   HERO SECTION - PREMIUM
   ======================================== */
.hero-split {
    position: relative;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: #fff;
    padding: 120px 0 140px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Mesh gradient overlay for depth */
.hero-split::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(95, 95, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Subtle animated gradient */
.hero-split::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-split .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    padding-right: 2rem;
}

.hero-split h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.75rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-split .hero-lead {
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0.96;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    max-width: 540px;
}

/* Premium button */
.btn-hero {
    background: #ffffff;
    border: none;
    color: var(--primary);
    font-weight: 600;
    padding: 1.1rem 2.75rem;
    font-size: 1.05rem;
    border-radius: 60px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-hero:hover::before {
    opacity: 1;
}

/* Hero card - Glassmorphism */
.hero-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow:
        0 32px 64px rgba(15, 23, 42, 0.12),
        0 8px 24px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.4s ease;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(44, 177, 162, 0.3), rgba(95, 95, 255, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.hero-card h3 {
    color: var(--neutral-900);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.hero-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-checklist li {
    color: var(--neutral-700);
    padding: 1rem 0;
    border-bottom: 1px solid var(--neutral-200);
    font-weight: 500;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.hero-checklist li:last-child {
    border-bottom: none;
}

.hero-checklist li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: bold;
    margin-right: 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(44, 177, 162, 0.3);
}

.hero-checklist li:hover {
    padding-left: 0.5rem;
    color: var(--neutral-900);
}

/* ========================================
   SECTIONS - ENHANCED SPACING
   ======================================== */
.features-section {
    padding: 120px 0;
    background: var(--neutral-50);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neutral-200), transparent);
}

.how-it-works-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--neutral-50) 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--neutral-900);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--neutral-500);
    font-weight: 400;
    line-height: 1.6;
}

/* ========================================
   FEATURE CARDS - PREMIUM
   ======================================== */
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 3rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 177, 162, 0.03), rgba(95, 95, 255, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(44, 177, 162, 0.2);
}

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

.card-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(44, 177, 162, 0.25);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover .card-icon {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 12px 28px rgba(44, 177, 162, 0.35);
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--neutral-900);
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--neutral-600);
    margin-bottom: 0;
    line-height: 1.7;
    font-size: 1.02rem;
    position: relative;
    z-index: 1;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.step-wrapper {
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.75rem;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 24px rgba(44, 177, 162, 0.3);
    letter-spacing: -0.02em;
}

.step-wrapper h5 {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--neutral-900);
}

.step-wrapper p {
    color: var(--neutral-600);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ========================================
   CTA SECTION - PREMIUM
   ======================================== */
.cta-section {
    background: var(--neutral-50);
    padding: 120px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 32px;
    padding: 5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 24px 48px rgba(44, 177, 162, 0.25),
        0 8px 24px rgba(95, 95, 255, 0.15);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(95, 95, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.cta-card h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.cta-card .lead {
    opacity: 0.96;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background: #ffffff;
    border: none;
    color: var(--primary);
    font-weight: 600;
    padding: 1.25rem 3.5rem;
    font-size: 1.1rem;
    border-radius: 60px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    letter-spacing: 0.01em;
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    background: var(--neutral-50);
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-hero {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(95, 95, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
}

.about-hero .lead {
    font-size: 1.3rem;
    opacity: 0.96;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-content {
    padding: 80px 0;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--neutral-900);
}

.about-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 3rem;
    color: var(--neutral-900);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--neutral-600);
    margin-bottom: 1.5rem;
}

.about-content .lead {
    font-size: 1.25rem;
    color: var(--neutral-700);
}

.stats-section {
    background: var(--neutral-100);
    padding: 80px 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--neutral-600);
    font-weight: 500;
}

/* ========================================
   ONBOARDING FORM
   ======================================== */
.onboarding-wrapper {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    min-height: calc(100vh - 200px);
}

.onboarding-wrapper .card {
    border: none;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress {
    background-color: #e9ecef;
    height: 8px;
    border-radius: 10px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.5s ease;
    border-radius: 10px;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 177, 162, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.is-invalid {
    border-color: #dc3545;
}

/* Domain Selection */
.form-check {
    padding: 1rem;
    border: 2px solid var(--neutral-200);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-check:hover {
    border-color: var(--primary);
    background-color: var(--neutral-50);
}

.form-check-input:checked ~ .form-check-label {
    color: var(--primary);
    font-weight: 600;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    font-weight: 600;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.btn-success {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-success:hover,
.btn-success:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    margin-top: auto;
    background-color: var(--neutral-900);
    color: white;
    padding: 3rem 0;
}

.site-footer a {
    color: var(--neutral-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--primary);
}

/* ========================================
   UTILITIES
   ======================================== */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

#logo-preview img {
    border: 2px solid var(--neutral-200);
    padding: 0.5rem;
    background: #fff;
    border-radius: 8px;
}

.form-control-color {
    height: 50px;
    width: 100%;
    cursor: pointer;
}

.alert {
    border-radius: 12px;
}

/* ========================================
   WOOCOMMERCE OVERRIDES
   ======================================== */
.woocommerce-breadcrumb {
    padding: 1rem 0;
}

.woocommerce-products-header {
    margin-bottom: 2rem;
}

.woocommerce .btn {
    padding: 0.5rem 1.5rem;
}

.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: var(--primary);
    border-color: var(--primary);
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.notice {
    margin: 1rem 0;
    padding: 1rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .hero-split h1 {
        font-size: 3rem;
    }

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

    .cta-card h2 {
        font-size: 2.5rem;
    }

    .about-hero h1 {
        font-size: 2.75rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-split {
        padding: 80px 0 100px;
        min-height: auto;
    }

    .hero-split h1 {
        font-size: 2.5rem;
    }

    .hero-split .hero-lead {
        font-size: 1.15rem;
    }

    .hero-card {
        padding: 2.5rem;
    }

    .features-section,
    .how-it-works-section,
    .cta-section,
    .about-content,
    .stats-section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .feature-card {
        padding: 2.5rem;
    }

    .cta-card {
        padding: 3.5rem 2.5rem;
    }

    .cta-card h2 {
        font-size: 2rem;
    }

    .about-hero {
        padding: 60px 0 50px;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .onboarding-wrapper .card {
        margin: 1rem;
    }

    .card-body {
        padding: 2rem !important;
    }
}

@media (max-width: 576px) {
    .hero-split h1 {
        font-size: 2rem;
    }

    .btn-hero,
    .btn-cta {
        padding: 1rem 2.25rem;
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .about-hero h1 {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}
