* {
    box-sizing: border-box;
}

:root {
    --bg: #0f172a;
    --bg-light: #111827;
    --surface: #1e293b;
    --surface-light: #f8fafc;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-dark: #0ea5e9;
    --border: rgba(148, 163, 184, 0.16);
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header,
.site-footer {
    padding: 1rem 0;
}

.header-inner,
.footer-inner,
.about-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    color: var(--text);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--accent);
}

.hero-section {
    padding: 5rem 0 3rem;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: carousel-fade 12s infinite;
}

.carousel-slide:nth-child(2) {
    animation-delay: 3s;
}

.carousel-slide:nth-child(3) {
    animation-delay: 6s;
}

.carousel-slide:nth-child(4) {
    animation-delay: 9s;
}

@keyframes carousel-fade {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    25% {
        opacity: 1;
    }
    35% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.05;
}

.hero-content p {
    margin: 0 0 2rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.button {
    border: none;
    border-radius: 999px;
    padding: 0.95rem 1.6rem;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    background: var(--accent-dark);
    outline: none;
}

.button-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.section {
    padding: 4rem 0;
}

.section-light {
    background: var(--surface-light);
    color: #0f172a;
}

.section-dark {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card,
.about-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border);
    padding: 1.75rem;
    border-radius: 1rem;
}

.section-light .feature-card,
.section-light .about-card {
    background: #fff;
    color: #0f172a;
}

.section-light h2,
.section-light p,
.section-light h3 {
    color: #0f172a;
}

.about-inner {
    gap: 2rem;
}

.about-card {
    flex: 1 1 320px;
}

.contact-form {
    display: grid;
    gap: 1rem;
    max-width: 580px;
}

.contact-form label {
    display: grid;
    gap: 0.5rem;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: #0f172a;
    color: var(--text);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.site-footer p {
    margin: 0;
    color: var(--text-muted);
}

body.light-mode {
    --bg: #f8fafc;
    --bg-light: #ffffff;
    --surface: #f3f4f6;
    --surface-light: #ffffff;
    --text: #0f172a;
    --text-muted: #475569;
    --accent: #0284c7;
    --accent-dark: #0369a1;
    --border: rgba(148, 163, 184, 0.35);
}

@media (max-width: 768px) {
    .header-inner,
    .footer-inner,
    .about-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-section {
        padding-top: 3rem;
    }

    .hero-actions {
        width: 100%;
        justify-content: stretch;
    }

    .button {
        width: 100%;
    }
}
