/* ============================================
   VigiGym.de - Premium Dark Mode Styles
   Inspired by Apple, Vaonis, and modern SaaS
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Colors - Dark Theme */
    --color-bg-primary: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-bg-elevated: #1a1a1a;
    --color-bg-card: #141414;
    
    /* Text Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-tertiary: rgba(255, 255, 255, 0.5);
    --color-text-muted: rgba(255, 255, 255, 0.35);
    
    /* Accent Colors - From VigiGym App */
    --color-accent: #357AB6;
    --color-accent-dark: #173C5B;
    --color-accent-hover: #4A8BC7;
    --color-accent-glow: rgba(53, 122, 182, 0.4);
    
    /* Gradients */
    --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(53, 122, 182, 0.15), transparent);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    
    /* Typography - System Font Stack (DSGVO compliant) */
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                   "Helvetica Neue", Arial, "Noto Sans", sans-serif,
                   "Apple Color Emoji", "Segoe UI Emoji";
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;
    
    /* Timing */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 72px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-system);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

strong {
    font-weight: 600;
    color: var(--color-text-primary);
}

/* SVG Icons */
.svg-sprite {
    display: none;
}

.icon {
    width: 24px;
    height: 24px;
    stroke: var(--color-accent);
    flex-shrink: 0;
}

.icon-large {
    width: 40px;
    height: 40px;
}

.icon-check {
    width: 18px;
    height: 18px;
    stroke: var(--color-accent);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    transition: opacity var(--duration-fast) ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo img {
    border-radius: 10px;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-links a {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    transition: color var(--duration-fast) ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--duration-normal) var(--ease-out-expo);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-lg) var(--space-xl);
    position: relative;
    overflow: hidden;
    background: var(--color-bg-primary);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 60%;
    background: var(--gradient-hero);
    pointer-events: none;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 560px;
}

.hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.hero-title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}

.hero-title-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 480px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
}

.app-store-badge {
    display: inline-block;
    transition: transform var(--duration-fast) ease, opacity var(--duration-fast) ease;
}

.app-store-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.app-store-badge img {
    height: 54px;
    width: auto;
}

.app-store-badge-large img {
    height: 60px;
}

.hero-cta-note {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.4; }
}

.hero-iphone {
    position: relative;
    width: 280px;
    opacity: 0;
    transform: translateY(60px);
}

.hero-device-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 19.5;
    border-radius: 40px;
    overflow: hidden;
    background: var(--color-bg-card);
    box-shadow: 
        0 0 0 12px #1a1a1a,
        0 0 0 14px #333,
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 80px var(--color-accent-glow);
}

.hero-device-screen video,
.hero-device-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-watch {
    position: absolute;
    right: -40px;
    bottom: 20px;
    width: 140px;
    opacity: 0;
    transform: translate(20px, 20px);
}

.hero-watch img {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0;
}

.hero-scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-text-muted), transparent);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}

/* ============================================
   Sections - General
   ============================================ */
.section {
    padding: var(--space-3xl) var(--space-lg);
    position: relative;
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-container-narrow {
    max-width: 800px;
}

.section-header {
    margin-bottom: var(--space-2xl);
}

.section-header-center {
    text-align: center;
}

.section-number {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.section-eyebrow {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

/* Floating image effect */
.float-image {
    border-radius: 16px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    transition: transform 0.6s var(--ease-out-expo);
}

.float-image:hover {
    transform: translateY(-8px);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-text {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

/* ============================================
   Section: Purpose
   ============================================ */
.section-purpose {
    background: var(--color-bg-secondary);
}

.purpose-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.purpose-lead {
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
}

.purpose-body {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.purpose-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.purpose-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.purpose-icon {
    font-size: 1.25rem;
}

.purpose-image {
    border-radius: 16px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Section: Sets / Features Cards
   ============================================ */
.section-sets {
    background: var(--color-bg-primary);
}

.sets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.set-card {
    background: var(--color-bg-card);
    border-radius: 20px;
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform var(--duration-normal) var(--ease-out-expo),
                box-shadow var(--duration-normal) ease;
    opacity: 0;
    transform: translateY(40px);
}

.set-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.set-card-image {
    margin-bottom: var(--space-md);
    border-radius: 12px;
    overflow: hidden;
}

.set-card-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.set-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.set-card-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

/* ============================================
   Section: Split Layout (Calculator, Stats)
   ============================================ */
.section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.section-split-reverse {
    direction: rtl;
}

.section-split-reverse > * {
    direction: ltr;
}

.section-calculator {
    background: var(--color-bg-secondary);
}

.video-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.video-container video {
    width: 100%;
    display: block;
}

.feature-checks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.feature-checks li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.feature-checks li::before {
    content: '✓';
    color: var(--color-accent);
    font-weight: 600;
}

/* ============================================
   Section: Apple Watch
   ============================================ */
.section-watch {
    background: var(--color-bg-primary);
}

.watch-showcase {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-2xl);
}

.watch-image {
    max-width: 600px;
    border-radius: 16px;
}

.watch-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

.watch-feature {
    padding: var(--space-lg);
}

.watch-feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.watch-feature h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.watch-feature p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

/* ============================================
   Section: Stats
   ============================================ */
.section-stats {
    background: var(--color-bg-secondary);
}

.stats-image {
    border-radius: 16px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Section: Feature Grid
   ============================================ */
.section-grid {
    background: var(--color-bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.feature-item {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: transform var(--duration-normal) var(--ease-out-expo),
                border-color var(--duration-fast) ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}

/* ============================================
   Section: FAQ
   ============================================ */
.section-faq {
    background: var(--color-bg-secondary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    background: var(--color-bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.faq-question {
    padding: var(--space-lg);
    cursor: pointer;
    font-size: 1.0625rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: background var(--duration-fast) ease;
}

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

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text-tertiary);
    transition: transform var(--duration-fast) ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-item[open] .faq-question {
    background: rgba(255, 255, 255, 0.02);
}

.faq-answer {
    padding: 0 var(--space-lg) var(--space-lg);
}

.faq-answer p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ============================================
   Section: About
   ============================================ */
.section-about {
    background: var(--color-bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.about-lead {
    font-size: 1.375rem;
    line-height: 1.5;
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
}

.about-body {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.about-signature {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-accent);
    margin-top: var(--space-lg);
}

/* ============================================
   Section: CTA
   ============================================ */
.section-cta {
    background: var(--color-bg-secondary);
    text-align: center;
}

.cta-content {
    padding: var(--space-2xl) 0;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.cta-text {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-bg-primary);
    padding: var(--space-2xl) var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-brand-text {
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-brand img {
    border-radius: 10px;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    transition: color var(--duration-fast) ease;
}

.footer-links a:hover {
    color: var(--color-text-primary);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    opacity: 0.6;
    transition: opacity var(--duration-fast) ease;
}

.footer-social a:hover {
    opacity: 1;
}

.footer-social img {
    filter: invert(1);
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }
    
    .hero-text {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-visual {
        min-height: 400px;
    }
    
    .hero-iphone {
        width: 240px;
    }
    
    .hero-watch {
        right: 10%;
        width: 120px;
    }
    
    .purpose-content,
    .section-split,
    .section-split-reverse {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .section-split-reverse {
        direction: ltr;
    }
    
    .sets-grid {
        grid-template-columns: 1fr;
    }
    
    .watch-features {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image {
        display: flex;
        justify-content: center;
    }
    
    .about-image img {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
        --space-3xl: 5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .section {
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-iphone {
        width: 200px;
    }
    
    .hero-watch {
        width: 100px;
        right: 5%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-visual {
        min-height: 320px;
    }
    
    .hero-iphone {
        width: 180px;
    }
    
    .hero-device-screen {
        border-radius: 30px;
        box-shadow: 
            0 0 0 8px #1a1a1a,
            0 0 0 10px #333,
            0 30px 60px rgba(0, 0, 0, 0.5);
    }
    
    .hero-watch {
        display: none;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .nav,
    .hero-scroll-indicator,
    .hero-glow,
    .footer-social {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
}
