/* telewise.co.il while the site is not ready: the brand surface and motion of the dashboard's sign-in
   screen, and two words. Colours and keyframes are the dashboard's own (assets/styles/brand.scss,
   AuthShell.vue, AuthBrandIllustration.vue) - change them there first, then here.

   Everything is in this file and landing.js: the page's Content-Security-Policy (nginx.conf) allows
   no inline style and no inline script, which is why the illustration's depths are classes. */

@font-face {
    font-display: swap;
    font-family: Rubik;
    font-style: normal;
    font-weight: 600;
    src: url("/fonts/rubik-hebrew-600-normal.woff2") format("woff2");
    unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
    font-display: swap;
    font-family: Sora;
    font-style: normal;
    font-weight: 400;
    src: url("/fonts/sora-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: Sora;
    font-style: normal;
    font-weight: 600;
    src: url("/fonts/sora-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: Sora;
    font-style: normal;
    font-weight: 700;
    src: url("/fonts/sora-latin-700-normal.woff2") format("woff2");
}

:root {
    /* The reversed lockup: what the brand looks like on its navy surface. */
    --tw-ink: #fff;
    --tw-accent: #ff7a3d;
    --tw-wise: #ff7a3d;
    --tw-muted: #aebbcd;
    --tw-surface: #10233f;
    --tw-mark-bubble: #fff;
    --tw-mark-bar: #10233f;

    /* The illustration's colours on that surface. */
    --tw-illu-halo: rgb(255 255 255 / 4%);
    --tw-illu-card: #183354;
    --tw-illu-line: #2e4668;
    --tw-illu-line-strong: #4b6588;
    --tw-illu-shadow: rgb(0 0 0 / 30%);
}

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

html {
    background: var(--tw-surface);
    color-scheme: dark;
}

body {
    margin: 0;
    background:
        radial-gradient(60% 50% at 100% 0%, rgb(255 122 61 / 22%), transparent 70%),
        radial-gradient(50% 45% at 0% 100%, rgb(61 123 255 / 14%), transparent 70%),
        var(--tw-surface);
    background-attachment: fixed;
    color: var(--tw-ink);
    font-family: Rubik, system-ui, -apple-system, "Segoe UI", arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.25rem, 3.5vh, 2.5rem);
    min-block-size: 100vh;
    min-block-size: 100dvh;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    text-align: center;
}

/* ── The lockup ───────────────────────────────────────────────────────────── */
.lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.lockup-mark {
    display: block;
    flex: none;
}

.lockup-name {
    font-family: Sora, system-ui, sans-serif;
    font-size: 1.875rem;
    letter-spacing: -0.035em;
    line-height: 1;
}

.lockup-tele {
    font-weight: 400;
}

.lockup-wise {
    color: var(--tw-wise);
    font-weight: 700;
}

.tw-mark-bubble {
    fill: var(--tw-mark-bubble);
}

.tw-mark-bar {
    fill: var(--tw-mark-bar);
}

.tw-mark-dot {
    fill: var(--tw-accent);
}

/* ── The two words ────────────────────────────────────────────────────────── */
.copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.soon {
    margin: 0;
    font-size: clamp(3rem, 11vw, 5.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}

.soon-en {
    margin: 0;
    color: var(--tw-muted);
    font-family: Sora, system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    /* Tracking adds a gap after the last letter; this re-centres the word. */
    padding-inline-start: 0.32em;
    text-transform: uppercase;
}

/* ── The illustration ─────────────────────────────────────────────────────── */
.illustration {
    inline-size: min(100%, 520px);
}

.tw-illustration {
    /* Where the pointer is, -1..1 from the window's centre (landing.js). */
    --mx: 0;
    --my: 0;

    display: block;
    block-size: auto;
    inline-size: 100%;
    max-block-size: 52vh;
}

/* Parallax: every layer drifts with the mouse by its own depth, in SVG units at full deflection.
   The ring's is negative - it drifts the other way, which reads as depth. */
.tw-illu-layer {
    transform: translate(calc(var(--mx) * var(--d) * 1px), calc(var(--my) * var(--d) * 1px));
    will-change: transform;
}

.d-6 {
    --d: 6;
}

.d-m5 {
    --d: -5;
}

.d-12 {
    --d: 12;
}

.d-18 {
    --d: 18;
}

.d-24 {
    --d: 24;
}

.d-30 {
    --d: 30;
}

.d-38 {
    --d: 38;
}

.tw-illu-halo {
    fill: var(--tw-illu-halo);
}

.tw-illu-ring {
    stroke: var(--tw-illu-line);
}

.tw-illu-card {
    fill: var(--tw-illu-card);
}

.tw-illu-card-shadow {
    filter: drop-shadow(0 14px 28px var(--tw-illu-shadow));
}

.tw-illu-line {
    fill: var(--tw-illu-line);
}

.tw-illu-line-strong {
    fill: var(--tw-illu-line-strong);
}

.tw-illu-ink {
    fill: var(--tw-mark-bubble);
}

.tw-illu-accent {
    fill: var(--tw-accent);
}

.tw-illu-highlight {
    fill: var(--tw-accent);
    fill-opacity: 0.16;
}

.tw-illu-trend {
    stroke: var(--tw-wise);
}

.tw-illu-check {
    stroke: #fff;
}

.tw-illu-check-ink {
    stroke: var(--tw-mark-bar);
}

/* The waveform "talks"; the dot and the sparkle breathe. */
.tw-illu-wave {
    animation: tw-wave 1.8s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.tw-illu-wave:nth-of-type(2) {
    animation-delay: -0.4s;
}

.tw-illu-wave:nth-of-type(3) {
    animation-delay: -0.8s;
}

.tw-illu-wave:nth-of-type(4) {
    animation-delay: -1.2s;
}

.tw-illu-pulse,
.tw-illu-twinkle {
    animation: tw-pulse 2.6s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes tw-wave {
    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.6);
    }
}

@keyframes tw-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.85);
    }
}

/* ── Entrance: the logo, the picture, then the two words ──────────────────── */
.tw-enter {
    animation: tw-enter 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tw-enter-2 {
    animation-delay: 350ms;
    animation-duration: 1.6s;
}

.tw-enter-3 {
    animation-delay: 1100ms;
}

.tw-enter-4 {
    animation-delay: 1500ms;
}

@keyframes tw-enter {
    from {
        filter: blur(6px);
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        filter: none;
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tw-enter,
    .tw-illu-wave,
    .tw-illu-pulse,
    .tw-illu-twinkle {
        animation: none;
    }
}

/* A phone held sideways: the picture gives way so the words are never pushed off the screen. */
@media (max-height: 520px) {
    .stage {
        gap: 0.75rem;
    }

    .tw-illustration {
        max-block-size: 38vh;
    }

    .soon {
        font-size: clamp(2rem, 9vh, 3rem);
    }
}
