:root {
    --bg-dark: #030b17;
    --bg-mid: #071a31;
    --panel: rgba(16, 30, 51, 0.7);
    --panel-strong: rgba(14, 25, 43, 0.9);
    --line: rgba(0, 210, 255, 0.35);
    --glow: #00d2ff;
    --text: #e8f2fc;
    --muted: #9db5ce;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: url('background.png') center center / cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    line-height: 1.65;
    overflow-x: hidden;
}

.site-header,
main,
.site-footer {
    position: relative;
    z-index: 1;
}

body.contact-page {
    display: flex;
    flex-direction: column;
}

body.contact-page main {
    flex: 1;
}

body.development-page {
    display: flex;
    flex-direction: column;
}

body.development-page main {
    flex: 1;
}

body.services-page {
    display: flex;
    flex-direction: column;
}

body.services-page main {
    flex: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    background: rgba(3, 11, 23, 0.86);
}

.site-header .container {
    width: min(1760px, 99vw);
}

.container {
    width: min(1280px, 94vw);
    margin: 0 auto;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 78px;
    gap: 20px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.28));
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: 0;
    gap: 16px;
}

.nav-link {
    color: #dbe9f7;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    padding: 8px 6px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--glow);
    border-color: var(--glow);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

.direct-email {
    font-family: 'Inter', sans-serif;
    text-transform: none;
    font-size: inherit;
}

main {
    flex: 1;
    padding: 48px 0 72px;
}

body:not(.contact-page):not(.development-page):not(.services-page) main {
    padding: 22px 0 18px;
}

.section {
    padding-top: 24px;
}

.hero-section {
    padding-top: 8px;
}

.hero-section .container {
    width: min(1760px, 99vw);
}

.hero-stack {
    display: grid;
    grid-template-columns: 2fr 1.18fr 0.9fr;
    gap: 14px;
    align-items: stretch;
}

.glass-panel {
    width: 100%;
    border: 1px solid rgba(138, 213, 255, 0.24);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(8, 23, 41, 0.56), rgba(9, 18, 35, 0.46));
    backdrop-filter: blur(11px) saturate(122%);
    -webkit-backdrop-filter: blur(11px) saturate(122%);
    box-shadow: inset 0 0 0 1px rgba(0, 210, 255, 0.06), 0 8px 38px rgba(1, 10, 24, 0.38);
}

.logo-panel {
    padding: 12px 14px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    background: linear-gradient(145deg, rgba(8, 23, 41, 0.88), rgba(9, 18, 35, 0.82));
}

.logo-panel .logo-frame {
    flex: 1;
    min-height: 220px;
}

.hero-copy-panel {
    padding: 22px 24px 24px;
    text-align: center;
    margin-top: 0;
    max-width: 620px;
    justify-self: center;
    transform: translateX(-4px);
    min-height: clamp(420px, 52vh, 560px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bottom-panel {
    padding: 24px;
    min-height: clamp(480px, 62vh, 660px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.logo-frame {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #070f1e;
    isolation: isolate;
    border-radius: 6px;
}

.logo-frame::before,
.logo-frame::after {
    content: "";
    position: absolute;
    left: -46px;
    right: -46px;
    top: -42px;
    bottom: -42px;
    z-index: 0;
    pointer-events: none;
    border-radius: 24px;
    filter: blur(34px);
}

.logo-frame::before {
    background:
        radial-gradient(ellipse at 50% 48%, rgba(0, 210, 255, 0.42) 0%, rgba(0, 210, 255, 0.24) 38%, rgba(0, 210, 255, 0.1) 60%, rgba(0, 210, 255, 0) 78%),
        radial-gradient(ellipse at 50% 62%, rgba(18, 111, 199, 0.3) 0%, rgba(18, 111, 199, 0) 70%);
    animation: hazePulse 6.4s ease-in-out infinite;
}

.logo-frame::after {
    background:
        radial-gradient(ellipse at 34% 50%, rgba(0, 210, 255, 0.2) 0%, rgba(0, 210, 255, 0.08) 42%, rgba(0, 210, 255, 0) 72%),
        radial-gradient(ellipse at 68% 52%, rgba(0, 188, 255, 0.18) 0%, rgba(0, 188, 255, 0.07) 40%, rgba(0, 188, 255, 0) 70%);
    animation: hazeDrift 8.8s ease-in-out infinite;
}

.main-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    object-position: center;
    filter: none;
    opacity: 1;
    border-radius: 8px;
}

.logo-video,
.main-logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.logo-video {
    z-index: 1;
    opacity: 0;
    object-fit: cover;
    background: #020a15;
}

.main-logo {
    z-index: 2;
    opacity: 0;
    object-fit: contain;
}

.logo-video.is-visible,
.main-logo.is-visible {
    opacity: 1;
}

@keyframes hazePulse {
    0%,
    100% {
        opacity: 0.48;
        transform: scale(0.98);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.04);
    }
}

@keyframes hazeDrift {
    0%,
    100% {
        opacity: 0.38;
        transform: translateX(-8px) scale(0.99);
    }
    50% {
        opacity: 0.64;
        transform: translateX(8px) scale(1.02);
    }
}

.hero-kicker {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 4.2px;
    font-size: 0.78rem;
    color: #b6f6ff;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 14px rgba(0, 210, 255, 0.9), 0 0 26px rgba(0, 210, 255, 0.46);
    animation: kickerSlideIn 1.9s ease-out both;
}

@keyframes kickerSlideIn {
    from {
        opacity: 0;
        transform: translateX(-120vw);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    margin: 0 auto 14px;
    width: min(820px, 100%);
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.4rem, 3.7vw, 2.3rem);
    letter-spacing: 0.5px;
    line-height: 1.22;
    text-shadow: 0 0 22px rgba(0, 62, 102, 0.45);
}

.hero-text {
    margin: 0 auto;
    width: min(700px, 100%);
    color: #d8e7f7;
    text-shadow: 0 0 12px rgba(6, 16, 30, 0.64);
}

.hero-actions {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.hero-stack .logo-panel {
    grid-column: 1 / 2;
    grid-row: 1;
    transform: translateX(-18px);
}

.hero-stack .hero-copy-panel {
    grid-column: 2 / 3;
    grid-row: 1;
    align-self: center;
}

.hero-stack .bottom-panel {
    grid-column: 3 / 4;
    grid-row: 1;
    transform: translateX(16px);
}

@media (min-width: 1800px) and (min-height: 1000px) {
    .site-header .container,
    .hero-section .container {
        width: min(1820px, 97vw);
    }

    body:not(.contact-page):not(.development-page):not(.services-page) main {
        padding-top: 12px;
        padding-bottom: 14px;
    }

    .hero-stack {
        grid-template-columns: 2fr 1.22fr 0.95fr;
        gap: 18px;
    }

    .hero-stack .logo-panel,
    .hero-stack .hero-copy-panel,
    .hero-stack .bottom-panel {
        transform: none;
    }

    .hero-copy-panel {
        max-width: 640px;
        min-height: clamp(440px, 58vh, 650px);
    }

    .bottom-panel {
        min-height: clamp(500px, 62vh, 700px);
    }
}

@media (min-width: 901px) and (max-width: 1700px) and (max-height: 930px) {
    .site-header .container,
    .hero-section .container {
        width: min(1600px, 96vw);
    }

    .nav-wrap {
        min-height: 68px;
    }

    .nav-link {
        letter-spacing: 1.5px;
        font-size: 0.68rem;
        padding: 7px 5px;
    }

    main {
        padding: 30px 0 34px;
    }

    body:not(.contact-page):not(.development-page):not(.services-page) main {
        padding-top: 8px;
        padding-bottom: 12px;
    }

    .section {
        padding-top: 12px;
    }

    .hero-stack {
        grid-template-columns: 1.75fr 1.05fr 0.9fr;
        gap: 12px;
    }

    .site-header {
        backdrop-filter: blur(8px);
    }

    .glass-panel {
        backdrop-filter: blur(7px) saturate(114%);
        -webkit-backdrop-filter: blur(7px) saturate(114%);
    }

    .hero-stack .logo-panel,
    .hero-stack .hero-copy-panel,
    .hero-stack .bottom-panel {
        transform: none;
    }

    .logo-panel {
        min-height: clamp(300px, 56vh, 520px);
    }

    .hero-copy-panel {
        margin-top: clamp(14px, 2.2vh, 28px);
        min-height: clamp(320px, 46vh, 440px);
        padding: 18px 20px 20px;
    }

    .hero-title {
        font-size: clamp(1.2rem, 2.5vw, 1.85rem);
    }

    .hero-text {
        font-size: 0.95rem;
    }

    .hero-actions {
        margin-top: 18px;
    }

    .bottom-panel {
        min-height: clamp(360px, 50vh, 500px);
        padding: 18px;
    }

    .content-block h2,
    .content-block h3 {
        margin-bottom: 8px;
        font-size: 1rem;
    }

    .content-block p,
    .clean-list li {
        font-size: 0.92rem;
    }

    .page-head {
        margin-bottom: 14px;
    }

    .page-head h1 {
        font-size: clamp(1.2rem, 2.3vw, 1.7rem);
        margin-bottom: 8px;
    }

    .page-head p {
        font-size: 0.94rem;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 12px;
    }

    .service-card,
    .dev-card,
    .contact-card {
        padding: 18px;
    }

    .service-card h3,
    .dev-card h3,
    .contact-card h3 {
        font-size: 0.88rem;
        margin-bottom: 8px;
    }

    .service-card p,
    .dev-card p,
    .contact-card p {
        font-size: 0.9rem;
    }

    .contact-columns {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .form-grid {
        gap: 10px;
    }

    .zbot-field-wrapper {
        margin-bottom: 14px;
    }

    .zbot-input-container {
        margin-top: 10px;
    }

    .zbot-input {
        font-size: 0.9rem;
        padding: 9px 12px;
    }

    .btn {
        font-size: 0.68rem;
        padding: 11px 18px;
    }

    .footer-wrap {
        padding: 12px 0;
    }
}

.content-block {
    padding: 2px 2px;
}

.content-block h2,
.content-block h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.6px;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.24);
}

.content-block p {
    margin: 0 0 12px;
    color: #dbe7f5;
}

.btn {
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    padding: 13px 24px;
    border: 1px solid var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #02131f;
    background: var(--glow);
    box-shadow: 0 0 14px rgba(0, 210, 255, 0.38);
}

.btn-primary:hover {
    box-shadow: 0 0 24px rgba(0, 210, 255, 0.45);
}

.btn-ghost {
    color: var(--glow);
    background: rgba(0, 210, 255, 0.08);
}

.btn-ghost:hover {
    background: rgba(0, 210, 255, 0.15);
}

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.panel {
    background: var(--panel);
    border: 1px solid rgba(0, 210, 255, 0.16);
    border-left: 3px solid var(--glow);
    border-radius: 10px;
    padding: 26px;
}

.panel h2,
.panel h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.6px;
    font-size: 1.05rem;
}

.panel p {
    margin: 0 0 12px;
    color: #d3e1ee;
}

.stack-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.clean-list {
    margin: 0;
    padding-left: 18px;
}

.clean-list li {
    margin-bottom: 8px;
    color: #d3e1ee;
}

.page-head {
    margin-bottom: 20px;
}

.page-head h1 {
    margin: 0 0 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: 0.8px;
}

.page-head p {
    margin: 0;
    color: var(--muted);
    width: min(720px, 100%);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.service-card,
.dev-card,
.contact-card {
    background: var(--panel-strong);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 10px;
    padding: 22px;
}

.service-card h3,
.dev-card h3,
.contact-card h3 {
    margin: 0 0 9px;
    font-size: 0.95rem;
    color: var(--glow);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.4px;
}

.service-card p,
.dev-card p,
.contact-card p {
    margin: 0;
    color: #d0deed;
}

.form-grid {
    display: grid;
    gap: 12px;
}

.quick-inquiry-form,
.quick-inquiry-form label,
.quick-inquiry-form input,
.quick-inquiry-form textarea {
    font-family: 'Orbitron', sans-serif;
}

label {
    font-size: 0.85rem;
    color: #cad9ea;
}

input,
textarea {
    width: 100%;
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: rgba(4, 13, 26, 0.8);
    border: 1px solid rgba(0, 210, 255, 0.24);
    padding: 12px 13px;
}

textarea {
    resize: vertical;
}

.contact-columns {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 16px;
}

.form-status {
    min-height: 1.1rem;
    margin: 2px 0 0;
    font-size: 0.78rem;
    letter-spacing: 0.2px;
}

.form-status.sending {
    color: #79bedf;
}

.form-status.success {
    color: #56f0c9;
}

.form-status.error {
    color: #ff8fa6;
}

#contact-submit:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    filter: grayscale(0.15);
}

.site-footer {
    border-top: 1px solid rgba(0, 210, 255, 0.16);
    background: rgba(3, 11, 23, 0.72);
}

.footer-wrap {
    text-align: center;
    padding: 16px 0;
}

.footer-wrap p {
    margin: 0;
    color: #86a3be;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 0.69rem;
}

/* ── Floating particle effect ── */
.service-card,
.dev-card,
.contact-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.glass-panel {
    isolation: isolate;
}

.particles-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.particles-global {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.glass-panel > *:not(.particles-layer),
.service-card > *:not(.particles-layer),
.dev-card > *:not(.particles-layer),
.contact-card > *:not(.particles-layer) {
    position: relative;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(140, 240, 255, 0.95);
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0);
    }
    12% {
        opacity: var(--p-op, 0.25);
    }
    88% {
        opacity: var(--p-op, 0.25);
    }
    100% {
        opacity: 0;
        transform: translateY(var(--p-rise, -120px)) translateX(var(--p-drift, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-kicker,
    .logo-frame::before,
    .logo-frame::after,
    .particle {
        animation: none !important;
    }

    .particles-layer,
    .particles-global {
        display: none;
    }

    .site-header,
    .glass-panel {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (max-width: 900px) {
    .hero-section .container {
        width: min(1120px, 92vw);
    }

    .hero-stack {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-stack .logo-panel,
    .hero-stack .hero-copy-panel,
    .hero-stack .bottom-panel {
        grid-column: auto;
        grid-row: auto;
    }

    .hero-copy-panel {
        margin-top: 0;
        transform: none;
        min-height: 0;
        display: block;
    }

    .logo-panel,
    .bottom-panel {
        min-height: 0;
    }

    .hero-stack .logo-panel,
    .hero-stack .bottom-panel {
        transform: none;
    }

    .two-col,
    .contact-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .nav-wrap {
        min-height: 96px;
        align-items: flex-start;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }

    main {
        padding-top: 28px;
    }
}
