:root {
    --bg: #f6f7fb;
    --bg-alt: #ffffff;
    --bg-hero-overlay: rgba(15, 23, 42, 0.45);
    --text: #111827;
    --muted: #6b7280;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.08);
    --border: #e5e7eb;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
    --radius-lg: 18px;
    --radius-xl: 24px;
}

html[data-theme="dark"] {
    --bg: #020617;
    --bg-alt: #020617;
    --bg-hero-overlay: rgba(15, 23, 42, 0.65);
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.09);
    --border: #1f2937;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", Arial, sans-serif;
    background: radial-gradient(circle at top left, #e0f2fe 0, var(--bg) 45%, var(--bg) 100%);
    color: var(--text);
    line-height: 1.5;
}

/* Layout */

.container {
    width: min(1120px, 100% - 3rem);
    margin-inline: auto;
}

.page-wrapper {
    padding-top: 5rem;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.92), rgba(248, 250, 252, 0.72));
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .site-header {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8));
    border-bottom-color: rgba(30, 64, 175, 0.6);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.85rem;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0, #fde68a, #fb923c);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.45);
    font-size: 1.1rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.03em;
}

.brand-tagline {
    font-size: 0.78rem;
    color: var(--muted);
}

.main-nav {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--muted);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.main-nav a:hover {
    background: var(--accent-soft);
    color: var(--accent);
    transform: translateY(-1px);
}

.theme-toggle {
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

html[data-theme="dark"] .theme-toggle {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(55, 65, 81, 0.9);
}

.theme-toggle-icon {
    font-size: 0.95rem;
}

/* Hero */

.hero {
    position: relative;
    margin-block: 2.5rem 3rem;
    min-height: 360px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
    gap: 2.5rem;
    align-items: stretch;
}

.hero-media {
    border-radius: var(--radius-xl);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg-hero-overlay);
}

.hero-content {
    align-self: center;
    max-width: 520px;
}

.hero h1 {
    font-size: clamp(2.1rem, 3vw, 2.6rem);
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
}

.hero p {
    color: var(--muted);
    margin-bottom: 1.35rem;
    font-size: 0.98rem;
    max-width: 36rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
    border-color: rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* Sections & cards */

.section {
    margin-block: 0 2.5rem;
}

.section-alt {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 55%),
                radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.12), transparent 55%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding-block: 3rem 3.5rem;
    margin-top: 2.5rem;
}

.section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.lead {
    font-size: 1.02rem;
    color: var(--muted);
    max-width: 44rem;
}

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

.card {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 1.4rem 1.35rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.08rem;
}

.card p {
    margin: 0;
    font-size: 0.94rem;
    color: var(--muted);
}

/* Forms */

.form {
    max-width: 460px;
    background: var(--bg-alt);
    padding: 1.5rem 1.4rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.form-row label {
    font-size: 0.85rem;
    font-weight: 500;
}

.form-row input,
.form-row textarea {
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .form-row input,
html[data-theme="dark"] .form-row textarea {
    background: rgba(15, 23, 42, 0.9);
}

/* Alerts */

.alert {
    border-radius: 999px;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.5);
}

.alert-success {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.5);
}

/* Footer */

.site-footer {
    padding-block: 1.6rem 2rem;
    margin-top: 2rem;
}

.footer-inner {
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    padding-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--muted);
}

.footer-small {
    opacity: 0.85;
}

/* Responsive */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-media {
        min-height: 220px;
        order: 1;
    }
    .hero-content {
        order: 2;
        margin-top: 1.4rem;
    }
}

@media (max-width: 720px) {
    .header-inner {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }
    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }
}
