:root {
    --bg: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-window: rgba(246, 246, 246, 0.82);
    --bg-toolbar: rgba(238, 238, 238, 0.72);
    --border: rgba(0, 0, 0, 0.10);
    --text: #1d1d1f;
    --text-muted: #6e6e73;
    --accent: #007aff;
    --accent-hover: #0066d6;
    --success: #28c840;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.18), 0 6px 18px rgba(0, 0, 0, 0.10);
    --shadow-hover: 0 30px 80px rgba(0, 0, 0, 0.24), 0 10px 24px rgba(0, 0, 0, 0.14);
    --radius: 12px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
[data-theme="dark"] {
    --bg: linear-gradient(135deg, #1a1a1f 0%, #2a2a35 100%);
    --bg-card: rgba(40, 40, 43, 0.78);
    --bg-window: rgba(40, 40, 43, 0.82);
    --bg-toolbar: rgba(52, 52, 56, 0.78);
    --border: rgba(255, 255, 255, 0.10);
    --text: #f5f5f7;
    --text-muted: #98989d;
    --accent: #0a84ff;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.55), 0 6px 18px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); background-attachment: fixed; color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; transition: background 0.3s, color 0.3s; }
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--bg-toolbar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 0.5px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.nav-logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px rgba(40,200,64,0.5); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 6px 14px; background: var(--accent); color: #fff !important; border-radius: 999px; font-weight: 500; }
.nav-cta:hover { background: var(--accent-hover); }
.theme-toggle { background: transparent; border: none; font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.theme-toggle:hover { background: rgba(128,128,128,0.15); }
.hero { padding: 120px 24px 80px; text-align: center; }
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero-badge { display: inline-block; padding: 6px 14px; background: var(--bg-card); border: 0.5px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--text-muted); margin-bottom: 24px; backdrop-filter: blur(20px); }
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 20px; }
.hero .accent { background: linear-gradient(135deg, #0a84ff, #5e5ce6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 640px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.btn { padding: 12px 24px; border-radius: 12px; font-size: 15px; font-weight: 500; font-family: var(--font); cursor: pointer; border: none; transition: transform 0.12s, background 0.15s, box-shadow 0.15s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(0,122,255,0.35); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 20px rgba(0,122,255,0.45); }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 0.5px solid var(--border); backdrop-filter: blur(20px); }
.btn-secondary:hover { background: rgba(128,128,128,0.15); }
.btn.big { padding: 16px 32px; font-size: 17px; }
.btn.full { width: 100%; }
.window-preview { perspective: 1000px; margin-top: 40px; }
.window { width: 100%; max-width: 720px; margin: 0 auto; background: var(--bg-window); backdrop-filter: saturate(180%) blur(30px); border: 0.5px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; animation: appear 0.5s cubic-bezier(0.2,0.9,0.3,1.15); }
@keyframes appear { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.window-titlebar { height: 44px; background: var(--bg-toolbar); border-bottom: 0.5px solid var(--border); display: flex; align-items: center; padding: 0 16px; position: relative; gap: 12px; }
.window-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,122,255,0.35);
}
.burger-line {
    display: block;
    width: 12px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}
.window-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.title-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
.window-content { padding: 24px; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.chat-message { display: flex; }
.chat-message.user { justify-content: flex-end; }
.bubble { max-width: 80%; padding: 12px 16px; border-radius: 18px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.chat-message.user .bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-message.assistant .bubble { background: rgba(128,128,128,0.15); color: var(--text); border-bottom-left-radius: 4px; }
.chat-message.assistant code { background: rgba(0,0,0,0.15); padding: 2px 6px; border-radius: 4px; font-family: "SF Mono", Menlo, monospace; font-size: 12px; }
.chat-message.assistant a { color: var(--accent); text-decoration: none; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 80px 24px; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; text-align: center; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-sub { font-size: 17px; color: var(--text-muted); text-align: center; margin-bottom: 56px; }
.steps { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.step { flex: 1; min-width: 220px; max-width: 300px; background: var(--bg-card); backdrop-filter: blur(20px); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 20px; font-weight: 600; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }
.step-arrow { font-size: 24px; color: var(--text-muted); font-weight: 300; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.price-card { background: var(--bg-card); backdrop-filter: blur(20px); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 32px; position: relative; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.price-card.featured { border: 1.5px solid var(--accent); box-shadow: 0 0 0 4px rgba(0,122,255,0.1); }
.price-card .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.price-card h3 { font-size: 18px; margin-bottom: 12px; }
.price { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.price span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.price-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.price-card ul { list-style: none; margin-bottom: 24px; flex-grow: 1; }
.price-card li { padding: 8px 0; font-size: 14px; border-bottom: 0.5px solid var(--border); }
.price-card li:last-child { border-bottom: none; }
.pricing-note { max-width: 720px; margin: 32px auto 0; font-size: 12.5px; color: var(--text-muted); text-align: center; line-height: 1.6; }
.cta-final { text-align: center; padding: 80px 24px; }
.cta-final h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.cta-final p { font-size: 17px; color: var(--text-muted); margin-bottom: 32px; }
.footer { background: var(--bg-toolbar); backdrop-filter: blur(20px); border-top: 0.5px solid var(--border); padding: 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-disclaimer { max-width: 1200px; margin: 16px auto 0; padding-top: 16px; border-top: 0.5px solid var(--border); font-size: 11.5px; color: var(--text-muted); line-height: 1.6; }
.footer-disclaimer p { margin-bottom: 6px; }
.footer-disclaimer p:last-child { margin-bottom: 0; }

/* CHAT WIDGET — draggable */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: none; user-select: none; }
.chat-widget.open { display: block; animation: appear 0.3s ease; }
.chat-widget.dragging { animation: none; transition: none; opacity: 0.95; }
.chat-window { width: 380px; height: 620px; background: var(--bg-window); backdrop-filter: saturate(180%) blur(30px); border: 0.5px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.chat-titlebar { height: 44px; background: var(--bg-toolbar); border-bottom: 0.5px solid var(--border); display: flex; align-items: center; padding: 0 12px; position: relative; flex-shrink: 0; gap: 10px; cursor: grab; }
.chat-titlebar:active { cursor: grabbing; }
.chat-widget.dragging .chat-titlebar { cursor: grabbing; }
.chat-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 6px; pointer-events: none; }
.chat-close-btn {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 5px 9px;
    border-radius: 7px;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    font-family: var(--font);
}
.chat-close-btn:hover { background: rgba(255, 59, 48, 0.15); color: #ff3b30; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-input-area { padding: 12px; border-top: 0.5px solid var(--border); display: flex; gap: 8px; background: rgba(0,0,0,0.02); flex-shrink: 0; }
.chat-input-area input { flex: 1; padding: 10px 14px; border-radius: 999px; border: 0.5px solid var(--border); background: rgba(128,128,128,0.1); color: var(--text); font-size: 14px; font-family: var(--font); outline: none; }
.chat-input-area input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,122,255,0.2); }
.send-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; border: none; cursor: pointer; font-size: 15px; flex-shrink: 0; }
.send-btn:hover { background: var(--accent-hover); }
.typing-dots { display: inline-flex; gap: 4px; }
.typing-dots span { width: 6px; height: 6px; background: currentColor; border-radius: 50%; animation: dot 1.4s infinite ease-in-out; opacity: 0.6; }
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.30s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* CASES */
.cases-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.filter-btn { padding: 8px 16px; border-radius: 999px; background: var(--bg-card); border: 0.5px solid var(--border); color: var(--text-muted); font-size: 13px; font-family: var(--font); cursor: pointer; transition: all 0.15s; backdrop-filter: blur(20px); display: inline-flex; align-items: center; gap: 6px; }
.filter-btn:hover { background: rgba(128,128,128,0.15); color: var(--text); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.filter-count { font-size: 11px; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,0.15); }
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.case-card { background: var(--bg-card); backdrop-filter: blur(20px); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: transform 0.2s, box-shadow 0.2s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.case-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.case-category { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.case-metric { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.case-title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.case-block { display: flex; flex-direction: column; gap: 4px; }
.case-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.case-block p { font-size: 13.5px; line-height: 1.5; color: var(--text); }
.case-result { font-weight: 600; color: var(--success) !important; }
.case-demo-btn { margin-top: auto; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #fff; border: none; font-size: 13px; font-weight: 500; font-family: var(--font); cursor: pointer; transition: background 0.15s, transform 0.12s; }
.case-demo-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.cases-empty { text-align: center; color: var(--text-muted); padding: 60px 20px; }

/* LLM SECTION */
.llm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 40px; }
.llm-card { background: var(--bg-card); backdrop-filter: blur(20px); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform 0.2s, box-shadow 0.2s; }
.llm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.llm-icon { font-size: 32px; margin-bottom: 12px; }
.llm-card h3 { font-size: 16px; margin-bottom: 8px; }
.llm-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.llm-card code { background: rgba(128,128,128,0.15); padding: 2px 6px; border-radius: 4px; font-family: "SF Mono", Menlo, monospace; font-size: 12px; color: var(--text); }
.llm-code { max-width: 640px; margin: 0 auto; background: var(--bg-window); border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.llm-code-header { padding: 10px 16px; background: var(--bg-toolbar); border-bottom: 0.5px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.llm-code pre { padding: 16px; font-family: "SF Mono", Menlo, monospace; font-size: 13px; line-height: 1.6; color: var(--text); overflow-x: auto; }

/* CHAT CONTACT BLOCK */
.chat-contact { padding: 14px; border-top: 0.5px solid var(--border); background: rgba(0,122,255,0.06); display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.chat-contact-title { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 2px; }
.chat-contact-hint { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.chat-contact-mail { display: block; text-align: center; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; transition: background 0.15s, transform 0.12s; }
.chat-contact-mail:hover { background: var(--accent-hover); transform: translateY(-1px); }
.chat-contact-copy { padding: 8px 12px; border-radius: 10px; background: rgba(128,128,128,0.12); color: var(--text); border: none; font-size: 12px; font-weight: 500; font-family: var(--font); cursor: pointer; transition: background 0.15s; }
.chat-contact-copy:hover { background: rgba(128,128,128,0.22); }
.chat-contact-status { font-size: 11.5px; min-height: 14px; color: var(--text-muted); text-align: center; }
.chat-contact-status.ok { color: var(--success); }
.chat-contact-status.err { color: #ff3b30; }

/* DISCLAIMERS */
.mockup-disclaimer { max-width: 720px; margin: 12px auto 0; font-size: 11.5px; color: var(--text-muted); text-align: center; line-height: 1.5; opacity: 0.8; }
.section-disclaimer { max-width: 900px; margin: 40px auto 0; font-size: 11.5px; color: var(--text-muted); text-align: center; line-height: 1.5; opacity: 0.8; }
.chat-disclaimer { padding: 8px 12px 10px; font-size: 10.5px; line-height: 1.4; color: var(--text-muted); text-align: center; border-top: 0.5px solid var(--border); background: rgba(128,128,128,0.04); flex-shrink: 0; opacity: 0.85; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 100px 20px 40px; }
    .chat-window { width: calc(100vw - 32px); height: 75vh; }
    .steps { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
}
