:root {
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --navy: #080c14;
    --navy-soft: #0d1420;
    --ink: #0f172a;
    --ink-soft: #475569;
    --bg: #f8fafc;
    --border: #1e293b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

/* Top navigation bar */
.topbar {
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-logo {
    height: 34px;
    width: auto;
    display: block;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 100px;
    white-space: nowrap;
    transition: background .15s ease, transform .15s ease;
}

.cta-btn:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.cta-btn.large {
    font-size: 16px;
    padding: 16px 32px;
}

.cta-btn.arrow-only {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    font-size: 22px;
}

/* Hero */
.hero {
    position: relative;
    background:
        linear-gradient(90deg, rgba(8, 12, 20, .8) 0%, rgba(8, 12, 20, .55) 45%, rgba(8, 12, 20, .2) 100%),
        linear-gradient(0deg, rgba(8, 12, 20, .7) 0%, rgba(8, 12, 20, .05) 40%, rgba(8, 12, 20, .35) 100%),
        url('showroom.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 32px 160px;
}

.hero-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 0 0 24px;
    max-width: 720px;
}

.hero h1 .accent {
    color: var(--accent);
}

.hero p.lead {
    font-size: 18px;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 560px;
    margin: 0 0 40px;
}

.hero .pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 40px;
}

.app-shot {
    max-width: 1100px;
    margin: 64px auto 0;
    border-radius: 16px;
    overflow: hidden;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}

.app-shot-bar {
    padding: 2px 16px;
    background: #12161f;
}

.app-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.hero .pill-row span {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #e2e8f0;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
}

/* Reusable image placeholder */
.img-placeholder {
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    background: repeating-linear-gradient(
        45deg,
        #eef2f7,
        #eef2f7 12px,
        #e2e8f0 12px,
        #e2e8f0 24px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    padding: 16px;
}

.img-placeholder.on-dark {
    border-color: rgba(255, 255, 255, .28);
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, .04),
        rgba(255, 255, 255, .04) 12px,
        rgba(255, 255, 255, .08) 12px,
        rgba(255, 255, 255, .08) 24px
    );
    color: #cbd5e1;
}

/* Specification page */
.spec-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.section-title {
    max-width: 800px;
    margin: 48px auto 20px;
}

.spec-content > .meta-row,
.spec-content > .spec-intro {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Role cards */
.role-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 8px;
}

.role-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    flex: 0 1 176px;
}

.avatar-placeholder {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 999px;
    border: 2px dashed #94a3b8;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.role-card h3 {
    font-size: 15px;
    margin: 0 0 4px;
}

.role-card p {
    font-size: 13px;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.4;
}

/* Module cards */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    flex: 0 1 330px;
}

.card .img-placeholder {
    aspect-ratio: 16 / 9;
    margin-bottom: 16px;
}

.card-shot {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}

.card h3 {
    font-size: 17px;
    margin: 0 0 10px;
    color: var(--ink);
}

.card ul {
    margin: 0;
    padding-left: 18px;
}

.card li {
    font-size: 14px;
    line-height: 1.5;
    margin: 6px 0;
    color: var(--ink-soft);
}

.spec-content h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.spec-intro {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-soft);
}

.back-link {
    display: inline-block;
    margin: 32px 0 0;
    color: #0e7490;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.spec-content h2 {
    font-size: 20px;
    margin: 40px 0 12px;
    color: #0e7490;
}

.spec-content h2:first-of-type {
    margin-top: 32px;
}

.spec-content ul {
    margin: 0;
    padding-left: 20px;
}

.spec-content li {
    margin: 8px 0;
    line-height: 1.55;
}

.spec-content li strong {
    color: var(--ink);
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 8px;
}

.pill {
    background: #ecfeff;
    color: #0e7490;
    border: 1px solid #a5f3fc;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
}

/* Video training boxes */
.video-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.video-box {
    position: relative;
    flex: 0 1 260px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: #0d1117;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.video-grid-featured {
    margin-bottom: 20px;
}

.video-box-featured {
    flex-basis: 640px;
    max-width: 640px;
    border: 2px solid var(--accent);
    box-shadow: 0 8px 24px rgba(6, 182, 212, .18);
}

.video-box-featured .play-badge {
    width: 72px;
    height: 72px;
    font-size: 22px;
}

.video-box-featured .video-box-title {
    font-size: 15px;
}

.video-box img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    opacity: .92;
    transition: opacity .15s ease, transform .2s ease;
}

.video-box:hover img {
    opacity: 1;
    transform: scale(1.03);
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(8, 12, 20, .55);
    border: 1px solid rgba(255, 255, 255, .5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.video-box-title {
    display: block;
    padding: 10px 12px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    background: #fff;
}

/* Video training section — distinct background to break up the page */
.video-section {
    background: #eef2f7;
    border-top: 1px solid rgba(15, 23, 42, .06);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    padding: 8px 0 56px;
}

.video-section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.video-section-inner h2.section-title {
    max-width: 800px;
    margin: 40px auto 12px;
    font-size: 20px;
    color: #0e7490;
}

/* CTA banner above the footer */
.cta-section {
    position: relative;
    background:
        linear-gradient(rgba(8, 12, 20, .55), rgba(8, 12, 20, .55)),
        url('showroom-2.jpg');
    background-size: cover;
    background-position: center;
    padding: 64px 24px;
    text-align: center;
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.16);
}

.cta-section-inner {
    max-width: 640px;
    margin: 0 auto;
}

.cta-section-inner h2 {
    color: #fff;
    font-size: 28px;
    margin: 0 0 12px;
    line-height: 1.3;
}

.cta-section-inner p {
    color: #fff;
    font-size: 16px;
    margin: 0 0 28px;
}

/* Video folder listing */
.video-folder {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.video-folder-group {
    flex: 1 1 220px;
    min-width: 220px;
}

.video-folder-group h4 {
    margin: 0 0 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #94a3b8;
}

.video-folder-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.video-folder-group li {
    margin: 0;
}

.video-folder-group a {
    display: block;
    padding: 7px 0;
    font-size: 14px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}

.video-folder-group a::before {
    content: "▶";
    color: #0e7490;
    font-size: 9px;
    margin-right: 8px;
}

.video-folder-group a:hover {
    color: var(--accent);
}

/* Video modal player */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 20, .85);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.video-modal.open {
    display: flex;
}

.video-modal-inner {
    position: relative;
    width: 100%;
    max-width: 960px;
}

.video-modal-title {
    color: #fff;
    font-weight: 600;
    margin: 0 0 10px;
    padding-right: 40px;
}

.video-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

#video-modal-player {
    display: block;
    width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    background: #000;
}

/* Image lightbox */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 20, .9);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.image-modal.open {
    display: flex;
}

.image-modal-inner {
    position: relative;
    max-width: 1200px;
    max-height: 90vh;
}

.image-modal-inner img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(8, 12, 20, .6);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-nav:hover {
    background: rgba(8, 12, 20, .85);
}

.image-modal-prev {
    left: -24px;
}

.image-modal-next {
    right: -24px;
}

@media (max-width: 640px) {
    .image-modal-prev {
        left: 4px;
    }
    .image-modal-next {
        right: 4px;
    }
}

/* Privacy / cookies policy modals */
.policy-modal,
.cookie-settings-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 220;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 12, 20, .85);
}

.policy-modal.open,
.cookie-settings-modal.open {
    display: flex;
}

.policy-modal .modal,
.cookie-settings-modal .modal {
    width: min(720px, 100%);
    max-height: calc(100dvh - 3rem);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.modal-body {
    padding: 20px 22px 24px;
    overflow: auto;
}

.policy-content {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.65;
}

.policy-content h3 {
    color: var(--ink);
    font-size: 16px;
    margin: 18px 0 8px;
}

.policy-content h3:first-child {
    margin-top: 0;
}

.policy-content p {
    margin: 8px 0;
}

.policy-content ul {
    margin: 6px 0 12px 20px;
    padding: 0;
}

.policy-content li {
    margin: 4px 0;
}

.policy-content a {
    color: var(--accent);
}

.cookie-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    margin-top: 12px;
}

.cookie-toggle strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
    margin-bottom: 3px;
}

.cookie-toggle span {
    display: block;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.4;
    max-width: 34ch;
}

.cookie-switch input {
    width: 44px;
    height: 26px;
    appearance: none;
    -webkit-appearance: none;
    background: #cbd5e1;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    outline: none;
}

.cookie-switch input::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 3px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #fff;
}

.cookie-switch input:checked {
    background: var(--accent-light);
}

.cookie-switch input:checked::after {
    transform: translate(18px, -50%);
}

.cookie-switch input:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

.cookie-banner {
    display: none;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 210;
    padding: 16px;
}

.cookie-banner.open {
    display: block;
}

.cookie-banner-inner {
    width: min(1040px, 100%);
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .3);
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

.cookie-banner p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-actions .btn-ghost,
.cookie-actions .cta-btn {
    padding: 10px 18px;
    font-size: 14px;
}

@media (max-width: 640px) {
    .cookie-banner-inner {
        grid-template-columns: 1fr;
    }
    .cookie-actions {
        justify-content: flex-start;
    }
}

.footer {
    padding: 3.5rem 2rem 2.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: var(--navy-soft);
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr 0.7fr;
    gap: 2.25rem;
    align-items: start;
}

.footer-contacts {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.7;
}

.footer-contacts strong {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.footer-contacts a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-contacts a:hover {
    color: #f1f5f9;
}

.footer-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links > span {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.footer-links a {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: #f1f5f9;
}

.footer-bottom {
    max-width: 1320px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    text-align: center;
}

.footer-logo {
    height: 32px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto 1rem;
}

.footer-copy {
    font-size: 0.9rem;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 34px;
    }

    .hero-inner {
        padding: 80px 20px 90px;
    }
}
