:root {
    --bg: #0f172a;
    --bg-grad: linear-gradient(180deg, #0f172a 0%, #111827 40%, #0b1220 100%);
    --surface: #111827;
    --card: #0b1220;
    --elev: #111827;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #1f2937;
    --shadow: 0 12px 30px rgba(2, 6, 23, .35);
    --r: 16px;
    --primary: #2563eb;
    --primary-600: #1d4ed8;
    --primary-700: #1e40af;
    --focus: 0 0 0 3px rgba(37, 99, 235, .35)
}

html,
body {
    margin: 0;
    padding: 0
}

body {
    background: var(--bg-grad);
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.5
}

a {
    color: var(--text);
    text-decoration: none;
    opacity: .9
}

a:hover {
    opacity: 1
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .65rem 1rem;
    border-radius: var(--r);
    border: 1px solid var(--border);
    background: var(--elev);
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03)
}

.btn:hover {
    background: #0f172a
}

.btn-dark {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff
}

.btn-dark:hover {
    background: var(--primary-600)
}

.btn:focus {
    outline: none;
    box-shadow: var(--focus)
}

.full {
    width: 100%;
    display: flex;
    justify-content: center
}


/* Actionbar */

.actionbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 6, 23, .65);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border)
}

.actionbar .wrap {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700
}

.mark {
    background: var(--primary);
    color: #fff;
    padding: .45rem .75rem;
    border-radius: .6rem
}

.nav {
    display: flex;
    gap: 1rem;
    align-items: center
}

.nav a {
    color: #cbd5e1
}

.nav a:hover {
    color: #fff
}

.burger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem
}


/* Hero */

.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 24px;
    align-items: center;
    padding: 28px 0
}

.hero h1 {
    font-size: clamp(2.3rem, 3.0792rem + -2.2222vw, 2.8rem);
    margin: .4rem 0
}

.hero p {
    max-width: 560px;
    color: var(--muted)
}

.pill {
    display: inline-block;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .35rem .8rem;
    background: rgba(255, 255, 255, .04);
    color: #c7d2fe
}


/* Slideshow */

.slideshow {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 16/10;
    background: #0a0f1a
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity .7s ease, transform 1.2s ease
}

.slide.active {
    opacity: 1;
    transform: scale(1)
}

.slide-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .2), transparent)
}

.caption {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .6)
}

.control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(255, 255, 255, .85);
    padding: .55rem .8rem;
    border-radius: 50%;
    cursor: pointer
}

.control:hover {
    background: #fff
}

.control.prev {
    left: 12px
}

.control.next {
    right: 12px
}

.dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .55)
}

.dot.active {
    background: #fff
}


/* Sections */

.section {
    padding: 56px 0
}

.section.alt {
    background: radial-gradient(1000px 500px at 50% -200px, rgba(37, 99, 235, .15), transparent 60%)
}

.section-head {
    text-align: center;
    margin-bottom: 22px
}

.section-head h2 {
    margin: 0
}

.section-head .muted {
    color: var(--muted)
}


/* Cards */

.cards {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap
}

.card {
    background: linear-gradient(180deg, #0b1220, #0a1020);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 18px;
    max-width: 420px;
    flex: 1 1 300px
}

.card h3 {
    color: #dbeafe
}

.card p {
    color: var(--muted)
}

.card ul {
    padding-left: 1.2rem;
    color: #d1d5db
}


/* Builder */

.builder-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 18px;
    align-items: start
}

.builder {
    display: grid;
    gap: 12px
}

.builder label {
    display: grid;
    gap: 6px;
    font-weight: 600;
    color: #e5e7eb
}

.builder select,
.builder textarea {
    border: 1px solid var(--border);
    background: #0b1325;
    color: #e5e7eb;
    border-radius: 12px;
    padding: .7rem
}

.builder select:focus,
.builder textarea:focus {
    outline: none;
    box-shadow: var(--focus);
    border-color: var(--primary)
}

.notes textarea {
    min-height: 110px;
    resize: vertical
}

.builder-actions {
    display: flex;
    gap: 10px
}

.summary {
    position: sticky;
    top: 24px;
    background: #0b1325;
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 18px;
    box-shadow: var(--shadow)
}

.summary h4 {
    margin: 0 0 10px
}

.summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px
}

.summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px
}

.muted {
    color: var(--muted)
}

.strong {
    font-weight: 700
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0
}

.total {
    display: flex;
    align-items: center;
    justify-content: space-between
}


/* Contact */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.contact,
.contact-card {
    background: #0b1325;
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 16px;
    box-shadow: var(--shadow)
}

.contact label {
    display: grid;
    gap: 6px;
    font-weight: 600
}

.contact input,
.contact textarea {
    background: #0a1020;
    color: #e5e7eb;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .7rem
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    box-shadow: var(--focus);
    border-color: var(--primary)
}

.pairs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}


/* Footer */

.footer {
    border-top: 1px solid var(--border);
    background: #0a0f1a;
    color: #cbd5e1;
    text-align: center;
    padding: 28px 0
}

.footer .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 700;
    color: #fff
}

.footer .mark {
    background: var(--primary)
}

.footer p {
    margin: .5rem 0;
    color: #9fb3d1
}


/* Responsive */

@media (max-width:960px) {
    .hero {
        grid-template-columns: 1fr
    }
    .builder-grid {
        grid-template-columns: 1fr
    }
    .contact-grid {
        grid-template-columns: 1fr
    }
}

@media (max-width:720px) {
    .nav {
        display: none
    }
    .burger {
        display: block
    }
    .nav.open {
        position: absolute;
        right: 16px;
        top: 64px;
        background: #0b1325;
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: var(--shadow);
        padding: 8px;
        display: flex;
        flex-direction: column
    }
}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .slide {
        transition: none
    }
}


/* Utility for SR-only text */

.visually-hidden {
    position: absolute!important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap
}