@font-face {
    font-family: 'Fixel Text';
    src: url('/assets/fonts/FixelText-Regular.otf?v=2') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fixel Text';
    src: url('/assets/fonts/FixelText-Medium.otf?v=2') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fixel Text';
    src: url('/assets/fonts/FixelText-SemiBold.otf?v=2') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fixel Text';
    src: url('/assets/fonts/FixelText-Bold.otf?v=2') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fixel Display';
    src: url('/assets/fonts/FixelDisplay-Regular.otf?v=2') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fixel Display';
    src: url('/assets/fonts/FixelDisplay-Medium.otf?v=2') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fixel Display';
    src: url('/assets/fonts/FixelDisplay-SemiBold.otf?v=2') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fixel Display';
    src: url('/assets/fonts/FixelDisplay-Bold.otf?v=2') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── Theme tokens ── */

/* Light theme — тимчасово відключена
:root, [data-theme="light"] {
    --bg: #ffffff;
    --text: #111111;
    --muted: #666666;
    --border: rgba(0, 0, 0, 0.1);
}
*/

:root, [data-theme="light"], [data-theme="dark"] {
    --bg: #0a0a0a;
    --text: #ededed;
    --muted: #888888;
    --border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Fixel Text', 'Fixel Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    transition: background 0.2s, color 0.2s;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: transparent;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transition: background 0.2s, border-color 0.2s;
}

.site-header .site-logo {
    display: flex;
    align-items: center;
    color: var(--text);
    transition: color 0.3s ease;
}

.header-logo {
    display: block;
    width: auto;
    height: 32px;
}

[data-theme="dark"] .header-logo {
    filter: invert(1);
}

.site-header .site-logo:hover {
    text-decoration: none;
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}
#theme-toggle:hover {
    color: var(--text);
    background: var(--border);
}

/* Show sun in dark mode, moon in light mode */
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
:root:not([data-theme]) .icon-sun { display: none; }
:root:not([data-theme]) .icon-moon { display: block; }

/* Main content */
.content {
    flex: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}

/* Hero */
.hero {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
}

.hero-logo {
    display: block;
    width: 96px;
    height: 96px;
    margin-bottom: 32px;
}


.hero-title {
    font-family: 'Fixel Display', 'Fixel Text', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 56px;
    font-weight: 600;
    font-style: normal;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 40px;
    max-width: min(100%, 1100px);
}

@media (max-width: 560px) {
    .hero-title {
        font-size: 40px;
        margin-bottom: 32px;
    }
    .hero-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 24px;
    }
}

.hero-title-line {
    display: inline-block;
    white-space: nowrap;
}

.rotating-phrase {
    font-family: 'Fixel Display', 'Fixel Text', -apple-system, BlinkMacSystemFont, sans-serif;
    font-style: normal;
    font-weight: 600;
    transition: opacity 0.55s ease, transform 0.55s ease, filter 0.55s ease;
}

.rotating-phrase.is-changing {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(6px);
}

@media (max-width: 760px) {
    .hero-title-line {
        white-space: normal;
    }
}

.waitlist-form {
    width: min(100%, 460px);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

[data-theme="light"] .waitlist-form {
    border-color: rgba(17, 17, 17, 0.1);
    background: rgba(255, 255, 255, 0.64);
    box-shadow: 0 18px 50px rgba(17, 17, 17, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.waitlist-input {
    min-width: 0;
    flex: 1;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 15px;
    outline: none;
    padding: 0 12px;
    border-radius: 100px;
}

.waitlist-input::placeholder {
    color: var(--muted);
}

.waitlist-input:-webkit-autofill,
.waitlist-input:-webkit-autofill:hover,
.waitlist-input:-webkit-autofill:focus,
.waitlist-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text) !important;
    -webkit-box-shadow: 0 0 0 1000px #1a1410 inset !important;
    transition: background-color 99999s ease-in-out 0s !important;
    caret-color: var(--text) !important;
}

.waitlist-button {
    height: 44px;
    border: 0;
    border-radius: 100px;
    background: #FF4B00;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0 18px;
    white-space: nowrap;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.waitlist-button:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.hero-availability {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text);
    opacity: 0.7;
    letter-spacing: 0.01em;
}

.snackbar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    background: var(--text);
    color: var(--bg);
    padding: 12px 22px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    animation: snackbar-in 0.25s ease-out;
    pointer-events: none;
}

.snackbar--error {
    background: #e05252;
    color: #fff;
}

.snackbar--leaving {
    animation: snackbar-out 0.22s ease-in forwards;
}

@keyframes snackbar-in {
    from { transform: translateX(-50%) translateY(12px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

@keyframes snackbar-out {
    from { transform: translateX(-50%) translateY(0);    opacity: 1; }
    to   { transform: translateX(-50%) translateY(8px);  opacity: 0; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 480px) {
    .waitlist-form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
    }

    .waitlist-input {
        flex: none;
        width: 100%;
        height: 56px;
        padding: 0 20px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.08);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(18px) saturate(140%);
        -webkit-backdrop-filter: blur(18px) saturate(140%);
    }

    .waitlist-button {
        flex: none;
        width: 100%;
        height: 56px;
    }
}

/* Legal pages */
.content h1 {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.content .updated {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 48px;
}

.content h2 {
    font-size: 18px;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.content p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
}

.content ul {
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
    padding-left: 20px;
    margin-top: 12px;
}

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

.mobile-break {
    display: none;
}

@media (max-width: 480px) {
    .mobile-break {
        display: block;
    }
}

.colourful-text {
    display: inline;
}

.colourful-text span {
    display: inline-block;
    white-space: pre;
    will-change: transform, opacity, filter, color;
}

/* Background halo */
.cursor-halo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 65vh;
    background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(255, 75, 0, 0.35) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    animation: halo-breathe 7s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes halo-breathe {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.8;
    }
    50% {
        transform: scaleY(1.12);
        opacity: 1;
    }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.site-footer a,
.site-footer button {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .site-footer {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 24px 16px;
    }
}

.site-footer a {
    color: var(--muted);
}

.site-footer a:hover {
    color: var(--text);
    text-decoration: none;
}

.site-footer button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--muted);
    cursor: pointer;
}

.site-footer button:hover {
    color: var(--text);
    text-decoration: underline;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 100;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 16px 20px;
    max-width: 920px;
    margin: 0 auto;
    animation: cookie-banner-in 0.25s ease-out;
}

[data-theme="dark"] .cookie-banner {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@keyframes cookie-banner-in {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner--leaving {
    animation: cookie-banner-out 0.2s ease-in forwards;
}

@keyframes cookie-banner-out {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(8px);  opacity: 0; }
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner__body {
    flex: 1 1 280px;
    min-width: 0;
}

.cookie-banner__title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.cookie-banner__text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.cookie-banner__text a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-banner__btn {
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.cookie-banner__btn--primary {
    background: #FF4B00;
    color: #ffffff;
}

.cookie-banner__btn--primary:hover {
    opacity: 0.88;
}

.cookie-banner__btn--secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.cookie-banner__btn--secondary:hover {
    background: var(--border);
}

.cookie-banner__btn--ghost {
    background: transparent;
    color: var(--muted);
    border-color: transparent;
    padding-left: 8px;
    padding-right: 8px;
}

.cookie-banner__btn--ghost:hover {
    color: var(--text);
}

@media (max-width: 560px) {
    .cookie-banner {
        padding: 14px 16px;
        border-radius: 12px;
    }

    .cookie-banner__inner {
        gap: 12px;
    }

    .cookie-banner__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .cookie-banner__btn {
        flex: 0 1 auto;
    }
}

/* Cookie preferences modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: cookie-modal-fade 0.15s ease-out;
}

@keyframes cookie-modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.cookie-modal__panel {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 12px;
}

.cookie-modal__title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.cookie-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.cookie-modal__close:hover {
    color: var(--text);
    background: var(--border);
}

.cookie-modal__intro {
    padding: 0 20px 16px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.cookie-modal__intro a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-modal__rows {
    padding: 0 20px;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal__row {
    display: block;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    cursor: pointer;
}

.cookie-modal__row:first-child {
    border-top: none;
}

.cookie-modal__row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.cookie-modal__row-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.cookie-modal__row-desc {
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
    margin: 0;
}

.cookie-modal__checkbox {
    appearance: none;
    width: 36px;
    height: 22px;
    background: var(--border);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: background 0.15s;
    flex: none;
}

.cookie-modal__checkbox::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.15s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cookie-modal__checkbox:checked {
    background: #FF4B00;
}

.cookie-modal__checkbox:checked::after {
    transform: translateX(14px);
    background: #ffffff;
}

.cookie-modal__checkbox:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal__footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
}

@media (max-width: 480px) {
    .cookie-modal__footer {
        flex-direction: column-reverse;
    }
    .cookie-modal__footer .cookie-banner__btn {
        width: 100%;
    }
}
