/* ===========================
   SETRIM – Prezentačný web v2
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Nunito+Sans:ital,wght@0,300;0,400;0,600;1,300&display=swap');

:root {
    --green-primary: #4CAF50;
    --green-dark:    #2E7D32;
    --green-darker:  #1B5E20;
    --green-light:   #A5D6A7;
    --green-pale:    #E8F5E9;
    --bg:            #F2F2F7;
    --white:         #FFFFFF;
    --text-main:     rgba(0,0,0,0.87);
    --text-secondary:rgba(0,0,0,0.54);
    --radius:        18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito Sans', sans-serif;
    background: var(--bg);
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAV */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(27,94,32,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    height: 62px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.07), 0 4px 20px rgba(0,0,0,0.22);
}

.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }

.nav-logo-leaf {
    width: 36px; height: 36px;
    border-radius: 50%; overflow: hidden; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.28);
    border: 2px solid rgba(255,255,255,0.2);
}
.nav-logo-leaf img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-logo-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 900; font-size: 22px; color: white; letter-spacing: -0.3px;
}

.lang-switcher {
    display: flex; gap: 4px; align-items: center;
    background: rgba(0,0,0,0.2); border-radius: 30px; padding: 4px;
}
.lang-switcher a {
    color: rgba(255,255,255,0.65); text-decoration: none;
    font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px;
    transition: all 0.2s; font-family: 'Nunito', sans-serif; letter-spacing: 0.3px;
}
.lang-switcher a:hover { color: white; }
.lang-switcher a.active { background: white; color: var(--green-darker); }

/* HERO */
.hero {
    background: linear-gradient(150deg, #1a5c1e 0%, var(--green-darker) 45%, #0d3510 100%);
    min-height: 92vh;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    padding: 70px 5vw 90px;
}

.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.03; pointer-events: none; z-index: 0;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 65% 55% at 78% 44%, rgba(76,175,80,0.16) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 18% 78%, rgba(46,125,50,0.13) 0%, transparent 60%);
    pointer-events: none; z-index: 0;
}

.hero-ring {
    position: absolute; width: 600px; height: 600px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
    top: -150px; right: -150px; pointer-events: none; z-index: 0;
}
.hero-ring-2 {
    position: absolute; width: 900px; height: 900px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.025);
    top: -300px; right: -300px; pointer-events: none; z-index: 0;
}

.hero-inner {
    max-width: 1200px; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
    position: relative; z-index: 1;
}

.hero-text h1 {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    color: white; line-height: 1.13;
    margin-bottom: 22px; letter-spacing: -0.8px;
}
.hero-text h1 span { color: var(--green-light); }
.hero-text p {
    color: rgba(255,255,255,0.78);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    margin-bottom: 38px; font-weight: 300;
    max-width: 460px; line-height: 1.75;
}

.btn-play { display: inline-block; transition: transform 0.2s, filter 0.2s; }
.btn-play:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn-play img { height: 58px; display: block; }

/* IMAGE MOCKUPS (nahradilo phone mockups) */
.hero-images {
    display: flex; justify-content: center;
    align-items: center; position: relative;
    gap: 20px;
}

.site-preview-img {
    max-width: 220px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    flex-shrink: 0;
}
.site-preview-img:first-child {
    transform: rotate(-3deg) translateY(10px); z-index: 1;
}
.site-preview-img:last-child {
    transform: rotate(4deg) translateY(-10px); z-index: 2;
}

/* SECTION */
.section-label {
    display: inline-block;
    background: var(--green-pale); color: var(--green-dark);
    font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
    text-transform: uppercase; padding: 6px 14px;
    border-radius: 20px; margin-bottom: 14px;
    font-family: 'Nunito', sans-serif;
}
.section-title {
    font-family: 'Nunito', sans-serif; font-weight: 900;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    color: var(--green-darker); margin-bottom: 12px;
    letter-spacing: -0.4px; line-height: 1.2;
}
.section-sub {
    color: var(--text-secondary); font-size: 1.05rem;
    max-width: 540px; margin-bottom: 64px; line-height: 1.7;
}

/* FEATURES */
.features { padding: 100px 5vw; max-width: 1200px; margin: 0 auto; }

.feature-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 70px; align-items: center; margin-bottom: 100px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-text h3 {
    font-family: 'Nunito', sans-serif; font-weight: 800;
    font-size: 1.65rem; color: var(--green-darker);
    margin-bottom: 14px; line-height: 1.25; letter-spacing: -0.3px;
}
.feature-text p {
    color: var(--text-secondary); font-size: 1rem;
    line-height: 1.75; margin-bottom: 24px;
}
.feature-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--green-pale); border-left: 3px solid var(--green-primary);
    padding: 10px 16px; border-radius: 0 10px 10px 0;
    font-size: 0.88rem; color: var(--green-dark); font-weight: 600;
}

.feature-img-wrap { display: flex; justify-content: center; align-items: center; }

.feature-preview-img {
    max-width: 250px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    animation: floatPhone 5s ease-in-out infinite;
}

@keyframes floatPhone {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}
.feature-row:nth-child(odd) .feature-preview-img { animation-delay: -2.5s; }

/* HIGHLIGHTS */
.highlights {
    background: linear-gradient(150deg, var(--green-dark) 0%, var(--green-darker) 100%);
    padding: 90px 5vw; text-align: center;
    position: relative; overflow: hidden;
}
.highlights::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.025; pointer-events: none;
}
.highlights .section-title { color: white; }
.highlights .section-label { background: rgba(255,255,255,0.13); color: rgba(255,255,255,0.9); }
.highlights .section-sub { color: rgba(255,255,255,0.68); margin: 0 auto 60px; }

.cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px; max-width: 1100px; margin: 0 auto;
    position: relative; z-index: 1;
}
.hl-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 32px 26px; text-align: left;
    transition: background 0.25s, transform 0.25s; cursor: default;
}
.hl-card:hover { background: rgba(255,255,255,0.13); transform: translateY(-4px); }
.hl-icon { font-size: 30px; margin-bottom: 18px; display: block; }
.hl-card h4 {
    font-family: 'Nunito', sans-serif; font-weight: 800;
    font-size: 1.05rem; color: white; margin-bottom: 9px;
}
.hl-card p { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.65; }

/* CTA */
.cta-section { padding: 100px 5vw; text-align: center; background: var(--bg); }
.cta-section .section-title { color: var(--green-darker); margin-bottom: 16px; }
.cta-section p {
    color: var(--text-secondary); max-width: 440px;
    margin: 0 auto 40px; font-size: 1.05rem; line-height: 1.7;
}

/* FOOTER */
footer {
    background: var(--green-darker); color: rgba(255,255,255,0.55);
    padding: 28px 5vw;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 14px; font-size: 13px;
}
.footer-logo {
    display: flex; align-items: center; gap: 9px;
    font-family: 'Nunito', sans-serif; font-weight: 900;
    color: white; font-size: 18px;
}
.footer-logo img { width: 28px; height: 28px; border-radius: 50%; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: white; }

/* SCROLL REVEAL */
.reveal {
    opacity: 0; transform: translateY(36px);
    transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.34s; }
.reveal-d5 { transition-delay: 0.44s; }

/* Hero load animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) both; }
.fade-up-2 { animation-delay: 0.12s; }
.fade-up-3 { animation-delay: 0.24s; }
.fade-up-4 { animation-delay: 0.38s; }

/* RESPONSIVE */
@media (max-width: 820px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .btn-play { margin: 0 auto; }
    .feature-row { grid-template-columns: 1fr; gap: 40px; }
    .feature-row.reverse { direction: ltr; }
    
    .site-preview-img { max-width: 180px; }
    .feature-preview-img { max-width: 200px; }
}
@media (max-width: 480px) {
    .hero { padding: 56px 5vw 70px; min-height: auto; }
    .features { padding: 70px 5vw; }
    nav { padding: 0 4vw; }
    
    .site-preview-img { max-width: 150px; }
    .feature-preview-img { max-width: 180px; }
    .hero-images { gap: 10px; }
}
