/* Base Reset */
*,
*::before,
*::after {
    box_sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    /* Always white in dark mode mostly */
}

p {
    margin-bottom: 1.5rem;
    color: var(--muted-color);
}

a {
    color: var(--brand-500);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--brand-600);
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
    margin-top: 20px;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.bg-panel {
    background-color: var(--panel-color);
    margin-top: 50px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--brand-500);
    color: #fff;
    box-shadow: 0 0 15px var(--brand-glow);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--brand-glow);
}

.btn-secondary {
    background-color: #202020;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background-color: #202020;
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--brand-500);
    color: var(--brand-500);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Typography Helpers */
.text-brand {
    color: var(--brand-500);
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--brand-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Form Elements */
input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-family: var(--font-sans);
    transition: border 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 2px var(--brand-glow);
}