/* Rexe.live - Interactive Demo Styles */

:root {
    /* Brand Colors */
    --primary: #7C3AED;
    --primary-light: #A78BFA;
    --primary-dark: #5B21B6;
    --secondary: #F59E0B;
    --secondary-light: #FBBF24;

    /* Background */
    --bg-dark: #0F172A;
    --bg-card: rgba(30, 41, 59, 0.8);
    --bg-input: rgba(15, 23, 42, 0.9);

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    /* Status */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    top: -200px;
    right: -100px;
    animation: float1 15s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    bottom: -100px;
    left: -100px;
    animation: float2 20s ease-in-out infinite;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 50px) scale(1.1); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

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

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

.nav-cta {
    background: var(--primary);
    color: var(--text-primary) !important;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-cta:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: var(--space-3xl) 0;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: var(--space-lg);
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
}

/* ABN Form */
.abn-form {
    max-width: 480px;
    margin: 0 auto;
}

.input-wrapper {
    position: relative;
    margin-bottom: var(--space-sm);
}

.abn-form input {
    width: 100%;
    padding: var(--space-lg);
    padding-right: 60px;
    font-size: 1.1rem;
    font-family: inherit;
    background: var(--bg-input);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.abn-form input::placeholder {
    color: var(--text-muted);
}

.abn-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.abn-form input.valid {
    border-color: var(--success);
}

.abn-form input.invalid {
    border-color: var(--error);
}

.input-status {
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-status .status-icon {
    font-size: 1.2rem;
}

.input-status.valid .status-icon::before {
    content: "\2713";
    color: var(--success);
}

.input-status.invalid .status-icon::before {
    content: "\2717";
    color: var(--error);
}

.input-status.loading .status-icon {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.input-error {
    color: var(--error);
    font-size: 0.875rem;
    text-align: left;
    min-height: 1.5rem;
    margin-bottom: var(--space-sm);
}

.submit-btn {
    width: 100%;
    padding: var(--space-lg);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

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

.submit-btn.loading .btn-text,
.submit-btn.loading .btn-arrow {
    display: none;
}

.submit-btn .btn-loader {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Trust Signals */
.trust-signals {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md) var(--space-lg);
    margin-top: var(--space-xl);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.check-icon {
    color: var(--success);
    font-weight: bold;
}

/* Examples Section */
.examples-section {
    text-align: center;
    padding: var(--space-3xl) 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    margin-top: var(--space-3xl);
}

.examples-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

.examples-industries {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.examples-industries span {
    background: var(--bg-card);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

/* How It Works */
.how-it-works {
    padding: var(--space-3xl) 0;
    text-align: center;
}

.how-it-works h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-2xl);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.step {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.3);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto var(--space-md);
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

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

/* CTA Section */
.cta-section {
    text-align: center;
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(245, 158, 11, 0.05));
    border-radius: var(--radius-xl);
    margin: var(--space-2xl) 0;
}

.cta-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.cta-link:hover {
    color: var(--secondary);
}

/* Footer */
.footer {
    text-align: center;
    padding: var(--space-2xl) 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: var(--space-xl);
}

.loading-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-2xl);
}

.progress-ring {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto var(--space-2xl);
}

.progress-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.progress-bg {
    fill: none;
    stroke: rgba(148, 163, 184, 0.2);
    stroke-width: 8;
}

.progress-bar {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 700;
}

.progress-steps {
    text-align: left;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.progress-step.active {
    color: var(--text-primary);
}

.progress-step.completed {
    color: var(--success);
}

.step-status {
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.progress-step.completed .step-status::before {
    content: "\2713";
}

.progress-step.active .step-status {
    border-color: var(--primary);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(124, 58, 237, 0); }
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-card);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

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

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 1.5rem;
    font-weight: bold;
}

.error-icon {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.modal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.modal-btn {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    background: var(--primary);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-btn:hover {
    background: var(--primary-light);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: var(--space-md);
    }

    .nav-links {
        gap: var(--space-md);
    }

    .hero {
        padding: var(--space-2xl) 0;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .trust-signals {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .examples-industries {
        gap: var(--space-sm);
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
