/*
 * iPhone frame adapted from the FreeFrontend listing "iPhone 14 w/ Dynamic Island"
 * and Luke Meyrick's CodePen: https://codepen.io/lukemeyrick/pen/poVyEdZ
 */

:root {
    --svolta-orange: #fe7f2d;
    --svolta-blue: #233d4d;
}

html {
    min-height: 100%;
    background: #233d4d;
}

body.svolta-page {
    margin: 0;
    min-height: 100%;
    background: #233d4d;
    color: #fe7f2d;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

.svolta-root,
.svolta-root * {
    box-sizing: border-box;
}

.svolta-hero {
    position: relative;
    display: grid;
    min-height: 100svh;
    min-height: 100vh;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    background:
        radial-gradient(circle at 50% 42%, rgba(254, 127, 45, 0.24) 0 18%, rgba(254, 127, 45, 0.08) 32%, rgba(35, 61, 77, 0) 58%),
        linear-gradient(160deg, rgba(35, 61, 77, 1), rgba(35, 61, 77, 1));
    touch-action: manipulation;
}

.svolta-brand {
    position: fixed;
    z-index: 4;
    top: max(16px, env(safe-area-inset-top));
    left: max(18px, env(safe-area-inset-left));
    margin: 0;
    color: #fe7f2d;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.svolta-hero__stage {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 960px);
}

.svolta-phone {
    --phone-width: clamp(244px, 72vw, 360px);
    --phone-pad: clamp(8px, 2.8vw, 13px);
    --phone-radius: calc(var(--phone-width) * 0.135);
    --button-width: calc(var(--phone-width) * 0.018);

    position: relative;
    width: var(--phone-width);
    aspect-ratio: 37 / 76;
    margin: 0;
    padding: var(--phone-pad);
    border-radius: var(--phone-radius);
    color: #fe7f2d;
    background:
        linear-gradient(145deg, #3a3d40, #0b0d0f 34%, #1c2023 56%, #565a5e 68%, #111315);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        inset 0 0 0 2px rgba(5, 6, 7, 0.82),
        0 34px 82px rgba(5, 8, 10, 0.74),
        0 20px 52px rgba(35, 61, 77, 0.42);
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    opacity: 1;
    will-change: transform, opacity;
}

.svolta-phone::before {
    content: "";
    position: absolute;
    inset: calc(var(--phone-pad) * -0.28);
    z-index: -1;
    border-radius: calc(var(--phone-radius) * 1.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.svolta-phone__button {
    position: absolute;
    display: block;
    width: var(--button-width);
    border-radius: 999px;
    background: #111315;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.svolta-phone__button--mute,
.svolta-phone__button--volume-one,
.svolta-phone__button--volume-two {
    right: 100%;
}

.svolta-phone__button--mute {
    top: 14.8%;
    height: 3.6%;
}

.svolta-phone__button--volume-one {
    top: 22.4%;
    height: 6.4%;
}

.svolta-phone__button--volume-two {
    top: 31%;
    height: 6.4%;
}

.svolta-phone__button--power {
    left: 100%;
    top: 25.2%;
    height: 9.8%;
}

.svolta-phone__screen-container {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: calc(var(--phone-radius) * 0.78);
    background: #08090a;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 0 30px rgba(5, 6, 7, 0.92);
}

.svolta-phone__screen {
    position: relative;
    display: grid;
    height: 100%;
    overflow: hidden;
    place-items: center;
    border-radius: inherit;
    background: #233d4d;
}

.svolta-phone__notch-container {
    position: absolute;
    z-index: 5;
    top: 1.9%;
    left: 50%;
    display: grid;
    width: 34%;
    height: 5.1%;
    transform: translateX(-50%);
    place-items: center;
    pointer-events: none;
}

.svolta-phone__notch {
    display: block;
    width: 100%;
    height: 78%;
    border-radius: 999px;
    background: #050607;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(5, 6, 7, 0.88);
}

.svolta-feed {
    position: absolute;
    inset: 0;
    overflow: hidden;
    padding: 19% 7% 8%;
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    will-change: opacity, filter, transform;
}

.svolta-feed-track {
    display: grid;
    gap: 12px;
    transform: translate3d(0, 12%, 0);
    will-change: transform;
}

.svolta-feed-card {
    display: grid;
    gap: 10px;
    min-height: 150px;
    padding: 12px;
    border: 1px solid rgba(254, 127, 45, 0.28);
    border-radius: 18px;
    background: rgba(35, 61, 77, 0.78);
    box-shadow: 0 14px 34px rgba(35, 61, 77, 0.52);
}

.svolta-feed-card--metric {
    min-height: 118px;
}

.svolta-feed-card__top {
    display: flex;
    align-items: center;
    gap: 9px;
}

.svolta-feed-card__avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: #fe7f2d;
    box-shadow: inset 0 0 0 6px rgba(35, 61, 77, 0.34);
}

.svolta-feed-card__line {
    display: block;
    width: 100%;
    height: 9px;
    border-radius: 999px;
    background: rgba(254, 127, 45, 0.62);
}

.svolta-feed-card__line--short {
    width: 52%;
}

.svolta-feed-card__line--medium {
    width: 72%;
}

.svolta-feed-card__visual {
    display: grid;
    min-height: 76px;
    place-items: center;
    border-radius: 14px;
    background: rgba(254, 127, 45, 0.16);
    color: #fe7f2d;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.svolta-feed-card--reel .svolta-feed-card__visual {
    min-height: 180px;
}

.svolta-feed-card__copy {
    display: grid;
    gap: 7px;
}

.svolta-hero__headline-wrap {
    position: fixed;
    z-index: 6;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.svolta-hero__headline {
    --svolta-mark-scale: 0;

    position: relative;
    display: grid;
    gap: clamp(0px, 0.35vw, 5px);
    width: fit-content;
    max-width: min(88vw, 720px);
    justify-items: center;
    margin: 0;
    color: #fe7f2d;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(34px, 8vw, 84px);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 0.86;
    text-align: center;
    text-shadow: 0 14px 34px rgba(5, 8, 10, 0.42);
    opacity: 0;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

.svolta-hero__headline::after {
    content: "";
    width: min(52vw, 360px);
    height: clamp(3px, 0.7vw, 7px);
    margin-top: clamp(9px, 1.5vw, 15px);
    border-radius: 999px;
    background: #fe7f2d;
    box-shadow: 0 12px 28px rgba(5, 8, 10, 0.28);
    transform: scaleX(var(--svolta-mark-scale));
    transform-origin: 50% 50%;
    will-change: transform;
}

.svolta-hero__line {
    display: block;
    overflow: hidden;
    padding: 0 0.06em 0.1em;
    white-space: nowrap;
}

.svolta-hero__line--first {
    font-size: 0.74em;
    font-weight: 850;
    letter-spacing: 0.01em;
}

.svolta-hero__line--strong {
    font-size: 1.08em;
}

.svolta-hero__line > span {
    display: block;
    white-space: nowrap;
    will-change: transform, opacity, filter;
}

.svolta-root.svolta-intro-complete .svolta-feed {
    opacity: 0;
}

@media (min-width: 760px) {
    .svolta-phone {
        --phone-width: clamp(320px, 30vw, 420px);
    }

    .svolta-hero__headline {
        font-size: clamp(56px, 5.9vw, 86px);
    }
}

@media (max-width: 390px) {
    .svolta-phone {
        --phone-width: min(234px, 68vw);
    }

    .svolta-brand {
        font-size: 11px;
    }

    .svolta-hero__headline {
        font-size: clamp(31px, 9.4vw, 42px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .svolta-phone,
    .svolta-feed,
    .svolta-feed-track,
    .svolta-hero__headline {
        transition: none;
        animation: none;
        transform: none;
    }

    .svolta-phone,
    .svolta-hero__headline {
        opacity: 1;
    }

    .svolta-feed {
        opacity: 0.18;
    }
}
