:root {
    --bg: #fafafa;
    --bg-dark: #0f1117;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --text-on-dark: #e5e7eb;
    --accent: #4f46e5;
    --accent-light: #818cf8;
    --surface: #ffffff;
    --surface-dark: #1a1b26;
    --border: #e5e7eb;
    --device-bg: #1a1a2e;
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Nav */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

.nav.scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.brand-lang {
    font-weight: 500;
    opacity: 0.7;
}

.hero-eyebrow {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 11px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero */

.hero {
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #e0e7ff 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 64px;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 24px;
}

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    background: var(--surface);
    color: var(--accent);
    border: 1px solid var(--border);
}

.hero-device {
    flex-shrink: 0;
}

/* Device Frame */

.device-frame {
    position: relative;
    width: 280px;
    background: var(--device-bg);
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.device-frame::before {
    display: none;
}

.device-frame .screenshot {
    width: 100%;
    display: block;
    border-radius: 24px;
    object-fit: contain;
    background: #2a2a3e;
}

.device-frame.ipad {
    width: 520px;
    border-radius: 24px;
    padding: 10px;
}

.device-frame.ipad::before {
    display: none;
}

.device-frame.ipad .screenshot {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
}

.device-frame.ipad.placeholder::after {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
}

.device-frame.ipad-portrait {
    width: 380px;
    border-radius: 24px;
    padding: 10px;
}

.device-frame.ipad-portrait::before {
    display: none;
}

.device-frame.ipad-portrait .screenshot {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
}

.device-frame.ipad-portrait.placeholder::after {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
}

.device-frame.phone-landscape {
    width: 520px;
    border-radius: 24px;
    padding: 10px;
}

.device-frame.phone-landscape::before {
    display: none;
}

.device-frame.phone-landscape .screenshot {
    aspect-ratio: 19.5 / 9;
    border-radius: 16px;
}

.device-frame.phone-landscape.placeholder::after {
    aspect-ratio: 19.5 / 9;
    border-radius: 16px;
}

.device-frame.placeholder .screenshot {
    display: none;
}

.device-frame.placeholder {
    aspect-ratio: auto;
}

.device-frame.placeholder::after {
    content: '';
    display: block;
    aspect-ratio: 9 / 19.5;
    border-radius: 24px;
    background: linear-gradient(135deg, #2a2a3e 0%, #3a3a5e 100%);
}

.placeholder-label {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    font-family: 'SF Mono', monospace;
    z-index: 3;
    pointer-events: none;
}

.device-frame.placeholder .placeholder-label {
    display: block;
}

/* Flag Parade */

.flag-parade {
    text-align: center;
    margin: 40px auto 16px;
    max-width: 720px;
}

.flag-parade p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.flags {
    font-size: 1.5rem;
    line-height: 2.4;
    letter-spacing: 0.15em;
    word-spacing: 0.1em;
}

/* Sections */

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 56px;
}

/* Feature Grid */

.features {
    padding: 96px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.showcase.dark .feature-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.showcase.dark .feature-card {
    background: var(--surface-dark);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-on-dark);
}

.showcase.dark .feature-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.showcase.dark .feature-card p {
    color: #9ca3af;
}

/* Showcase Sections */

.showcase {
    padding: 96px 24px;
}

.showcase.dark {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.showcase.dark .section-subtitle {
    color: #9ca3af;
}

.showcase.dark .showcase-text p {
    color: #9ca3af;
}

.showcase-item {
    max-width: 1100px;
    margin: 0 auto 80px;
    display: flex;
    align-items: center;
    gap: 64px;
}

.showcase-item:last-child {
    margin-bottom: 0;
}

.showcase-item.reverse {
    flex-direction: row-reverse;
}

.showcase-text {
    flex: 1;
}

.showcase-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.showcase-text p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 1.02rem;
}

.showcase-device {
    flex-shrink: 0;
}

/* CTA */

.cta {
    padding: 96px 24px;
    text-align: center;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #e0e7ff 100%);
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 48px;
}

.cta-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 40px;
}

.coming-soon-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.coming-soon-card {
    padding: 32px 40px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    min-width: 200px;
    opacity: 0.6;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.coming-soon-card.active {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12);
}

.coming-soon-card.active:hover {
    transform: translateY(-4px);
}

.coming-soon-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: block;
    margin: 0 auto 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.coming-soon-flag {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.8rem;
    margin-bottom: auto;
    padding-bottom: 12px;
}

/* Vertical split (left/right) */
.split-flag {
    display: inline-flex;
    gap: 2px;
    vertical-align: middle;
    line-height: 1;
}

.split-flag .flag-half {
    display: inline-block;
    width: 0.6em;
    height: 1em;
    overflow: hidden;
    font-size: inherit;
    line-height: 1;
}

.split-flag .flag-half span {
    display: inline-block;
    font-size: inherit;
    line-height: 1;
}

.split-flag .flag-right span {
    margin-left: -0.6em;
}

/* Horizontal split (top/bottom) */
.split-flag-h {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    vertical-align: middle;
    line-height: 1;
}

.split-flag-h .flag-half {
    display: block;
    width: 1.2em;
    height: 0.5em;
    overflow: hidden;
    font-size: inherit;
    line-height: 1;
}

.split-flag-h .flag-half span {
    display: block;
    font-size: inherit;
    line-height: 1;
}

.split-flag-h .flag-bottom span {
    margin-top: -0.5em;
}

.coming-soon-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.coming-soon-status {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    background: #f3f4f6;
    color: var(--text-muted);
}

.coming-soon-status.available {
    background: var(--accent);
    color: white;
}

/* Footer */

.footer {
    padding: 32px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

.impressum {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.impressum h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.impressum a {
    color: var(--accent);
    text-decoration: none;
}

.impressum a:hover {
    text-decoration: underline;
}

/* Animations */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

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

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 48px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        margin: 0 auto 24px;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-eyebrow {
        justify-content: center;
    }

    .showcase-item,
    .showcase-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .device-frame {
        width: 240px;
        margin: 0 auto;
    }

    .device-frame.ipad {
        width: 420px;
    }

    .device-frame.ipad-portrait {
        width: 320px;
    }

    .device-frame.phone-landscape {
        width: 420px;
    }

    .section-title {
        font-size: 2rem;
    }
}

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

    .coming-soon-grid {
        flex-direction: column;
        align-items: center;
    }

    .coming-soon-card {
        width: 100%;
        max-width: 280px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 250, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

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

    .nav-toggle {
        display: flex;
    }

    .device-frame {
        width: 220px;
    }

    .device-frame.ipad {
        width: 340px;
    }

    .device-frame.ipad-portrait {
        width: 260px;
    }

    .device-frame.phone-landscape {
        width: 340px;
    }

    .section-title {
        font-size: 1.75rem;
    }
}
