:root {
    --bg-grain: #f8e4cd;
    --text-main: #111827;
    --text-muted: #4b5563;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --surface: #ffffff;
    --border: #e5e7eb;
    --zap-color: #f59e0b;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.08), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text-main); background-color: var(--surface); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
p { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* Base Components */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 1.75rem; font-size: 1.125rem; font-weight: 600; border-radius: 999px; transition: all 0.2s ease; cursor: pointer; border: none; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background-color: var(--primary); color: white; box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); }
.btn-outline { background-color: transparent; color: var(--text-main); border: 2px solid var(--border); }
.btn-outline:hover { background-color: rgba(0,0,0,0.03); border-color: #d1d5db; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* Header Elements */
header { position: absolute; top: 0; left: 0; width: 100%; padding: 1.5rem 0; z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.05em; display: flex; align-items: center; gap: 0.5rem; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-selector { position: relative; display: inline-block; }
.lang-btn { background: transparent; border: 2px solid var(--border); border-radius: 999px; padding: 0.5rem 1rem; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.95rem; font-weight: 600; color: var(--text-main); transition: all 0.2s; }
.lang-btn svg { width: 16px; height: 16px; }
.lang-btn:hover, .lang-selector.active .lang-btn { background-color: rgba(0,0,0,0.03); border-color: #d1d5db; }
.lang-menu { position: absolute; top: 100%; right: 0; margin-top: 0.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); min-width: 140px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s ease; z-index: 200; }
.lang-selector.active .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
@media (hover: hover) {
    .lang-selector:hover .lang-btn { background-color: rgba(0,0,0,0.03); border-color: #d1d5db; }
    .lang-selector:hover .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
}
.lang-menu a { display: block; padding: 0.75rem 1.25rem; color: var(--text-main); font-size: 0.95rem; font-weight: 500; transition: background 0.2s; }
.lang-menu a:hover { background: rgba(0,0,0,0.03); color: var(--primary); }
.lang-menu a.active { background: rgba(79, 70, 229, 0.05); color: var(--primary); }

/* Hero App Specific Styles */
.hero-wrapper { position: relative; background: linear-gradient(180deg, var(--bg-grain) 0%, rgba(248, 228, 205, 0.6) 100%); padding-top: 10rem; padding-bottom: 12rem; }
.grain-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.15; pointer-events: none; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.0' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); }
.wave-divider { position: absolute; bottom: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; z-index: 5; }
.wave-divider svg { position: relative; display: block; width: calc(100% + 1.3px); height: 110px; }
.wave-divider .shape-fill { fill: var(--surface); }

.hero { position: relative; z-index: 10; display: flex; align-items: center; gap: 4rem; }
.hero-content { flex: 1; }
.hero-image { flex: 1; display: flex; justify-content: center; position: relative; }
.app-mockup { width: 100%; max-width: 500px; height: auto; }

.hero-benefits { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 2rem; }
.hero-benefits li { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; color: var(--text-main); font-size: 1.1rem; }
.hero-benefits svg { width: 22px; height: 22px; stroke: #27c93f; }

.download-stats { margin-top: 2rem; font-size: 0.95rem; color: var(--text-muted); }
.download-stats strong { color: var(--text-main); font-size: 1.1rem; }

/* Store Badges Custom Assets */
.store-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.store-badge-img { display: inline-block; height: 48px; width: auto; transition: transform 0.2s ease, filter 0.2s ease; }
.store-badge-img:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* Features & Sections */
.cards-section { position: relative; z-index: 20; margin-top: -6rem; padding-bottom: 6rem; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: var(--surface); border-radius: var(--radius-lg); padding: 2.5rem 2rem; box-shadow: var(--shadow-lg); text-align: center; border: 1px solid rgba(0,0,0,0.03); transition: transform 0.3s ease; }
.card:hover { transform: translateY(-5px); }
.card-icon { width: 64px; height: 64px; background: #f3f4f6; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem auto; }
.card-icon svg { width: 32px; height: 32px; fill: var(--primary); }

.zigzag-section { padding: 6rem 0; }
.zigzag-row { display: flex; align-items: center; gap: 5rem; margin-bottom: 8rem; }
.zigzag-row:last-child { margin-bottom: 0; }
.zigzag-text { flex: 1; }
.zigzag-image { flex: 1; display: flex; justify-content: center; }
.zigzag-image img { width: 100%; max-width: 500px; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.feature-tag { display: inline-block; padding: 0.5rem 1rem; background: rgba(79, 70, 229, 0.1); color: var(--primary); font-weight: 700; border-radius: 999px; font-size: 0.875rem; margin-bottom: 1.5rem; letter-spacing: 0.05em; text-transform: uppercase; }
.feature-tag-eu {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.25rem;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--primary);
    font-weight: 700;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.feature-tag-eu .flag-img {
    width: 20px;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
}

.zap-tag { background: rgba(245, 158, 11, 0.1); color: var(--zap-color); }

/* Modern Fire Asset Frame */
.zap-mockup-png { 
    width: 160px; 
    height: 160px; 
    background: #fff; 
    border-radius: var(--radius-lg); 
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 1px solid var(--border); 
    padding: 2.2rem;
    transition: transform 0.3s ease;
}
.zap-mockup-png:hover {
    transform: scale(1.03);
}
.zap-mockup-png img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Comparison Table */
.comparison-section { padding: 6rem 0; background-color: #f9fafb; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.comparison-header { text-align: center; margin-bottom: 4rem; }
.comparison-table-wrapper { overflow-x: auto; max-width: 1000px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.comparison-table { width: 100%; border-collapse: collapse; text-align: left; }
.comparison-table th, .comparison-table td { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.comparison-table th { font-weight: 700; font-size: 1.1rem; color: var(--text-main); background: #f3f4f6; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table td:first-child { font-weight: 600; color: var(--text-main); }
.highlight-col { background-color: rgba(79, 70, 229, 0.03); color: var(--primary); font-weight: 700; text-align: center; }
.comparison-table td:last-child, .comparison-table th:last-child { text-align: center; color: var(--text-muted); }
.check-icon { width: 24px; height: 24px; stroke: #27c93f; stroke-width: 3; fill: none; display: inline-block; }
.cross-icon { width: 24px; height: 24px; stroke: #ef4444; stroke-width: 3; fill: none; display: inline-block; }

/* Bottom CTA & QR */
.bottom-cta-section { padding: 8rem 0; }
.bottom-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.cta-image img { width: 100%; max-width: 500px; height: auto; border-radius: var(--radius-lg); }
.qr-block { display: flex; align-items: center; gap: 1rem; margin: 2rem 0; padding: 1rem; background: #f9fafb; border-radius: var(--radius-md); border: 1px solid var(--border); width: fit-content; }
.qr-placeholder { width: 80px; height: 80px; background: white; padding: 0.5rem; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.qr-placeholder svg { width: 100%; height: 100%; color: var(--text-main); }
.qr-block p { margin: 0; font-weight: 600; font-size: 1rem; color: var(--text-main); }
.small-divider { font-size: 0.875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-bottom: 1rem; }

/* Footer components */
footer { background-color: #111827; color: white; padding: 6rem 0 3rem 0; text-align: center; }
.footer-support { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-lg); padding: 3rem 2rem; max-width: 600px; margin: 0 auto 4rem auto; backdrop-filter: blur(10px); }
.footer-support h4 { font-size: 1.5rem; margin-bottom: 1.5rem; color: white; }
.footer-support-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.footer-support-links a { padding: 0.75rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; transition: all 0.2s ease; }
.footer-support-links .btn-pro { background: var(--primary); color: white; }
.footer-support-links .btn-pro:hover { background: var(--primary-hover); transform: translateY(-2px); }
.footer-support-links .btn-adv { background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); color: white; }
.footer-support-links .btn-adv:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }
.footer-transparent-privacy { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.125rem; font-weight: 600; color: white; text-decoration: none; margin-bottom: 3rem; transition: color 0.2s; }
.footer-transparent-privacy:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.footer-bottom p { color: #9ca3af; font-size: 0.875rem; margin-bottom: 0; }
.footer-legal-links { display: flex; gap: 1rem; color: #6b7280; font-size: 0.875rem; margin-top: 0.5rem; }

/* Responsive Queries */
@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; }
    .hero-benefits { align-items: center; }
    .store-buttons { justify-content: center; }
    .hero-image { margin-top: 2rem; }
    .hero-wrapper { padding-top: 8rem; padding-bottom: 6rem; }
    
    .zigzag-row { flex-direction: column; gap: 3rem; margin-bottom: 6rem; text-align: center; }
    .zigzag-text { order: 1; }
    .zigzag-image { order: 2; }
    
    .bottom-cta-grid { grid-template-columns: 1fr; text-align: center; }
    .cta-image { order: 2; }
    .cta-text { order: 1; display: flex; flex-direction: column; align-items: center; }
    .qr-block { justify-content: center; }
}

@media (min-width: 993px) {
    .zigzag-row:nth-child(even) .zigzag-text { order: 2; padding-left: 3rem; }
    .zigzag-row:nth-child(even) .zigzag-image { order: 1; }
    .zigzag-row:nth-child(odd) .zigzag-text { padding-right: 3rem; }
}