/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Self-hosted fonts for GDPR compliance */
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #22c55e;
    --color-primary-light: #4ade80;
    --color-primary-dark: #16a34a;
    --color-secondary: #14b8a6;
    --color-secondary-dark: #0d9488;
    --color-accent: #10b981;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F0FDF4;
    --color-text: #0f2417;
    --color-text-light: #4b7563;
    --color-border: #D1FAE5;
    --color-success: #22c55e;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 2px 8px rgba(34, 197, 94, 0.08);
    --shadow-md: 0 4px 16px rgba(34, 197, 94, 0.12);
    --shadow-lg: 0 8px 32px rgba(34, 197, 94, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary-dark);
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-primary-dark);
}

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

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-secondary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-text {
    background: none;
    color: var(--color-primary-dark);
    padding: 12px 0;
}

.btn-text:hover {
    color: var(--color-secondary-dark);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.apple-icon,
.github-icon {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.07) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-text);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

/* Hero Visual - Animated Graphic */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-width: 0;
}

.hero-image {
    display: block;
    max-width: 100%;
    width: 560px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.hero-graphic {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graphic-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    animation: rotate 12s linear infinite;
}

.ring-1 {
    width: 280px;
    height: 280px;
    border-color: rgba(34, 197, 94, 0.25);
    animation-duration: 16s;
}

.ring-2 {
    width: 210px;
    height: 210px;
    border-color: rgba(20, 184, 166, 0.3);
    animation-duration: 12s;
    animation-direction: reverse;
}

.ring-3 {
    width: 140px;
    height: 140px;
    border-color: rgba(34, 197, 94, 0.4);
    animation-duration: 8s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.graphic-center {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.35);
    animation: pulse-glow 3s ease-in-out infinite;
    z-index: 1;
}

.graphic-emoji {
    font-size: 40px;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 40px rgba(34, 197, 94, 0.35); transform: scale(1); }
    50% { box-shadow: 0 0 60px rgba(34, 197, 94, 0.55); transform: scale(1.05); }
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 14px;
    font-weight: 600;
    animation: bounce 3s ease-in-out infinite;
}

.badge-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.badge-2 {
    top: 50%;
    right: -10%;
    animation-delay: 1s;
}

.badge-3 {
    bottom: 15%;
    left: -5%;
    animation-delay: 2s;
}

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

.badge-icon {
    font-size: 20px;
}

/* Features Section */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 20px;
    color: var(--color-text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
    transition: var(--transition);
    position: relative;
}

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

.feature-card.featured {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, white 100%);
    border-color: var(--color-primary);
}

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

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.feature-description {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.screenshots-gallery {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0 40px;
    -webkit-overflow-scrolling: touch;
}

.screenshots-gallery::-webkit-scrollbar {
    height: 8px;
}

.screenshots-gallery::-webkit-scrollbar-track {
    background: var(--color-border);
    border-radius: 4px;
}

.screenshots-gallery::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

.screenshot-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    text-align: center;
}

.screenshot-item img {
    width: 260px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.screenshot-item img:hover {
    transform: scale(1.03);
}

.screenshot-caption {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-light);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.faq-item.open {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    gap: 16px;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--color-primary-dark);
}

.faq-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 28px 24px;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer p {
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 16px;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

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

.cta .btn-primary:hover {
    background: var(--color-bg-alt);
    transform: translateY(-4px);
}

.cta-note {
    font-size: 14px;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--color-text);
    color: white;
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-link:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 24px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-legal .footer-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 0;
}

.footer-legal .footer-link:hover {
    color: white;
    padding-left: 0;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-badge {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .screenshot-item img {
        width: 200px;
    }
    
    .hero-graphic {
        width: 220px;
        height: 220px;
    }
    
    .ring-1 { width: 220px; height: 220px; }
    .ring-2 { width: 165px; height: 165px; }
    .ring-3 { width: 110px; height: 110px; }
    
    .graphic-center {
        width: 72px;
        height: 72px;
    }
    
    .graphic-emoji {
        font-size: 32px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===================================
   COOKIE CONSENT BANNER (GDPR/TTDSG)
   =================================== */

.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.cookie-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
}

.cookie-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    line-height: 1.3;
}

.cookie-close {
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
    flex-shrink: 0;
}

.cookie-close:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.cookie-description {
    margin-bottom: 24px;
}

.cookie-description p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-light);
}

.cookie-description p:last-child {
    margin-bottom: 0;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.cookie-option {
    background: var(--color-bg-alt);
    border-radius: 12px;
    padding: 16px;
    transition: var(--transition);
}

.cookie-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    width: 100%;
}

.cookie-label input[type="checkbox"] {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.cookie-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-option-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.cookie-option-title {
    font-weight: 600;
    color: var(--color-text);
    font-size: 15px;
}

.cookie-option-desc {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cookie-btn {
    flex: 1 1 auto;
    min-width: 140px;
    text-align: center;
    white-space: nowrap;
}

.btn-text.cookie-btn {
    flex: 0 0 auto;
    padding: 12px 16px;
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 8px;
    font-size: 14px;
}

.btn-text.cookie-btn:hover {
    color: var(--color-primary-dark);
    background: var(--color-bg-alt);
}

/* Cookie Banner Mobile Styles */
@media (max-width: 768px) {
    .cookie-content {
        padding: 24px;
        border-radius: 16px;
    }
    
    .cookie-title {
        font-size: 20px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        min-width: 100%;
    }
    
    .btn-text.cookie-btn {
        width: 100%;
    }
}

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

/* Print Styles */
@media print {
    .navbar,
    .cta,
    .footer {
        display: none;
    }
}
