/* ============================================
   NOVARIDE - PREMIUM TYPOGRAPHY SYSTEM
   Tesla-Level, World-Class Text Design
   ============================================ */

/* ========== FONT IMPORTS ========== */

/* Inter is loaded via HTML - this file contains typography utilities */

/* ========== BASE TYPOGRAPHY ========== */

body {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background: var(--obsidian-black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========== HEADINGS ========== */

h1,
h2,
h3,
h4,
h5,
h6,
.heading-1,
.heading-2,
.heading-3,
.heading-4,
.heading-5,
.heading-6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--text-primary);
}

/* Display Heading - Hero Size */
.heading-display {
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.heading-1,
h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.025em;
}

.heading-2,
h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.02em;
}

.heading-3,
h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    letter-spacing: -0.015em;
}

.heading-4,
h4 {
    font-size: 1.5rem;
    letter-spacing: -0.015em;
}

.heading-5,
h5 {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.heading-6,
h6 {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0;
}

/* ========== TEXT SIZES ========== */

.text-xl {
    font-size: 1.5rem;
    line-height: var(--line-height-snug);
}

.text-lg {
    font-size: 1.125rem;
    line-height: var(--line-height-normal);
}

.text-base {
    font-size: 1rem;
    line-height: var(--line-height-normal);
}

.text-sm {
    font-size: 0.875rem;
    line-height: var(--line-height-normal);
}

.text-xs {
    font-size: 0.75rem;
    line-height: var(--line-height-normal);
}

/* ========== LEAD TEXT ========== */

.lead {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
}

/* ========== EYEBROW TEXT ========== */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--nova-green);
}

.eyebrow::before {
    content: '';
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--nova-green));
    border-radius: var(--radius-full);
}

.eyebrow::after {
    content: '';
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--nova-green), transparent);
    border-radius: var(--radius-full);
}

/* ========== TEXT COLORS ========== */

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-tertiary {
    color: var(--text-tertiary);
}

.text-muted {
    color: var(--text-muted);
}

.text-accent {
    color: var(--nova-green);
}

/* ========== TEXT WEIGHTS ========== */

.font-light {
    font-weight: var(--font-weight-light);
}

.font-normal {
    font-weight: var(--font-weight-normal);
}

.font-medium {
    font-weight: var(--font-weight-medium);
}

.font-semibold {
    font-weight: var(--font-weight-semibold);
}

.font-bold {
    font-weight: var(--font-weight-bold);
}

/* ========== TEXT ALIGNMENT ========== */

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* ========== TEXT GRADIENTS ========== */

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== TEXT GLOW ========== */

.text-glow {
    text-shadow: 0 0 40px rgba(16, 185, 129, 0.4);
}

.text-glow-strong {
    text-shadow:
        0 0 20px rgba(16, 185, 129, 0.5),
        0 0 60px rgba(16, 185, 129, 0.3),
        0 0 100px rgba(16, 185, 129, 0.2);
}

/* ========== LINKS ========== */

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link {
    color: var(--nova-green);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}

.link:hover {
    opacity: 0.8;
}

/* ========== LISTS ========== */

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ========== PARAGRAPHS ========== */

p {
    margin: 0;
}

p+p {
    margin-top: var(--space-4);
}

/* ========== CODE ========== */

code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

/* ========== SPECIAL TEXT ========== */

.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

.capitalize {
    text-transform: capitalize;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

.tracking-widest {
    letter-spacing: 0.2em;
}

/* ========== TRUNCATE ========== */

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}