*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    color-scheme: dark;

    --background: #000000;
    --surface: #080808;
    --surface-secondary: #0d0d0d;
    --surface-soft: #121212;

    --text: #f5f5f5;
    --text-muted: #9a9a9a;
    --text-subtle: #686868;

    --border: #242424;
    --border-strong: #454545;

    --accent: #fe4500;
    --accent-soft: rgba(254, 69, 0, 0.1);

    --shadow: 0 18px 55px rgba(0, 0, 0, 0.35);

    font-family: Arial, Helvetica, sans-serif;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;

    background: var(--background);

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    min-width: 320px;

    scroll-behavior: smooth;
    scrollbar-gutter: stable;

    background: var(--background);
}

body {
    min-width: 320px;
    min-height: 100vh;

    overflow-x: hidden;

    color: var(--text);
    background: var(--background);
}

body.modal-open {
    overflow: hidden;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

img,
svg,
video,
iframe {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
}

button,
a {
    outline: none;
}

button:focus-visible,
a:focus-visible,
iframe:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

::selection {
    color: #ffffff;
    background: var(--accent);
}

[hidden] {
    display: none !important;
}

/* Header */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(0, 0, 0, 0.94);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(14px);

    transform: translateY(0);

    transition:
        transform 220ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    align-items: center;
    gap: 28px;

    width: min(1180px, calc(100% - 40px));
    min-height: 72px;

    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    margin-right: auto;

    border: 1px solid transparent;
    border-radius: 10px;

    text-decoration: none;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        text-shadow 180ms ease;
}

.brand:hover {
    border-color: var(--border);

    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.24);

    text-shadow: 0 0 12px rgba(255, 255, 255, 0.12);
}

.brand-logo {
    width: 46px;
    height: 46px;

    padding: 4px;

    object-fit: contain;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 10px;
}

.brand-content {
    display: block;
}

.brand-name {
    display: block;

    color: var(--text);

    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.brand-label {
    display: block;

    margin-top: 3px;

    color: var(--text-subtle);

    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.desktop-nav a,
.mobile-nav a {
    color: var(--text-muted);

    border: 1px solid transparent;
    border-radius: 8px;

    font-size: 0.7rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        text-shadow 180ms ease;
}

.desktop-nav a {
    padding: 9px 11px;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    border-color: var(--border-strong);

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

    text-shadow: 0 0 9px rgba(255, 255, 255, 0.13);
}

.menu-button {
    display: none;

    width: 42px;
    height: 42px;

    padding: 10px;

    background: transparent;

    border: 1px solid var(--border);
    border-radius: 9px;

    cursor: pointer;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.menu-button:hover {
    border-color: var(--border-strong);

    box-shadow: 0 6px 17px rgba(0, 0, 0, 0.22);
}

.menu-button span {
    display: block;

    width: 100%;
    height: 1px;

    margin: 4px 0;

    background: var(--text);
}

.mobile-nav {
    width: min(1180px, calc(100% - 28px));

    margin: 0 auto;
    padding: 8px 0 14px;

    border-top: 1px solid var(--border);
}

.mobile-nav a {
    display: block;

    min-height: 44px;

    padding: 11px 12px;
    margin-top: 6px;

    border-color: var(--border);
}

/* Shared */

.section-container,
.hero-container,
.footer-container {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;
}

.section {
    padding: 100px 0;

    scroll-margin-top: 90px;
}

.section-label {
    margin: 0 0 11px;

    color: var(--accent);

    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-transform: uppercase;
}

/* Hero */

.hero {
    min-height: 100vh;

    padding: 160px 0 90px;

    background:
        radial-gradient(
            circle at 20% 5%,
            rgba(254, 69, 0, 0.08),
            transparent 34%
        ),
        var(--background);

    border-bottom: 1px solid var(--border);

    scroll-margin-top: 70px;
}

.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
    gap: 80px;
    align-items: center;
}

.hero-content h1 {
    max-width: 800px;

    margin: 0;

    color: var(--text);

    font-size: clamp(3.6rem, 9vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.07em;
    line-height: 0.88;
}

.hero-content h1 span {
    display: block;

    color: var(--text-muted);
}

.hero-text {
    max-width: 620px;

    margin: 28px 0 0;

    color: var(--text-muted);

    font-size: 0.9rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 34px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 48px;

    padding: 11px 16px;

    border-radius: 10px;

    font-size: 0.72rem;
    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        text-shadow 180ms ease;
}

.primary-button {
    color: #ffffff;
    background: var(--accent);

    border: 1px solid var(--accent);
}

.secondary-button {
    color: var(--text-muted);
    background: transparent;

    border: 1px solid var(--border-strong);
}

.primary-button:hover,
.secondary-button:hover {
    border-color: #ffffff;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);

    text-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}

.play-icon {
    font-size: 0.6rem;
}

.hero-info {
    display: grid;
    gap: 10px;
}

.info-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;

    padding: 19px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 14px;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.info-card:hover {
    border-color: var(--border-strong);

    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.info-number,
.feature-number {
    color: var(--accent);

    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.info-card strong {
    display: block;

    margin-bottom: 5px;

    color: var(--text);

    font-size: 0.82rem;
}

.info-card p {
    margin: 0;

    color: var(--text-subtle);

    font-size: 0.7rem;
    line-height: 1.65;
}

/* About */

.about-section {
    background: var(--surface);

    border-bottom: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
}

.about-grid h2,
.section-heading h2,
.video-heading h2 {
    margin: 0;

    color: var(--text);

    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 850;
    letter-spacing: -0.05em;
    line-height: 1;
}

.about-content {
    display: grid;
    align-content: center;
    gap: 18px;
}

.about-content p {
    margin: 0;

    color: var(--text-muted);

    font-size: 0.82rem;
    line-height: 1.9;
}

/* Features */

.features-section {
    background: var(--background);

    border-bottom: 1px solid var(--border);
}

.section-heading,
.video-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;

    margin-bottom: 38px;
}

.section-heading > p,
.video-heading > p {
    max-width: 420px;

    margin: 0;

    color: var(--text-muted);

    font-size: 0.75rem;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.feature-card {
    min-height: 230px;

    padding: 22px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 15px;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.feature-card:hover {
    border-color: var(--border-strong);

    box-shadow: 0 15px 38px rgba(0, 0, 0, 0.24);
}

.feature-card h3 {
    margin: 62px 0 10px;

    color: var(--text);

    font-size: 0.9rem;
    font-weight: 800;
}

.feature-card p {
    margin: 0;

    color: var(--text-subtle);

    font-size: 0.7rem;
    line-height: 1.7;
}

/* Video */

.video-section {
    background: var(--surface-secondary);
}

.video-preview {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    padding: 0;

    overflow: hidden;

    background: #050505;

    border: 1px solid var(--border);
    border-radius: 20px;

    cursor: pointer;

    box-shadow: var(--shadow);

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.video-preview:hover {
    border-color: var(--border-strong);

    box-shadow:
        0 22px 62px rgba(0, 0, 0, 0.45),
        0 0 0 1px var(--accent-soft);
}

.video-preview img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0.08) 70%
    );
}

.video-play {
    position: absolute;
    left: 28px;
    bottom: 28px;

    display: flex;
    align-items: center;
    gap: 12px;
}

.video-play-icon {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    color: #ffffff;
    background: var(--accent);

    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;

    font-size: 0.65rem;
}

.video-play-text {
    color: #ffffff;

    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.video-meta {
    position: absolute;
    right: 28px;
    bottom: 33px;

    color: rgba(255, 255, 255, 0.62);

    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Footer */

.site-footer {
    padding: 56px 0 24px;

    background: #030303;

    border-top: 1px solid var(--border);
}

.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;

    padding-bottom: 34px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 13px;

    max-width: 430px;
}

.footer-brand img {
    width: 48px;
    height: 48px;

    padding: 4px;

    object-fit: contain;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 10px;
}

.footer-brand strong {
    display: block;

    color: var(--text);

    font-size: 0.82rem;
}

.footer-brand p {
    margin: 5px 0 0;

    color: var(--text-subtle);

    font-size: 0.68rem;
    line-height: 1.6;
}

.footer-links,
.support-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.footer-links a,
.support-links a,
.footer-bottom p a {
    color: var(--text-muted);

    border: 1px solid transparent;
    border-radius: 7px;

    font-size: 0.66rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        text-shadow 180ms ease;
}

.footer-links a,
.support-links a {
    padding: 8px 9px;
}

.footer-links a:hover,
.support-links a:hover,
.footer-bottom p a:hover {
    border-color: var(--border-strong);

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

    text-shadow: 0 0 8px rgba(255, 255, 255, 0.12);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding-top: 20px;

    border-top: 1px solid var(--border);
}

.footer-bottom p {
    margin: 0;

    color: var(--text-subtle);

    font-size: 0.66rem;
    line-height: 1.6;
}

.footer-bottom p a {
    padding: 3px;

    color: var(--text-muted);
}

/* Back to top */

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 800;

    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    color: var(--text);
    background: var(--surface);

    border: 1px solid var(--border-strong);
    border-radius: 10px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);

    cursor: pointer;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        text-shadow 180ms ease;
}

.back-to-top:hover {
    border-color: var(--accent);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.38),
        0 0 0 2px var(--accent-soft);

    text-shadow: 0 0 10px rgba(254, 69, 0, 0.25);
}

/* Video modal */

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;

    display: grid;
    place-items: center;

    padding: 28px;
}

.video-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.9);

    backdrop-filter: blur(10px);
}

.video-dialog {
    position: relative;
    z-index: 1;

    width: min(1100px, 100%);
    max-height: calc(100vh - 56px);

    overflow: auto;

    background: var(--surface);

    border: 1px solid var(--border-strong);
    border-radius: 18px;

    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.7);
}

.video-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;

    padding: 20px;

    border-bottom: 1px solid var(--border);
}

.video-dialog-header h2 {
    margin: 0;

    color: var(--text);

    font-size: 1.1rem;
    font-weight: 800;
}

.video-dialog-header .section-label {
    margin-bottom: 5px;
}

.video-close {
    display: grid;
    place-items: center;

    flex-shrink: 0;

    width: 42px;
    height: 42px;

    color: var(--text);
    background: transparent;

    border: 1px solid var(--border-strong);
    border-radius: 9px;

    font-size: 1.3rem;
    line-height: 1;

    cursor: pointer;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        text-shadow 180ms ease;
}

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

    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.25);

    text-shadow: 0 0 10px rgba(254, 69, 0, 0.25);
}

.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;

    background: #000000;
}

.video-frame iframe {
    width: 100%;
    height: 100%;

    border: 0;
}

.visually-hidden {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}

/* Responsive */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 50px;
    }

    .hero-info {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .header-container {
        width: calc(100% - 28px);
        min-height: 68px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .hero {
        padding: 135px 0 70px;
    }

    .hero-container,
    .section-container,
    .footer-container {
        width: calc(100% - 28px);
    }

    .hero-content h1 {
        font-size: clamp(3rem, 17vw, 5.2rem);
    }

    .hero-info {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 75px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .section-heading,
    .video-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .footer-main,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links,
    .support-links {
        justify-content: flex-start;
    }

    .video-modal {
        padding: 14px;
    }
}

@media (max-width: 520px) {
    .brand-label {
        display: none;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 200px;
    }

    .video-play {
        left: 16px;
        bottom: 16px;
    }

    .video-meta {
        display: none;
    }

    .video-play-icon {
        width: 42px;
        height: 42px;
    }

    .video-dialog-header {
        padding: 15px;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
    }
}

@media (max-width: 375px) {
    .hero-container,
    .section-container,
    .footer-container {
        width: calc(100% - 24px);
    }

    .header-container {
        width: calc(100% - 24px);
    }

    .brand-name {
        font-size: 0.8rem;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}
