/* ============================================================
   GEO-SEO Analyzer — landningssida (lila/cyan AI-tema)
   ============================================================ */

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

:root {
    --primary: #4a1d96;
    --primary-light: #7c3aed;
    --primary-lighter: #a78bfa;
    --accent: #06b6d4;
    --accent-light: #67e8f9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-light: #f8fafc;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #cbd5e1;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

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

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    color: var(--white);
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px;
    position: relative;
    z-index: 2;
}

.logo { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; }

.logo-mark {
    background: var(--accent);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 800;
}

.logo-accent { color: var(--accent-light); margin-left: 4px; }

.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    padding: 40px 24px 0;
    align-items: start;
    position: relative;
    z-index: 2;
}

.hero-text h1 { font-size: 48px; line-height: 1.15; font-weight: 800; margin-bottom: 24px; }
.hero-text .accent { color: var(--accent-light); }
.hero-sub { font-size: 18px; color: rgba(255, 255, 255, 0.9); margin-bottom: 32px; max-width: 520px; }

.trust-row { display: flex; gap: 40px; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-size: 28px; color: var(--accent-light); font-weight: 800; }
.trust-item span { color: rgba(255, 255, 255, 0.7); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }

/* FORM */
.form-card {
    background: var(--white);
    color: var(--text);
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(74, 29, 150, 0.3);
    z-index: 2;
    position: relative;
}

.form-card h2 { font-size: 24px; margin-bottom: 24px; color: var(--primary); }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.form-group small { display: block; margin-top: 4px; font-size: 12px; color: var(--text-light); }

button[type="submit"] {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}
button[type="submit"]:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(74, 29, 150, 0.2);
}
button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }

.disclaimer-mini {
    margin-top: 14px;
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    line-height: 1.4;
}

/* STATUS / RESULT */
#status-panel, #result-panel, #error-panel { margin-top: 20px; }

.status-box {
    padding: 20px;
    background: var(--bg-light);
    border: 1.5px solid var(--accent);
    border-radius: 8px;
    text-align: center;
}

.status-spinner {
    width: 32px; height: 32px; margin: 0 auto 12px;
    border: 3px solid var(--border);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

#status-message { color: var(--text); font-weight: 500; }

.result-box {
    padding: 24px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ecfeff 100%);
    border: 1.5px solid var(--primary-light);
    border-radius: 8px;
}
.result-box h3 { color: var(--primary); margin-bottom: 12px; }

.download-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.2s;
}
.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(74, 29, 150, 0.3);
}

.error-box {
    padding: 16px;
    background: #fef2f2;
    border: 1.5px solid var(--danger);
    border-radius: 8px;
    color: var(--danger);
}
.error-box p { margin-top: 6px; color: var(--text); }

/* SECTIONS */
.section { padding: 80px 0; }
.section.bg-light { background: var(--bg-light); }
.section h2 { font-size: 36px; color: var(--primary); margin-bottom: 48px; text-align: center; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { text-align: center; padding: 24px; }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 12px; color: var(--primary); }
.step p { color: var(--text-light); font-size: 14px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}
.feature:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(74, 29, 150, 0.1); }
.feature h3 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.feature p { color: var(--text-light); font-size: 14px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-list summary {
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    background: var(--white);
    transition: background 0.2s;
}
.faq-list summary:hover { background: var(--bg-light); }
.faq-list details[open] summary { border-bottom: 1px solid var(--border); }
.faq-list details p { padding: 18px 20px; color: var(--text-light); background: var(--bg-light); }
.faq-list details em { color: var(--primary-light); font-style: normal; font-weight: 600; }

/* Footer */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.75);
    padding: 40px 0;
    text-align: center;
    font-size: 13px;
}
.footer a { color: var(--accent-light); text-decoration: none; }
.footer p { margin: 8px 0; }
.footer .disclaimer { max-width: 720px; margin: 16px auto 0; font-size: 11px; color: rgba(255, 255, 255, 0.5); }

/* Responsive */
@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-text h1 { font-size: 36px; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}

@media (max-width: 600px) {
    .hero-text h1 { font-size: 28px; }
    .steps-grid { grid-template-columns: 1fr; }
    .section h2 { font-size: 28px; }
    .form-card { padding: 24px; }
}
