/* ==========================================================================
   landing.css — Landingpage (index.cfm)
   ========================================================================== */

:root[data-theme="light"] {
    --bg:            #ffffff;
    --bg-soft:       #f5f8fb;
    --bg-accent:     #eaf5c6;
    --text:          #0e1624;
    --text-muted:    #5d6d7e;
    --text-hint:     #8a97a8;
    --border:        #e8ecf0;
    --card-bg:       #ffffff;
    --card-shadow:   0 8px 32px rgba(0,0,0,0.06);
    --showcase-a:    #91b508;
    --showcase-b:    #377a1d;
    --showcase-c:    #2a5a12;
    --input-bg:      #ffffff;
    --input-border:  #d5dde6;
    --topbar-bg:     rgba(255,255,255,0.85);
    --topbar-border: rgba(0,0,0,0.05);
}
:root[data-theme="dark"] {
    --bg:            #0b1320;
    --bg-soft:       #0e1826;
    --bg-accent:     #1b2810;
    --text:          #e9eef4;
    --text-muted:    #a8b5c5;
    --text-hint:     #7f8b9c;
    --border:        #223046;
    --card-bg:       #141e2e;
    --card-shadow:   0 8px 32px rgba(0,0,0,0.4);
    --showcase-a:    #1f3a0c;
    --showcase-b:    #0e2408;
    --showcase-c:    #05100a;
    --input-bg:      #1a2538;
    --input-border:  #2a3546;
    --topbar-bg:     rgba(11,19,32,0.8);
    --topbar-border: rgba(255,255,255,0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg); color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}
a { color: #377a1d; text-decoration: none; }
a:hover { text-decoration: underline; }
:root[data-theme="dark"] a { color: #a8e050; }

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
    position: sticky; top: 0; z-index: 40;
    background: var(--topbar-bg); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--topbar-border);
}
.topbar-inner {
    max-width: 1200px; margin: 0 auto; padding: 14px 32px;
    display: flex; align-items: center; gap: 16px;
}
.topbar .logo {
    font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none;
}
.topbar .logo::before { content: "🤖 "; }
.topbar .nav-gap { flex: 1; }
.topbar .nav-link {
    color: var(--text-muted); font-size: 14px; font-weight: 500;
    padding: 6px 10px; border-radius: 6px;
}
.topbar .nav-link:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }

.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    text-decoration: none; border: 0; transition: all 0.18s;
}
.btn-primary {
    background: linear-gradient(135deg, #91b508, #6a8a00); color: #fff;
    box-shadow: 0 4px 14px rgba(145,181,8,0.3);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(145,181,8,0.5); text-decoration: none; }
.btn-ghost {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }

.theme-toggle {
    background: transparent; border: 1px solid var(--border);
    color: var(--text-muted); width: 36px; height: 36px;
    border-radius: 8px; cursor: pointer; font-size: 15px;
}
.theme-toggle:hover { color: var(--text); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    padding: 64px 32px 48px;
    max-width: 1200px; margin: 0 auto;
}
.hero-grid {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
    align-items: center;
}
.hero h1 {
    font-size: 46px; line-height: 1.1; margin: 0 0 18px;
    letter-spacing: -1px; font-weight: 800;
}
.hero h1 .accent { color: #91b508; }
.hero .lead {
    font-size: 18px; color: var(--text-muted); margin: 0 0 28px;
    max-width: 540px;
}
.hero .cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .badges {
    margin-top: 32px; display: flex; gap: 18px; flex-wrap: wrap;
    color: var(--text-hint); font-size: 13px;
}
.hero .badges span::before { content: "✓  "; color: #91b508; font-weight: 700; }

/* ── Showcase (Bot + Chat-Demo) ─────────────────────────── */
.showcase {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--showcase-a) 0%, var(--showcase-b) 55%, var(--showcase-c) 100%);
    background-size: 200% 200%; animation: showGrad 18s ease-in-out infinite;
    color: #fff; padding: 32px; border-radius: 22px;
    min-height: 440px;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 0 20px 60px rgba(55,122,29,0.25);
}
@keyframes showGrad {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.showcase::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.10), transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(255,255,255,0.06), transparent 50%);
}
.bot-wrap {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.bot-svg {
    width: 56px; height: 56px;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.2));
    animation: botWake 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes botWake {
    0%   { transform: translateY(30px) scale(0.8); opacity: 0; }
    60%  { transform: translateY(-4px) scale(1.03); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
.bot-svg .eye { animation: blink 4.6s infinite; transform-origin: center; }
.bot-svg .eye.right { animation-delay: 0.05s; }
@keyframes blink { 0%,92%,96%,100% { transform: scaleY(1); } 94% { transform: scaleY(0.1); } }
.bot-intro h3 { font-size: 18px; margin: 0 0 2px; font-weight: 700; }
.bot-intro p  { margin: 0; font-size: 13px; opacity: 0.85; }

.scene-tabs {
    display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap;
    position: relative; z-index: 1;
}
.scene-tab {
    padding: 5px 12px; border-radius: 18px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
    color: #fff; font-size: 11px; font-weight: 600; cursor: pointer;
}
.scene-tab:hover  { background: rgba(255,255,255,0.20); }
.scene-tab.active { background: rgba(255,255,255,0.95); color: #1a2332; border-color: transparent; }

.chat-demo {
    flex: 1; position: relative; z-index: 1;
    display: flex; flex-direction: column; gap: 7px; overflow: hidden;
}
.msg {
    max-width: 82%; padding: 9px 13px; border-radius: 14px;
    font-size: 13px; line-height: 1.4;
    animation: msgIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes msgIn {
    0%   { transform: translateY(8px); opacity: 0; }
    100% { transform: translateY(0);   opacity: 1; }
}
.msg.user {
    align-self: flex-end;
    background: rgba(255,255,255,0.15); color: #fff;
    border-bottom-right-radius: 4px; backdrop-filter: blur(6px);
}
.msg.bot {
    align-self: flex-start;
    background: #fff; color: #1a2332;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.msg .cursor {
    display: inline-block; width: 2px; height: 1em;
    background: currentColor; vertical-align: text-bottom; margin-left: 1px;
    animation: cursorBlink 0.9s infinite;
}
@keyframes cursorBlink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

/* Quick-Reply-Chips in Bot-Bubble */
.qr-chips {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.qr-chip {
    padding: 4px 11px; border-radius: 14px;
    background: #eaf5c6; color: #2a4a08; border: 1px solid #b8cf70;
    font-size: 11.5px; font-weight: 500;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.qr-chip.picked {
    background: #91b508; color: #fff; border-color: #91b508;
    transform: scale(1.06);
    box-shadow: 0 2px 8px rgba(145,181,8,0.4);
}

/* Feedback 👍/👎 in Bot-Bubble */
.fb-row {
    display: flex; gap: 6px; margin-top: 8px; align-items: center;
}
.fb-btn {
    width: 26px; height: 26px; border-radius: 50%;
    background: #f4f6f8; border: 1px solid #e0e6ec;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; line-height: 1;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.fb-btn.picked {
    background: #eaf5c6; border-color: #91b508;
    transform: scale(1.18);
    box-shadow: 0 2px 8px rgba(145,181,8,0.35);
}
.fb-thanks {
    display: inline-block; margin-left: 8px;
    font-size: 11px; color: #5a7a28; font-style: italic;
    opacity: 0; animation: fbThanksIn 0.3s forwards;
}
@keyframes fbThanksIn { to { opacity: 1; } }

/* ── Features ────────────────────────────────────────────── */
.features {
    padding: 80px 32px 48px; max-width: 1200px; margin: 0 auto;
}
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 34px; margin: 0 0 10px; letter-spacing: -0.5px; }
.section-head p  { color: var(--text-muted); font-size: 16px; max-width: 640px; margin: 0 auto; }

.feat-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feat-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 14px; padding: 28px;
    box-shadow: var(--card-shadow);
    transition: transform 0.15s, box-shadow 0.2s;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.feat-icon {
    width: 44px; height: 44px; border-radius: 11px;
    background: var(--bg-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 16px;
}
.feat-card h3 { font-size: 17px; margin: 0 0 6px; }
.feat-card p  { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ── Benefits ────────────────────────────────────────────── */
.benefits {
    padding: 24px 32px 72px; max-width: 1200px; margin: 0 auto;
}
.bene-block + .bene-block { margin-top: 56px; }
.bene-head { margin-bottom: 28px; }
.bene-head h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.4px; }
.bene-head h2 .em { color: #377a1d; }
:root[data-theme="dark"] .bene-head h2 .em { color: #a8e050; }
.bene-head p  { margin: 0; color: var(--text-muted); font-size: 15px; max-width: 640px; }

.bene-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 40px;
}
.bene-item { display: flex; gap: 14px; align-items: flex-start; }
.bene-ico {
    flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--bg-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.bene-item h4 { margin: 0 0 3px; font-size: 15.5px; font-weight: 600; color: var(--text); }
.bene-item p  { margin: 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.55; }

/* ── CTA-Banner ─────────────────────────────────────────── */
.cta-banner {
    max-width: 1200px; margin: 0 32px 80px;
    background: linear-gradient(135deg, #91b508, #377a1d);
    background-size: 200% 200%; animation: showGrad 14s ease-in-out infinite;
    border-radius: 18px; padding: 48px; text-align: center; color: #fff;
}
@media (min-width: 1265px) { .cta-banner { margin-left: auto; margin-right: auto; } }
.cta-banner h2 { font-size: 30px; margin: 0 0 10px; letter-spacing: -0.5px; }
.cta-banner p  { margin: 0 0 24px; opacity: 0.92; font-size: 16px; }
.cta-banner .cta-row {
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.cta-banner .btn-light {
    background: #fff; color: #377a1d;
}
.cta-banner .btn-light:hover { background: #f4fbdf; }
.cta-banner .btn-line {
    background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6);
}
.cta-banner .btn-line:hover { background: rgba(255,255,255,0.12); }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
    padding: 32px; border-top: 1px solid var(--border);
    color: var(--text-hint); font-size: 13px;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}
.footer-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-links .sep { color: var(--text-hint); opacity: 0.6; }

/* ── Modal (Interesse) ──────────────────────────────────── */
.modal[hidden] { display: none !important; }
.modal {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(12,22,40,0.55); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 24px;
    animation: fadeIn 0.18s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
    position: relative; width: 100%; max-width: 480px;
    background: var(--card-bg); color: var(--text);
    border-radius: 14px; padding: 28px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    max-height: 92vh; overflow-y: auto;
    animation: slideUp 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-card h3 { margin: 0 0 4px; font-size: 20px; }
.modal-card .lead-sm { color: var(--text-muted); font-size: 13px; margin: 0 0 20px; }
.modal-card .field { margin-bottom: 12px; }
.modal-card label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.modal-card input, .modal-card textarea {
    width: 100%; padding: 9px 12px; font-size: 13px;
    border: 1px solid var(--input-border); border-radius: 6px;
    background: var(--input-bg); color: var(--text);
    font-family: inherit; resize: vertical;
}
.modal-card input:focus, .modal-card textarea:focus {
    outline: none; border-color: #91b508;
    box-shadow: 0 0 0 3px rgba(145,181,8,0.15);
}
.modal-close {
    position: absolute; top: 12px; right: 14px;
    background: transparent; border: 0; font-size: 24px;
    color: var(--text-muted); cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.honey { display: none !important; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.modal-actions .btn-secondary {
    background: transparent; color: var(--text-muted); border: 1px solid var(--border);
}
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; }
.alert-success { background: rgba(39,174,96,0.12); color: #155724; border: 1px solid rgba(39,174,96,0.3); }
.alert-error   { background: rgba(231,76,60,0.12); color: #721c24; border: 1px solid rgba(231,76,60,0.3); }
:root[data-theme="dark"] .alert-success { color: #86ffb3; }
:root[data-theme="dark"] .alert-error   { color: #ffaea5; }

/* ── Breakpoints ────────────────────────────────────────── */
@media (max-width: 1100px) and (min-width: 901px) {
    .feat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .showcase  { min-height: 380px; }
    .feat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .topbar-inner { padding: 10px 16px; gap: 8px; flex-wrap: wrap; }
    .topbar .logo { font-size: 15px; }
    .topbar .nav-link { display: none; }
    .topbar .nav-gap { flex: 1; }
    .theme-toggle { width: 34px; height: 34px; }
    .btn { padding: 8px 14px; font-size: 13px; }

    .hero { padding: 32px 16px 24px; }
    .hero-grid { gap: 24px; }
    .hero h1 { font-size: 30px; letter-spacing: -0.5px; }
    .hero .lead { font-size: 15px; margin-bottom: 20px; }
    .hero .cta-row .btn { flex: 1; justify-content: center; }
    .hero .badges { gap: 10px 14px; font-size: 12px; }

    .showcase { padding: 20px; border-radius: 16px; min-height: 340px; }
    .bot-svg { width: 44px; height: 44px; }
    .bot-intro h3 { font-size: 16px; }
    .bot-intro p  { font-size: 12px; }
    .scene-tab { padding: 4px 10px; font-size: 10px; }
    .msg { font-size: 12px; padding: 8px 11px; max-width: 88%; }

    .features { padding: 48px 16px 24px; }
    .section-head { margin-bottom: 28px; }
    .section-head h2 { font-size: 24px; }
    .section-head p  { font-size: 14px; }
    .feat-grid { gap: 14px; }
    .feat-card { padding: 20px; }
    .feat-card h3 { font-size: 16px; }
    .feat-card p  { font-size: 13px; }

    .benefits { padding: 24px 16px 48px; }
    .bene-block + .bene-block { margin-top: 40px; }
    .bene-head h2 { font-size: 22px; }
    .bene-head p  { font-size: 14px; }
    .bene-grid { grid-template-columns: 1fr; gap: 18px; }
    .bene-ico { width: 36px; height: 36px; font-size: 18px; }

    .cta-banner { margin: 0 16px 48px; padding: 32px 22px; border-radius: 14px; }
    .cta-banner h2 { font-size: 22px; }
    .cta-banner p  { font-size: 14px; }

    .footer { padding: 24px 16px; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; }

    .modal { padding: 12px; }
    .modal-card { padding: 22px 20px; }
    .modal-card h3 { font-size: 18px; }
    .modal-actions { flex-direction: column-reverse; }
    .modal-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
    .topbar-inner { padding: 8px 12px; }
    .topbar .logo { font-size: 14px; }
    .topbar .logo::before { content: "🤖"; margin-right: 4px; }
    .btn { padding: 7px 12px; font-size: 12px; }
    .hero h1 { font-size: 26px; }
    .section-head h2 { font-size: 22px; }
    .bene-head h2 { font-size: 20px; }
    .cta-banner h2 { font-size: 20px; }
}
