:root {
    --bg: #0b1220;
    --bg-2: #0f172a;
    --nav: #0b1020;
    --card: rgba(255, 255, 255, 0.06);
    --border: rgba(148, 163, 184, 0.22);

    --text: #e5e7eb;
    --muted: #9ca3af;

    --accent: #3b82f6;
    --accent-2: #60a5fa;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] {
    --bg: #f5f7fb;
    --bg-2: #ffffff;
    --nav: #ffffff;
    --card: rgba(15, 23, 42, 0.04);
    --border: rgba(15, 23, 42, 0.12);

    --text: #0f172a;
    --muted: #475569;

    --accent: #2563eb;
    --accent-2: #3b82f6;

    --shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

/* ---------- RESET & GLOBAL BACKGROUND ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    /* Ensure the HTML tag can grow with content */
    height: auto;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--text);
    position: relative; /* Required for the pseudo-element */
    min-height: 100vh;
    background-color: var(--bg); /* Safety fallback color */
}

/* This creates a single layer that stretches to the bottom of ALL content */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Stretches to the full scrollable height of the body */
    z-index: -1;    /* Keeps it behind your text/cards */
    
    background: 
        radial-gradient(1200px 600px at 20% 0%, rgba(59,130,246,0.22), rgba(59,130,246,0) 55%),
        radial-gradient(900px 500px at 80% 10%, rgba(96,165,250,0.14), rgba(96,165,250,0) 56%),
        linear-gradient(135deg, var(--bg-2), var(--bg));
    
    background-repeat: no-repeat;
    background-size: cover; /* Forces the gradient to stretch to the bottom */
}
/* ---------- NAVBAR ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 16, 32, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
[data-theme="light"] header { background: rgba(255,255,255,0.75); }

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.logo {
    font-weight: 800;
    letter-spacing: 0.4px;
    color: var(--accent);
    font-size: 1.1rem;
    text-decoration: none;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    transition: color 0.2s ease;
}
nav a:hover { color: var(--text); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.06s ease, background 0.2s ease, border 0.2s ease;
}
.btn:hover { background: rgba(148,163,184,0.08); }
.btn:active { transform: translateY(1px); }

.btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

.icon-btn {
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0;
}

.hamburger {
    display: none;
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
    display: none;
    border-top: 1px solid var(--border);
    background: rgba(11, 16, 32, 0.7);
    backdrop-filter: blur(12px);
}
[data-theme="light"] .mobile-menu { background: rgba(255,255,255,0.85); }

.mobile-menu.open { display: block; }

.mobile-menu a {
    display: block;
    padding: 0.95rem 1.5rem;
    text-decoration: none;
    color: var(--muted);
    font-weight: 700;
    border-bottom: 1px solid rgba(148,163,184,0.14);
}
.mobile-menu a:hover { color: var(--text); background: rgba(148,163,184,0.08); }
.mobile-menu .mobile-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
}
.mobile-menu .mobile-actions .btn { flex: 1; justify-content: center; }

/* ---------- HERO / PAGE ---------- */
.hero {
    padding: 5.5rem 0 3.5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.25rem;
    align-items: center;
}

h1 {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.lead {
    margin-top: 1.1rem;
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 56ch;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); line-height: 1.6; }

.section {
    padding: 2.5rem 0 4rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* ---------- FORMS ---------- */
.form {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}
.field label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.field input {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.08);
    color: var(--text);
    outline: none;
}
[data-theme="light"] .field input { background: rgba(15,23,42,0.04); }

.helper {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer {
    padding: 2.25rem 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.95rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    nav ul { display: none; }
    .hamburger { display: inline-flex; }
    .hero { grid-template-columns: 1fr; padding: 4rem 0 2.5rem; }
    .grid-3 { grid-template-columns: 1fr; }
}

/* img */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-card-media img {
    border-radius: 14px;
    width: 100%;
    object-fit: cover; /* Prevents stretching */
}

.container {
    max-width: 1200px;
    margin: 0 auto; /* Centers the whole page content */
    padding: 0 20px;
    width: 100%;
}


@media (max-width: 480px) {
    .kicker {
        font-size: 11px;
        padding: 6px 10px;
    }
    h1 {
        font-size: 28px; /* Extra fallback for tiny screens */
    }
}