/* =========================
   GLOBAL
========================= */

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* =========================
   SITE WRAPPER
========================= */

#site-wrapper {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
    overflow: clip;
}


/* =========================
   MAIN CONTENT
========================= */

#main-content {
    position: relative;
    z-index: var(--z-content);
}


/* =========================
   CONTAINER
========================= */

.container {
    width: min(
        calc(100% - (var(--container-padding) * 2)),
        var(--container-width)
    );

    margin-inline: auto;
}


/* =========================
   SECTION
========================= */

.section {
    position: relative;
    padding-block: var(--section-space);
}


/* =========================
   HEADINGS
========================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(3rem, 7vw, 6.5rem);
}

h2 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}


/* =========================
   TEXT
========================= */

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

.text-gradient {
    background:
        linear-gradient(
            120deg,
            var(--color-primary-light),
            var(--color-accent)
        );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/* =========================
   BUTTON BASE
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 52px;
    padding: 0 24px;

    border-radius: var(--radius-pill);

    font-weight: 600;

    transition:
        transform var(--transition-normal),
        background var(--transition-normal),
        border-color var(--transition-normal);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--color-primary),
            #6d28d9
        );
}

.btn-outline {
    color: var(--color-white);

    border: 1px solid var(--color-border-light);

    background: rgba(255,255,255,0.03);

    backdrop-filter: blur(12px);
}

.btn-outline:hover {
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.07);
}


/* =========================
   VISUALLY HIDDEN
========================= */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}