:root {
    /* The Modern Broker Theme - Enhanced */
    --primary-color: #0F172A;
    --primary-dark: #020617;
    --primary-light: #334155;
    --accent-color: #3B82F6;
    --accent-dark: #2563EB;
    --accent-light: #60A5FA;
    --secondary-color: #10B981;
    --highlight-color: #5EEAD4;
    --text-primary: #0F172A;
    --text-secondary: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Gradient colors */
    --gradient-start: #5B21B6;
    --gradient-mid: #6366F1;
    --gradient-end: #60A5FA;

    /* Override Tabler CSS variables */
    --tblr-primary: #3B82F6;
    --tblr-primary-rgb: 59, 130, 246;
    --tblr-primary-darken: #2563EB;
    --tblr-primary-lt: rgba(59, 130, 246, 0.1);
    --tblr-link-color: #3B82F6;
    --tblr-link-hover-color: #2563EB;
}

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

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
}

.logo-icon svg {
    stroke: var(--accent-color);
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

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

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    color: #ffffff !important;
    border: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff !important;
}

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

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

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 8px;
    text-align: center;
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #5B21B6 0%, #6366F1 40%, #60A5FA 100%);
    color: white;
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.highlight {
    color: #5EEAD4;
    background: none;
    -webkit-text-fill-color: #5EEAD4;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

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

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

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

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Hero Mockup */
.mockup-placeholder {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.mockup-placeholder:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
}

.mockup-dot:first-child {
    background: #FCA5A5;
}
.mockup-dot:nth-child(2) {
    background: #FCD34D;
}
.mockup-dot:nth-child(3) {
    background: #6EE7B7;
}

.mockup-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.mockup-card.success {
    background: #f0fdf4;
    border-color: var(--secondary-color);
}

.mockup-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-icon svg {
    stroke: var(--accent-color);
}

.mockup-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mockup-text strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.mockup-text span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-white);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5B21B6, #6366F1, #60A5FA);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.2);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(96, 165, 250, 0.1) 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    stroke: #6366F1;
    width: 32px;
    height: 32px;
}

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

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.feature-list li:before {
    content: "✓ ";
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, #EEF2FF 100%);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 80px;
    bottom: 80px;
    width: 2px;
    background: linear-gradient(180deg, #6366F1 0%, #60A5FA 100%);
}

.step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
}

.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #5B21B6 0%, #6366F1 100%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.5);
    position: relative;
    z-index: 1;
}

.step-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

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

/* Pricing */
.pricing {
    padding: 100px 0;
    background: var(--bg-white);
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-label.active {
    color: var(--text-primary);
    font-weight: 600;
}

.toggle-label[data-interval="monthly"] {
    color: var(--text-primary);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #5B21B6 0%, #6366F1 100%);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.save-badge {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pricing-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.pricing-grid-5 {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.pricing-grid-5 .pricing-card {
    padding: 1.5rem;
}

.pricing-grid-5 .pricing-header h3 {
    font-size: 1.5rem;
}

.pricing-grid-5 .price-amount {
    font-size: 2.25rem;
}

.pricing-grid-5 .pricing-features li {
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

@media (max-width: 1400px) {
    .pricing-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .pricing-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid-4 {
        grid-template-columns: 1fr;
    }
    .pricing-grid-5 {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.15);
}

.pricing-card.featured {
    border: 2px solid #6366F1;
    background: linear-gradient(180deg, #FAFAFF 0%, #FFFFFF 100%);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #5B21B6 0%, #6366F1 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px -5px rgba(99, 102, 241, 0.5);
}

.pricing-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 1rem 0;
}

.price-currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

@media (min-width: 1200px) {
    .pricing-grid-4 .price-amount {
        font-size: 2.5rem;
    }
}

.price-period {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.pricing-subtitle {
    color: var(--text-secondary);
}

.annual-savings {
    color: #10B981;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    display: inline-block;
}

.pricing-card.featured .annual-savings {
    color: #10B981;
    background: rgba(16, 185, 129, 0.15);
}

.pricing-card.enterprise .annual-savings {
    color: #5EEAD4;
    background: rgba(94, 234, 212, 0.1);
}

.seat-price {
    font-size: 0.85rem;
    color: #6366F1;
    font-weight: 600;
    margin-top: 0.35rem;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
}

.pricing-features {
    list-style: none;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.pricing-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Enterprise card styling */
.pricing-card.enterprise {
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    border: 1px solid #334155;
    color: white;
}

.pricing-card.enterprise .pricing-header {
    border-bottom-color: #334155;
}

.pricing-card.enterprise .pricing-header h3 {
    color: white;
}

.pricing-card.enterprise .price-amount {
    color: #5EEAD4;
}

.pricing-card.enterprise .price-amount.custom {
    font-size: 2rem;
    background: linear-gradient(135deg, #5EEAD4 0%, #60A5FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card.enterprise .pricing-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.pricing-card.enterprise .pricing-features li {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-card.enterprise:hover {
    border-color: #5EEAD4;
    box-shadow: 0 20px 40px -15px rgba(94, 234, 212, 0.2);
}

.pricing-card.enterprise .btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.pricing-card.enterprise .btn-secondary:hover {
    background: white;
    color: #0F172A !important;
    border-color: white;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #5B21B6 0%, #6366F1 50%, #60A5FA 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta .btn-primary {
    background: white;
    color: #5B21B6 !important;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.4);
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1.5rem;
}

/* Footer */
.footer {
    background: #0F172A;
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
    }

    .nav-links.mobile-active {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }

    .nav-links a:hover {
        background: var(--bg-light);
    }

    .nav-links .btn-secondary,
    .nav-links .btn-primary {
        margin-top: 0.5rem;
        text-align: center;
    }

    .nav-content {
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

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

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

    .section-header h2 {
        font-size: 2rem;
    }

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

    .steps::before {
        display: none;
    }

    .mockup-placeholder {
        transform: none;
    }

    .mockup-placeholder:hover {
        transform: none;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) perspective(1000px) rotateY(-5deg) rotateX(2deg);
    }
    50% {
        transform: translateY(-10px) perspective(1000px) rotateY(-5deg) rotateX(2deg);
    }
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Selection color */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: inherit;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #6366F1;
    outline-offset: 2px;
}
