/* ============================================================
   MapMoji — Global Stylesheet
   ============================================================ */

:root {
    --bg:          #090909;
    --bg-2:        #111111;
    --card:        rgba(255, 255, 255, 0.04);
    --border:      rgba(255, 255, 255, 0.08);
    --border-hi:   rgba(255, 255, 255, 0.14);
    --text:        #f5f5f7;
    --text-2:      rgba(245, 245, 247, 0.62);
    --text-3:      rgba(245, 245, 247, 0.32);
    --green:       #4ade80;
    --yellow:      #facc15;
    --gradient:    linear-gradient(135deg, #4ade80 0%, #facc15 100%);
    --nav-h:       64px;
    --r-sm:        12px;
    --r:           20px;
    --r-lg:        32px;
    --font:        -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
    --mw:          1200px;
    --gap:         100px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; cursor: pointer; }
a:hover { cursor: pointer; }

/* ── Language toggle ────────────────────────────────────── */
[data-lang="en"] .lang-de { display: none !important; }
[data-lang="de"] .lang-en { display: none !important; }

/* ── Layout ─────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 28px;
}
.section { padding: var(--gap) 0; }

/* ── Utilities ──────────────────────────────────────────── */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.glass {
    background: var(--card);
    border: 1px solid var(--border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--r);
}

/* ── Scroll animations ──────────────────────────────────── */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate].visible      { opacity: 1; transform: translateY(0); }
[data-delay="1"]            { transition-delay: 0.08s; }
[data-delay="2"]            { transition-delay: 0.16s; }
[data-delay="3"]            { transition-delay: 0.24s; }
[data-delay="4"]            { transition-delay: 0.32s; }

/* ── Section headers ────────────────────────────────────── */
.section-head {
    text-align: center;
    margin-bottom: 64px;
}
.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 20px;
}
.section-head h2 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

/* ╔══════════════════════════════════════════════════════╗
   ║  NAV                                                 ║
   ╚══════════════════════════════════════════════════════╝ */
#nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    transition: background 0.35s ease, border-color 0.35s ease;
    border-bottom: 1px solid transparent;
}
#nav.scrolled {
    background: rgba(9, 9, 9, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-color: var(--border);
}
.nav-inner {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    flex-shrink: 0;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 3px;
}
.lang-btn {
    background: none;
    border: none;
    color: var(--text-2);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
    background: rgba(255, 255, 255, 0.11);
    color: var(--text);
}
.lang-sep { color: var(--text-3); font-size: 11px; }

/* Nav CTA */
.nav-cta {
    background: var(--text);
    color: #000;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 100px;
    transition: opacity 0.15s;
    white-space: nowrap;
}
.nav-cta:hover { opacity: 0.82; }

/* ╔══════════════════════════════════════════════════════╗
   ║  HERO                                                ║
   ╚══════════════════════════════════════════════════════╝ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-h);
}

/* Ambient glow */
.hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 68% 42%, rgba(74, 222, 128, 0.11) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 75% 65%, rgba(250, 204, 21, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(74, 222, 128, 0.05) 0%, transparent 60%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
    padding-top: 56px;
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}
.hero-text {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Pill badge */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.22);
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 100px;
    width: fit-content;
}
.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}

.hero-text h1 {
    font-size: clamp(42px, 5.5vw, 74px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -2.5px;
}
.hero-lead {
    font-size: clamp(16px, 1.7vw, 19px);
    color: var(--text-2);
    line-height: 1.65;
    max-width: 460px;
}

/* App Store badge button */
.badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    background: #fff;
    color: #000;
    border-radius: var(--r-sm);
    padding: 13px 22px;
    width: fit-content;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.2s ease;
}
.badge-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}
.apple-mark {
    width: 26px;
    height: 26px;
    fill: #000;
    flex-shrink: 0;
}
.badge-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.badge-sub {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.65;
}
.badge-main {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.badge-btn--lg {
    padding: 16px 28px;
    border-radius: var(--r-sm);
}
.badge-btn--lg .badge-main { font-size: 21px; }
.badge-btn--lg .apple-mark { width: 30px; height: 30px; }

/* Hero phone */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* ─── Phone Frame ───────────────────────────────────────── */
.phone-frame {
    position: relative;
    display: inline-block;
    background: linear-gradient(160deg, #0d0d0d 0%, #000 100%);
    border-radius: 46px;
    padding: 14px 10px 24px;
    border: 1.5px solid #484848;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    width: 100%;
}

/* Left side: silent + vol up + vol down */
.phone-frame::before {
    content: '';
    position: absolute;
    left: -3.5px;
    top: 86px;
    width: 3.5px;
    height: 26px;
    background: #2a2a2a;
    border-radius: 2px 0 0 2px;
    box-shadow: 0 38px 0 0 #2a2a2a, 0 74px 0 0 #2a2a2a;
}

/* Right side: power button */
.phone-frame::after {
    content: '';
    position: absolute;
    right: -3.5px;
    top: 114px;
    width: 3.5px;
    height: 62px;
    background: #2a2a2a;
    border-radius: 0 2px 2px 0;
}

.phone-island {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 27px;
    background: #000;
    border-radius: 14px;
    z-index: 10;
}

.phone-frame img {
    display: block;
    width: 100%;
    border-radius: 36px;
}

.phone-home {
    position: absolute;
    bottom: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 4px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 3px;
}

/* Hero phone */
.hero-visual .phone-frame {
    width: min(284px, 90%);
    filter: drop-shadow(0 50px 100px rgba(0, 0, 0, 0.75))
            drop-shadow(0 0 60px rgba(74, 222, 128, 0.14));
    transform: perspective(1100px) rotateY(-7deg) rotateX(2deg) translateY(0);
    animation: phone-float 5.5s ease-in-out infinite;
    transition: filter 0.4s ease;
}
.hero-visual .phone-frame:hover {
    filter: drop-shadow(0 60px 120px rgba(0,0,0,0.85)) drop-shadow(0 0 90px rgba(74,222,128,0.32));
    cursor: pointer;
}
@keyframes phone-float {
    0%, 100% { transform: perspective(1100px) rotateY(-7deg) rotateX(2deg) translateY(0); }
    50%       { transform: perspective(1100px) rotateY(-7deg) rotateX(2deg) translateY(-16px); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-visual .phone-frame { animation: none; }
}

/* ╔══════════════════════════════════════════════════════╗
   ║  FEATURES                                            ║
   ╚══════════════════════════════════════════════════════╝ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.feature-card {
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.22s, transform 0.22s;
}
.feature-card:hover {
    border-color: var(--border-hi);
    transform: translateY(-5px);
}
.card-icon  { font-size: 44px; line-height: 1; }
.card-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.4px;
}
.card-body {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
}

/* ╔══════════════════════════════════════════════════════╗
   ║  SCREENSHOTS                                         ║
   ╚══════════════════════════════════════════════════════╝ */
.shots-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-top: 28px;
    padding-bottom: 52px;
    /* Align first item with container, overflow both sides */
    padding-left:  max(28px, calc((100vw - var(--mw)) / 2 + 28px));
    padding-right: max(28px, calc((100vw - var(--mw)) / 2 + 28px));
}
.shots-track::-webkit-scrollbar { display: none; }

.shot {
    flex-shrink: 0;
    width: 220px;
    scroll-snap-align: start;
    cursor: pointer;
}
.shot .phone-frame {
    width: 100%;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.65));
    transform: rotate(0deg);
    transition: transform 0.32s ease, filter 0.32s ease;
}
.shot:nth-child(odd)  .phone-frame { transform: rotate(-1.8deg); }
.shot:nth-child(even) .phone-frame { transform: rotate(1.8deg);  }
.shot .phone-frame:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.03) !important;
    filter: drop-shadow(0 32px 70px rgba(0,0,0,0.75)) drop-shadow(0 0 20px rgba(74,222,128,0.18)) !important;
}

/* ╔══════════════════════════════════════════════════════╗
   ║  HOW IT WORKS                                        ║
   ╚══════════════════════════════════════════════════════╝ */
.how-bg { background: var(--bg-2); }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.step {
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    transition: border-color 0.22s, transform 0.22s;
}
.step:hover {
    border-color: var(--border-hi);
    transform: translateY(-5px);
}
.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    color: #000;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-icon  { font-size: 40px; line-height: 1; }
.step-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.4px;
}
.step-body {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
}

/* ╔══════════════════════════════════════════════════════╗
   ║  CTA                                                 ║
   ╚══════════════════════════════════════════════════════╝ */
.cta-card {
    text-align: center;
    padding: 80px 48px;
    border-radius: var(--r-lg);
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 65% at 50% 110%,
        rgba(74, 222, 128, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.cta-emoji {
    font-size: 72px;
    line-height: 1;
    margin-bottom: 28px;
    animation: spin-slow 20s linear infinite;
}
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .cta-emoji { animation: none; }
}
.cta-card h2 {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 16px;
}
.cta-card p {
    font-size: 18px;
    color: var(--text-2);
    margin-bottom: 40px;
}
.cta-card .badge-btn { margin: 0 auto; }

/* ╔══════════════════════════════════════════════════════╗
   ║  FOOTER                                              ║
   ╚══════════════════════════════════════════════════════╝ */
footer {
    border-top: 1px solid var(--border);
    padding: 36px 0;
}
.footer-inner {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-logo {
    font-size: 15px;
    font-weight: 700;
}
.footer-links {
    display: flex;
    gap: 28px;
}
.footer-links a {
    font-size: 14px;
    color: var(--text-3);
    cursor: pointer;
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-2); }
.footer-copy {
    font-size: 13px;
    color: var(--text-3);
}
.footer-copy a {
    color: var(--text-2);
    transition: color 0.15s;
}
.footer-copy a:hover { color: var(--text); }

/* ╔══════════════════════════════════════════════════════╗
   ║  IMPRINT PAGE                                        ║
   ╚══════════════════════════════════════════════════════╝ */
.imprint-page {
    min-height: 100vh;
    padding-top: calc(var(--nav-h) + 80px);
    padding-bottom: 120px;
}
.imprint-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 28px;
}
.imprint-inner > h1 {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 8px;
}
.imprint-sub {
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 56px;
}
.imprint-inner h2 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-3);
    margin-top: 44px;
    margin-bottom: 12px;
}
.imprint-inner p,
.imprint-inner address {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.75;
    font-style: normal;
}
.imprint-inner a {
    color: var(--green);
    transition: opacity 0.15s;
}
.imprint-inner a:hover { opacity: 0.72; }

/* ╔══════════════════════════════════════════════════════╗
   ║  RESPONSIVE                                          ║
   ╚══════════════════════════════════════════════════════╝ */
@media (max-width: 880px) {
    :root { --gap: 72px; }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding-top: 40px;
        padding-bottom: 64px;
    }
    .hero-visual { order: -1; }
    .hero-visual .phone-frame {
        width: min(230px, 65%);
        margin: 0 auto;
        animation: none;
        transform: none;
        filter: drop-shadow(0 30px 60px rgba(0,0,0,0.7));
    }
    .hero-lead  { margin: 0 auto; }
    .pill       { margin: 0 auto; }
    .badge-btn  { margin: 0 auto; }

    .card-grid,
    .steps { grid-template-columns: 1fr; }

    .cta-card { padding: 56px 28px; }

    .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 520px) {
    .nav-cta { display: none; }
    .shot    { width: 180px; }
    .cta-card { padding: 44px 20px; }
}
