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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
header {
    background-color: #1e293b;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-align: center;
    position: relative;
    display: inline-block;
}

.logo .t { color: #fbbf24; }
.logo .a { color: #60a5fa; }
.logo .b { color: #f87171; }
.logo .com { 
    position: absolute;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.6rem;
    color: #94a3b8;
    font-weight: normal;
    transform: rotate(180deg);
    right: -0.6rem;
    top: 0;
    bottom: 0;
    margin: auto;
    height: fit-content;
}

.tagline {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: normal;
    text-align: center;
    margin-top: 0.25rem;
}

.tagline .tab-colored .t { color: #fbbf24; }
.tagline .tab-colored .a { color: #60a5fa; }
.tagline .tab-colored .b { color: #f87171; }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #60a5fa;
}

/* Main Content */
main {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 1rem;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.column {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.column h2 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.column p {
    margin-bottom: 1rem;
    color: #64748b;
}

.column ul {
    list-style: none;
    padding-left: 0;
}

.column ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.column ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #60a5fa;
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 4rem;
}

.cta-section h2 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-section p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.feature-card h3 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Pricing Section */
.pricing-section {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 4rem;
}

.pricing-section h2 {
    text-align: center;
    color: #1e293b;
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

.pricing-card {
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.pricing-card.featured {
    border-color: #f97316;
    transform: scale(1.05);
}

.pricing-card h3 {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.pricing-card .plan-name {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 2rem;
    color: #1e293b;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.pricing-card .price-yearly {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: #64748b;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #f97316;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
    font-weight: 500;
}

.btn:hover {
    background-color: #ea580c;
}

/* Commission Table */
.commission-section {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 4rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.commission-section h3 {
    color: #1e293b;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.commission-section h3:before {
    content: "🎯";
    font-size: 1.2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background-color: #f3f4f6;
    font-weight: 600;
    color: #1e293b;
}

/* Leaderboard Section */
.leaderboard-section {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 4rem;
}

.leaderboard-section h2 {
    color: #1e293b;
    margin-bottom: 2rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

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

.badge-content h3 {
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.badge-content p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 4rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border-radius: 1rem;
    margin-bottom: 4rem;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e2e8f0;
}

.final-cta .btn {
    background-color: white;
    color: #1e293b;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.final-cta .btn:hover {
    background-color: #f3f4f6;
}

/* Catalogue Styles */
.catalogue-section { 
    padding: 4rem 0; 
    background-color: #f8f9fa;
}

.dramatic {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
    position: relative;
}

.dramatic:after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #f97316;
    margin: 1rem auto 3rem;
    border-radius: 2px;
}

.category-block + .category-block { 
    margin-top: 3rem; 
}

.category-title { 
    font-size: 1.75rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
    color: #1e293b; 
}

.agent-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 1.5rem; 
}

.agent-card { 
    background: #fff; 
    border-radius: 8px; 
    padding: 1.5rem; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.agent-name { 
    font-size: 1.25rem; 
    margin-bottom: 0.5rem; 
    color: #0a2540; 
}

.agent-desc { 
    font-size: 0.95rem; 
    margin-bottom: 1rem; 
    color: #64748b; 
    flex-grow: 1; 
}

.agent-score { 
    font-weight: 700; 
    margin-bottom: 1rem; 
    display: flex;
    align-items: baseline;
}

.score-value { 
    font-size: 1.5rem; 
    margin-right: 0.5rem; 
    color: #f97316;
}

.score-label { 
    font-size: 0.85rem; 
    color: #666; 
}

.btn-sm { 
    padding: 0.5rem 1rem; 
    font-size: 0.9rem; 
    width: 100%;
}

/* Loading and Error States */
.loading-container {
    text-align: center;
    padding: 3rem 0;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(249, 115, 22, 0.3);
    border-radius: 50%;
    border-top-color: #f97316;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-container {
    text-align: center;
    padding: 3rem 0;
    background-color: #fee2e2;
    border-radius: 8px;
    margin: 2rem 0;
}

.error-container p {
    color: #b91c1c;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Skeleton Loading State */
.agent-card.skeleton {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.agent-card.skeleton::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

.skeleton .agent-name,
.skeleton .agent-desc,
.skeleton .agent-score,
.skeleton .btn {
    background: #e5e7eb;
    color: transparent;
    border-radius: 4px;
}

.skeleton .agent-name {
    width: 70%;
    height: 20px;
}

.skeleton .agent-desc {
    width: 100%;
    height: 60px;
}

.skeleton .agent-score {
    width: 40%;
    height: 25px;
}

.skeleton .btn {
    background: #e5e7eb;
    border: none;
}

@keyframes loading {
    100% { transform: translateX(100%); }
}

/* Footer */
footer {
    background-color: #1e293b;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

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

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