/* MileGuy Landingpage – mileguy.app
   Gestaltung im Stil einer Apple-Produktseite: viel Weißraum, große ruhige Typo,
   abwechselnd helle und dunkle Bühnen, Farbe nur als Akzent.
   Marke: Pink #ff00ea, Cyan #00f1f1 – kein Lila. */

:root {
    --ink: #1d1d1f;
    --ink-soft: #6e6e73;
    --paper: #ffffff;
    --paper-gray: #f5f5f7;
    --night: #000000;
    --night-soft: #0c0c0e;
    --night-text: #f5f5f7;
    --night-muted: #a1a1a6;
    --pink: #ff00ea;
    --pink-deep: #c800b8;
    --cyan: #00f1f1;
    --cyan-deep: #008a8a;
    --grad: linear-gradient(90deg, #ff00ea 0%, #ff4fd8 45%, #00f1f1 100%);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI",
        system-ui, sans-serif;
    --maxw: 1000px;
    --maxw-wide: 1180px;
    --pad: clamp(20px, 5vw, 40px);
    --nav-h: 48px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--night);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.06;
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--cyan-deep);
    outline-offset: 4px;
    border-radius: 6px;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 300;
    background: var(--ink);
    color: #fff;
    padding: 12px 18px;
    border-radius: 0 0 12px 0;
    text-decoration: none;
}

.skip:focus {
    left: 0;
}

/* ---------- Grundraster ---------- */

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.wrap-wide {
    max-width: var(--maxw-wide);
}

section {
    position: relative;
    padding: clamp(80px, 13vw, 170px) 0;
}

/* Bühnenfarben */

.s-light {
    background: var(--paper);
    color: var(--ink);
}

.s-gray {
    background: var(--paper-gray);
    color: var(--ink);
}

.s-dark {
    background: var(--night);
    color: var(--night-text);
}

.s-dark .sub,
.s-dark .facts .l,
.s-dark .foot-note {
    color: var(--night-muted);
}

/* ---------- Typo ---------- */

.eyebrow {
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.s-dark .eyebrow {
    color: var(--night-muted);
}

h1 {
    font-size: clamp(44px, 8.4vw, 94px);
    letter-spacing: -0.04em;
}

h1 em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.h2 {
    font-size: clamp(34px, 6vw, 68px);
    letter-spacing: -0.035em;
}

.h3 {
    font-size: clamp(22px, 2.6vw, 28px);
    letter-spacing: -0.02em;
}

.sub {
    font-size: clamp(19px, 2.3vw, 26px);
    line-height: 1.42;
    color: var(--ink-soft);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.tiny {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.s-dark .tiny {
    color: var(--night-muted);
}

.center {
    text-align: center;
}

/* ---------- Navigation ---------- */

.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 26px;
    max-width: var(--maxw-wide);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.brand img {
    height: 20px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 26px;
    margin-left: auto;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.nav a:hover {
    color: #fff;
}

.nav-side {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav .lang {
    font-weight: 600;
    letter-spacing: 0.06em;
    font-size: 12px;
}

.nav .nav-cta {
    font-weight: 600;
    color: var(--cyan);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 0;
    padding: 6px;
    color: #fff;
    cursor: pointer;
}

.nav-toggle svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 780px) {
    .nav-links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(0, 0, 0, 0.94);
        backdrop-filter: blur(20px);
        padding: 8px var(--pad) 20px;
        display: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 14px 0;
        font-size: 17px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-toggle {
        display: block;
        order: 3;
        margin-left: 0;
    }

    .nav-side {
        margin-left: auto;
        gap: 16px;
    }
}

/* ---------- Buttons ---------- */

.btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btns.center {
    justify-content: center;
}

.stores {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.stores.center {
    justify-content: center;
}

.stores a {
    display: block;
    transition: opacity 0.2s;
}

.stores a:hover {
    opacity: 0.82;
}

.stores img {
    height: 50px;
    width: auto;
    border-radius: 9px;
}

.s-light .stores img,
.s-gray .stores img {
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--cyan-deep);
    font-size: clamp(17px, 1.8vw, 20px);
    font-weight: 500;
    transition: opacity 0.2s;
}

.s-dark .link-more {
    color: var(--cyan);
}

.link-more:hover {
    opacity: 0.75;
}

.link-more svg {
    width: 15px;
    height: 15px;
}

/* ---------- Hero ---------- */

.hero {
    background: var(--night);
    color: var(--night-text);
    padding: clamp(56px, 9vw, 110px) 0 0;
    overflow: hidden;
    text-align: center;
}

.hero .glow {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, 130vw);
    height: 620px;
    background: radial-gradient(ellipse at 32% 40%, rgba(255, 0, 234, 0.34), transparent 62%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 241, 241, 0.24), transparent 60%);
    filter: blur(90px);
    pointer-events: none;
}

.hero .wrap {
    position: relative;
    z-index: 2;
}

.hero .sub {
    color: var(--night-muted);
    max-width: 620px;
    margin: 26px auto 0;
}

.hero .btns {
    margin-top: 34px;
}

.hero .note {
    margin-top: 18px;
    font-size: 14px;
    color: var(--night-muted);
}

.hero-device {
    margin: clamp(44px, 7vw, 76px) auto 0;
    max-width: 330px;
    position: relative;
    z-index: 2;
}

/* Gerät wächst aus dem Abschluss der Bühne heraus */
.hero-device .device {
    margin-bottom: -14%;
}

/* ---------- Geräterahmen ---------- */

.device {
    position: relative;
    border-radius: 13.5%/6.3%;
    padding: 2.6%;
    background: linear-gradient(150deg, #4a4a4f, #1b1b1e 42%, #3a3a3f);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
}

.s-dark .device {
    box-shadow: 0 40px 110px rgba(0, 0, 0, 0.75);
}

.device img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 11%/5.2%;
    background: #0b0f19;
}

/* ---------- Bühnen (Feature-Abschnitte) ---------- */

.stage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 6vw, 80px);
    align-items: center;
    max-width: var(--maxw-wide);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.stage-grid.flip .stage-media {
    order: -1;
}

.stage-media {
    max-width: 340px;
    justify-self: center;
}

.stage-tag {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--pink-deep);
    margin-bottom: 16px;
}

.s-dark .stage-tag {
    color: var(--pink);
}

.stage-copy .sub {
    margin-top: 22px;
    max-width: 30ch;
}

/* ---------- Bento / Funktionen ---------- */

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: clamp(38px, 5vw, 62px);
    max-width: var(--maxw-wide);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--pad);
}

.tile {
    background: var(--paper);
    border-radius: 22px;
    padding: 34px 30px 36px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 30px rgba(0, 0, 0, 0.05);
}

.s-dark .tile {
    background: var(--night-soft);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.tile .ico {
    width: 38px;
    height: 38px;
    margin-bottom: 20px;
    color: var(--pink-deep);
}

.s-dark .tile .ico {
    color: var(--pink);
}

.tile .ico svg {
    width: 100%;
    height: 100%;
}

.tile h3 {
    font-size: 20px;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
}

.tile p {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.5;
}

.s-dark .tile p {
    color: var(--night-muted);
}

/* ---------- Fakten ---------- */

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(30px, 5vw, 60px);
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}

.facts .v {
    font-size: clamp(46px, 7vw, 76px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1;
    color: var(--ink);
}

.s-dark .facts .v {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.facts .l {
    margin-top: 12px;
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.45;
}

/* ---------- FAQ ---------- */

.faq {
    max-width: 780px;
    margin: clamp(30px, 4vw, 52px) auto 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.s-dark .faq {
    border-top-color: rgba(255, 255, 255, 0.16);
}

.faq details {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.s-dark .faq details {
    border-bottom-color: rgba(255, 255, 255, 0.16);
}

.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 2px;
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "";
    margin-left: auto;
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    border-right: 1.8px solid var(--pink-deep);
    border-bottom: 1.8px solid var(--pink-deep);
    transform: rotate(45deg) translate(-3px, -3px);
    transition: transform 0.25s ease;
}

.s-dark .faq summary::after {
    border-color: var(--pink);
}

.faq details[open] summary::after {
    transform: rotate(225deg) translate(-3px, -3px);
}

.faq .answer {
    padding: 0 40px 26px 2px;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.55;
    max-width: 62ch;
}

.s-dark .faq .answer {
    color: var(--night-muted);
}

/* ---------- Abschluss-CTA ---------- */

.cta .h2 {
    margin-bottom: 20px;
}

.cta .sub {
    max-width: 560px;
    margin: 0 auto;
}

.cta .stores {
    margin-top: 38px;
}

.cta .note {
    margin-top: 20px;
    font-size: 14px;
    color: var(--night-muted);
}

.cta .app-icon {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    margin: 0 auto 30px;
    box-shadow: 0 20px 50px rgba(255, 0, 234, 0.2);
}

/* ---------- Footer ---------- */

footer {
    background: var(--paper-gray);
    color: var(--ink-soft);
    padding: 44px 0 52px;
    font-size: 12px;
    line-height: 1.5;
}

.foot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 30px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.foot-col h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 10px;
}

.foot-col li {
    margin-bottom: 8px;
}

.foot-col a {
    text-decoration: none;
    transition: color 0.2s;
}

.foot-col a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.foot-note {
    padding-top: 22px;
    max-width: 860px;
}

.foot-bottom {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: space-between;
    align-items: center;
}

.foot-lang {
    text-decoration: none;
    font-weight: 600;
}

.foot-lang:hover {
    color: var(--ink);
}

/* ---------- Rechtstext-Seite ---------- */

.legal {
    padding: clamp(56px, 8vw, 100px) 0 clamp(60px, 8vw, 110px);
}

.legal-body {
    max-width: 720px;
}

.legal-body h1 {
    font-size: clamp(34px, 5vw, 54px);
    margin-bottom: 30px;
}

.legal-body h2 {
    font-size: 21px;
    margin: 38px 0 10px;
    letter-spacing: -0.015em;
}

.legal-body p {
    color: var(--ink-soft);
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.6;
}

.legal-body a {
    color: var(--cyan-deep);
}

.legal-note {
    border-left: 2px solid var(--pink);
    padding-left: 14px;
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: var(--cyan-deep);
    font-size: 15px;
    margin-bottom: 26px;
}

.back-link:hover {
    text-decoration: underline;
}

.back-link svg {
    width: 14px;
    height: 14px;
}

/* ---------- Reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .stage-grid {
        grid-template-columns: 1fr;
        gap: 44px;
        text-align: center;
    }

    .stage-grid.flip .stage-media {
        order: 0;
    }

    .stage-copy .sub {
        max-width: 36ch;
        margin-left: auto;
        margin-right: auto;
    }

    .stage-media {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bento {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .stores img {
        height: 46px;
    }

    .tile {
        padding: 28px 24px 30px;
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }
}
