/* ===================================
   TYPOGRAPHY
   AppSec Landing - Codeby School
   =================================== */

/* Base Typography */
body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background: var(--dark-bg);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;        /* 56px */
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;        /* 40px */
    letter-spacing: -0.01em;
    line-height: 1.3;
}

h3 {
    font-size: 2rem;          /* 32px */
    font-weight: 600;
    line-height: var(--line-height-normal);
}

h4 {
    font-size: 1.5rem;        /* 24px */
    font-weight: 600;
    line-height: var(--line-height-normal);
}

h5 {
    font-size: 1.25rem;       /* 20px */
    font-weight: 600;
}

h6 {
    font-size: 1rem;          /* 16px */
    font-weight: 600;
}

/* Paragraphs */
p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

p:last-child {
    margin-bottom: 0;
}

/* Lead paragraph */
.lead {
    font-size: var(--font-size-xl);
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Small text */
.small,
small {
    font-size: var(--font-size-sm);
}

.tiny {
    font-size: var(--font-size-xs);
}

/* Links */
a {
    color: var(--primary-green);
    transition: color var(--transition-fast);
}

a:hover:not(.promo-cta):not(.btn):not(.cta-button) {
    color: var(--secondary-green);
}

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Color utilities */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-green { color: var(--primary-green) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }

/* Highlight text */
.highlight {
    color: var(--primary-green);
}

.highlight-bg {
    background: var(--primary-green-10);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-green), #00ffcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Strikethrough price */
.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Responsive Typography */
@media (max-width: 767px) {
    h1 {
        font-size: 2rem;      /* 32px */
    }

    h2 {
        font-size: 1.75rem;   /* 28px */
    }

    h3 {
        font-size: 1.5rem;    /* 24px */
    }

    h4 {
        font-size: 1.25rem;   /* 20px */
    }

    body {
        font-size: 15px;
    }

    .lead {
        font-size: 1.1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    h1 {
        font-size: 2.75rem;   /* 44px */
    }

    h2 {
        font-size: 2rem;      /* 32px */
    }
}
