:root {
    --bg: #050913;
    --bg-soft: #0b1324;
    --panel: rgba(9, 18, 35, 0.86);
    --panel-border: rgba(103, 154, 255, 0.18);
    --text: #eaf1ff;
    --muted: #a3b5d6;
    --primary: #2aa5ff;
    --primary-strong: #1471ff;
    --line: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(43, 114, 255, 0.18), transparent 30%),
        radial-gradient(circle at 100% 20%, rgba(42, 165, 255, 0.14), transparent 28%),
        linear-gradient(180deg, #030711 0%, #071120 45%, #04070f 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

[hidden] {
    display: none !important;
}

body.modal-open {
    overflow: hidden;
}

.site-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 36px;
}

.topbar,
.panel,
.hero-visual-card,
.card {
    backdrop-filter: blur(12px);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: rgba(8, 14, 27, 0.7);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.brand-block {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo,
.brand-block img,
.topbar .brand-logo,
.topbar .brand-block img {
    width: 240px !important;
    height: 240px !important;
    max-width: 240px !important;
    max-height: 240px !important;
    object-fit: contain !important;
    object-position: center center;
    background: transparent;
    border-radius: 14px;
    border: 1px solid rgba(122, 185, 255, 0.14);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    flex: 0 0 240px !important;
    overflow: visible;
}

.brand-copy {
    display: grid;
    gap: 0;
}

.brand-sub {
    color: var(--muted);
    font-size: 0.94rem;
}

.nav-links {
    display: flex;
    gap: 22px;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero {
    padding-bottom: 6px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 0;
}

.hero-copy,
.hero-visual-card,
.panel {
    border: 1px solid var(--panel-border);
    background: linear-gradient(180deg, rgba(10, 20, 38, 0.92), rgba(6, 12, 24, 0.88));
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 34px;
    border-radius: 28px;
}

.hero-copy h1,
.panel h2 {
    margin: 0 0 16px;
    line-height: 1.05;
}

.hero-copy h1 {
    font-size: clamp(1.2rem, 2.4vw, 2.26rem);
    max-width: 12ch;
}

.eyebrow,
.section-tag {
    margin: 0 0 14px;
    color: #7ab9ff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.eyebrow {
    font-size: 1.14rem;
}

.section-tag {
    font-size: 0.78rem;
}

.lead,
.panel p,
.card p,
.process-item p,
.value-points p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 22px 0 18px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled,
.button[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

.button-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: white;
    box-shadow: 0 16px 40px rgba(20, 113, 255, 0.35);
}

.button-secondary {
    border-color: rgba(122, 185, 255, 0.25);
    background: rgba(255,255,255,0.02);
}

.mini-points {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 8px;
}

.hero-visual-card {
    border-radius: 28px;
    padding: 12px;
    min-height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: visible;
}

.hero-placeholder {
    min-height: 860px;
}

.placeholder-surface {
    width: 100%;
    height: 100%;
    min-height: 830px;
    border-radius: 24px;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
        linear-gradient(180deg, rgba(8, 16, 31, 0.98), rgba(5, 12, 24, 0.92));
    border: 1px solid rgba(122, 185, 255, 0.14);
}

.placeholder-surface::before,
.placeholder-surface::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
}

.placeholder-surface::before {
    background:
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.18;
    pointer-events: none;
}

.placeholder-surface::after {
    background:
        radial-gradient(circle at 78% 18%, rgba(42,165,255,0.18), transparent 24%),
        radial-gradient(circle at 18% 78%, rgba(111,218,255,0.10), transparent 30%);
    pointer-events: none;
}

.placeholder-title,

.project-showcase {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    padding: 0 18px 18px;
}

.project-showcase-image {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid rgba(122, 185, 255, 0.14);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.placeholder-caption {
    position: relative;
    z-index: 1;
}

.placeholder-title {
    padding: 18px 22px 10px;
    color: #dbeaff;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 1.14rem;
    font-weight: 800;
}

.prototype-hover-wrap {
    position: relative;
    z-index: 2;
    width: calc(100% - 8px);
    margin: 0 auto 12px;
}

.prototype-path-image {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 22px;
    object-fit: contain;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(122, 185, 255, 0.12);
}

.prototype-hover-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(2, 8, 18, 0.92);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.prototype-hover-wrap:hover .prototype-hover-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.prototype-popup-image {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.placeholder-caption {
    padding: 0 22px 16px;
    color: #9eb5d5;
    font-size: 0.96rem;
    margin-top: auto;
}

.panel {
    margin-top: 16px;
    border-radius: 28px;
    padding: 30px;
}

.cards {
    display: grid;
    gap: 18px;
}

.three-up {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 14px;
}

.card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.02);
}

.card h3 { margin-top: 0; }

.split-panel {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 26px;
}

.process-list {
    display: grid;
    gap: 16px;
}

.process-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.process-item span {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(42, 165, 255, 0.22), rgba(20, 113, 255, 0.10));
    border: 1px solid rgba(122, 185, 255, 0.2);
    font-weight: 800;
    color: #9bd1ff;
}

.value-band {
    display: grid;
    gap: 18px;
}

.value-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.value-points > div {
    padding: 22px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
}

.contact-panel {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-row,
.full-width {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width {
    grid-column: 1 / -1;
}

label {
    font-weight: 600;
    color: #d8e6ff;
}

input,
textarea,
select {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    padding: 14px 15px;
    font: inherit;
    outline: none;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #cfe6ff 50%),
        linear-gradient(135deg, #cfe6ff 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 15px) calc(50% - 3px);
    background-size: 7px 7px, 7px 7px;
    background-repeat: no-repeat;
    padding-right: 42px;
}

select option {
    background: #0c1528;
    color: #eaf1ff;
}

input::placeholder,
textarea::placeholder {
    color: #8da5c9;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(122, 185, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(42, 165, 255, 0.10);
}

textarea {
    resize: vertical;
    min-height: 180px;
}

.small-note {
    font-size: 0.95rem;
}

.form-status {
    grid-column: 1 / -1;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 120, 120, 0.32);
    background: rgba(120, 16, 16, 0.22);
    color: #ffd6d6;
}

.trap {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.footer {
    padding: 18px 6px 6px;
    color: var(--muted);
    font-size: 0.95rem;
    text-align: center;
}

.submit-overlay,
.success-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 10, 20, 0.72);
    backdrop-filter: blur(6px);
}

.submit-overlay.is-visible,
.success-modal.is-visible {
    display: flex;
}

.submit-overlay-card,
.success-modal-card {
    width: min(92vw, 420px);
    padding: 28px 24px;
    border-radius: 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(10, 20, 38, 0.98), rgba(6, 12, 24, 0.96));
    border: 1px solid rgba(122, 185, 255, 0.18);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.success-modal-card h3 {
    margin: 0 0 20px;
    line-height: 1.35;
}

.spinner {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.16);
    border-top-color: #2aa5ff;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
    .hero-grid,
    .split-panel,
    .contact-panel,
    .three-up,
    .value-points {
        grid-template-columns: 1fr;
    }

    .hero-placeholder {
        min-height: 620px;
    }

    .placeholder-surface {
        min-height: 580px;
    }

    .prototype-hover-popup {
        display: none;
    }
}

@media (max-width: 720px) {
    .site-shell {
        width: min(100% - 18px, 1180px);
    }

    .topbar {
        padding: 14px 16px;
    }

    .nav-links {
        display: none;
    }

    .hero-copy,
    .panel {
        padding: 24px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: clamp(1rem, 4.8vw, 1.8rem);
    }

    .brand-logo,
    .brand-block img,
    .topbar .brand-logo,
    .topbar .brand-block img {
        width: 192px !important;
        height: 192px !important;
        max-width: 192px !important;
        max-height: 192px !important;
        object-fit: contain !important;
        object-position: center center;
        border-radius: 12px;
        flex: 0 0 192px !important;
    }

    .brand-sub {
        font-size: 0.84rem;
    }

    .eyebrow {
        font-size: 0.94rem;
    }

    .hero-visual-card {
        padding: 12px;
    }

    .hero-placeholder {
        min-height: 460px;
    }

    .placeholder-surface {
        min-height: 430px;
    }

    .placeholder-title {
        font-size: 0.94rem;
        padding: 16px 16px 10px;
    }

    .prototype-hover-wrap {
        width: calc(100% - 10px);
    }

    .prototype-path-image {
        border-radius: 16px;
    }


    .project-showcase {
        padding: 0 12px 12px;
    }

    .project-showcase-image {
        max-height: 320px;
        border-radius: 16px;
    }

    .placeholder-caption {
        padding: 0 16px 16px;
        font-size: 0.9rem;
    }

    .prototype-hover-popup {
        display: none;
    }
}
