/* ==========================================================
   THE AI ACE
   TYPOGRAPHY SYSTEM
   ========================================================== */

/* ---------- BASE ---------- */

body {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: var(--fw-normal);
    color: var(--text-primary);
}

/* ---------- HEADINGS ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: var(--text-primary);
    font-weight: var(--fw-bold);
    line-height: 1.15;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.03em;
}

h3 {
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    letter-spacing: -0.02em;
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-md);
}

/* ---------- PARAGRAPHS ---------- */

p {
    color: var(--text-secondary);
    line-height: 1.75;
}

p + p {
    margin-top: var(--space-md);
}

/* ---------- TEXT HELPERS ---------- */

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

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

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

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

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

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

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

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

/* ---------- WEIGHTS ---------- */

.font-light {
    font-weight: var(--fw-light);
}

.font-normal {
    font-weight: var(--fw-normal);
}

.font-medium {
    font-weight: var(--fw-medium);
}

.font-semibold {
    font-weight: var(--fw-semibold);
}

.font-bold {
    font-weight: var(--fw-bold);
}

.font-black {
    font-weight: var(--fw-black);
}

/* ---------- LABELS ---------- */

.eyebrow,
.section-label,
.card-label {
    display: inline-block;
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    font-weight: var(--fw-black);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------- TITLES ---------- */

.hero-title {
    max-width: 1050px;
    font-size: clamp(3rem, 7vw, 6.2rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-subtitle {
    max-width: 760px;
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.75;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-subtitle {
    max-width: 760px;
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
}

.card-title {
    font-size: var(--font-size-xl);
    line-height: 1.25;
}

.card-description {
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    line-height: 1.7;
}

/* ---------- SMALL TEXT ---------- */

small,
.text-small {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.caption {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    line-height: 1.4;
}

/* ---------- LINKS ---------- */

.text-link {
    color: var(--color-accent);
    font-weight: var(--fw-bold);
}

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

/* ---------- NUMBERS AND STATS ---------- */

.stat-number {
    color: var(--color-accent);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: var(--fw-black);
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* ---------- LIST CONTENT ---------- */

.prose ul,
.prose ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.prose strong {
    color: var(--text-primary);
    font-weight: var(--fw-bold);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
    body {
        font-size: 0.96rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4.5rem);
    }

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