/* ============================================
   KALION — Apple-Style + Visuals + Animations
   ============================================ */

:root {
    --white: #ffffff;
    --off-white: #fbfbfd;
    --gray-100: #f5f5f7;
    --gray-200: #e8e8ed;
    --gray-300: #d2d2d7;
    --gray-400: #a1a1a6;
    --gray-500: #86868b;
    --gray-700: #515154;
    --gray-800: #2c2c2e;
    --near-black: #1d1d1f;
    --deep-black: #0a0a0b;
    --black: #000000;

    --blue: #0071e3;
    --blue-hover: #0077ed;
    --blue-light: #2997ff;

    --font-sys: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                "Helvetica Neue", Helvetica, Arial, "Inter", sans-serif;
    --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

    --radius-tile: 18px;
    --radius-pill: 980px;
    --nav-h: 44px;
    --gutter: 12px;
    --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sys);
    font-size: 17px;
    line-height: 1.47;
    color: var(--near-black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: var(--blue); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.mono {
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 500;
}

/* ============================================
   GLOBAL NAV
   ============================================ */
.global-nav {
    position: sticky;
    top: 0;
    z-index: 9000;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.global-nav-inner {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.95);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 13px;
    padding: 0 8px;
}
.nav-logo:hover { text-decoration: none; opacity: 0.7; }
.nav-menu { display: flex; }
.nav-menu a {
    color: rgba(255,255,255,0.88);
    font-size: 12px;
    padding: 0 10px;
    line-height: var(--nav-h);
    letter-spacing: -0.01em;
}
.nav-menu a:hover { color: var(--white); text-decoration: none; }
.nav-utils { display: flex; gap: 2px; align-items: center; }

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.04em;
    font-weight: 500;
}
.lang-switch a {
    color: rgba(255,255,255,0.7);
    padding: 0 2px;
    transition: color 0.15s var(--ease);
}
.lang-switch a:hover { color: var(--white); text-decoration: none; }
.lang-switch .lang-active { color: var(--white); }
.lang-switch .lang-sep { color: rgba(255,255,255,0.3); }
.nav-icon {
    width: 40px; height: var(--nav-h);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.88);
}
.nav-icon:hover { color: var(--white); }

/* ============================================
   PROMO BAR
   ============================================ */
.promo-bar {
    background: var(--gray-100);
    text-align: center;
    padding: 14px 22px;
    color: var(--near-black);
    font-size: 14px;
    border-bottom: 1px solid var(--gray-200);
}
.promo-bar a { color: var(--blue); margin-left: 4px; }
.promo-bar a:hover { text-decoration: underline; }

/* ============================================
   TILE BASE
   ============================================ */
main { background: var(--gray-100); }

.tile {
    position: relative;
    margin: var(--gutter) var(--gutter) 0;
    border-radius: var(--radius-tile);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 22px;
    min-height: 580px;
    isolation: isolate;
}
.tile:first-of-type { margin-top: 0; }
.tile.light { background: var(--white); color: var(--near-black); }
.tile.light-gray { background: var(--gray-100); color: var(--near-black); }
.tile.dark { background: var(--deep-black); color: var(--white); }

.tile-hero { min-height: 692px; padding: 110px 22px; }
.tile-medium { min-height: 620px; }
.tile-compact { min-height: 380px; padding: 72px 22px; }

.tile-content {
    position: relative;
    z-index: 3;
    max-width: 860px;
    width: 100%;
    text-align: center;
}
.tile-content.center { display: flex; flex-direction: column; align-items: center; }
.tile-content.top { padding-top: 0; margin-top: -80px; }

/* Typography */
.tile-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--gray-700);
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tile-eyebrow.light { color: rgba(255,255,255,0.75); }
.tile-eyebrow.small { font-size: 11px; }

.pulse-eyebrow .eb-dot {
    display: inline-block;
    width: 6px; height: 6px;
    background: #ff3b30;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.6);
    animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.tile-headline {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: inherit;
    margin-bottom: 12px;
}
.tile-headline.xl {
    font-size: clamp(48px, 7.5vw, 104px);
    font-weight: 700;
    letter-spacing: -0.028em;
}
.tile-headline.l { font-size: clamp(40px, 5.2vw, 64px); }
.tile-headline.m { font-size: clamp(28px, 3.5vw, 44px); letter-spacing: -0.015em; }
.tile-headline.s { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; margin-bottom: 14px; }
.tile-headline.light-text { color: var(--white); }
.text-muted-light { color: var(--gray-400); }
.text-muted-black { color: var(--gray-500); }

.tile-sub {
    font-size: clamp(18px, 1.5vw, 22px);
    font-weight: 500;
    margin-bottom: 22px;
    letter-spacing: -0.005em;
    max-width: 640px;
}
.tile-sub.dim { color: var(--gray-400); }
.tile.dark .tile-sub { color: var(--white); }
.tile-sub.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }

.tile-sub-small {
    font-size: 15px;
    line-height: 1.5;
    color: var(--gray-700);
    margin-bottom: 16px;
    max-width: 380px;
}
.tile-sub-small.dim { color: var(--gray-400); }

/* Links & CTAs */
.tile-links {
    display: flex; gap: 24px;
    align-items: center; justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}
.pill {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 22px;
    background: var(--blue);
    color: var(--white) !important;
    border-radius: var(--radius-pill);
    font-size: 17px;
    transition: all 0.2s var(--ease);
    line-height: 1.1em;
}
.pill:hover {
    background: var(--blue-hover);
    text-decoration: none;
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,113,227,0.35);
}
.link-arrow {
    color: var(--blue);
    font-size: 17px;
    letter-spacing: -0.01em;
    transition: all 0.2s var(--ease);
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow.blue { color: var(--blue-light); }
.link-arrow.muted { color: var(--gray-500); pointer-events: none; }

/* ============================================
   HERO — animated BG
   ============================================ */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.9), rgba(0,0,0,0) 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.9), rgba(0,0,0,0) 75%);
    animation: gridDrift 40s linear infinite;
}
@keyframes gridDrift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 60px 60px, 60px 60px; }
}
.hero-scan {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 900px 500px at 50% 100%, rgba(255,255,255,0.07), transparent 70%);
}
.hero-glow {
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,113,227,0.18) 0%, transparent 65%);
    filter: blur(30px);
    top: 20%; left: 10%;
    animation: glowFloat 18s ease-in-out infinite;
}
.hero-glow.glow-2 {
    top: auto; bottom: 10%; left: auto; right: 5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 65%);
    animation-delay: -6s;
    animation-duration: 22s;
}
@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -30px); }
}

/* Floating code snippets */
.code-float {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255,255,255,0.18);
    line-height: 1.6;
    letter-spacing: 0;
    white-space: pre;
    pointer-events: none;
    animation: floatUp 20s ease-in-out infinite;
}
.code-float pre { font-family: inherit; }
.cf-1 { top: 12%; left: 5%; animation-delay: 0s; }
.cf-2 { bottom: 20%; left: 3%; animation-delay: -8s; color: rgba(41,151,255,0.22); }
.cf-3 { top: 15%; right: 6%; animation-delay: -14s; }
@keyframes floatUp {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(-20px); opacity: 1; }
}

/* Floating geometric shapes */
.float-shape {
    position: absolute;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent);
    animation: shapeRotate 20s linear infinite;
}
.fs-1 { width: 80px; height: 80px; top: 15%; right: 14%; animation-delay: 0s; }
.fs-2 { width: 60px; height: 60px; bottom: 22%; right: 18%; animation-delay: -5s; border-radius: 50%; }
.fs-3 { width: 100px; height: 100px; bottom: 12%; left: 12%; animation-delay: -10s; transform: rotate(45deg); }
@keyframes shapeRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    background: var(--deep-black);
    color: var(--white);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin: 0 var(--gutter);
    padding: 28px 22px;
    position: relative;
    z-index: 5;
    margin-top: calc(-1 * var(--gutter));
}
.trust-inner {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 140px;
    transition: transform 0.3s var(--ease);
}
.trust-item:hover { transform: translateY(-2px); }
.trust-num {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.01em;
}
.trust-label {
    font-size: 12px;
    color: var(--gray-400);
}
.trust-sep {
    width: 1px; height: 38px;
    background: rgba(255,255,255,0.1);
}

/* ============================================
   PORTFOLIO ICONS (3er Set)
   ============================================ */
.portfolio-icons {
    position: relative;
    z-index: 2;
    margin-top: 48px;
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    justify-content: center;
}
.pi-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 28px;
    background: var(--gray-100);
    border-radius: 16px;
    color: var(--near-black);
    transition: all 0.3s var(--ease);
    cursor: default;
}
.pi-icon:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    background: var(--white);
}
.pi-icon svg { width: 40px; height: 40px; stroke: var(--near-black); }
.pi-icon span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ============================================
   CODE EDITOR MOCK
   ============================================ */
.tile-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gutter);
    margin: var(--gutter) var(--gutter) 0;
}
.tile.half {
    margin: 0;
    min-height: 580px;
    padding: 48px 40px;
}
.tile.half .tile-content {
    max-width: 100%;
    text-align: left;
    align-items: flex-start;
    margin-top: 0;
    padding-top: 8px;
}

.code-editor-mock {
    position: absolute;
    left: 40px; right: 40px;
    bottom: 32px;
    background: var(--near-black);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    z-index: 1;
    transform: perspective(1000px) rotateX(5deg);
    transform-origin: center bottom;
}
.ce-header {
    background: #2c2c2e;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ce-dots { display: flex; gap: 6px; }
.ce-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}
.ce-dots span:nth-child(1) { background: #ff5f57; }
.ce-dots span:nth-child(2) { background: #febc2e; }
.ce-dots span:nth-child(3) { background: #28c840; }
.ce-tab {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 6px;
}
.ce-body {
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}
.ce-line { display: flex; align-items: center; gap: 14px; }
.ln {
    color: rgba(255,255,255,0.25);
    min-width: 14px;
    text-align: right;
    user-select: none;
}
.tk.kw { color: #ff7ab2; }
.tk.fn { color: #6ac8ff; }
.tk.str { color: #a5d6ff; }
.tk.val { color: #c3e88d; }
.tk.bool { color: #ff7ab2; }
.typing .ce-cursor {
    display: inline-block;
    width: 7px; height: 14px;
    background: var(--white);
    margin-left: 3px;
    animation: blink 1.1s steps(2) infinite;
    vertical-align: middle;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* ============================================
   PHONE MOCK
   ============================================ */
.phone-mock {
    position: absolute;
    right: 40px; bottom: -60px;
    z-index: 1;
    transform: perspective(1200px) rotateY(-10deg) rotateX(4deg);
    animation: phoneFloat 8s ease-in-out infinite;
}
@keyframes phoneFloat {
    0%, 100% { transform: perspective(1200px) rotateY(-10deg) rotateX(4deg) translateY(0); }
    50% { transform: perspective(1200px) rotateY(-10deg) rotateX(4deg) translateY(-10px); }
}
.phone-frame {
    width: 220px;
    height: 420px;
    background: #1a1a1c;
    border-radius: 40px;
    border: 2px solid #2c2c2e;
    padding: 10px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    position: relative;
}
.phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px; height: 18px;
    background: #0a0a0b;
    border-radius: 12px;
    z-index: 2;
}
.phone-screen {
    height: 100%;
    background: linear-gradient(180deg, #0a0a0b 0%, #1a1a1c 100%);
    border-radius: 32px;
    padding: 36px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}
.ps-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 9px;
    color: rgba(255,255,255,0.7);
}
.ps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 4px 0;
}
.app-icon {
    aspect-ratio: 1;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.04);
    position: relative;
    animation: appIconPop 6s ease-in-out infinite;
}
.app-icon.featured {
    background: var(--white);
    animation-delay: 0s;
}
.ai-1 { animation-delay: 0s; }
.ai-2 { animation-delay: 0.2s; background: rgba(41,151,255,0.2); }
.ai-3 { animation-delay: 0.4s; }
.ai-4 { animation-delay: 0.6s; }
.ai-5 { animation-delay: 0.8s; background: rgba(255,255,255,0.12); }
.ai-6 { animation-delay: 1s; }
.ai-7 { animation-delay: 1.2s; }
.ai-8 { animation-delay: 1.4s; background: rgba(41,151,255,0.12); }
.ai-9 { animation-delay: 1.6s; }
@keyframes appIconPop {
    0%, 95%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.ps-dock {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}
.dock-icon {
    aspect-ratio: 1;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
}

/* ============================================
   DASHBOARD MOCK
   ============================================ */
.dashboard-mock {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 920px;
    margin: 40px auto 0;
    background: var(--white);
    border-radius: 14px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.08), 0 10px 30px rgba(0,0,0,0.05);
    transform: perspective(1200px) rotateX(3deg);
    transform-origin: center top;
}
.dash-bar {
    background: var(--gray-100);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--gray-200);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
}
.dash-dots span:nth-child(1) { background: #ff5f57; }
.dash-dots span:nth-child(2) { background: #febc2e; }
.dash-dots span:nth-child(3) { background: #28c840; }
.dash-nav { display: flex; gap: 18px; }
.dash-tab {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}
.dash-tab.active { color: var(--near-black); font-weight: 600; }

.dash-body {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.ds-card {
    background: var(--gray-100);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ds-label {
    font-size: 11px;
    color: var(--gray-500);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 500;
}
.ds-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--near-black);
    letter-spacing: -0.02em;
}
.ds-spark {
    margin-top: 6px;
    height: 26px;
}
.ds-spark svg { width: 100%; height: 100%; }
.ds-bars {
    margin-top: 6px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 26px;
}
.dbar {
    flex: 1;
    height: var(--h);
    background: var(--near-black);
    border-radius: 2px;
    animation: barGrow 1.4s var(--ease-out);
    animation-fill-mode: backwards;
}
.dbar:nth-child(1) { animation-delay: 0s; }
.dbar:nth-child(2) { animation-delay: 0.1s; }
.dbar:nth-child(3) { animation-delay: 0.2s; }
.dbar:nth-child(4) { animation-delay: 0.3s; }
.dbar:nth-child(5) { animation-delay: 0.4s; }
.dbar:nth-child(6) { animation-delay: 0.5s; }
.dbar:nth-child(7) { animation-delay: 0.6s; }
@keyframes barGrow {
    from { height: 0; }
    to { height: var(--h); }
}

.dash-chart {
    background: var(--gray-100);
    border-radius: 10px;
    padding: 14px;
    height: 120px;
}
.chart-svg { width: 100%; height: 100%; }
.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: chartDraw 2.5s var(--ease-out) forwards;
    animation-delay: 0.4s;
}
@keyframes chartDraw {
    to { stroke-dashoffset: 0; }
}
.chart-area {
    opacity: 0;
    animation: chartFade 1.5s var(--ease-out) forwards;
    animation-delay: 1.8s;
}
@keyframes chartFade {
    to { opacity: 1; }
}

/* ============================================
   GERMANY MAP
   ============================================ */
.germany-map {
    position: relative;
    z-index: 1;
    width: 320px;
    max-width: 90%;
    margin: 40px auto 0;
}
.germany-map svg {
    width: 100%;
    height: auto;
}
.map-node text {
    font-family: var(--font-sys);
    font-size: 10px;
    font-weight: 500;
    fill: rgba(255,255,255,0.7);
    letter-spacing: 0.02em;
}
.map-node.faded circle {
    fill: rgba(255,255,255,0.35);
}
.map-node.faded text { fill: rgba(255,255,255,0.4); }
.map-node.highlight circle:nth-child(1) {
    fill: rgba(255,255,255,0.6);
    animation: nodeGlow 2.5s ease-in-out infinite;
}
.map-node.highlight circle:nth-child(2) {
    fill: rgba(255,255,255,0.15);
    animation: nodeOuter 2.5s ease-in-out infinite;
}
.map-node.highlight circle:nth-child(3) { fill: #fff; }
.map-node.highlight text { fill: #fff; font-weight: 600; }
.map-node.highlight text.node-sub {
    font-size: 9px;
    letter-spacing: 0.1em;
    fill: var(--blue-light);
    font-weight: 500;
}
@keyframes nodeGlow {
    0%, 100% { r: 3; opacity: 0.6; }
    50% { r: 12; opacity: 0; }
}
@keyframes nodeOuter {
    0%, 100% { r: 5; }
    50% { r: 8; }
}

.map-lines line {
    stroke-dasharray: 3 4;
    animation: lineFlow 8s linear infinite;
}
@keyframes lineFlow {
    to { stroke-dashoffset: -50; }
}

.flag-de {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    width: 36px; height: 22px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    opacity: 0.7;
}
.flag-de .f-black { flex: 1; background: #0a0a0b; }
.flag-de .f-red { flex: 1; background: #cc1220; }
.flag-de .f-gold { flex: 1; background: #d9b45a; }

/* ============================================
   IMAGE TILES (big background photos)
   ============================================ */
.tile.image-tile { overflow: hidden; }
.image-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}
.image-bg.zoom-slow {
    animation: imageZoom 30s ease-in-out infinite alternate;
}
@keyframes imageZoom {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.08); }
}
.image-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.75) 100%);
    pointer-events: none;
}
.image-overlay.grad-top {
    background: linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.92) 100%);
}
.image-overlay.grad-center {
    background: radial-gradient(ellipse at center, rgba(10,10,11,0.2) 0%, rgba(10,10,11,0.88) 80%);
}
.image-tile .tile-content { z-index: 3; position: relative; }

.gradient-blue {
    background: linear-gradient(135deg, #2997ff 0%, #0071e3 50%, #005ec4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   WORLD MAP (International clients tile)
   ============================================ */
.world-map {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 880px;
    margin: 40px auto 0;
}
.world-map svg {
    width: 100%;
    height: auto;
    display: block;
}
.world-dots circle {
    transition: fill 0.3s var(--ease);
}
.world-lines line {
    animation: worldFlow 6s linear infinite;
}
@keyframes worldFlow {
    to { stroke-dashoffset: -60; }
}
.wm-hq .wm-pulse {
    fill: rgba(0, 113, 227, 0.35);
    animation: wmPulse 2.5s ease-in-out infinite;
}
@keyframes wmPulse {
    0%, 100% { r: 6; opacity: 0.8; }
    50% { r: 22; opacity: 0; }
}
.wm-label {
    font-family: var(--font-sys);
    font-size: 11px;
    font-weight: 600;
    fill: var(--near-black);
    letter-spacing: 0.02em;
}

/* ============================================
   LINEUP
   ============================================ */
.lineup-head {
    text-align: center;
    padding: 100px 22px 40px;
    max-width: 860px;
    margin: 0 auto;
}
.lineup-eyebrow { color: var(--gray-500); margin-bottom: 16px; display: inline-block; }
.lineup-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--near-black);
    margin-bottom: 14px;
}
.lineup-sub { font-size: 20px; color: var(--gray-500); font-weight: 400; }

.tile-row.lineup-three { grid-template-columns: repeat(3, 1fr); }
.lineup-card {
    min-height: 420px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.product-link { text-decoration: none; }
.product-link:hover { text-decoration: none; }
.lineup-card .tile-content { margin-top: 0; padding-top: 0; }
.lc-meta {
    color: var(--gray-500);
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tile.dark .lc-meta { color: var(--gray-400); }
.status-dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
}
.status-dot.live {
    background: #28c840;
    box-shadow: 0 0 8px rgba(40, 200, 64, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}
.status-dot.dev { background: #febc2e; }
.status-dot.planned { background: var(--gray-400); }

.lc-visual {
    margin-top: auto;
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SILCROW lineup visual */
.silcrow-lv svg { width: 160px; height: 160px; }
.spin-slow { animation: spin-slow 60s linear infinite; transform-origin: center; }
@keyframes spin-slow {
    from { transform: translate(120px, 120px) rotate(0deg); }
    to { transform: translate(120px, 120px) rotate(360deg); }
}

/* Coming boxes */
.coming-lv {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 220px;
    margin: 0 auto;
}
.coming-box {
    aspect-ratio: 1;
    border-radius: 10px;
    background: var(--gray-200);
    opacity: 0.7;
    animation: boxBreath 3s ease-in-out infinite;
}
.box-a { animation-delay: 0s; }
.box-b { animation-delay: 0.3s; }
.box-c { animation-delay: 0.6s; background: var(--gray-300); opacity: 0.9; }
@keyframes boxBreath {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(0.95); opacity: 1; }
}

/* Roadmap LV */
.roadmap-lv {
    position: relative;
    height: 80px;
    max-width: 260px;
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rmlv-line {
    position: absolute;
    top: 50%;
    left: 10%; right: 10%;
    height: 2px;
    background: var(--gray-300);
    transform: translateY(-50%);
}
.rmlv-node {
    position: relative;
    z-index: 2;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-300);
}
.rmlv-node.current {
    background: var(--near-black);
    border-color: var(--near-black);
    box-shadow: 0 0 0 6px rgba(0,0,0,0.08);
    animation: pulse-dot 2s ease-in-out infinite;
}

/* tilt card */
.tilt-card {
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tilt-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

/* ============================================
   MAP VISUAL (Heilbronn)
   ============================================ */
.map-visual {
    position: relative;
    z-index: 1;
    width: 280px;
    height: 280px;
    margin: 40px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-dot {
    width: 16px; height: 16px;
    background: var(--near-black);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(0,0,0,0.08);
    z-index: 2;
}
.map-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.2);
    animation: ringPulse 3s ease-in-out infinite;
}
.map-ring.r1 { width: 70px; height: 70px; animation-delay: 0s; }
.map-ring.r2 { width: 150px; height: 150px; animation-delay: 0.5s; border-color: rgba(0,0,0,0.15); }
.map-ring.r3 { width: 230px; height: 230px; animation-delay: 1s; border-color: rgba(0,0,0,0.08); }
@keyframes ringPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.05); }
}
.map-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================
   KONTAKT BG
   ============================================ */
.kontakt-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.kb-ring {
    position: absolute;
    left: 50%; top: 50%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    transform: translate(-50%, -50%);
    animation: ringExpand 4s ease-out infinite;
}
.kbr-1 { width: 300px; height: 300px; animation-delay: 0s; }
.kbr-2 { width: 500px; height: 500px; animation-delay: 1s; border-color: rgba(255,255,255,0.05); }
.kbr-3 { width: 700px; height: 700px; animation-delay: 2s; border-color: rgba(255,255,255,0.03); }
@keyframes ringExpand {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

/* ============================================
   REVEAL ANIMATIONS (subtle, fail-safe)
   ============================================ */
.reveal {
    opacity: 1;
    transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
}
.js-enabled .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(40px);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--gray-100);
    color: var(--gray-500);
    padding: 20px 0 20px;
    font-size: 12px;
    line-height: 1.4;
}
.footer-inner { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.footer-note { padding: 18px 0; color: var(--gray-500); font-size: 12px; }
.footer-note a { color: var(--gray-700); text-decoration: underline; }
.footer-note a:hover { color: var(--blue); }
.footer-divider { height: 1px; background: var(--gray-300); }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    padding: 24px 0;
}
.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--near-black);
    margin-bottom: 10px;
}
.footer-col ul li { padding: 3px 0; }
.footer-col a { color: var(--gray-500); font-size: 12px; }
.footer-col a:hover { color: var(--near-black); text-decoration: underline; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0 0;
    color: var(--gray-500);
    font-size: 12px;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom a { color: var(--gray-500); }
.footer-bottom a:hover { color: var(--near-black); text-decoration: underline; }
.footer-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.footer-meta span { color: var(--gray-300); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1000px) {
    .tile-row.lineup-three { grid-template-columns: 1fr 1fr; }
    .lineup-three .lineup-card:last-child { grid-column: 1 / -1; }
    .trust-inner { justify-content: flex-start; gap: 24px; }
    .trust-sep { display: none; }
}
@media (max-width: 834px) {
    .nav-menu { display: none; }
    .tile-row { grid-template-columns: 1fr; }
    .tile.half { min-height: 480px; padding: 40px 28px; }
    .tile-hero { min-height: 620px; padding: 80px 22px; }
    .tile-content.top { margin-top: -40px; }
    .code-float { font-size: 10px; }
    .cf-3 { display: none; }
    .phone-mock { right: 0; bottom: -40px; transform: scale(0.85); }
    .code-editor-mock { left: 20px; right: 20px; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .portfolio-icons { gap: 16px; }
    .pi-icon { padding: 16px 20px; }
    .tile-row.lineup-three { grid-template-columns: 1fr; }
    .lineup-three .lineup-card:last-child { grid-column: auto; }
}
@media (max-width: 500px) {
    :root { --gutter: 8px; }
    .tile { padding: 50px 18px; min-height: 520px; }
    .tile-compact { min-height: 280px; padding: 40px 22px; }
    .tile-links { gap: 18px; flex-direction: column; }
    .pill { width: 100%; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .trust-item { min-width: 100%; }
    .code-float { display: none; }
    .float-shape { opacity: 0.5; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
