:root {
    --bg-white: #f8f8f8;
    --bg-black: #000000;
    --border-color: #000000;
    --text-black: #000000;
    --text-white: #ffffff;
    --accent-red: #ff3b30;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-mono: 'JetBrains Mono', monospace;
    --grid-unit: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
    /* Force sharp edges */
}

body {
    background-color: var(--bg-white);
    color: var(--text-black);
    font-family: var(--font-sans);
    line-height: 1.4;
    overflow-x: hidden;
}

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

/* Utilities */
.border-bottom {
    border-bottom: 1px solid var(--border-color);
}

.border-top {
    border-top: 1px solid var(--border-color);
}

.border-right {
    border-right: 1px solid var(--border-color);
}

.bg-black {
    background-color: var(--bg-black);
}

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

.accent-serif {
    font-family: var(--font-serif);
}

.italic {
    font-style: italic;
}

.underline {
    text-decoration: underline;
}

.padding-lg {
    padding: 3rem;
}

/* Grid Background */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--bg-white);
}

.logo-text {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

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

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.pulse {
    width: 6px;
    height: 6px;
    background-color: var(--accent-red);
    border-radius: 50% !important;
    /* Status dot is the only exception */
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #555;
    max-width: 600px;
}

/* Input Section */
.grid-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    align-items: stretch;
}

.input-label {
    padding: 2rem 0;
}

.label-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    display: block;
}

.input-wrapper {
    display: flex;
    border-left: 1px solid var(--border-color);
}

input[type="url"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-family: var(--font-mono);
    outline: none;
}

button {
    background: var(--bg-black);
    color: var(--text-white);
    border: none;
    padding: 0 3rem;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    -webkit-user-select: none;
    user-select: none;
}

button:hover {
    background: #333;
}

/* Results Section */
#results-section {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.label-side {
    padding: 2rem 0;
}

.content-side {
    padding: 2rem;
    border-left: 1px solid var(--border-color);
}

.url-badge {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    background: #eee;
    padding: 0.5rem 1rem;
    display: inline-block;
}

.section-title {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.feedback-text {
    font-size: 1.75rem;
    font-family: var(--font-serif);
    line-height: 1.3;
    max-width: 800px;
}

.grid-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.col-title {
    font-size: 0.85rem;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.report-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.report-list li {
    font-size: 1.1rem;
    position: relative;
    padding-left: 2rem;
}

.report-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    font-weight: 900;
}

.improvement-section {
    padding: 4rem 2rem;
}

.improv-header {
    margin-bottom: 3rem;
}

.prioritized-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.prioritized-list li {
    padding: 3rem;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50% !important;
    animation: spin 0.8s linear infinite;
    display: none;
}

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

/* Footer */
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 2rem;
}

.footer-brand {
    font-weight: 900;
    letter-spacing: 0.1em;
}

.footer-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    opacity: 0.6;
}

.footer-copy {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* Hidden State */
.hidden {
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .input-wrapper {
        border-left: none;
        border-top: 1px solid var(--border-color);
        flex-direction: column;
    }

    button {
        padding: 1.5rem;
    }

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

    .grid-col:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .prioritized-list {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}