/* ===== Reset & Variables ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --bg-dark: #181C28;
    --bg-light: #1F2433;
    --bg-mid: #22273A;
    --button-text: #0F1117;
    --text-primary: #ECECEC;
    --text-secondary: rgba(236, 236, 236, 0.60);
    --text-muted: rgba(236, 236, 236, 0.35);
    --accent: #0F9EB4;
    --accent-dark: #026675;
    --discord: #5865F2;
    --gradient-start: #3366CC;
    --gradient-end: #263F80;
    --surface-04: rgba(255, 255, 255, 0.04);
    --surface-08: rgba(255, 255, 255, 0.08);
    --surface-12: rgba(255, 255, 255, 0.12);
    --surface-18: rgba(255, 255, 255, 0.18);
    /* Glassy panel fills — opaque enough to mute the honeycomb behind
       cards; pair with backdrop-filter blur where supported. */
    --panel: rgba(30, 35, 50, 0.55);
    --panel-hover: rgba(38, 44, 62, 0.65);
    --bull: #4A9476;
    --bear: #A62C2B;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--text-primary);
}

/* ===== Honeycomb Canvas ===== */
#honeycomb {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease-in;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, white 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, white 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
}
#honeycomb.visible {
    /* Stroke alphas are baked into the canvas drawing so individual
       hexes can shimmer/glow brighter than the base grid. */
    opacity: 1;
}

/* ===== Background gradient ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-mid) 100%);
    z-index: -1;
}

/* ===== Layout ===== */
main {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-section {
    padding: 40px 0;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-lead {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 640px;
    margin-bottom: 32px;
}

/* ===== Nav ===== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Full-bleed blurred backdrop, shown once the page scrolls. The pseudo
   element stretches to the viewport edges so the sticky bar reads as a
   real header without restructuring the centered nav markup. */
.site-nav::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: rgba(24, 28, 40, 0);
    border-bottom: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
    z-index: -1;
    pointer-events: none;
}
.site-nav.scrolled::before {
    background: rgba(24, 28, 40, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--surface-08);
}

.nav-brand {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-decoration: none;
}
.nav-brand:hover {
    color: var(--text-primary);
}

.nav-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--surface-08);
    border: 1px solid var(--surface-12);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-brand-icon:hover {
    background: var(--surface-12);
    border-color: var(--surface-18);
    transform: translateY(-1px);
}

.nav-brand-icon img {
    display: block;
    width: 28px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover {
    color: var(--text-primary);
    background: var(--surface-04);
}
.nav-links a.active {
    color: var(--text-primary);
    background: var(--surface-08);
}
.nav-links a.nav-cta {
    background: #F5F5F5;
    color: var(--button-text);
    font-weight: 600;
    padding: 8px 16px;
    margin-left: 4px;
}
.nav-links a.nav-cta:hover {
    background: #FFFFFF;
    color: var(--button-text);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--surface-12);
    border-radius: 10px;
    padding: 8px 10px;
    color: var(--text-primary);
    cursor: pointer;
}

/* ===== Hero ===== */
.hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 48px;
    padding-top: 72px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.8s ease-out 0.2s forwards;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

/* Hero phone — app-footage loop with screenshot-carousel fallback.
   Shown on every viewport; smaller and centered on mobile. */
.hero-phone {
    display: block;
    position: relative;
    width: min(230px, 62vw);
    margin: 36px auto 0;
    aspect-ratio: 1290 / 2796;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    /* Fade the bottom ~20% into the page background so the phone
       blends downward rather than sitting in a hard box. */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
}

.hero-phone-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: inherit;
}

.hero-phone-img.active {
    opacity: 1;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
    border-radius: inherit;
}

.hero-phone.video-active .hero-video {
    opacity: 1;
}
.hero-phone.video-active .hero-phone-img {
    opacity: 0;
}

@media (min-width: 860px) {
    .hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 40px;
        align-items: start;
        justify-content: initial;
        padding-top: 88px;
        padding-bottom: 24px;
    }
    .hero-content {
        justify-content: flex-start;
        padding-top: 8px;
    }
    .hero-phone {
        width: 100%;
        margin: 0;
        /* Rounded top corners so the footage reads as a designed element,
           not pasted in. Bottom is left square because the mask fades it out. */
        border-radius: 28px 28px 0 0;
    }
}

@media (min-width: 1100px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 48px;
    }
}

.logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.logo-line {
    font-size: clamp(64px, 12vw, 88px);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -2px;
    color: var(--text-primary);
}

.tagline {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    max-width: 440px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.beta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(51, 102, 204, 0.18), rgba(15, 158, 180, 0.18));
    border: 1px solid var(--surface-12);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    width: fit-content;
    text-decoration: none;
}
.beta-badge:hover {
    color: var(--accent);
    filter: brightness(1.2);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    /* Anchor target for "Get the app" — stop short of the sticky nav so
       the store badges land visibly below it instead of underneath. */
    scroll-margin-top: 110px;
}

/* ===== Page Hero (compact — non-home pages) ===== */
.page-hero {
    padding: 48px 0 24px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.7s ease-out 0.2s forwards;
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 620px;
}

/* ===== Mission ===== */
.mission {
    padding: 12px 0 56px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.mission-line {
    flex-shrink: 0;
    width: 4px;
    min-height: 100%;
    align-self: stretch;
    background: linear-gradient(180deg, var(--accent), var(--gradient-start));
    border-radius: 4px;
}

.mission blockquote {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(236, 236, 236, 0.65);
    letter-spacing: -0.3px;
    margin: 0;
    max-width: 640px;
}

/* ===== Features grid ===== */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 8px 0 32px;
}

.feature-card {
    position: relative;
    padding: 28px 24px;
    background: var(--panel);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--surface-08);
    border-radius: 16px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    background: var(--panel-hover);
    border-color: rgba(15, 158, 180, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 158, 180, 0.12), rgba(51, 102, 204, 0.12));
    border-radius: 12px;
    margin-bottom: 16px;
    color: var(--accent);
    transition: background 0.3s ease, color 0.3s ease;
}
.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(15, 158, 180, 0.24), rgba(51, 102, 204, 0.24));
    color: var(--text-primary);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 100px;
    border: 1px solid transparent;
}
.badge.badge-beta {
    background: rgba(15, 158, 180, 0.12);
    border-color: rgba(15, 158, 180, 0.3);
    color: var(--accent);
}
.badge.badge-soon {
    background: var(--surface-08);
    border-color: var(--surface-12);
    color: var(--text-secondary);
}
.badge.badge-live {
    background: rgba(74, 148, 118, 0.15);
    border-color: rgba(74, 148, 118, 0.35);
    color: var(--bull);
}

/* ===== Platforms ===== */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 8px 0 32px;
}

.platform-card {
    padding: 28px 24px;
    background: var(--panel);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--surface-08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
.platform-card:hover {
    background: var(--panel-hover);
    border-color: var(--surface-18);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.platform-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.platform-card h3 {
    font-size: 20px;
    font-weight: 700;
}

.platform-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.platform-card .platform-icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
}

/* ===== CTA block ===== */
.cta {
    position: relative;
    padding: 48px 0 80px;
    text-align: center;
}

/* Soft accent glow behind the closing CTA */
.cta::before {
    content: '';
    position: absolute;
    inset: -20px -24px 0;
    background: radial-gradient(ellipse 55% 55% at 50% 42%, rgba(15, 158, 180, 0.10), transparent 70%);
    pointer-events: none;
}

.cta h2 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.cta-sub {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s ease, transform 0.1s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: #F5F5F5;
    color: var(--button-text);
}
.btn-primary:hover {
    background: #FFFFFF;
    color: var(--button-text);
}

.btn-secondary {
    background: var(--surface-08);
    color: var(--text-primary);
    border-color: var(--surface-12);
}
.btn-secondary:hover {
    background: var(--surface-12);
    color: var(--text-primary);
    border-color: var(--surface-18);
}

/* ===== Contact form ===== */
.contact-form {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-field input,
.form-field textarea {
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--surface-08);
    border: 1px solid var(--surface-18);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-muted);
}
.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    background: var(--surface-12);
}

.form-field.invalid input,
.form-field.invalid textarea {
    border-color: var(--bear);
}

.field-msg {
    font-size: 12px;
    color: #D46B6A;
}

.form-field textarea {
    min-height: 140px;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

.contact-form button {
    align-self: flex-start;
    padding: 14px 28px;
    position: relative;
}

.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(15, 17, 23, 0.2);
    border-top-color: var(--button-text);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -9px 0 0 -9px;
}
button.loading .btn-text {
    visibility: hidden;
}
button.loading .btn-spinner {
    display: block;
}

.form-error {
    font-size: 13px;
    color: var(--bear);
    min-height: 20px;
}

.success-message {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 560px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(15, 158, 180, 0.08), rgba(51, 102, 204, 0.08));
    border: 1px solid rgba(15, 158, 180, 0.2);
    border-radius: 16px;
    text-align: left;
    animation: fadeUp 0.5s ease-out forwards;
}
.success-message[hidden] {
    display: none;
}
.success-message svg {
    flex-shrink: 0;
    margin-top: 2px;
}
.success-message strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.success-message p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ===== FAQ ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 720px;
}

.faq-item {
    border: 1px solid var(--surface-08);
    border-radius: 12px;
    background: var(--panel);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    overflow: hidden;
}
.faq-item[open] {
    background: var(--panel-hover);
    border-color: var(--surface-12);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
    content: '−';
}

.faq-item .faq-body {
    padding: 0 20px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    overflow: hidden;
    transition: height 0.28s ease;
}

/* ===== Support other-options ===== */
.support-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}

.support-aside {
    padding: 24px;
    border: 1px solid var(--surface-08);
    background: var(--panel);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.support-aside h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.support-aside p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}
.support-aside .discord-cta {
    align-self: flex-start;
    margin-top: 4px;
}

.discord-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--discord);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: filter 0.2s ease, transform 0.1s ease;
}
.discord-cta:hover {
    filter: brightness(1.08);
    color: #FFFFFF;
}
.discord-cta:active {
    transform: scale(0.98);
}

/* ===== Footer ===== */
.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 48px;
    border-top: 1px solid var(--surface-08);
    padding: 32px 24px 40px;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-top: 8px;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-secondary);
}
.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 960px;
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--surface-04);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===== Scroll reveals =====
   The `js` class is set by a tiny inline script in <head>, so all content
   stays visible when JavaScript is unavailable. */
html.js [data-reveal]:not([data-reveal-stagger]) {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease var(--reveal-delay, 0s), transform 0.7s ease var(--reveal-delay, 0s);
}
html.js [data-reveal="left"]:not([data-reveal-stagger]) {
    transform: translateX(-30px);
}
html.js [data-reveal="right"]:not([data-reveal-stagger]) {
    transform: translateX(30px);
}
html.js [data-reveal].revealed:not([data-reveal-stagger]) {
    opacity: 1;
    transform: none;
}

html.js [data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease var(--reveal-delay, 0s), transform 0.6s ease var(--reveal-delay, 0s);
}
html.js [data-reveal-stagger].revealed > * {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html.js [data-reveal]:not([data-reveal-stagger]),
    html.js [data-reveal-stagger] > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ===== Keyboard focus ===== */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ===== "See it in action" loop gallery ===== */
.loop-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 12px 24px 8px;
    margin: 0 -24px;
    /* Keep snapped cards aligned with the page's 24px content inset */
    scroll-padding-inline: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.loop-gallery::-webkit-scrollbar {
    display: none;
}

.loop-card {
    flex: 0 0 min(228px, 64vw);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.loop-card-media {
    position: relative;
    aspect-ratio: 720 / 1564;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--surface-08);
    background: #10131C;
}

.loop-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.loop-card figcaption {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.4;
    padding: 0 4px;
}

@media (min-width: 900px) {
    .loop-gallery {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        overflow: visible;
        margin: 0 auto;
        padding: 12px 0 8px;
        max-width: 720px;
    }
    .loop-card {
        flex: initial;
    }
}

/* ===== Tour video block ===== */
.tour-block {
    display: grid;
    gap: 28px;
    align-items: center;
    margin-top: 28px;
    padding: 24px;
    background: var(--panel);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--surface-08);
    border-radius: 20px;
}

.tour-copy h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 10px;
}

.tour-copy p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}
.tour-copy p:last-child {
    margin-bottom: 0;
}

.tour-media {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--surface-12);
    background: #0F1117;
    justify-self: center;
}

.tour-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tour-play {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(15, 17, 23, 0) 40%, rgba(15, 17, 23, 0.45));
    cursor: pointer;
}

.tour-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #FFF;
    transition: transform 0.2s ease, background 0.2s ease;
}
.tour-play:hover .tour-play-btn {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.18);
}
.tour-play-btn svg {
    margin-left: 4px;
}

.tour-media.playing .tour-play {
    display: none;
}

@media (min-width: 820px) {
    .tour-block {
        grid-template-columns: 1fr 420px;
        padding: 32px 36px;
    }
}

/* ===== How it works ===== */
.steps {
    position: relative;
    display: grid;
    gap: 28px;
    padding: 8px 0 32px;
}

.step {
    text-align: center;
    padding: 0 12px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 800;
    color: var(--accent);
    background-color: var(--bg-light);
    background-image: linear-gradient(135deg, rgba(15, 158, 180, 0.16), rgba(51, 102, 204, 0.16));
    border: 1px solid rgba(15, 158, 180, 0.35);
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
}

.step h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

@media (min-width: 820px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Connecting line between the step numbers */
    .steps::before {
        content: '';
        position: absolute;
        top: 24px;
        left: 16.66%;
        right: 16.66%;
        height: 1px;
        background: linear-gradient(90deg, rgba(15, 158, 180, 0), rgba(15, 158, 180, 0.35) 20%, rgba(51, 102, 204, 0.35) 80%, rgba(51, 102, 204, 0));
    }
}

/* ===== Platform status groups ===== */
.platform-group-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 28px 0 14px;
}
.platform-group-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--surface-08);
}
.platform-group-label.is-live {
    color: var(--bull);
}
.platform-group-label.is-soon {
    color: var(--accent);
}

/* ===== Store badge wrapper + "Soon" tag ===== */
.store-badge-wrap {
    position: relative;
    display: inline-flex;
}

.store-soon-tag {
    position: absolute;
    top: -9px;
    right: -8px;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--bg-light);
    border: 1px solid rgba(15, 158, 180, 0.4);
    border-radius: 100px;
    pointer-events: none;
}

/* ===== Animations ===== */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== Responsive ===== */
@media (max-width: 860px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 24px;
        left: 24px;
        background: var(--bg-light);
        border: 1px solid var(--surface-12);
        border-radius: 14px;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        width: 100%;
    }
    .nav-links a.nav-cta {
        text-align: center;
        margin-left: 0;
        margin-top: 4px;
    }
}

@media (max-width: 640px) {
    .features,
    .platforms-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 35vh;
        padding-top: 36px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* ===== Legal pages (Privacy / Terms) ===== */
.legal-content {
    max-width: 720px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

.legal-content .legal-meta {
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.legal-content h2 {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin-top: 36px;
    margin-bottom: 12px;
}

.legal-content h2:first-of-type {
    margin-top: 8px;
}

.legal-content h3 {
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal-content p {
    margin: 0 0 14px 0;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 16px 0;
    padding-left: 22px;
}

.legal-content li {
    margin-bottom: 8px;
}

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

.legal-content strong {
    color: var(--text-primary);
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: var(--text-primary);
}

/* ===== App Store badge ===== */
.btn-appstore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    height: 42px;
    background: #000;
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9px;
    text-decoration: none;
    font-family: inherit;
    transition: transform 0.1s ease, filter 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}
.btn-appstore:hover {
    color: #FFF;
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.btn-appstore .btn-appstore-mark {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.btn-appstore .btn-appstore-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-align: left;
}
.btn-appstore .btn-appstore-pre {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
    opacity: 0.85;
}
.btn-appstore .btn-appstore-name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
}
.btn-appstore[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}
.btn-appstore[aria-disabled="true"]:hover {
    transform: none;
    filter: none;
}

.appstore-cta {
    display: inline-flex;
    align-items: center;
}

.hero-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.1s ease;
}
.hero-cta-link:hover {
    color: var(--text-primary);
    transform: translateX(2px);
}
.hero-cta-link::after {
    content: "→";
    font-weight: 500;
}

.hero-actions {
    align-items: center;
}

/* ===== Screenshot gallery (homepage "Inside the app") ===== */
.screen-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 12px 4px 32px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-12) transparent;
}

.screen-gallery::-webkit-scrollbar {
    height: 6px;
}
.screen-gallery::-webkit-scrollbar-thumb {
    background: var(--surface-12);
    border-radius: 100px;
}

.screen-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.screen-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--surface-08);
}

.screen-card-caption {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.1px;
    line-height: 1.4;
    padding: 0 4px;
}

@media (min-width: 900px) {
    .screen-gallery {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
        overflow: visible;
        max-width: 760px;
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
    }
    .screen-card {
        flex: initial;
    }
    .screen-card-caption {
        font-size: 12px;
    }
}

/* ===== Feature highlight rows (features.html) ===== */
.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 8px 0 40px;
}

.feature-highlight {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    padding: 24px;
    background: var(--panel);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--surface-08);
    border-radius: 20px;
}

.feature-highlight-media {
    display: flex;
    justify-content: center;
}

.feature-highlight-media img,
.feature-highlight-media video {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--surface-08);
    background: #10131C;
}

.feature-highlight-body h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.feature-highlight-body p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.feature-highlight-body p:last-of-type {
    margin-bottom: 16px;
}

.feature-highlight-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature-highlight-bullets li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.feature-highlight-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(15, 158, 180, 0.35), rgba(51, 102, 204, 0.35));
    border: 1px solid rgba(15, 158, 180, 0.55);
}

@media (min-width: 820px) {
    .feature-highlight {
        grid-template-columns: 260px 1fr;
        gap: 36px;
        padding: 28px 32px;
        align-items: center;
    }
    .feature-highlight.reverse {
        grid-template-columns: 1fr 260px;
    }
    .feature-highlight.reverse .feature-highlight-media {
        order: 2;
    }
    .feature-highlight-media img,
    .feature-highlight-media video {
        max-width: 240px;
    }
}
