/* AFuP Karten Website - Main Styles */

:root {
    /* Colors - matching app theme */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #0f172a;
    --accent-color: #06b6d4;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --success-color: #22c55e;
    --warning-color: #f59e0b;

    /* App icon colors */
    --icon-bg: #D9EEF5;
    --icon-antenna: #6B8FA3;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    /* Container */
    --container-max: 1200px;
    --container-narrow: 800px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-alt {
    background-color: var(--background-light);
}

/* Header / Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: box-shadow var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.nav-brand img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.nav-lang {
    display: flex;
    gap: var(--spacing-sm);
}

.nav-lang a {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.nav-lang a.active {
    background-color: var(--primary-color);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
}

/* Hero Section with Device Mockups */
.hero {
    padding-top: calc(64px + var(--spacing-3xl));
    padding-bottom: var(--spacing-3xl);
    background: linear-gradient(135deg, var(--icon-bg) 0%, #e0f2fe 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-3xl);
}

.hero-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--primary-color);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    margin-bottom: var(--spacing-lg);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

/* Device Mockups */
.device-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: var(--spacing-xl);
    max-width: 1100px;
    margin: 0 auto;
    perspective: 1000px;
}

.device {
    position: relative;
    transition: transform var(--transition-slow);
}

.device:hover {
    transform: translateY(-10px);
}

/* MacBook Mockup */
.device-macbook {
    width: 600px;
    z-index: 1;
}

.macbook-frame {
    background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
    border-radius: 12px 12px 0 0;
    padding: 12px 12px 0;
    box-shadow: var(--shadow-xl);
}

.macbook-screen {
    background: #000;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.macbook-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.macbook-base {
    height: 16px;
    background: linear-gradient(180deg, #9ca3af 0%, #6b7280 100%);
    border-radius: 0 0 4px 4px;
    position: relative;
}

.macbook-base::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: #4b5563;
    border-radius: 4px;
}

.macbook-bottom {
    height: 6px;
    background: linear-gradient(180deg, #d1d5db 0%, #9ca3af 100%);
    border-radius: 0 0 8px 8px;
    margin: 0 -20px;
}

/* iPad Mockup */
.device-ipad {
    width: 280px;
    z-index: 2;
}

.ipad-frame {
    background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--shadow-xl);
}

.ipad-screen {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.ipad-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* iPhone Mockup */
.device-iphone {
    width: 180px;
    z-index: 3;
}

.iphone-frame {
    background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
    border-radius: 32px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
}

.iphone-notch {
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 12px;
    margin: 0 auto 8px;
}

.iphone-screen {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 9/19.5;
}

.iphone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-store {
    background-color: var(--secondary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
}

.btn-store:hover {
    background-color: #1e293b;
    color: white;
}

.btn-store img {
    height: 20px;
    width: auto;
}

/* Feature Tiles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.feature-tile {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.feature-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.feature-tile h3 {
    margin-bottom: var(--spacing-sm);
}

.feature-tile p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Statistics Section */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    text-align: center;
}

.stat-item {
    padding: var(--spacing-xl);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Platform Section */
.platforms {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
}

.platform-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.platform-badge svg {
    width: 24px;
    height: 24px;
}

.platform-badge span {
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background-color: var(--background-light);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-brand img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

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

.footer h4 {
    color: white;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-lg);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-legal a {
    color: var(--text-muted);
    margin-left: var(--spacing-lg);
}

.footer-legal a:hover {
    color: white;
}

/* Attribution */
.attribution {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.2);
    margin-top: var(--spacing-xl);
}

/* Privacy Policy Page */
.legal-content {
    padding-top: calc(64px + var(--spacing-2xl));
    padding-bottom: var(--spacing-3xl);
}

.legal-content h1 {
    margin-bottom: var(--spacing-2xl);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-md);
}

.legal-content h3 {
    font-size: 1.25rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.legal-content p, .legal-content ul, .legal-content ol {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.legal-content ul, .legal-content ol {
    padding-left: var(--spacing-xl);
}

.legal-content li {
    margin-bottom: var(--spacing-xs);
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .device-macbook {
        width: 500px;
    }

    .device-ipad {
        width: 220px;
    }

    .device-iphone {
        width: 150px;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-3xl: 3rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .device-showcase {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xl);
    }

    .device-macbook {
        width: 100%;
        max-width: 400px;
    }

    .device-ipad {
        display: none;
    }

    .device-iphone {
        width: 200px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-legal a {
        margin: 0 var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* Animation utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
