@import url("https://fonts.googleapis.com/css2?family=Literata:opsz,wght@7..72,400;7..72,500;7..72,600;7..72,700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
    color-scheme: dark;
    --bg: #080808;
    --bg-accent: #0f1115;
    --card: #101216;
    --card-edge: #1f232b;
    --text: #f2f4f6;
    --muted: #b8bcc3;
    --glow: rgba(255, 255, 255, 0.08);
    --brand: #c9d4ff;
    --font-ui: "Manrope", "Segoe UI", sans-serif;
    --font-doc: "Literata", Georgia, "Times New Roman", serif;
    --link-strong: #ffffff;
    --theme-white: rgba(154, 185, 220, 0.92);
    --theme-white-soft: rgba(154, 185, 220, 0.58);
    --theme-red: rgba(255, 220, 108, 0.95);
    --theme-red-soft: rgba(255, 220, 108, 0.46);
    --theme-red-deep: rgba(214, 164, 44, 0.62);
}

@property --white-glow-x {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 24%;
}

@property --white-glow-y {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 48%;
}

@property --red-glow-x {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 76%;
}

@property --red-glow-y {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 52%;
}

@property --card-white-glow-x {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 16%;
}

@property --card-white-glow-y {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 48%;
}

@property --card-red-glow-x {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 84%;
}

@property --card-red-glow-y {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 52%;
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-ui);
}

body {
    background: radial-gradient(circle at top center, #111 0%, #080808 35%, #050505 100%);
}

.landing-body {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}


.site-header,
.page,
.page-footer,
.legal-page {
    position: relative;
    pointer-events: auto;
}


.site-header a,
.site-header button,
.page a,
.page button,
.page [role="button"],
.page input,
.page select,
.page textarea,
.page label,
.app-card,
.app-card *,
.page-footer a {
    pointer-events: auto;
}

.site-header {
    position: absolute;
    top: clamp(10px, 2vh, 20px);
    left: clamp(12px, 2vw, 28px);
    z-index: 10;
    padding: 0;
    text-align: left;
}

.back-logo {
    display: inline-block;
    transition: transform 0.2s ease;
}

.back-logo img {
    width: 140px;
    max-width: 72vw;
    height: auto;
    display: block;
}

.back-logo:hover {
    transform: scale(1.05);
}

.brand-wordmark,
.app-wordmark {
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.app-wordmark {
    font-size: 1.2rem;
}

.page {
    min-height: 100vh;
    padding: clamp(88px, 11vh, 120px) 16px clamp(24px, 4vh, 44px);
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1 0 auto;
    gap: clamp(18px, 3vh, 34px);
    width: 100%;
    box-sizing: border-box;
}

.apps-single {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex: 1 0 auto;
    position: relative;
    isolation: isolate;
    overflow: visible;
    min-height: 0;
    transform: translateY(-40px);
}

.apps-single::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(940px, calc(96vw - 80px));
    height: min(660px, 78vh);
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center;
    border-radius: 43% 57% 52% 48% / 45% 42% 58% 55%;
    background:
        radial-gradient(circle at var(--white-glow-x) var(--white-glow-y), rgba(154, 185, 220, 0.58), transparent 46%),
        radial-gradient(circle at var(--red-glow-x) var(--red-glow-y), rgba(255, 220, 108, 0.42), transparent 48%);
    filter: blur(96px);
    opacity: 0.96;
    pointer-events: none;
    z-index: 0;
    will-change: transform, opacity;
    animation: ambientGlowReflections 28s ease-in-out infinite;
}

@media (max-height: 760px) {
    .page {
        padding-top: clamp(96px, 14vh, 112px);
    }

    .apps-single {
        transform: translateY(-20px);
    }
}

@media (max-height: 660px) {
    .page {
        padding-top: 96px;
    }

    .apps-single {
        transform: translateY(0);
    }
}

.app-card-frame {
    --card-radius: 28px;
    --card-border-size: 1px;
    width: 100%;
    max-width: min(660px, calc(100vw - 56px));
    padding: var(--card-border-size);
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: var(--card-radius);
    box-sizing: border-box;
    background: transparent;
}

.app-card {
    background:
        radial-gradient(circle at var(--card-white-glow-x) var(--card-white-glow-y), rgba(154, 185, 220, 0.13), transparent 42%),
        radial-gradient(circle at var(--card-red-glow-x) var(--card-red-glow-y), rgba(255, 220, 108, 0.13), transparent 46%),
        rgba(0, 0, 0, 0.68);
    border-radius: calc(var(--card-radius) - var(--card-border-size));
    padding: clamp(42px, 5vw, 56px) clamp(24px, 4.5vw, 52px) clamp(44px, 5vw, 58px);
    border: 0;
    position: relative;
    z-index: 1;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
    gap: clamp(10px, 1.4vw, 14px);
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
    animation: cardInnerGlowDrift 37s ease-in-out infinite;
}

.app-hero-wordmark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.app-hero-wordmark h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(2.2rem, 7vw, 3.75rem);
    letter-spacing: -0.075em;
    font-weight: 700;
}

.morning-sun {
    color: #ffd47a;
    font-size: clamp(2.3rem, 7vw, 4rem);
    line-height: 1;
}

.feature-glyph {
    font-size: 1.2rem;
    line-height: 1;
}

.store-status {
    display: inline-flex;
    padding: 0.9rem 1.15rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0.75rem;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 600;
}

.app-card > * {
    position: relative;
    z-index: 2;
}

.app-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.52);
    pointer-events: none;
}

@keyframes ambientGlowReflections {
    0% {
        --white-glow-x: 24%;
        --white-glow-y: 48%;
        --red-glow-x: 76%;
        --red-glow-y: 52%;
        transform: translate(-54%, -51%) scale(0.92);
        opacity: 0.74;
        border-radius: 43% 57% 52% 48% / 45% 42% 58% 55%;
    }

    33% {
        --white-glow-x: 68%;
        --white-glow-y: 42%;
        --red-glow-x: 32%;
        --red-glow-y: 58%;
        transform: translate(-48%, -53%) scale(1.08);
        opacity: 0.96;
        border-radius: 47% 53% 49% 51% / 41% 46% 54% 59%;
    }

    66% {
        --white-glow-x: 70%;
        --white-glow-y: 62%;
        --red-glow-x: 30%;
        --red-glow-y: 38%;
        transform: translate(-52%, -47%) scale(1.16);
        opacity: 0.88;
        border-radius: 51% 49% 56% 44% / 52% 39% 61% 48%;
    }

    100% {
        --white-glow-x: 24%;
        --white-glow-y: 48%;
        --red-glow-x: 76%;
        --red-glow-y: 52%;
        transform: translate(-54%, -51%) scale(0.92);
        opacity: 0.74;
        border-radius: 43% 57% 52% 48% / 45% 42% 58% 55%;
    }
}

@keyframes cardInnerGlowDrift {
    0% {
        --card-white-glow-x: 92%;
        --card-white-glow-y: 60%;
        --card-red-glow-x: 8%;
        --card-red-glow-y: 40%;
    }

    38% {
        --card-white-glow-x: 24%;
        --card-white-glow-y: 68%;
        --card-red-glow-x: 76%;
        --card-red-glow-y: 32%;
    }

    72% {
        --card-white-glow-x: 14%;
        --card-white-glow-y: 30%;
        --card-red-glow-x: 86%;
        --card-red-glow-y: 70%;
    }

    100% {
        --card-white-glow-x: 92%;
        --card-white-glow-y: 60%;
        --card-red-glow-x: 8%;
        --card-red-glow-y: 40%;
    }
}

.app-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transform: translateY(-30px);
   
}

.app-logo-main {
    width: min(342px, 52vw);
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center center;
    align-self: center;
    margin-inline: auto;
    transform: translateX(10px);
   
}

.app-logo-morning {
    width: min(250px, 48vw);
    transform: none;
    border-radius: 26%;
    filter: drop-shadow(0 16px 24px rgba(75, 116, 160, 0.34));
}

.app-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: min(228px, 68%);
    margin: -2px auto 0;
    color: rgba(234, 213, 172, 0.82);
    transform: translateY(-30px);
}

.app-divider span {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.app-waveform {
    width: 34px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.app-waveform-bar {
    width: 2px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center bottom;
    animation: waveformPulse 1.9s ease-in-out infinite;
}

.app-waveform-bar:nth-child(1) {
    height: 7px;
    animation-delay: -1.9s;
    animation-duration: 2s;
}

.app-waveform-bar:nth-child(2) {
    height: 11px;
    animation-delay: -1.2s;
    animation-duration: 1.75s;
}

.app-waveform-bar:nth-child(3) {
    height: 15px;
    animation-delay: -2.3s;
    animation-duration: 2.1s;
}

.app-waveform-bar:nth-child(4) {
    height: 10px;
    animation-delay: -0.7s;
    animation-duration: 1.8s;
}

.app-waveform-bar:nth-child(5) {
    height: 14px;
    animation-delay: -1.6s;
    animation-duration: 2.05s;
}

.app-waveform-bar:nth-child(6) {
    height: 9px;
    animation-delay: -0.9s;
    animation-duration: 1.85s;
}

.app-waveform-bar:nth-child(7) {
    height: 6px;
    animation-delay: -2s;
    animation-duration: 1.95s;
}

@keyframes waveformPulse {
    0%,
    100% {
        transform: scaleY(0.82);
        opacity: 0.72;
    }

    35% {
        transform: scaleY(1.08);
        opacity: 0.9;
    }

    65% {
        transform: scaleY(0.9);
        opacity: 0.78;
    }
}

@media (prefers-reduced-motion: reduce) {
    .apps-single::before,
    .legal-body::before {
        animation: none;
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.78;
    }

    .app-waveform-bar {
        animation: none;
        transform: none;
        opacity: 0.82;
    }

    .app-card,
    .legal-card {
        animation: none;
    }
}

.app-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px clamp(28px, 18vw, 180px);
    width: 100%;
    margin-top: 2px;
    --badge-w: min(148px, 38vw);
    --badge-h: 48px;
    transform: translateY(20px);
}

.app-availability {
    width: 100%;
}

.app-badge {
    flex: 1 1 var(--badge-w);
    width: 100%;
    max-width: var(--badge-w);
    height: var(--badge-h);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 0;
    border-radius: 11px;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    transition: transform 0.2s ease, filter 0.2s ease;
    opacity: 0.9;
}

.app-badge-ios {
    width: 100%;
    max-width: var(--badge-w);
    height: var(--badge-h);
    box-shadow: none;
}


.app-desc {
    font-size: clamp(1rem, 2.1vw, 1.32rem);
    font-family: var(--font-ui);
    font-weight: 400;
    color: rgba(232, 235, 232, 0.78);
    background: linear-gradient(92deg, #efe2c6 0%, #ebece6 42%, #b6d9df 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 auto;
    max-width: 520px;
    line-height: 1.24;
    letter-spacing: 0;
    align-self: center;
    text-align: center;
    width: 100%;
    transform: translateY(-30px);
}

.app-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    margin: 0 auto 4px;
    transform: translateY(0px);
}

.app-feature {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(3px, 0.6vw, 4px);
    color: var(--theme-red);
    font-size: clamp(0.56rem, 1.25vw, 0.74rem);
}

.app-feature + .app-feature {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.app-feature svg {
    width: clamp(16px, 2.6vw, 21px);
    height: clamp(16px, 2.6vw, 21px);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-feature span {
    color: var(--theme-white);
    white-space: nowrap;
    font-weight: 500;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
    margin: 0;
    transform: translateY(5px);
    font-size: 0.9rem;
    font-family: inherit;
    justify-content: center;
    max-width: 100%;
    padding: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-links a + a::before {
    content: "\2022";
    display: inline-block;
    margin: 0 16px;
    color: var(--theme-white-soft);
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: underline;
}

.page-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: translateY(20px);
    margin: clamp(18px, 3vh, 34px) 0 0;
    padding: 0 16px;
    line-height: 1.2;
    text-align: center;
    font-size: 0.84rem;
    color: rgba(170, 176, 185, 0.58);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.page-footer p {
    margin: 0;
    color: var(--theme-white);
}

.app-store-badge {
    width: 100%;
    height: 100%;
}

/* Legal pages */
.legal-body {
    background:
        radial-gradient(circle at top center, rgba(154, 185, 220, 0.10), transparent 28%),
        #050505;
    color: #f5f5f5;
    font-family: var(--font-doc);
    margin: 0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.legal-body::before {
    content: "";
    position: fixed;
    left: 50%;
    top: 48%;
    width: min(1180px, 112vw);
    height: min(720px, 82vh);
    transform: translate(-54%, -51%) scale(0.92);
    background:
        radial-gradient(circle at var(--white-glow-x) var(--white-glow-y), rgba(154, 185, 220, 0.52), transparent 46%),
        radial-gradient(circle at var(--red-glow-x) var(--red-glow-y), rgba(255, 220, 108, 0.38), transparent 48%);
    filter: blur(42px);
    opacity: 0.72;
    border-radius: 43% 57% 52% 48% / 45% 42% 58% 55%;
    z-index: 0;
    pointer-events: none;
    will-change: transform, opacity;
    animation: ambientGlowReflections 28s ease-in-out infinite;
}

.legal-page {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(10px, 2vh, 20px) 16px 72px;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.legal-header {
    margin-bottom: 18px;
}

.legal-brandbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 2;
    margin: 0 0 clamp(44px, 8vh, 86px);
    width: 100%;
    pointer-events: none;
}

.legal-brand-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    text-decoration: none;
    pointer-events: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.legal-brand-logo img {
    height: auto;
    width: auto;
    max-width: min(42vw, 230px);
    display: block;
    object-fit: contain;
}

.legal-brand-logo:not(.legal-brand-logo-app) img {
    width: 140px;
}

.legal-brand-logo-app img {
    height: 42px;
    max-width: min(42vw, 250px);
}

.legal-brand-logo:hover {
    opacity: 0.86;
    transform: translateY(-1px);
}

.legal-header h1 {
    margin: 0 0 8px;
    font-size: 2rem;
    letter-spacing: 0.04em;
}

.legal-meta {
    color: #9a9a9a;
    font-size: 0.95rem;
    margin: 4px 0 0;
}

.legal-card {
    background:
        radial-gradient(circle at var(--card-white-glow-x) var(--card-white-glow-y), rgba(154, 185, 220, 0.13), transparent 42%),
        radial-gradient(circle at var(--card-red-glow-x) var(--card-red-glow-y), rgba(255, 220, 108, 0.13), transparent 46%),
        rgba(0, 0, 0, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 24px;
    box-shadow:
        0 18px 32px rgba(0, 0, 0, 0.35),
        0 0 48px rgba(255, 220, 108, 0.11),
        0 0 54px rgba(154, 185, 220, 0.08);
    position: relative;
    z-index: 0;
    overflow: hidden;
    pointer-events: auto;
    animation: cardInnerGlowDrift 37s ease-in-out infinite;
}

.legal-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.52);
    pointer-events: none;
    z-index: 1;
}

.legal-card > * {
    position: relative;
    z-index: 2;
}

.legal-card h2 {
    margin-top: 22px;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.legal-card h3 {
    margin-top: 16px;
    margin-bottom: 6px;
    font-size: 1rem;
}

.legal-card p {
    margin: 8px 0;
    color: #d2d2d2;
}

.legal-card ul {
    margin: 8px 0 12px 20px;
    color: #d2d2d2;
}

.legal-card a {
    color: #c4dcff;
    pointer-events: auto;
}
.legal-card a:hover {
    color: #ffffff;
}

.legal-card a[href^="mailto:"] {
    color: var(--link-strong);
}

.legal-card a[href^="mailto:"]:hover {
    color: var(--link-strong);
    opacity: 0.82;
}
