/* ==========================================================================
   FitHabit Challenge Landing Page CSS
   Vibrant, Modern, High-converting design with Premium Aesthetics
   ========================================================================== */

:root {
    /* Color Palette (HSL Tailored) */
    --primary-hue: 14;
    --primary-saturation: 100%;
    --primary-lightness: 60%; /* Vibrant Orange-Coral */
    
    --primary: hsl(var(--primary-hue), var(--primary-saturation), var(--primary-lightness));
    --primary-hover: hsl(var(--primary-hue), var(--primary-saturation), 50%);
    --primary-light: hsl(var(--primary-hue), var(--primary-saturation), 95%);
    --primary-gradient: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    --gradient-glow: 0 10px 25px rgba(255, 107, 107, 0.4);
    
    --dark: #1e293b;
    --dark-muted: #64748b;
    --light: #f8fafc;
    --light-accent: #f1f5f9;
    --success: #10b981;
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --error: #ef4444;
    
    /* Typography */
    --font-header: 'Be Vietnam Pro', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1140px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4 {
    font-family: var(--font-header);
    color: var(--dark);
    font-weight: 700;
}

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

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--dark-muted);
    max-width: 700px;
    margin: 0 auto 48px auto;
}

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

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--gradient-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.6);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-success {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(16, 185, 129, 0.5);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-emoji {
    font-size: 1.8rem;
}

.logo-text {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

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

.btn-nav-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at 80% 20%, var(--primary-light) 0%, transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-hover);
    padding: 8px 16px;
    border-radius: 50px;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--dark-muted);
    margin-bottom: 32px;
}

.hero-bullets {
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
}

.bullet-icon {
    font-size: 1.1rem;
}

.action-note {
    font-size: 0.85rem;
    color: var(--dark-muted);
    margin-top: 10px;
}

/* Hero Media with Glassmorphism overlay */
.hero-media {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background-color: var(--light-accent);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: var(--transition-smooth);
}

.image-wrapper:hover .hero-image {
    transform: scale(1.03);
}

.floating-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 16px 24px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-number {
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

/* Pain Points Section */
.pain-points {
    padding: 100px 0;
    background-color: white;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pain-card {
    background-color: var(--light);
    padding: 40px 30px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

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

.pain-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.pain-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.pain-card p {
    color: var(--dark-muted);
    font-size: 0.95rem;
}

/* Method Section */
.method {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--light) 0%, var(--light-accent) 100%);
}

.method-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.method-step {
    background: white;
    padding: 32px;
    border-radius: var(--border-radius-md);
    display: flex;
    gap: 24px;
    align-items: flex-start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.method-step:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.step-num {
    font-family: var(--font-header);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-hover);
    opacity: 0.4;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--dark-muted);
}

/* Results / Before-After Section */
.results {
    padding: 100px 0;
    background-color: white;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.result-card {
    background: var(--light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.result-images {
    display: flex;
    gap: 4px;
    background-color: #cbd5e1;
    position: relative;
}

.result-img {
    width: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.placeholder-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--dark-muted);
}

/* Hide placeholder text if real images successfully load */
.result-images img:not([style*="display: none"]) ~ .placeholder-box {
    display: none;
}

.result-info {
    padding: 24px;
}

.result-info h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.result-desc {
    color: var(--dark-muted);
    font-style: italic;
    font-size: 0.95rem;
}

/* Registration Section with custom Form Design */
.register-section {
    padding: 100px 0;
    background: radial-gradient(circle at 10% 90%, var(--primary-light) 0%, transparent 60%);
}

.form-wrapper {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    padding: 50px;
    max-width: 750px;
    margin: 0 auto;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.form-header p {
    color: var(--dark-muted);
    font-size: 1rem;
    margin-bottom: 20px;
}

.form-benefits {
    display: inline-block;
    background-color: #ecfdf5;
    color: #065f46;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px dashed #a7f3d0;
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
}

.form-label .required {
    color: var(--error);
}

.form-input, .form-textarea {
    width: 100%;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--dark);
    transition: var(--transition-smooth);
    background-color: #f8fafc;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15);
}

.form-textarea {
    height: 100px;
    resize: vertical;
}

/* Radio Group styling */
.radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 4px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    background-color: #f8fafc;
}

.radio-label:hover {
    border-color: var(--primary-light);
    background-color: var(--primary-light);
}

.radio-label input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.radio-label input[type="radio"]:checked ~ span {
    font-weight: 600;
    color: var(--primary-hover);
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.btn-submit {
    margin-top: 10px;
}

/* Success Message styles */
.success-message {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 1.8rem;
    color: var(--success);
    margin-bottom: 12px;
}

.success-message p {
    color: var(--dark-muted);
    margin-bottom: 24px;
}

/* Footer styling */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 48px 0;
}

.footer h1, .footer h2, .footer h3, .footer p {
    color: white;
}

.footer p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-disclaimer {
    font-size: 0.75rem !important;
    max-width: 800px;
    margin: 20px auto 0 auto;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Web Design (Media Queries) */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-bullets {
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-media {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .pain-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .form-wrapper {
        padding: 30px 20px;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
}
