/* assets/css/style.css */

/* Core Variables - Upstar USA Theme */
:root {
    --primary: #0f172a; /* Deep Slate Navy */
    --primary-light: #1e293b; /* Lighter Slate Navy */
    --primary-dark: #020617; /* Darkest Navy */
    --accent: #d97706; /* Amber Gold */
    --accent-light: #f59e0b; /* Bright Amber Gold */
    --bg-light: #f8fafc; /* Ice Blue Tint */
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%); /* Premium Gradient */
    --text-main: #0f172a; /* Dark Navy Text */
    --text-muted: #475569; /* Muted Slate Text */
    --border: #cbd5e1; /* Light Border */
    --border-light: #e2e8f0; /* Softer Border */
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.1);
    --radius-sm: 8px;
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Responsive Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

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

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-weight: 800;
}

#main-nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

#main-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: var(--bg-gradient);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 10;
}

.floating-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.4rem;
}

/* Form Styles & Selectors */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-light);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

/* Selection Cards (Wizard Options) */
.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.selection-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-muted);
}

.selection-card:hover {
    border-color: var(--accent);
    background: rgba(217, 119, 6, 0.02);
}

.selection-card.selected {
    border-color: var(--accent);
    background: rgba(217, 119, 6, 0.05);
    color: var(--accent);
}

/* Compliance Checkbox Container */
.compliance-box {
    margin: 1.5rem 0;
    text-align: left;
}

.checkbox-container {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.checkbox-container input[type="checkbox"] {
    margin-top: 0.25rem;
    transform: scale(1.1);
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Feature & Solution Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(217, 119, 6, 0.2);
}

.card-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.card p {
    color: var(--text-muted);
}

/* Wizard Dynamic Flow UI */
.wizard-box {
    max-width: 600px;
    margin: 4rem auto;
    padding: 3rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    text-align: center;
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-light);
    z-index: 1;
    transform: translateY(-50%);
}

.progress-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.progress-step.active {
    border-color: var(--accent);
    color: var(--accent);
}

.progress-step.completed {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.wizard-btn-container {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

/* Footer Section */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 5rem 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-logo span {
    color: var(--accent-light);
}

.footer-col p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-compliance {
    border-top: 1px solid #1e293b;
    padding-top: 2.5rem;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.6;
}

.footer-compliance p {
    margin-bottom: 1rem;
}

.footer-compliance strong {
    color: #94a3b8;
}

/* Legal Contents style */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.legal-content p, .legal-content li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

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

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-image-container {
        order: -1;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    #main-nav {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .wizard-box {
        padding: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .selection-grid {
        grid-template-columns: 1fr;
    }
}
