:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-dark: #1e293b;
    --accent: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --border: #cbd5e1;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
}

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

/* Header */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Sections */
.section {
    padding: 5rem 2rem;
}

.section-alt {
    background: var(--bg-primary);
}

.section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.document-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.doc-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.document-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.document-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.doc-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.doc-link:hover {
    text-decoration: underline;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-primary);
    max-width: 600px;
    margin: 2rem auto;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-tertiary);
}

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

.step {
    display: none;
}

.step.active {
    display: block;
}

.step h2 {
    text-align: left;
    margin-bottom: 0.5rem;
}

.step-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Amount Selector */
.amount-selector {
    margin-bottom: 2rem;
}

.amount-input-group {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.currency {
    font-weight: 600;
    font-size: 1.25rem;
    margin-right: 1rem;
    color: var(--text-secondary);
}

.amount-input-group input {
    border: none;
    background: transparent;
    font-size: 2rem;
    font-weight: 700;
    width: 100%;
    outline: none;
    font-family: inherit;
}

.quick-amounts {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.quick-amounts button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s;
}

.quick-amounts button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.token-estimate {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.token-estimate strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0.5rem 0;
}

.estimate-note {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* KYC */
#sumsub-websdk-container {
    min-height: 400px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.kyc-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.kyc-info p {
    margin: 0.5rem 0;
}

/* Legal Checkboxes */
.legal-checkboxes {
    margin-bottom: 2rem;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.checkbox-item input {
    margin-right: 1rem;
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
}

.checkbox-item a {
    color: var(--primary);
}

/* Payment */
.payment-details {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.payment-option {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
}

.payment-option h3 {
    margin-bottom: 1rem;
}

.payment-info {
    font-size: 0.95rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span {
    color: var(--text-secondary);
}

.confirmation-note {
    background: rgba(16, 185, 129, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--success);
}

.confirmation-note p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    opacity: 0.7;
    text-decoration: none;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-disclaimer {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* Lead Form */
.lead-form {
    margin-bottom: 1.5rem;
}

.lead-form.professional {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1rem;
}

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

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

.form-group label .optional {
    color: var(--text-tertiary);
    font-weight: 400;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group input::placeholder {
    color: var(--text-tertiary);
}

.form-group select optgroup {
    font-weight: 600;
    color: var(--text-primary);
}

.form-disclaimer {
    background: rgba(30, 58, 138, 0.05);
    border: 1px solid rgba(30, 58, 138, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-disclaimer p {
    margin: 0.5rem 0;
}

.form-disclaimer .secure-note {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(30, 58, 138, 0.1);
}

.form-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Footer Notices */
.footer-notices {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.footer-notices h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-notices p {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-notices strong {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav {
        gap: 0.75rem;
    }
    
    .nav a:not(.btn) {
        display: none;
    }
    
    .nav .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .header {
        padding: 0.75rem 1rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}
