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

:root {
    --bg: #000000;
    --card: #1a1a1a;
    --card-hover: #262626;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);
    --text-primary: #e0e0e0;
    --text-secondary: #999999;
    --muted: #666666;
    --accent: #808080;
    --accent-hover: #a0a0a0;
    --mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
}

body {
    font-family: var(--mono);
    background: var(--bg);
    min-height: 100vh;
    padding: 40px 24px 80px;
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 65px;
    width: auto;
    display: block;
}

header {
    margin-bottom: 48px;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.2;
}

.description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    max-width: 800px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.description:last-child {
    margin-bottom: 0;
}

.jump-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--mono);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.jump-link:hover {
    background: var(--card-hover);
    border-color: var(--accent);
    color: var(--text-primary);
}

.jump-link:active {
    background: var(--card);
}

.leaderboard-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

.table-section {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.leaderboard-table thead {
    background: var(--card);
    border-bottom: 1px solid var(--border-strong);
}

.leaderboard-table th {
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background-color 0.15s ease;
    background: var(--card);
}

.leaderboard-table tbody tr:hover {
    background: var(--card-hover);
}

.leaderboard-table tbody tr.expanded {
    background: var(--card-hover);
    border-left: 2px solid var(--accent);
}

.leaderboard-table tbody tr.expanded:hover {
    background: var(--card-hover);
}

.leaderboard-table td {
    padding: 10px 16px;
    vertical-align: middle;
    color: var(--text-primary);
}

.rank-col {
    width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.8125rem;
}

.provider-col {
    font-weight: 500;
    color: var(--text-primary);
}

.score-col {
    width: 100px;
    text-align: right;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--accent);
    font-family: var(--mono);
}

.sub-scores-row {
    background: rgba(26, 26, 26, 0.8) !important;
}

.coming-soon-row {
    cursor: default;
}

.coming-soon-row:hover {
    background: var(--card) !important;
}

.sub-scores-row td {
    padding: 10px 16px 10px 64px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.sub-score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.sub-score-item:last-child {
    border-bottom: none;
}

.sub-score-label {
    font-weight: 400;
    color: var(--text-primary);
}

.sub-score-value {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.8125rem;
    font-family: var(--mono);
}

.chart-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 24px;
}

.chart-placeholder {
    text-align: center;
    color: var(--muted);
    font-size: 0.875rem;
    padding: 80px 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder p {
    margin: 0;
    width: 100%;
    text-align: center;
}

#spider-chart {
    max-width: 100%;
    max-height: 520px;
}

.pillars-section {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
    width: 100%;
    overflow-x: hidden;
}

.pillars-header {
    margin-bottom: 48px;
}

.pillars-grid-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.pillars-grid-wrapper::before,
.pillars-grid-wrapper::after {
    content: '';
    display: block;
    width: 100vw;
    height: 1px;
    background: var(--border);
    position: absolute;
    left: 50%;
    margin-left: -50vw;
}

.pillars-grid-wrapper::before {
    top: 0;
}

.pillars-grid-wrapper::after {
    bottom: 0;
}

.pillars-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.pillars-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin: 0 auto;
    max-width: 1400px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    position: relative;
}

.pillar-card {
    background: transparent;
    padding: 24px;
    border-right: 1px solid var(--border);
    position: relative;
    transition: background-color 0.15s ease;
}

.pillar-card:nth-child(even) {
    border-right: none;
}

.pillar-card:not(:nth-child(n+7)):not(:nth-child(even))::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: var(--border);
    pointer-events: none;
}

.pillar-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.pillar-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
    font-family: var(--mono);
}

.pillar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.pillar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pillar-list li {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.pillar-list li:before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--muted);
}

.pillar-list li:last-child {
    margin-bottom: 0;
}

.checklist-section {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.checklist-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.checklist-section .description {
    margin-bottom: 32px;
    max-width: 800px;
}

.checklist-section .pillar-list {
    max-width: 900px;
}

.checklist-section .pillar-list li {
    margin-bottom: 12px;
}

.checklist-section .pillar-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.faq-section {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.faq-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.faq-item:hover {
    border-color: var(--border-strong);
}

.faq-item.active {
    border-color: var(--accent);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-family: var(--mono);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: background-color 0.15s ease;
}

.faq-question:hover {
    background: var(--card-hover);
}

.faq-question span:first-child {
    flex: 1;
    padding-right: 16px;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 24px 20px 24px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    padding-top: 8px;
}

.contact-section {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.contact-header {
    margin-bottom: 40px;
}

.contact-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.contact-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--mono);
    font-size: 0.875rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--card-hover);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--mono);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.submit-btn:hover {
    background: var(--card-hover);
    border-color: var(--accent);
}

.submit-btn:active {
    background: var(--card);
}

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

.form-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #4ade80;
}

.form-message.error {
    display: block;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #f87171;
}

.site-footer {
    margin-top: 80px;
    padding-top: 48px;
    padding-bottom: 48px;
    border-top: 1px solid var(--border);
}

.site-footer .footer-text {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .leaderboard-container {
        grid-template-columns: 1fr;
    }

    .chart-section {
        position: relative;
        top: 0;
        height: fit-content;
    }

    h1 {
        font-size: 1.75rem;
    }

    .description {
        font-size: 0.875rem;
    }

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

    .pillars-section {
        margin-top: 60px;
        padding-top: 40px;
    }
}
