:root {
    --bg: #0d1624;
    --surface: #0f1d32;
    --surface-2: #13233a;
    --text: #e9f2ff;
    --muted: #8fa3c1;
    --primary: #3c5af5;
    --primary-2: #21c8d6;
    --accent: #ffd166;
    --mint: #2fe6e0;
    --border: #1f2e46;
    --container-max: 1100px;
    --container-wide: 1160px;
    --page-padding: clamp(14px, 4vw, 40px);
    --section-gap: clamp(26px, 6vw, 56px);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 500px at 10% -10%, #284a9e55, transparent 60%),
        radial-gradient(1000px 420px at 100% 0%, #18a9c03d, transparent 55%),
        var(--bg);
    position: relative;
    overflow-x: hidden;
}

body>header,
body>section,
body>footer {
    position: relative;
    z-index: 2;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(var(--container-max), calc(100vw - (var(--page-padding) * 2)));
    margin: 0 auto;
}

.starfield-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.82;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(860px 330px at 50% -8%, #3c5af533, transparent 72%),
        radial-gradient(640px 280px at 85% 12%, #21c8d61a, transparent 78%),
        radial-gradient(540px 220px at 16% 20%, #2fe6e012, transparent 78%);
    animation: skyPulse 10s ease-in-out infinite;
}

.hero {
    padding: clamp(34px, 9vw, 72px) 0 clamp(24px, 6vw, 56px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 5vw, 30px);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #0f1e33;
    color: var(--primary-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
    margin-bottom: 14px;
}

.eyebrow-star {
    color: var(--accent);
    text-shadow: 0 0 10px #ffd16688;
}

h1 {
    margin: 0;
    font-size: clamp(28px, 9vw, 56px);
    line-height: 1.08;
    text-wrap: balance;
}

.subtitle {
    margin: 14px 0 20px;
    color: var(--muted);
    line-height: 1.62;
    font-size: clamp(15px, 4.1vw, 19px);
    max-width: 620px;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-radius: 12px;
    padding: 13px 18px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    transition: transform .2s ease, opacity .2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #061120;
}

.btn-secondary {
    border-color: var(--border);
    background: #122041;
    color: var(--text);
}

.meta {
    color: #9cb0dd;
    font-size: 13px;
    line-height: 1.5;
}

.hero-card {
    border: 1px solid #2a3f63;
    border-radius: clamp(18px, 6vw, 28px);
    background: linear-gradient(180deg, #142844, #0f1d32);
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(2, 9, 20, 0.42);
    width: min(460px, 100%);
    padding: clamp(8px, 2.8vw, 10px);
    justify-self: center;
    position: relative;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: -12% -10% auto -10%;
    height: 56%;
    border-radius: 999px;
    background: radial-gradient(circle, #21c8d63d 0%, transparent 70%);
    filter: blur(30px);
    z-index: 0;
}

.hero-card img {
    position: relative;
    z-index: 1;
    width: 100%;
    display: block;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    background: #0f1e33;
    border-radius: clamp(14px, 4.8vw, 20px);
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.features {
    padding: 8px 0 4px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.feature {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: clamp(16px, 5vw, 21px);
    background: linear-gradient(180deg, #13233a, #0f1d32);
}

.feature h3 {
    margin: 0 0 8px;
    font-size: clamp(17px, 4.5vw, 20px);
    line-height: 1.35;
}

.feature p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.concept-showcase {
    padding: var(--section-gap) 0 12px;
    overflow-x: clip;
}

.concept-showcase .container,
.gallery-real .container {
    width: min(var(--container-wide), calc(100vw - (var(--page-padding) * 2)));
}

.gallery {
    padding: var(--section-gap) 0;
}

.gallery-real {
    padding-top: 12px;
}

.gallery h2 {
    margin: 0 0 12px;
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.15;
    text-wrap: balance;
}

.section-lead {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.65;
    font-size: clamp(14px, 3.8vw, 16px);
    max-width: 72ch;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.gallery-grid.concept-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(1400px, 100%);
    margin: 0 auto;
    position: static;
    transform: none;
}

.concept-shot {
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    outline: 0;
}

.concept-shot .shot-link {
    min-height: 0;
    display: block;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    border: 0;
    box-shadow: none;
    outline: 0;
}

.concept-shot .shot-link img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(72vh, 760px);
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    border: 0;
    box-shadow: none;
}

.concept-shot .shot-link:hover {
    transform: none;
    filter: none;
}

.gallery-real .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.gallery-real .shot-link {
    aspect-ratio: 9 / 16;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1323;
}

.gallery-real .shot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.shot {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.shot-link {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    transition: transform .22s ease, filter .22s ease;
}

.shot-link:focus-visible,
.lightbox-close:focus-visible {
    outline: 2px solid var(--primary-2);
    outline-offset: -2px;
}

.shot img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
}

.phone-shot {
    padding: clamp(5px, 1.8vw, 8px);
    border-radius: clamp(18px, 7vw, 30px);
    border: 1px solid #2a3f63;
    background: linear-gradient(180deg, #141f33, #0d1624);
    box-shadow: 0 14px 30px rgba(2, 9, 20, 0.38);
}

.phone-shot .shot-link {
    aspect-ratio: 9 / 19.5;
    border-radius: clamp(14px, 5vw, 24px);
    overflow: hidden;
}

.phone-shot img {
    border-radius: clamp(14px, 5vw, 24px);
}

.lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 9, 20, 0.88);
    backdrop-filter: blur(4px);
    z-index: 1000;
    padding: clamp(14px, 4vw, 28px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-image {
    max-width: min(1200px, 94vw);
    max-height: 88vh;
    border-radius: 12px;
    border: 0;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    background: rgba(8, 15, 31, 0.82);
    color: #eaf1ff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

body.lightbox-open {
    overflow: hidden;
}

footer {
    border-top: 1px solid #22345f;
    padding: 20px 0 max(22px, env(safe-area-inset-bottom));
    color: #9cb0dd;
    font-size: 14px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.legal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.legal a {
    color: #cde0ff;
}

.legal a:hover,
.btn-secondary:hover {
    text-decoration: underline;
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        transform: translateY(-1px);
        opacity: .96;
    }

    .shot-link:hover {
        transform: translateY(-2px);
        filter: brightness(1.03);
    }
}

@media (min-width: 520px) {
    .actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .btn {
        width: auto;
    }
}

@media (min-width: 720px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid.concept-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .gallery-real .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-inner {
        align-items: center;
        gap: 16px;
    }
}

@media (min-width: 920px) {
    .hero-grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 32px;
    }

    .hero {
        padding-top: 72px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

}

@media (min-width: 1200px) {
    .gallery-real {
        padding-top: 24px;
    }

    .gallery {
        padding: 30px 0 60px;
    }

    .concept-showcase {
        padding: 34px 0 26px;
    }
}

@media (prefers-reduced-motion: reduce) {

    body::before,
    .btn,
    .shot-link,
    .lightbox {
        animation: none;
        transition: none;
    }
}

@keyframes skyPulse {

    0%,
    100% {
        opacity: .7;
    }

    50% {
        opacity: 1;
    }
}