/* ==========================================================================
   AIOptimeerimine.ee - Master Stylesheet
   ========================================================================== */

/* --- 1. CSS RESET & VARIABLES --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
    /* Tume teema */
    --bg-deep: #000000;
    --bg-surface: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-light: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #888888;
    
    /* Hele teema */
    --bg-light-main: #f8fafc;
    --bg-light-card: rgba(255, 255, 255, 0.7);
    --border-light-theme: rgba(0, 0, 0, 0.06);
    --text-dark: #020617;
    --text-dark-muted: #475569;
    
    /* Aktsentvärvid */
    --accent-glow: #3b82f6; 
    --accent-joy: #f59e0b; 
    --accent-pink: #ec4899; 
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body { 
    font-family: var(--font-body); background-color: var(--bg-deep); 
    color: var(--text-main); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; 
}
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 3rem; }

/* Tume Taust */
.ambient-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: -1; overflow: hidden; }
.ambient-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%); top: -200px; left: 50%; transform: translateX(-50%); filter: blur(60px); }

/* Üleminek tumedast heledasse */
.transition-curve { width: 100%; height: 100px; background: linear-gradient(to bottom, var(--bg-surface) 0%, var(--bg-light-main) 100%); position: relative; z-index: 5; }

/* Teksti Glow & Gradiendid */
.text-gradient { background: linear-gradient(135deg, #ffffff 0%, #666666 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-glow-vibrant { background: linear-gradient(135deg, #ffffff 0%, var(--accent-glow) 50%, #ffffff 100%); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shine 6s linear infinite; filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4)); }
@keyframes shine { to { background-position: 200% center; } }


/* --- 2. HEADER & NAVIGATSIOON --- */
header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-light); transition: background 0.3s, border-color 0.3s; }
header.scrolled-light { background: rgba(255, 255, 255, 0.9); border-bottom: 1px solid rgba(0,0,0,0.05); }
header.scrolled-light .logo-text { color: var(--text-dark); }
header.scrolled-light .logo svg path, header.scrolled-light .logo svg circle { stroke: var(--text-dark); }
header.scrolled-light .logo svg circle[fill="currentColor"] { fill: var(--text-dark); }
header.scrolled-light .nav-link { color: var(--text-dark-muted); }
header.scrolled-light .nav-link:hover { color: var(--text-dark); }
header.scrolled-light .btn-nav { background: var(--text-dark); color: #fff; }

.nav-container { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 32px; height: 32px; transition: all 0.3s; }
.logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--text-main); letter-spacing: -0.03em; transition: color 0.3s; }
.logo-dot { color: var(--accent-glow); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color var(--transition-smooth); }
.nav-link:hover { color: var(--text-main); }
.btn-nav { background: var(--text-main); color: var(--bg-deep); padding: 8px 16px; border-radius: 100px; text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: transform 0.2s, background 0.3s; }
.btn-nav:hover { transform: scale(1.05); }

/* Keelevalik */
.lang-select { appearance: none; background-color: transparent; color: var(--text-main); font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; border: 1px solid var(--border-light); border-radius: 8px; padding: 6px 28px 6px 12px; cursor: pointer; transition: all 0.3s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.lang-select:focus { outline: none; border-color: var(--accent-glow); }
.lang-select option { background-color: var(--bg-deep); color: var(--text-main); }
header.scrolled-light .lang-select { color: var(--text-dark); border-color: var(--border-light-theme); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23020617' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); }
header.scrolled-light .lang-select option { background-color: #fff; color: var(--text-dark); }


/* --- 3. ALAMLEHTEDE ÜLDISED PÄISED (Contact, Privacy, Order) --- */
.page-hero { padding-top: 160px; padding-bottom: 60px; text-align: center; position: relative; z-index: 10; }
.page-hero h1 { font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 24px; color: var(--text-main); }
.page-hero p { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.6; }


/* --- 4. AVALEHT: HERO WOU-EFEKT --- */
.hero { position: relative; overflow: hidden; padding-top: 180px; padding-bottom: 80px; }
.hero-visual-engine { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-sphere { position: absolute; top: -30%; left: 50%; transform: translateX(-50%); width: 90vw; height: 90vw; max-width: 1000px; max-height: 1000px; background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%); filter: blur(80px); }
.hero-grid-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 50px 50px; mask-image: radial-gradient(circle at center, black, transparent 80%); -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%); }

.hero-content-wrapper { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; width: 100%; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-light); padding: 6px 16px; border-radius: 100px; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-bottom: 32px; }
.hero-badge .pulse { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 10px #22c55e; animation: slowPulse 2s infinite; }
@keyframes slowPulse { 0% { opacity: 1; box-shadow: 0 0 10px #22c55e; } 50% { opacity: 0.5; box-shadow: 0 0 2px #22c55e; } 100% { opacity: 1; box-shadow: 0 0 10px #22c55e; } }

.hero-title { font-family: var(--font-heading); font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 24px; color: var(--text-main); text-align: center; }
.hero-subtitle { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 650px; margin: 0 auto 32px auto; line-height: 1.6; text-align: center; }

/* Animatsioonid */
.animate-reveal { opacity: 0; transform: translateY(20px); animation: reveal 0.8s forwards cubic-bezier(0.16, 1, 0.3, 1); }
.animate-reveal-delayed { opacity: 0; transform: translateY(20px); animation: reveal 0.8s 0.15s forwards cubic-bezier(0.16, 1, 0.3, 1); }
.animate-reveal-more-delayed { opacity: 0; transform: translateY(20px); animation: reveal 0.8s 0.3s forwards cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }


/* --- 5. SKÄNNER & VORMID --- */
.scanner-glass-case { width: 100%; max-width: 880px; background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 32px; padding: 12px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05); margin: 0 auto 40px auto; }
.scanner-glass-case .scanner-widget { margin-bottom: 0; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.03); } 

.scanner-widget { max-width: 850px; margin: 0 auto 40px auto; position: relative; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; z-index: 10; transition: min-height 0.4s ease; border-radius: 24px; padding: 40px;}
.widget-state { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; display: flex; flex-direction: column; align-items: center; }
.widget-state.active { opacity: 1; pointer-events: all; transform: translateY(0); position: relative; }

.type-selector { display: flex; gap: 8px; margin-bottom: 24px; background: rgba(255,255,255,0.05); padding: 6px; border-radius: 100px; border: 1px solid var(--border-light); }
.type-label { position: relative; cursor: pointer; }
.type-label input { position: absolute; opacity: 0; cursor: pointer; }
.type-pill { display: inline-block; padding: 8px 20px; border-radius: 100px; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: all 0.3s; }
.type-label input:checked ~ .type-pill { background: rgba(59, 130, 246, 0.2); color: #fff; box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.5); }

.input-group { width: 100%; max-width: 640px; display: flex; align-items: center; background: rgba(10, 10, 10, 0.8); border: 1px solid var(--border-light); border-radius: 100px; padding: 6px; backdrop-filter: blur(10px); transition: all 0.3s ease; }
.input-group:focus-within { border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 0 30px rgba(59, 130, 246, 0.2), inset 0 0 10px rgba(59, 130, 246, 0.1); transform: scale(1.01); }
.input-field { flex-grow: 1; background: transparent; border: none; outline: none; color: var(--text-main); font-size: 1.1rem; padding: 16px 24px; font-family: var(--font-body); }

.btn-submit { background: var(--text-main); color: var(--bg-deep); border: none; border-radius: 100px; padding: 14px 28px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: transform 0.2s; display: flex; align-items: center; gap: 8px; }
.btn-submit:hover { transform: scale(1.03); background: #f0f0f0;}
.trust-signal { margin-top: 24px; font-size: 0.85rem; color: #666; display: flex; align-items: center; gap: 8px; font-weight: 500;}

/* Üldised Vormid (Tellimus & Kontakt) */
.form-group { margin-bottom: 24px; text-align: left; width: 100%; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); font-size: 0.95rem; }
.form-control { width: 100%; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 12px; padding: 14px 18px; font-family: var(--font-body); font-size: 1rem; color: var(--text-dark); transition: all 0.3s; outline: none; box-shadow: 0 2px 4px rgba(0,0,0,0.01); }
.form-control:focus { border-color: var(--accent-glow); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }

.btn-submit-form { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; background: var(--text-dark); color: #ffffff; padding: 18px 32px; border-radius: 100px; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; border: none; cursor: pointer; transition: all 0.3s ease; margin-top: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-submit-form:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(59, 130, 246, 0.25); background: var(--accent-glow); }

/* Vormide teavitused (Flash Messages) */
.alert { padding: 16px 20px; border-radius: 12px; margin-bottom: 24px; font-weight: 500; display: flex; align-items: center; gap: 12px; font-size: 0.95rem; width: 100%; }
.alert-success { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); color: #166534; }
.alert-success::before { content: '✓'; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: #22c55e; color: #fff; border-radius: 50%; font-size: 14px; font-weight: bold; flex-shrink: 0; }
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #991b1b; }
.alert-error::before { content: '!'; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: #ef4444; color: #fff; border-radius: 50%; font-size: 14px; font-weight: bold; flex-shrink: 0; }


/* --- 6. SKÄNNERI LAADIMINE & TULEMUS --- */
.loader-card { max-width: 640px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 16px; padding: 32px; width: 100%; text-align: left; }
.loader-header { display: flex; justify-content: space-between; margin-bottom: 16px; align-items: center; }
.loader-title { font-family: var(--font-heading); font-size: 1rem; color: var(--text-main); }
.loader-percent { font-family: monospace; color: var(--accent-glow); }
.progress-track { width: 100%; height: 2px; background: var(--border-light); border-radius: 2px; overflow: hidden; }
.progress-bar { width: 0%; height: 100%; background: var(--text-main); transition: width 0.3s ease; }
.loader-log { margin-top: 16px; font-family: monospace; font-size: 0.85rem; color: var(--text-muted); background: rgba(0,0,0,0.5); padding: 12px; border-radius: 8px; border: 1px solid var(--border-light); }

.result-wrapper { width: 100%; background: var(--bg-card); border: 1px solid var(--border-light); border-top: 2px solid #ef4444; border-radius: 24px; padding: 40px; text-align: left; box-shadow: 0 20px 50px rgba(0,0,0,0.3); backdrop-filter: blur(12px); }
.result-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 32px; }
.result-icon { width: 48px; height: 48px; background: rgba(239, 68, 68, 0.1); color: #ef4444; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.result-title { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 8px; }
.result-desc { color: var(--text-muted); font-size: 1rem; max-width: 600px;}

.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.price-card { background: rgba(0,0,0,0.4); border: 1px solid var(--border-light); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; transition: border-color 0.3s; }
.price-card:hover { border-color: rgba(255,255,255,0.2); }
.price-card.premium { background: linear-gradient(180deg, rgba(59,130,246,0.05) 0%, rgba(0,0,0,0.4) 100%); border-color: rgba(59, 130, 246, 0.3); box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.1); position: relative;}
.price-card.premium:hover { border-color: rgba(59, 130, 246, 0.6); }
.premium-badge { position: absolute; top: -12px; right: 24px; background: var(--accent-glow); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 100px; text-transform: uppercase; letter-spacing: 1px; }

.pkg-name { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 8px; color: var(--text-main); }
.pkg-price { font-size: 2.5rem; font-weight: 800; color: var(--text-main); margin-bottom: 24px; display: flex; align-items: baseline; gap: 8px; font-family: var(--font-heading);}
.pkg-price span { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; font-family: var(--font-body);}
.pkg-features { list-style: none; margin-bottom: 32px; flex-grow: 1; }
.pkg-features li { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 12px; display: flex; gap: 12px; align-items: flex-start; }
.pkg-features li svg { width: 18px; height: 18px; color: #22c55e; flex-shrink: 0; margin-top: 2px; }

.btn-price { width: 100%; padding: 14px; border-radius: 8px; font-weight: 600; text-align: center; cursor: pointer; transition: all 0.2s; border: none; text-decoration: none; display: inline-block; box-sizing: border-box;}
.btn-basic { background: rgba(255,255,255,0.05); color: var(--text-main); border: 1px solid var(--border-light); }
.btn-basic:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-premium { background: var(--accent-glow); color: #fff; }
.btn-premium:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2); }


/* --- 7. AVALEHT: SISUSEKTSIOONID (Tume/Hele/Bento/Dash) --- */
.ai-platforms { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0.8; }
.ai-platforms span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #666; font-weight: 600; }
.ai-logos { display: flex; gap: 24px; align-items: center; justify-content: center; flex-wrap: wrap; }
.ai-logo-text { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: #a1a1aa; }

.features-dark { padding: 60px 0 120px 0; border-top: 1px solid var(--border-light); background: linear-gradient(180deg, transparent 0%, rgba(10,10,10,0.8) 100%); z-index: 2; position: relative;}
.section-title { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; }

.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bento-item-dark { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 24px; padding: 40px; transition: border-color 0.3s; display: flex; flex-direction: column; justify-content: center; }
.bento-item-dark:hover { border-color: rgba(255,255,255,0.2); }
.bento-icon { margin-bottom: 24px; }
.bento-icon svg { width: 32px; height: 32px; color: var(--text-main); }
.bento-title { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 12px; }
.bento-desc { color: var(--text-muted); font-size: 0.95rem; }

.light-section { background-color: var(--bg-light-main); color: var(--text-dark); padding: 80px 0; position: relative; z-index: 10; overflow: hidden; }
.light-blob { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; opacity: 0.15; animation: float-blob 10s ease-in-out infinite alternate; }
.blob-yellow { top: 5%; left: -10%; width: 50vw; height: 50vw; background: var(--accent-joy); }
.blob-pink { bottom: 0%; right: -10%; width: 60vw; height: 60vw; background: var(--accent-pink); animation-delay: -5s; }
.blob-blue { top: 10%; left: 10%; width: 40vw; height: 40vw; background: var(--accent-glow); }
@keyframes float-blob { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(40px, 60px) scale(1.1); } }

.light-section .section-title { color: var(--text-dark); margin-bottom: 24px; }
.light-section .section-subtitle { color: var(--text-dark-muted); font-size: 1.2rem; max-width: 700px; margin: 0 auto 80px auto; }

.bento-item-light { background: var(--bg-light-card); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 24px; padding: 40px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03), inset 0 0 0 1px rgba(255,255,255,0.5); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.bento-item-light:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(59, 130, 246, 0.08); }
.icon-light-wrap { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 24px; display: flex; align-items: center; justify-content: center; }
.icon-b2b { background: rgba(59, 130, 246, 0.15); color: #2563eb; } 
.icon-local { background: rgba(236, 72, 153, 0.15); color: #db2777; } 
.icon-ecom { background: rgba(245, 158, 11, 0.15); color: #d97706; } 
.bento-item-light .bento-title { color: var(--text-dark); margin-bottom: 12px; }
.bento-item-light .bento-desc { color: var(--text-dark-muted); }

.dashboard-showcase-section { padding: 60px 0 100px 0; position: relative; z-index: 10; }
.badge-premium-light { display: inline-block; padding: 6px 16px; background: rgba(59, 130, 246, 0.1); color: var(--accent-glow); border-radius: 100px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.dash-window { background: #ffffff; border-radius: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0,0,0,0.05); overflow: hidden; max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; }
.dash-header { background: #f1f5f9; padding: 16px 20px; display: flex; align-items: center; border-bottom: 1px solid rgba(0,0,0,0.05); }
.dash-dots { display: flex; gap: 8px; }
.dash-dot { width: 12px; height: 12px; border-radius: 50%; }
.dash-title { margin: 0 auto; font-family: monospace; font-size: 0.85rem; color: #64748b; font-weight: 500; transform: translateX(-20px); }
.dash-body { display: flex; height: 500px; }
.dash-sidebar { width: 260px; background: #f8fafc; border-right: 1px solid rgba(0,0,0,0.05); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.dash-nav-item { padding: 10px 12px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--text-dark-muted); cursor: default; }
.dash-nav-item.active { background: #fff; color: var(--accent-glow); box-shadow: 0 2px 4px rgba(0,0,0,0.02); font-weight: 600; }
.dash-content { flex-grow: 1; padding: 32px; overflow: hidden; position: relative; background: #fff; }
.scanner-laser { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--accent-glow); box-shadow: 0 0 15px 2px var(--accent-glow); z-index: 5; pointer-events: none; opacity: 0; animation: scan-line 3s ease-in-out infinite; }
@keyframes scan-line { 0% { top: 0; opacity: 0; } 10% { opacity: 0.7; } 90% { opacity: 0.7; } 100% { top: 100%; opacity: 0; } }
.task-list { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 2; }
.task-item { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border: 1px solid var(--border-light-theme); border-radius: 12px; background: #fff; transition: all 0.3s ease; }
.task-item:hover { border-color: rgba(59, 130, 246, 0.3); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.05); }
.task-check { width: 24px; height: 24px; border-radius: 6px; border: 2px solid #cbd5e1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; transition: all 0.3s; }
.task-check svg { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(0.5); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.task-check.active { background: #22c55e; border-color: #22c55e; }
.task-check.active svg { opacity: 1; transform: scale(1); }
.task-info h4 { font-family: var(--font-body); font-size: 1rem; color: var(--text-dark); margin-bottom: 4px; font-weight: 600; }
.task-info p { font-size: 0.85rem; color: var(--text-dark-muted); margin: 0; line-height: 1.4; }
.task-tags { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.task-tag { font-size: 0.75rem; padding: 4px 10px; border-radius: 100px; font-weight: 600; white-space: nowrap; }
.tag-high { background: #fee2e2; color: #ef4444; }
.tag-medium { background: #fef3c7; color: #d97706; }
.tag-schema { background: #e0e7ff; color: #2563eb; }
.tag-tech { background: #f3e8ff; color: #4f46e5; }
.dash-progress-widget { background: #fff; border: 1px solid var(--border-light-theme); border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 12px; margin-top: auto;}
.progress-circle { width: 48px; height: 48px; border-radius: 50%; background: conic-gradient(var(--accent-glow) 0%, #f1f5f9 0%); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; color: var(--accent-glow); position: relative; transition: background 1s ease; }
.progress-circle::before { content: ''; position: absolute; width: 36px; height: 36px; background: #fff; border-radius: 50%; }
.progress-circle span { position: relative; z-index: 1; }
.progress-text { font-size: 0.8rem; color: var(--text-dark-muted); line-height: 1.3; }
.progress-text strong { color: var(--text-dark); }
.list-fade-out { position: absolute; bottom: 0; left: 0; width: 100%; height: 120px; background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 80%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 20px; z-index: 10;}
.list-fade-out span { background: #f1f5f9; color: var(--text-dark-muted); padding: 8px 16px; border-radius: 100px; font-size: 0.85rem; font-weight: 500; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }

.faq-section { padding: 40px 0 80px 0; max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border-light-theme); border-radius: 16px; margin-bottom: 16px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); overflow: hidden; }
.faq-item details { padding: 0; }
.faq-item summary { padding: 24px; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text-dark); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: background 0.3s;}
.faq-item summary:hover { background: rgba(0,0,0,0.01); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--accent-glow); transition: transform 0.3s; }
.faq-item details[open] summary::after { transform: rotate(45deg); }
.faq-content { padding: 0 24px 24px 24px; color: var(--text-dark-muted); font-size: 1rem; line-height: 1.6; border-top: 1px solid var(--border-light-theme); margin-top: 8px; padding-top: 16px; }

.cta-card { background: #ffffff; border-radius: 32px; padding: 64px; text-align: center; margin: 20px auto 60px auto; box-shadow: 0 20px 50px rgba(0,0,0,0.05); border: 1px solid var(--border-light-theme); position: relative; overflow: hidden; max-width: 1000px;}
.cta-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: linear-gradient(90deg, var(--accent-glow), var(--accent-pink), var(--accent-joy)); }
.btn-massive { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--text-dark); color: #ffffff; padding: 20px 40px; border-radius: 100px; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; text-decoration: none; border: none; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.15); transition: all 0.3s ease; margin-top: 32px; }
.btn-massive:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.25); background: var(--accent-glow); }


/* --- 8. TELLIMUSLEHE (Order) SPETSIIFIKA --- */
.order-section { background-color: var(--bg-light-main); min-height: 100vh; padding: 140px 0 80px 0; position: relative; z-index: 10; }
.order-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; max-width: 1100px; margin: 0 auto; }
.order-form-wrapper { background: #ffffff; border: 1px solid var(--border-light-theme); border-radius: 24px; padding: 48px; box-shadow: 0 20px 40px rgba(0,0,0,0.04); }
.order-form-wrapper h1 { font-family: var(--font-heading); font-size: 2rem; color: var(--text-dark); margin-bottom: 8px; letter-spacing: -0.02em; }
.order-form-wrapper p.subtitle { color: var(--text-dark-muted); margin-bottom: 32px; font-size: 1.05rem; }

.order-summary-wrapper { background: var(--bg-deep); border-radius: 24px; padding: 40px; color: #ffffff; position: sticky; top: 100px; box-shadow: 0 30px 60px rgba(0,0,0,0.15); }
.summary-title { font-family: var(--font-heading); font-size: 1.25rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px; font-weight: 700; }
.summary-domain-box { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 16px; margin-bottom: 24px; display: flex; align-items: center; gap: 16px; }
.summary-domain-box .icon { width: 40px; height: 40px; background: rgba(59, 130, 246, 0.2); color: var(--accent-glow); border-radius: 8px; display: flex; justify-content: center; align-items: center; }
.summary-domain-box .details span { display: block; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.summary-domain-box .details strong { font-size: 1.1rem; color: #ffffff; }
.summary-package h3 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 8px; color: #ffffff; }
.summary-package .price { font-size: 1.5rem; color: var(--accent-glow); font-weight: 700; margin-bottom: 16px; }
.summary-features { list-style: none; padding: 0; margin: 24px 0; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; }
.summary-features li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 0.95rem; color: #e2e8f0; }
.summary-features li svg { color: #22c55e; width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.trust-badges { display: flex; align-items: center; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.trust-badges svg { width: 32px; height: 32px; color: var(--text-muted); }
.trust-badges span { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }


/* --- 9. KONTAKTI LEHE SPETSIIFIKA --- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 800px; margin: 60px auto 0 auto; position: relative; z-index: 10; }
.contact-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 24px; padding: 40px; text-align: center; transition: all 0.3s ease; backdrop-filter: blur(12px); }
.contact-card:hover { border-color: rgba(59, 130, 246, 0.3); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(59, 130, 246, 0.05); }
.contact-icon { width: 64px; height: 64px; background: rgba(255, 255, 255, 0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px auto; color: var(--text-main); border: 1px solid var(--border-light); }
.contact-card h3 { font-family: var(--font-heading); font-size: 1.25rem; color: var(--text-main); margin-bottom: 12px; }
.contact-card p, .contact-card a { color: var(--text-muted); font-size: 1rem; text-decoration: none; transition: color 0.3s; }
.contact-card a:hover { color: var(--accent-glow); }
.form-section { background-color: var(--bg-light-main); color: var(--text-dark); padding: 100px 0; position: relative; z-index: 10; }
.form-container { max-width: 700px; margin: 0 auto; background: var(--bg-light-card); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 32px; padding: 60px; box-shadow: 0 20px 40px rgba(0,0,0,0.03), inset 0 0 0 1px rgba(255,255,255,0.5); }


/* --- 10. JURIIDILISED LEHED (Privacy & Terms) --- */
.legal-content-section { background-color: var(--bg-light-main); color: var(--text-dark); padding: 80px 0 120px 0; position: relative; z-index: 10; }
.legal-document { max-width: 800px; margin: 0 auto; background: #ffffff; border: 1px solid var(--border-light-theme); border-radius: 24px; padding: 60px; box-shadow: 0 20px 40px rgba(0,0,0,0.03); }
.legal-document h2 { font-family: var(--font-heading); font-size: 1.8rem; color: var(--text-dark); margin-top: 40px; margin-bottom: 16px; letter-spacing: -0.02em; }
.legal-document h2:first-child { margin-top: 0; }
.legal-document h3 { font-family: var(--font-heading); font-size: 1.25rem; color: var(--text-dark); margin-top: 32px; margin-bottom: 12px; }
.legal-document p, .legal-document li { font-size: 1.05rem; color: var(--text-dark-muted); line-height: 1.7; margin-bottom: 16px; }
.legal-document ul { margin-bottom: 24px; padding-left: 20px; }
.legal-document li { margin-bottom: 8px; }
.legal-document a { color: var(--accent-glow); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.legal-document a:hover { color: #2563eb; text-decoration: underline; }
.last-updated { font-size: 0.9rem !important; color: #94a3b8 !important; border-bottom: 1px solid var(--border-light-theme); padding-bottom: 24px; margin-bottom: 40px !important; }


/* --- 11. VEALEHT (404) --- */
.error-page-wrapper { min-height: 85vh; display: flex; align-items: center; justify-content: center; padding: 120px 24px 60px 24px; background-color: var(--bg-deep); position: relative; overflow: hidden; }
.error-visual-engine { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.error-sphere { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 70vw; height: 70vw; max-width: 800px; max-height: 800px; background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%); filter: blur(80px); }
.error-grid-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px); background-size: 50px 50px; mask-image: radial-gradient(circle at center, black, transparent 80%); -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%); }
.error-content { text-align: center; max-width: 650px; position: relative; z-index: 10; animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.big-404 { font-family: var(--font-heading); font-size: clamp(6rem, 20vw, 14rem); font-weight: 800; line-height: 1; margin-bottom: 0; position: relative; background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.1) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -0.05em; filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.2)); }
.floating-sensor { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--accent-glow); opacity: 0.15; width: 60%; height: auto; animation: pulse-sensor 4s ease-in-out infinite; z-index: -1; }
@keyframes pulse-sensor { 0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.1; } 50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.2; } 100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.1; } }
.error-title { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.5rem); margin-top: -10px; margin-bottom: 20px; color: var(--text-main); letter-spacing: -0.02em; }
.error-desc { color: var(--text-muted); font-size: clamp(1rem, 2vw, 1.15rem); margin-bottom: 40px; line-height: 1.6; }
.btn-group { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-primary-glow { background: var(--text-main); color: var(--bg-deep); padding: 16px 32px; border-radius: 100px; font-weight: 700; font-size: 1rem; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s ease; }
.btn-primary-glow:hover { transform: translateY(-2px); background: var(--accent-glow); color: #fff; box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3); }
.btn-ghost-light { display: inline-flex; padding: 16px 32px; border-radius: 100px; font-weight: 600; border: 1px solid rgba(255,255,255,0.15); color: #fff; text-decoration: none; transition: all 0.3s ease; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); }


/* --- 12. FOOTER & FAB (Mull) --- */
.footer-light { background: #ffffff; color: var(--text-dark-muted); border-top: 1px solid var(--border-light-theme); padding: 60px 0 40px 0; position: relative; z-index: 10;}
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-weight: 700; color: var(--text-dark); font-size: 1.2rem;}
.footer-brand svg { width: 28px; height: 28px; stroke: var(--text-dark); }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dark-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.3s; position: relative; z-index: 20;}
.footer-links a:hover { color: var(--text-dark); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--border-light-theme); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #94a3b8; flex-wrap: wrap; gap: 16px;}
.footer-email { font-weight: 600; color: var(--text-dark); text-decoration: none; position: relative; z-index: 20;}

.fab-container { position: fixed; bottom: 32px; right: 32px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; pointer-events: none; }
.fab-popup { background: #fff; border: 1px solid rgba(0,0,0,0.1); border-radius: 16px; padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); width: 280px; opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.95); pointer-events: none; transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s; transform-origin: bottom right; }
.fab-popup.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
.fab-popup-title { font-family: var(--font-heading); font-size: 1rem; color: var(--text-dark); margin-bottom: 8px; display: flex; align-items: center; gap: 8px;}
.fab-popup-desc { font-size: 0.85rem; color: var(--text-dark-muted); margin-bottom: 16px; line-height: 1.5; }
.fab-popup-btn { display: block; width: 100%; background: var(--accent-glow); color: #fff; text-align: center; padding: 10px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: background 0.2s;}
.fab-popup-btn:hover { background: #2563eb; }
.fab-button { pointer-events: auto; width: 60px; height: 60px; background: var(--text-dark); border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 10px 25px rgba(0,0,0,0.2); transition: transform 0.3s, background 0.3s; border: none; outline: none; position: relative; }
.fab-button:hover { transform: scale(1.05); background: var(--accent-glow); }
.fab-button svg { width: 26px; height: 26px; color: #fff; position: absolute; transition: transform 0.3s ease, opacity 0.3s ease; }
.fab-icon-close { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.fab-button.active .fab-icon-open { opacity: 0; transform: rotate(90deg) scale(0.5); }
.fab-button.active .fab-icon-close { opacity: 1; transform: rotate(0) scale(1); }

/* --- SEO vs GEO Evolutsioon --- */
.geo-evolution-section { margin: 80px 0; padding-top: 40px; border-top: 1px solid rgba(0,0,0,0.05); }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-bottom: 60px; }

.compare-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 24px; padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
.compare-card.geo-card { background: #f8fafc; border: 2px solid var(--accent-glow); box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1); position: relative; }

.geo-badge { position: absolute; top: -14px; right: 32px; background: var(--accent-glow); color: #fff; padding: 6px 16px; border-radius: 100px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

.compare-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.compare-icon-wrap { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.icon-seo { background: #f1f5f9; color: #64748b; }
.icon-geo { background: rgba(59, 130, 246, 0.15); color: var(--accent-glow); }

.compare-title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-dark); margin: 0; }
.compare-desc { color: var(--text-dark-muted); line-height: 1.6; margin-bottom: 24px; }

.compare-list { list-style: none; padding: 0; font-size: 0.95rem; }
.compare-list li { margin-bottom: 8px; display: flex; gap: 8px; }
.compare-list strong { color: #0f172a; }
.seo-list { color: #64748b; }
.geo-list { color: #475569; }

.geo-summary-box { background: #ffffff; border-radius: 24px; padding: 48px; border: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 24px; }
.geo-summary-title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-dark); margin: 0; }
.geo-summary-text { color: var(--text-dark-muted); font-size: 1.05rem; line-height: 1.7; margin: 0; }
.geo-summary-highlight { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-weight: 600; color: var(--text-dark); }

@media (max-width: 768px) {
    .geo-summary-box { padding: 32px 24px; }
    .compare-card { padding: 32px 24px; }
}

/* --- 13. MEDIA QUERIES (Mobiilivaade) --- */
@media (max-width: 992px) {
    .order-layout { grid-template-columns: 1fr; }
    .order-summary-wrapper { position: static; order: -1; }
    .order-form-wrapper { padding: 32px 24px; }
}

@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .nav-links .nav-link, .nav-links .btn-nav { display: none; }
    .cta-card { padding: 40px 24px; margin-top: 40px;}
    .footer-content { flex-direction: column; text-align: center; justify-content: center; }
    .footer-links { justify-content: center; }
    .footer-bottom { justify-content: center; text-align: center; }
    .fab-container { bottom: 20px; right: 20px; }
    .fab-popup { width: calc(100vw - 40px); }
    .dash-sidebar { display: none; }
    .dash-body { height: auto; flex-direction: column; }
    .dash-content { padding: 16px; }
    .task-item { flex-direction: column; gap: 12px; }
    .task-tags { margin-left: 0; justify-content: flex-start; }
    .list-fade-out { position: relative; height: 80px; background: transparent; margin-top: 20px; }
}

@media (max-width: 768px) {
    .form-container { padding: 32px 20px; border-radius: 24px; }
    .page-hero, .contact-hero, .legal-hero { padding-top: 120px; padding-bottom: 40px;}
    .legal-document { padding: 32px 20px; border-radius: 16px; }
    .legal-content-section { padding: 40px 0 80px 0; }
}

@media (max-width: 600px) {
    .type-selector { flex-wrap: wrap; justify-content: center; }
    .input-group { flex-direction: column; background: transparent; border: none; padding: 0; }
    .input-field { width: 100%; border: 1px solid var(--border-light); border-radius: 12px; margin-bottom: 12px; background: rgba(255,255,255,0.05); }
    .btn-submit { width: 100%; justify-content: center; padding: 16px; border-radius: 12px; }
    .result-wrapper { padding: 24px; }
    .result-header { flex-direction: column; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn-primary-glow, .btn-ghost-light { width: 100%; justify-content: center; }
}