:root {
    --background: #090909;
    --panel: #111111;
    --panel-soft: #171717;
    --border: rgba(255, 255, 255, 0.10);

    --text: #ffffff;
    --text-soft: #b8b8b8;
    --text-muted: #7d7d7d;

    --accent: #ff9f0a;

    --radius-large: 28px;
    --radius-medium: 18px;
    --radius-small: 12px;

    --max-width: 1320px;
    --header-height: 92px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top left,
            rgba(255, 159, 10, 0.08),
            transparent 30%
        ),
        var(--background);

    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.5;
}

button,
select,
a {
    font: inherit;
}

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

button {
    cursor: pointer;
}

a {
    color: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    min-height: var(--header-height);
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;

    gap: 13px;

    color: var(--text);
    text-decoration: none;
}

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

    display: block;
    border-radius: 13px;
}

.brand-copy {
    min-width: 0;
}

.brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand-tagline {
    margin-top: 1px;

    color: var(--text-muted);
    font-size: 12px;
}

.header-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}

.language-selector {
    min-height: 42px;

    padding: 0 12px;

    color: var(--text);
    background: var(--panel-soft);

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

    outline: none;
}

.app-store-button {
    min-height: 42px;

    padding: 0 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    color: #000000;

    border-radius: var(--radius-small);

    text-decoration: none;
    font-weight: 700;
}

.header-button {
    width: 44px;
    height: 42px;

    padding: 0;

    color: var(--text);
    background: var(--panel-soft);

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

    font-size: 20px;
}


/* =========================================================
   SIDE MENU
========================================================= */

.main-menu {
    position: fixed;

    z-index: 1001;

    top: 0;
    right: 0;

    width: min(360px, 90vw);
    height: 100vh;

    padding: 90px 26px 30px;

    background: rgba(12, 12, 12, 0.98);

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

    transform: translateX(105%);
    transition: transform 0.25s ease;
}

.main-menu.open {
    transform: translateX(0);
}

.close-menu-button {
    position: absolute;

    top: 22px;
    right: 22px;

    width: 44px;
    height: 44px;

    color: white;
    background: transparent;

    border: 1px solid var(--border);
    border-radius: 50%;

    font-size: 26px;
}

.menu-links {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.menu-links a {
    width: 100%;

    padding: 17px 15px;

    color: white;
    background: transparent;

    border: 0;
    border-radius: 12px;

    text-align: left;
    text-decoration: none;

    font-size: 18px;
    font-weight: 650;
}

.menu-links a:hover {
    background: var(--panel-soft);
    color: var(--accent);
}

.menu-overlay {
    position: fixed;

    z-index: 1000;

    inset: 0;

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

    opacity: 0;
    visibility: hidden;

    transition: 0.2s ease;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   MAIN
========================================================= */

.site-main {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin: 0 auto;
}

.view {
    display: none;
}

.view.active-view {
    display: block;
}


/* =========================================================
   HERO
========================================================= */

.hero-panel {
    min-height: 470px;

    display: grid;
    grid-template-columns: 52% 48%;

    overflow: hidden;

    background: var(--panel);

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

.hero-media {
    min-width: 0;
    min-height: 470px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #050505;
}

.hero-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: opacity 0.2s ease;
}

.hero-content {
    padding: clamp(36px, 5vw, 78px);

    display: flex;
    flex-direction: column;

    align-items: flex-start;
    justify-content: center;
}

.hero-kicker {
    margin-bottom: 15px;

    color: var(--accent);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.16em;
}

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

    margin: 0;

    font-size: clamp(36px, 4vw, 60px);
    line-height: 1.04;

    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 570px;

    margin: 22px 0 0;

    color: var(--text-soft);

    font-size: clamp(16px, 1.5vw, 20px);
}

.slide-indicators {
    margin-top: 34px;

    display: flex;

    gap: 8px;
}

.indicator {
    width: 24px;
    height: 4px;

    background: #333333;

    border-radius: 99px;

    transition: 0.2s ease;
}

.indicator.active {
    background: var(--accent);
}


/* =========================================================
   FEATURE NAVIGATION
========================================================= */

.feature-navigation {
    margin-top: 14px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 10px;
}

.feature-button {
    min-height: 86px;

    padding: 16px 18px;

    display: flex;
    flex-direction: column;

    align-items: flex-start;
    justify-content: center;

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

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

    text-decoration: none;

    font-size: 15px;
    font-weight: 700;

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

button.feature-button {
    width: 100%;
    text-align: left;
}

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

    border-color: rgba(255, 159, 10, 0.45);
}

.feature-button.active {
    background:
        linear-gradient(
            135deg,
            rgba(255, 159, 10, 0.14),
            rgba(255, 159, 10, 0.03)
        );

    border-color: rgba(255, 159, 10, 0.50);
}

.feature-number {
    margin-bottom: 4px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.1em;
}


/* =========================================================
   CONTENT PANELS
========================================================= */

.content-panel {
    min-height: 560px;

    padding: clamp(26px, 4vw, 58px);

    background: var(--panel);

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

.scrollable-panel {
    max-height: calc(100vh - 150px);

    overflow-y: auto;
}

.back-button {
    margin-bottom: 32px;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--text-soft);
    background: none;

    border: 0;

    text-decoration: none;

    font-weight: 650;
}

.back-button:hover {
    color: var(--accent);
}

.section-heading {
    max-width: 760px;

    margin-bottom: 30px;
}

.section-heading h1,
.content-panel > h1 {
    margin-top: 0;

    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;

    letter-spacing: -0.03em;
}

.section-heading p {
    color: var(--text-soft);

    font-size: 18px;
}


/* =========================================================
   FEATURES GRID
========================================================= */

.features-grid {
    margin-top: 35px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.feature-card {
    padding: 26px;

    background: var(--panel-soft);

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

.feature-card-image {
    width: 100%;
    max-height: 280px;

    margin-bottom: 24px;

    display: block;

    object-fit: contain;

    background: #080808;

    border-radius: 14px;
}

.feature-card h2 {
    margin: 0 0 18px;

    font-size: 24px;
}

.feature-card ul {
    margin: 0;

    padding-left: 20px;

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

.feature-card li {
    margin-bottom: 9px;
}


/* =========================================================
   VIDEO
========================================================= */

.video-frame {
    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #050505;

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

.video-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 8px;

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

.video-placeholder span {
    color: var(--accent);

    font-weight: 800;
}

.video-placeholder strong {
    color: var(--text-soft);
}

.availability-note {
    max-width: 820px;

    margin: 20px 0 0;

    color: var(--text-muted);

    font-size: 14px;
}


/* =========================================================
   TUTORIALS
========================================================= */

.tutorial-layout {
    display: grid;
    grid-template-columns: minmax(170px, 20%) 1fr;

    gap: 28px;
}

.tutorial-navigation h2 {
    margin-top: 0;
}

.tutorial-list {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.tutorial-list button {
    padding: 11px 12px;

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

    border: 0;
    border-radius: 9px;

    text-align: left;
}

.tutorial-list button:hover,
.tutorial-list button.active {
    color: white;
    background: var(--panel-soft);
}

.tutorial-selector {
    display: none;

    width: 100%;

    padding: 12px;

    color: white;
    background: var(--panel-soft);

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

.tutorial-content h1 {
    margin-top: 0;
}

.tutorial-content > p {
    color: var(--text-soft);
}

.tutorial-video {
    margin-top: 26px;
}


/* =========================================================
   LEGAL
========================================================= */

.legal-panel {
    max-height: calc(100vh - 150px);

    overflow: hidden;
}

.legal-content {
    max-height: calc(100vh - 260px);

    padding-right: 14px;

    overflow-y: auto;

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

.legal-content h1 {
    margin-top: 0;

    color: white;

    font-size: clamp(30px, 4vw, 48px);
}

.legal-content h2 {
    margin-top: 34px;

    color: white;

    font-size: 22px;
}

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


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    min-height: 60px;

    margin: 0 auto;

    padding: 8px 0;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;

    color: #777777;

    font-size: 12px;
}

.site-footer a,
.site-footer a:link,
.site-footer a:visited,
.site-footer a:active {
    color: #777777;

    text-decoration: none;

    font: inherit;

    -webkit-text-fill-color: #777777;
}

.site-footer a:hover {
    color: #aaaaaa;

    text-decoration: none;

    -webkit-text-fill-color: #aaaaaa;
}

.footer-separator {
    color: #555555;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    :root {
        --header-height: 80px;
    }

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

    .hero-media {
        min-height: 340px;
    }

    .hero-image {
        object-fit: contain;
    }

    .hero-content {
        padding: 35px;
    }

    .feature-navigation {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .tutorial-layout {
        grid-template-columns: 1fr;
    }

    .tutorial-list {
        display: none;
    }

    .tutorial-selector {
        display: block;
    }
}


/* =========================================================
   PHONE PORTRAIT
========================================================= */

@media (max-width: 600px) {

    .site-header,
    .site-main,
    .site-footer {
        width: calc(100% - 24px);
    }

    .site-header {
        min-height: 72px;
        gap: 8px;
    }

    .brand {
        gap: 8px;
    }

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

    .brand-tagline {
        display: none;
    }

    .brand-name {
        font-size: 13px;
        letter-spacing: 0.05em;
    }

    .header-actions {
        gap: 6px;
    }

    /*
       IMPORTANT:
       App Store remains visible on iPhone portrait.
    */

    .app-store-button {
        display: inline-flex;

        min-height: 36px;

        padding: 0 9px;

        border-radius: 9px;

        font-size: 11px;
        font-weight: 700;

        white-space: nowrap;
    }

    .language-selector {
        min-height: 36px;

        padding: 0 7px;

        font-size: 11px;
    }

    .header-button {
        width: 36px;
        height: 36px;

        font-size: 18px;
    }

    .hero-panel {
        min-height: 0;

        border-radius: 22px;
    }

    .hero-media {
        min-height: 0;

        height: min(36vh, 310px);

        padding: 12px;
    }

    .hero-image {
        object-fit: contain;
    }

    .hero-content {
        padding: 25px 22px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        margin-top: 14px;

        font-size: 15px;
    }

    .slide-indicators {
        margin-top: 22px;
    }

    .feature-navigation {
        grid-template-columns: repeat(2, 1fr);

        gap: 8px;
    }

    .feature-button {
        min-height: 70px;

        padding: 12px 14px;

        font-size: 13px;
    }

    .content-panel {
        min-height: 0;

        padding: 24px 20px;

        border-radius: 22px;
    }

    .site-footer {
        min-height: 52px;

        padding: 10px 0;

        font-size: 11px;

        gap: 6px;
    }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 390px) {

    .brand-name {
        font-size: 12px;
    }

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

    .app-store-button {
        min-height: 34px;

        padding: 0 7px;

        font-size: 10px;
    }

    .language-selector {
        min-height: 34px;

        padding: 0 5px;

        font-size: 10px;
    }

    .header-button {
        width: 34px;
        height: 34px;
    }
}


/* =========================================================
   PHONE LANDSCAPE
========================================================= */

@media (
    max-height: 520px
)
and (
    orientation: landscape
) {

    .site-header {
        min-height: 60px;
    }

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

    .brand-tagline {
        display: none;
    }

    .app-store-button {
        display: inline-flex;
    }

    .hero-panel {
        min-height: 300px;

        grid-template-columns: 48% 52%;
    }

    .hero-media {
        min-height: 300px;
    }

    .hero-content {
        padding: 24px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        margin-top: 10px;

        font-size: 14px;
    }

    .slide-indicators {
        margin-top: 16px;
    }

    .feature-navigation {
        margin-top: 7px;

        grid-template-columns: repeat(4, 1fr);

        gap: 6px;
    }

    .feature-button {
        min-height: 48px;

        padding: 7px 10px;

        font-size: 11px;
    }

    .site-footer {
        min-height: 42px;

        padding: 6px 0;

        font-size: 10px;

        gap: 5px;
    }
}
