/* ═══════════════════════════════════════════════════════════
   Aide Pet – Landingpage mit Scroll-Animationen
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg: #0f0f23;
    --panel: #1a1a2e;
    --text: #e0d6ff;
    --accent: #a78bfa;
    --accent-strong: #7c3aed;
}

* { box-sizing: border-box; }

/* ─── Text-Markierung (Drüberziehen / Kopieren) lila ────────── */
::selection {
    background: var(--accent-strong);
    color: #fff;
    text-shadow: 0 0 6px rgba(167, 139, 250, 0.8);
}
::-moz-selection {
    background: var(--accent-strong);
    color: #fff;
    text-shadow: 0 0 6px rgba(167, 139, 250, 0.8);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'VT323', monospace;
    line-height: 1.6;
    overflow-x: hidden;
    /* Eigener Pixel-Pfeil-Cursor (lila, scharfe Kanten). Hotspot an der Spitze (3,2). */
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' shape-rendering='crispEdges'><path d='M3 2L3 26L10 19L15 29L19 27L14 18L23 18Z' fill='%23a78bfa' stroke='%233b0a7a' stroke-width='2' stroke-linejoin='miter'/></svg>") 3 2, auto;
}

/* Hellere Variante für klickbare Elemente */
a, button, .cta-button, [data-tilt], .scroll-hint, nav a, label, summary {
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' shape-rendering='crispEdges'><path d='M3 2L3 26L10 19L15 29L19 27L14 18L23 18Z' fill='%23d6c9ff' stroke='%237c3aed' stroke-width='2' stroke-linejoin='miter'/><rect x='24' y='6' width='4' height='4' fill='%23a78bfa'/></svg>") 3 2, pointer;
}

/* ─── Smooth-/Momentum-Scroll-Bühne ──────────────────────────
   #smooth-content wird per JS fixiert und per Transform sanft
   bewegt (Lerp). Dadurch entsteht das buttrige, träge Scrollen
   wie auf activetheory.net inkl. Velocity-Skew. */
.smooth-active #smooth-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
    backface-visibility: hidden;
}
/* Elemente, die Parallax/Skew bekommen */
[data-speed] { will-change: transform; }

/* ─── Eigenes Rechtsklick-Kontextmenü ──────────────────────── */
.context-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 300;
    min-width: 190px;
    background: rgba(15, 15, 35, 0.96);
    border: 2px solid var(--accent-strong);
    box-shadow: 6px 6px 0 rgba(124, 58, 237, 0.4), 0 0 22px rgba(167, 139, 250, 0.3);
    backdrop-filter: blur(6px);
    padding: 6px;
    display: none;
    flex-direction: column;
}
.context-menu.open {
    display: flex;
    animation: cmIn 0.14s ease-out;
}
@keyframes cmIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.96); }
    to   { opacity: 1; transform: none; }
}
.cm-title {
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--accent);
    opacity: 0.7;
    padding: 4px 14px 8px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.25);
    margin-bottom: 4px;
}
.context-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.35rem;
    letter-spacing: 1px;
    padding: 8px 14px;
    transition: background 0.12s ease, color 0.12s ease, padding-left 0.12s ease;
}
.context-menu a:hover {
    background: var(--accent-strong);
    color: #fff;
    padding-left: 20px;
}

/* ─── Maus-Pixel-Trail ───────────────────────────────────────
   Winzige lila Pixel, die der Maus folgen, aufleuchten und
   verblassen. Passt zum Retro-/Pixel-Look. */
.cursor-pixel {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;          /* auf Mausspitze zentrieren */
    background: var(--accent);
    box-shadow: 0 0 6px rgba(167, 139, 250, 0.9);
    image-rendering: pixelated;
    pointer-events: none;
    z-index: 200;
    will-change: transform, opacity;
    animation: pixelFade 0.6s ease-out forwards;
}
@keyframes pixelFade {
    0%   { opacity: 0.9; transform: translate(0, 0) scale(1); }
    100% { opacity: 0;   transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.2); }
}

/* ─── Animierter Hintergrund ─────────────────────────────── */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Glühender Orb, der dem Scrollen folgt */
.glow-orb {
    position: fixed;
    top: 20%;
    left: 50%;
    width: 600px;
    height: 600px;
    margin-left: -300px;
    margin-top: -300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, rgba(124, 58, 237, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(20px);
    will-change: transform;
}

/* ─── Scroll-Fortschrittsbalken ──────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 100;
}
.scroll-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-strong), var(--accent), var(--accent-strong));
    box-shadow: 0 0 10px var(--accent);
}

/* ─── Header ─────────────────────────────────────────────── */
header {
    padding: 12px 50px;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 2px solid transparent;
    transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
header.scrolled {
    padding: 6px 50px;
    background: rgba(15, 15, 35, 0.92);
    border-bottom-color: rgba(167, 139, 250, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 70px;
    width: auto;
    image-rendering: pixelated;
    transition: height 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.4));
}
header.scrolled .logo-img { height: 48px; }
.logo-container:hover .logo-img { transform: rotate(-6deg) scale(1.05); }

.logo-text {
    font-size: 2.4rem;
    color: var(--accent);
    letter-spacing: 3px;
    text-shadow: 0 0 12px rgba(167, 139, 250, 0.5);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.3rem;
    position: relative;
    transition: color 0.2s ease;
}
nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}
nav a:hover { color: var(--accent); }
nav a:hover::after { width: 100%; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.hero-inner { will-change: transform; position: relative; z-index: 2; }

/* ─── Riesiger, mitscrollender Hintergrundtext ───────────────
   Driftet gegenläufig zum Scroll → starker Tiefeneindruck. */
.mega-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(8rem, 34vw, 26rem);
    line-height: 0.8;
    letter-spacing: 0.04em;
    color: transparent;
    -webkit-text-stroke: 2px rgba(167, 139, 250, 0.14);
    text-stroke: 2px rgba(167, 139, 250, 0.14);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    user-select: none;
}
.features, .download { position: relative; }
.features .mega-text, .download .mega-text {
    -webkit-text-stroke-color: rgba(124, 58, 237, 0.10);
    text-stroke-color: rgba(124, 58, 237, 0.10);
}

.hero h1 {
    font-size: clamp(3.5rem, 14vw, 9rem);
    margin: 0;
    color: var(--accent);
    letter-spacing: 4px;
    line-height: 1;
    text-shadow:
        0 0 20px rgba(167, 139, 250, 0.6),
        0 0 40px rgba(124, 58, 237, 0.4);
    animation: float 6s ease-in-out infinite;
}

.hero p {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    max-width: 600px;
    margin: 24px auto 0;
    opacity: 0.9;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* Scroll-Hinweis unten im Hero */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
}
.scroll-hint .chevron {
    animation: bob 1.4s ease-in-out infinite;
    font-size: 1.2rem;
}
@keyframes bob {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ─── CTA-Button ─────────────────────────────────────────── */
.cta-button {
    display: inline-block;
    padding: 12px 36px;
    background: var(--accent-strong);
    color: #fff;
    text-decoration: none;
    border: 2px solid var(--text);
    font-size: 1.6rem;
    margin-top: 28px;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.25s ease;
    box-shadow: 4px 4px 0 rgba(124, 58, 237, 0.4);
}
.cta-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 rgba(124, 58, 237, 0.55), 0 0 18px rgba(167, 139, 250, 0.5);
}
.cta-button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(124,58,237,0.4); }
/* Glanz-Sweep beim Hover */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: left 0.5s ease;
}
.cta-button:hover::before { left: 140%; }

/* ─── Features ───────────────────────────────────────────── */
.features {
    padding: 120px 50px;
    max-width: 1100px;
    margin: 0 auto;
}
.features h2,
.download h2 {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    text-align: center;
    margin: 0 0 50px;
}
.accent { color: var(--accent); text-shadow: 0 0 14px rgba(167,139,250,0.5); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(160deg, rgba(26,26,46,0.9), rgba(20,20,40,0.9));
    padding: 36px 24px;
    border: 2px solid var(--accent-strong);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    transform-style: preserve-3d;
    will-change: transform;
}
.feature-card:hover {
    border-color: var(--accent);
    box-shadow: 0 14px 40px rgba(124, 58, 237, 0.35), 0 0 0 1px rgba(167,139,250,0.3) inset;
}
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    color: var(--accent);
    border: 2px solid var(--accent-strong);
    border-radius: 4px;
    background: rgba(124, 58, 237, 0.12);
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.4));
}
.feature-icon svg { width: 34px; height: 34px; }
.feature-card h3 {
    color: var(--accent);
    font-size: 1.9rem;
    margin: 0 0 8px;
}
.feature-card p {
    font-size: 1.25rem;
    opacity: 0.85;
    margin: 0;
}

/* ─── Download-Sektion ───────────────────────────────────── */
.download {
    padding: 120px 50px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
}
.download-visual {
    flex: 1 1 280px;
    display: flex;
    justify-content: center;
    will-change: transform;
}
.download-img {
    width: 240px;
    max-width: 80%;
    image-rendering: pixelated;
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(124, 58, 237, 0.5));
}
.download-text {
    flex: 1 1 280px;
    text-align: center;
}
.download-text p {
    font-size: 1.4rem;
    opacity: 0.9;
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 2px solid rgba(167, 139, 250, 0.2);
    font-size: 1.1rem;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   Scroll-Reveal: Start-Zustand + sichtbarer Zustand
   ═══════════════════════════════════════════════════════════ */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
/* Standard / "up": von unten + leicht nach hinten gekippt */
[data-reveal],
[data-reveal="up"]   { transform: perspective(1000px) translateY(90px) rotateX(-18deg); }
[data-reveal="left"]  { transform: perspective(1000px) translateX(-140px) rotateY(22deg); }
[data-reveal="right"] { transform: perspective(1000px) translateX(140px) rotateY(-22deg); }
[data-reveal="zoom"]  { transform: scale(0.55) translateY(40px); filter: blur(6px); }
[data-reveal].is-visible {
    opacity: 1;
    transform: perspective(1000px) translate(0, 0) rotateX(0) rotateY(0) scale(1);
    filter: none;
}

/* ─── Barrierefreiheit: Animationen abschaltbar ──────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ─── Mobile ─────────────────────────────────────────────── */
/* ─── Hero: Demo-Box + doppelte CTAs ─────────────────────── */
.demo-box {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin: 26px auto 6px;
    padding: 14px 22px;
    background: rgba(15, 15, 35, 0.85);
    border: 2px solid var(--accent-strong);
    box-shadow: 5px 5px 0 rgba(124, 58, 237, 0.3);
    font-size: 1.45rem;
    color: var(--text);
    min-width: min(520px, 86vw);
    text-align: left;
}
.demo-prompt { color: var(--accent); }
.demo-cursor { color: var(--accent); animation: cursorBlink 1s steps(1) infinite; }
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 26px;
}
.cta-button.secondary {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent-strong);
}
.cta-button.secondary:hover { background: rgba(124, 58, 237, 0.18); color: var(--text); }

/* ─── So funktioniert's ──────────────────────────────────── */
.how {
    padding: 120px 40px;
    text-align: center;
    position: relative;
}
.how h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 60px; }
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}
.step {
    background: linear-gradient(160deg, rgba(26,26,46,0.9), rgba(20,20,40,0.9));
    border: 2px solid var(--accent-strong);
    padding: 34px 24px 28px;
    position: relative;
    text-align: center;
}
.step-num {
    display: inline-grid;
    place-items: center;
    width: 52px; height: 52px;
    margin-bottom: 14px;
    font-size: 1.9rem;
    color: #0f0f23;
    background: var(--accent);
    border: 2px solid var(--text);
    box-shadow: 4px 4px 0 rgba(124, 58, 237, 0.5);
}
.step h3 { color: var(--accent); font-size: 1.6rem; margin: 0 0 10px; }
.step p { font-size: 1.15rem; line-height: 1.5; margin: 0; }

/* ─── Preise ─────────────────────────────────────────────── */
.pricing {
    padding: 120px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pricing h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 10px; position: relative; z-index: 1; }
.pricing-sub { font-size: 1.3rem; opacity: 0.85; margin: 0 0 54px; position: relative; z-index: 1; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 26px;
    max-width: 1150px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    align-items: stretch;
}
.price-card {
    background: linear-gradient(160deg, rgba(26,26,46,0.92), rgba(20,20,40,0.92));
    border: 2px solid var(--accent-strong);
    padding: 32px 24px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.price-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 8px 8px 0 rgba(124, 58, 237, 0.35);
}
.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 26px rgba(167, 139, 250, 0.28), 8px 8px 0 rgba(124, 58, 237, 0.35);
    transform: scale(1.03);
}
.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #0f0f23;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 3px 14px;
    border: 2px solid var(--text);
}
.price-card h3 { color: var(--accent); font-size: 1.7rem; margin: 0 0 8px; }
.price { font-size: 2.6rem; color: var(--text); margin-bottom: 18px; }
.price span { font-size: 1.1rem; opacity: 0.7; }
.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
    text-align: left;
}
.price-card ul li {
    font-size: 1.1rem;
    line-height: 1.45;
    padding: 6px 0 6px 24px;
    position: relative;
}
.price-card ul li::before {
    content: '♦';
    position: absolute;
    left: 4px;
    color: var(--accent);
    font-size: 0.8rem;
}
.price-card .cta-button { font-size: 1.15rem; padding: 12px 18px; }
.pricing-note { margin-top: 34px; font-size: 1.05rem; opacity: 0.65; position: relative; z-index: 1; }

@media (max-width: 600px) {
    header { padding: 10px 20px; }
    nav ul { gap: 14px; }
    .features, .download { padding: 80px 24px; }
    .how, .pricing { padding: 80px 20px; }
    .demo-box { font-size: 1.1rem; min-width: 0; width: 100%; box-sizing: border-box; }
    .price-card.featured { transform: none; }
}
