@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --color-bg: #FCFAF8;
    --color-text: #1A2B41;
    --color-text-muted: #5B6B80;
    --color-primary: #2C4362;
    --color-primary-hover: #192C44;
    --color-accent: #8FA289; /* soft sage green */
    --color-card-bg: #FFFFFF;
    
    --shadow-soft: 0 10px 30px rgba(26, 43, 65, 0.05);
    --shadow-hover: 0 15px 40px rgba(26, 43, 65, 0.1);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Typography elements */
h1, h2, h3 {
    font-family: var(--font-serif);
    color: var(--color-text);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

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

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

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 8px 16px rgba(44, 67, 98, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(44, 67, 98, 0.3);
}

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

.btn-secondary:hover {
    background-color: rgba(44, 67, 98, 0.05);
    transform: translateY(-2px);
}

.btn-primary.large, .btn-secondary.large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-up.visible, .fade-in-right.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Header Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(252, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: var(--shadow-soft);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Switcher */
.language-selector {
    position: relative;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(143, 162, 137, 0.3);
    border-radius: 8px;
    padding: 8px 14px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--color-primary);
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-btn:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-primary);
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: white;
    border: 1px solid rgba(143, 162, 137, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    min-width: 140px;
    overflow: hidden;
    z-index: 100;
}

.language-selector.open .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.lang-dropdown a:hover {
    background: var(--color-bg-alt);
}

/* Footer Languages */
.footer-languages {
    border-top: 1px solid rgba(143, 162, 137, 0.15);
    margin-top: 24px;
    padding-top: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-languages p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    margin: 0;
}

.lang-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lang-list a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid rgba(143,162,137,0.2);
    border-radius: 20px;
    transition: all 0.2s;
}

.lang-list a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.footer-other-apps {
    border-top: 1px solid rgba(143, 162, 137, 0.15);
    margin-top: 24px;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-other-apps-title {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0 0 4px 0;
}

.other-apps-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.other-apps-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.other-apps-links a strong {
    color: var(--color-text);
    font-weight: 600;
}

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

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

.nav-app-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: linear-gradient(180deg, #8B5CF6 0%, #3B82F6 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Jemný tieň pre prémiový vzhľad ikony */
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
}

/* Soft background blob */
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(143, 162, 137, 0.15) 0%, rgba(252, 250, 248, 0) 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero-content {
    flex: 1;
}

/* Onboarding Stack Logo */
.hero-top-group {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    width: 100%;
}

.hero-onboarding-logo {
    position: relative;
    max-width: 400px;
    width: 100%;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    aspect-ratio: 4/1;
}

.hero-logo-anim-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.anim-hero-layer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    opacity: 0;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center center;
    mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation: logoFadeAndColorTransition 2.8s ease-out forwards;
}

/* Sequential Animation Layers for Hero */
.layer-1 { 
    animation-delay: 1.0s;
    -webkit-mask-image: url('assets/logo-alvia-1.png'); 
    mask-image: url('assets/logo-alvia-1.png'); 
    --highlight-color: #0EA5E9; /* color4 */
}
.layer-2 { 
    animation-delay: 1.2s; 
    -webkit-mask-image: url('assets/logo-alvia-2.png'); 
    mask-image: url('assets/logo-alvia-2.png'); 
    --highlight-color: #3B82F6; /* color5 */
}
.layer-3 { 
    animation-delay: 1.4s; 
    -webkit-mask-image: url('assets/logo-alvia-3.png'); 
    mask-image: url('assets/logo-alvia-3.png'); 
    --highlight-color: #6366F1; /* color6 */
}
.layer-4 { 
    animation-delay: 1.6s; 
    -webkit-mask-image: url('assets/logo-alvia-4.png'); 
    mask-image: url('assets/logo-alvia-4.png'); 
    --highlight-color: #8B5CF6; /* color7 */
}
.layer-5 { 
    animation-delay: 1.8s; 
    -webkit-mask-image: url('assets/logo-alvia-5.png'); 
    mask-image: url('assets/logo-alvia-5.png'); 
    --highlight-color: #A855F7; /* color8 */
}
.layer-6 { 
    animation-delay: 2.0s; 
    -webkit-mask-image: url('assets/logo-alvia-6.png'); 
    mask-image: url('assets/logo-alvia-6.png'); 
    --highlight-color: #D946EF; /* color9 */
}

@keyframes logoFadeAndColorTransition {
    0% { 
        opacity: 0; 
        background-color: var(--highlight-color);
    }
    50% { 
        opacity: 1; 
        background-color: var(--highlight-color);
    }
    100% { 
        opacity: 1; 
        background-color: var(--color-primary);
    }
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(143, 162, 137, 0.15);
    color: var(--color-accent);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 540px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    transition: opacity 0.2s;
}

.dl-btn:hover {
    opacity: 0.8;
}

.dl-btn svg {
    width: 28px;
    height: 28px;
    fill: #fff;
    flex-shrink: 0;
}

.dl-btn--light {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dl-btn--light:hover {
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
}

.dl-btn--apple svg {
    width: 34px;
    height: 34px;
}

.dl-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.dl-btn-sub {
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1.2;
    opacity: 0.85;
}

.dl-btn-main {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-screenshot {
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Sections Global */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

/* Intro Section */
.intro-section {
    background: linear-gradient(180deg, var(--color-bg) 0%, #F5F1EB 100%);
    padding: 80px 0;
    margin-bottom: 40px;
}

.intro-box {
    background: var(--color-card-bg);
    padding: 60px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
}

.intro-box p {
    font-size: 1.2rem;
}

/* Modes Grid Section */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.mode-card {
    background: var(--color-card-bg);
    padding: 48px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.mode-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 6px;
}

.mode-growth::before { background: var(--color-accent); }
.mode-heal::before { background: var(--color-primary); }

.mode-card .icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.mode-card h3 {
    margin-bottom: 20px;
}

.mode-card p {
    margin-bottom: 24px;
    min-height: 140px;
}

.mode-features {
    list-style: none;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.mode-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.mode-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* Screenshots Gallery Section (Horizontal Scroll) */
.screenshots-section {
    background: var(--color-primary);
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}

.screenshots-section h2, .screenshots-section p {
    color: var(--color-bg);
}

.screenshots-section p {
    opacity: 0.8;
}

.screenshots-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 32px;
    padding: 20px 40px 60px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-snap-type: x mandatory;
}

.screenshots-scroll-container::-webkit-scrollbar {
    display: none;
}

.screenshot-wrapper {
    flex: 0 0 280px;
    scroll-snap-align: center;
    transform: scale(0.95);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.6;
}

.screenshot-wrapper.active, .screenshot-wrapper:hover {
    transform: scale(1);
    opacity: 1;
}

.screenshot-img {
    width: 100%;
    border-radius: 36px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 4px solid rgba(255,255,255,0.1);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background-color: var(--color-bg);
}

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

.faq-item {
    background: #FFFFFF;
    border: 1px solid rgba(143, 162, 137, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.faq-item summary {
    padding: 24px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

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

.faq-content {
    padding: 0 24px 24px 24px;
    color: var(--color-text);
    line-height: 1.6;
    animation: accordionFade 0.3s ease-out;
}

.faq-content p {
    margin: 0;
}

@keyframes accordionFade {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.review-card {
    background: var(--color-card-bg);
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-card .stars {
    color: #FBBF24;
    font-size: 1.25rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    margin-bottom: 24px;
    color: var(--color-text);
}

.reviewer {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

/* Download CTA Section */
.cta-section {
    padding-bottom: 120px;
}

.cta-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    padding: 80px 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    color: #FFF;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    color: #FFF;
}

.cta-box p {
    color: rgba(255,255,255,0.8);
    margin: 0 auto 32px;
    font-size: 1.1rem;
}

.store-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-badge img {
    display: block;
    height: 48px;
    width: auto;
}

.store-badge img[alt="Get it on Google Play"] {
    height: 71px;
}

/* Footer Section */
.footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 60px 0 30px;
    background: #FFF;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.footer-brand h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: right;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.copyright {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #9CA3AF;
}

/* Responsive */
@media (max-width: 991px) {
    .hero {
        padding-top: 160px;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { margin: 0 auto 32px; }
    .hero-actions { justify-content: center; }
    .hero-visual { justify-content: center; width: 100%; }
    .hero::before { display: none; }
}

@media (max-width: 768px) {
    .section-header h2 { font-size: 2rem; }
    .intro-box { padding: 40px 24px; }
    .mode-card { padding: 32px 24px; }
    .hero-actions { flex-direction: column; }
    .footer-content {
        flex-direction: column;
        gap: 32px;
        align-items: center;
        text-align: center;
    }
    .footer-links { text-align: center; }
}
