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

:root {
    --bg:       #0a0a0f;
    --bg2:      #0d0d18;
    --bg3:      #111120;
    --border:   rgba(255,255,255,0.07);
    --text:     #e8e8f0;
    --muted:    #6b6b8a;
    --accent:   #6c63ff;
    --accent2:  #a78bfa;
    --accent3:  #38bdf8;
    --green:    #34d399;
    --red:      #f87171;
    --yellow:   #fbbf24;
    --card:     rgba(255,255,255,0.03);
    --radius:   16px;
    --font:     'Inter', sans-serif;
    --mono:     'JetBrains Mono', monospace;
    --shadow:   0 24px 60px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }
body {
    background: var(--bg); color: var(--text);
    font-family: var(--font); font-size: 16px;
    line-height: 1.6; overflow-x: hidden;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

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

/* ─── Navbar ─── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(10,10,15,0.85);
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 24px; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 20px; font-weight: 700;
    color: var(--text); text-decoration: none;
}
.logo-icon { font-size: 22px; color: var(--accent); }
.nav-links {
    display: flex; list-style: none;
    align-items: center; gap: 32px;
}
.nav-links a {
    color: var(--muted); text-decoration: none;
    font-size: 14px; font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.btn-github {
    display: flex !important; align-items: center; gap: 6px;
    background: var(--card) !important;
    border: 1px solid var(--border);
    padding: 6px 14px; border-radius: 8px;
    color: var(--text) !important;
    transition: border-color 0.2s, background 0.2s !important;
}
.btn-github:hover {
    border-color: var(--accent) !important;
    background: rgba(108,99,255,0.1) !important;
}
.hamburger {
    display: none; background: none;
    border: none; color: var(--text);
    font-size: 22px; cursor: pointer;
}
.mobile-menu {
    display: none; flex-direction: column;
    padding: 12px 24px 16px;
    border-top: 1px solid var(--border);
    gap: 12px;
}
.mobile-menu a {
    color: var(--muted); text-decoration: none;
    font-size: 15px; font-weight: 500;
    padding: 8px 0;
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu.open { display: flex; }

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 120px 24px 80px;
    max-width: 1200px; margin: 0 auto;
    gap: 60px; position: relative;
}
.hero-bg {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
.grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(108,99,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108,99,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}
.glow {
    position: absolute; border-radius: 50%;
    filter: blur(120px); opacity: 0.12; pointer-events: none;
}
.glow-1 { width: 700px; height: 700px; background: var(--accent); top: -300px; left: -200px; }
.glow-2 { width: 500px; height: 500px; background: var(--accent3); bottom: -100px; right: -100px; }

.hero-content { flex: 1; max-width: 560px; }
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(108,99,255,0.1);
    border: 1px solid rgba(108,99,255,0.25);
    padding: 6px 14px; border-radius: 100px;
    font-size: 12px; font-weight: 500;
    color: var(--accent2); margin-bottom: 24px;
}
.badge-dot {
    width: 6px; height: 6px;
    background: var(--green); border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title {
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 800; line-height: 1.1;
    letter-spacing: -2px; margin-bottom: 20px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 18px; color: var(--muted);
    margin-bottom: 36px; line-height: 1.75;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.btn-primary {
    background: var(--accent); color: #fff;
    text-decoration: none; padding: 12px 28px;
    border-radius: 10px; font-weight: 600;
    font-size: 15px; border: none; cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text); text-decoration: none;
    padding: 12px 28px; border-radius: 10px;
    font-weight: 500; font-size: 15px;
    transition: border-color 0.2s, background 0.2s;
    display: inline-block;
}
.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(108,99,255,0.08);
}

.hero-stats { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 28px; font-weight: 800; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ─── Code / Terminal Windows ─── */
.hero-code { flex: 0 0 420px; display: flex; flex-direction: column; gap: 16px; }
.code-window, .terminal {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.code-header, .terminal-header {
    background: var(--bg2); padding: 12px 16px;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green  { background: var(--green); }
.code-title, .terminal-title {
    margin-left: 8px; font-size: 12px;
    color: var(--muted); font-family: var(--mono);
}
.code-body, .terminal-body {
    padding: 20px; font-family: var(--mono);
    font-size: 13px; line-height: 1.8; overflow-x: auto;
}
.xml-tag   { color: var(--accent2); }
.xml-val   { color: var(--green); }
.y-key     { color: var(--accent3); }
.y-colon   { color: var(--muted); }
.y-val     { color: var(--green); }
.y-bool    { color: var(--accent2); }
.y-num     { color: var(--yellow); }
.log-info  { color: var(--accent3); }
.log-val   { color: var(--green); }
.log-ok    { color: var(--green); }

/* ─── Section Headers ─── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block;
    background: rgba(108,99,255,0.1);
    border: 1px solid rgba(108,99,255,0.2);
    color: var(--accent2);
    font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 100px;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800; margin-bottom: 12px;
}
.section-header p { color: var(--muted); font-size: 16px; max-width: 500px; margin: 0 auto; }

/* ─── Libraries ─── */
.libraries { padding: 100px 0; background: var(--bg); }
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
    display: flex; flex-direction: column; gap: 14px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    border-color: rgba(108,99,255,0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(108,99,255,0.1);
}
.card.featured { border-color: rgba(108,99,255,0.2); }
.card.coming-soon { opacity: 0.55; }
.card.coming-soon:hover { opacity: 0.8; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-icon { font-size: 30px; }
.card-badge {
    background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.3);
    color: var(--green);
    font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 100px;
}
.card-badge.muted {
    background: rgba(255,255,255,0.04);
    border-color: var(--border);
    color: var(--muted);
}
.card h3 { font-size: 20px; font-weight: 700; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.card-features { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.card-features li { font-size: 13px; color: var(--muted); }
.card-modules {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.module {
    background: rgba(108,99,255,0.08);
    border: 1px solid rgba(108,99,255,0.15);
    color: var(--accent2);
    font-size: 11px; font-family: var(--mono);
    padding: 3px 8px; border-radius: 6px;
}
.card-footer {
    margin-top: auto;
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 10px;
    padding-top: 14px; border-top: 1px solid var(--border);
}
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px; padding: 3px 8px; border-radius: 6px;
}
.tag.muted { opacity: 0.5; }
.card-link {
    font-size: 13px; font-weight: 600;
    color: var(--accent2); text-decoration: none;
    transition: color 0.2s;
}
.card-link:hover { color: var(--accent); }
.card-link.muted { color: var(--muted); cursor: default; }

/* ─── How It Works ─── */
.how { padding: 80px 0; background: var(--bg2); }
.steps {
    display: flex; align-items: center;
    justify-content: center; gap: 16px;
    flex-wrap: wrap;
}
.step {
    flex: 1; min-width: 220px; max-width: 280px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
    text-align: center;
}
.step-num {
    font-size: 36px; font-weight: 800;
    color: var(--accent); opacity: 0.5;
    font-family: var(--mono); margin-bottom: 12px;
}
.step h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--muted); }
.step p code {
    background: rgba(108,99,255,0.1);
    color: var(--accent2); padding: 1px 5px;
    border-radius: 4px; font-family: var(--mono);
    font-size: 12px;
}
.step-arrow { font-size: 24px; color: var(--muted); }

/* ─── About ─── */
.about { padding: 100px 0; background: var(--bg); }
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
}
.about-text { display: flex; flex-direction: column; gap: 20px; }
.about-text h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800; line-height: 1.2;
}
.about-text p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.about-values { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.value {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px; border-radius: 12px;
    background: var(--card); border: 1px solid var(--border);
    transition: border-color 0.2s;
}
.value:hover { border-color: rgba(108,99,255,0.3); }
.value-icon { font-size: 22px; flex-shrink: 0; }
.value strong { display: block; font-size: 14px; margin-bottom: 2px; }
.value p { font-size: 13px; color: var(--muted); margin: 0; }

/* ─── Contact Section ─── */
.contact-section { padding: 100px 0; background: var(--bg2); }
.contact-form-wrap {
    max-width: 680px; margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius); padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input,
.form-group textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text); padding: 10px 14px;
    border-radius: 10px; font-size: 14px;
    outline: none; font-family: var(--font);
    transition: border-color 0.2s;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-status {
    margin-top: 12px; font-size: 13px;
    min-height: 20px; font-weight: 500;
}
.form-status.success { color: var(--green); }
.form-status.error   { color: var(--red); }

/* ─── Footer ─── */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; padding-bottom: 60px;
}
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; line-height: 1.7; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
    color: var(--muted); transition: color 0.2s;
    display: flex; align-items: center;
}
.social-links a:hover { color: var(--text); }
.footer-links h4 { font-size: 13px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.soon {
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.2);
    color: var(--yellow);
    font-size: 10px; padding: 1px 6px;
    border-radius: 4px; margin-left: 6px;
    font-weight: 600;
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
}
.footer-bottom .container {
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 13px; color: var(--muted); }

/* ─── Chatbot ─── */
.chatbot-trigger {
    position: fixed; bottom: 28px; right: 28px;
    background: var(--accent);
    border-radius: 100px;
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px;
    cursor: pointer; z-index: 999;
    box-shadow: 0 8px 32px rgba(108,99,255,0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}
.chatbot-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(108,99,255,0.6);
}
.chat-icon { font-size: 20px; line-height: 1; }
.chat-label { font-size: 13px; font-weight: 600; color: #fff; }
.chat-pulse {
    position: absolute; top: -2px; right: -2px;
    width: 12px; height: 12px;
    background: var(--green); border-radius: 50%;
    border: 2px solid var(--bg);
    animation: pulse 2s infinite;
}
.chatbot {
    position: fixed; bottom: 96px; right: 28px;
    width: 380px; max-height: 540px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex; flex-direction: column;
    z-index: 998; overflow: hidden;
    box-shadow: var(--shadow);
    transform: scale(0.9) translateY(10px);
    opacity: 0; pointer-events: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chatbot.open {
    transform: scale(1) translateY(0);
    opacity: 1; pointer-events: all;
}
.chat-header {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    padding: 14px 16px;
    display: flex; justify-content: space-between; align-items: center;
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center;
    justify-content: center; font-size: 18px;
}
.chat-header strong { display: block; font-size: 14px; color: #fff; }
.chat-status { font-size: 11px; color: rgba(255,255,255,0.75); }
.chat-close {
    background: rgba(255,255,255,0.1);
    border: none; color: #fff;
    width: 28px; height: 28px; border-radius: 50%;
    font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.chat-close:hover { background: rgba(255,255,255,0.2); }
.chat-messages {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 10px;
}
.chat-msg { display: flex; }
.chat-msg.bot  { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }
.msg-bubble {
    max-width: 82%; padding: 10px 14px;
    border-radius: 14px; font-size: 13px; line-height: 1.6;
}
.chat-msg.bot  .msg-bubble {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border); color: var(--text);
    border-bottom-left-radius: 4px;
}
.chat-msg.user .msg-bubble {
    background: var(--accent); color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-quick-replies { display: flex; flex-direction: column; gap: 6px; }
.chat-quick-replies button {
    background: rgba(108,99,255,0.08);
    border: 1px solid rgba(108,99,255,0.2);
    color: var(--accent2); padding: 9px 12px;
    border-radius: 10px; font-size: 12px;
    text-align: left; cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-family: var(--font);
}
.chat-quick-replies button:hover {
    background: rgba(108,99,255,0.18);
    border-color: rgba(108,99,255,0.4);
}
.chat-input-row {
    display: flex; gap: 8px; padding: 12px;
    border-top: 1px solid var(--border);
    background: var(--bg2);
}
.chat-input-row input {
    flex: 1; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text); padding: 9px 12px;
    border-radius: 10px; font-size: 13px;
    outline: none; font-family: var(--font);
    transition: border-color 0.2s;
}
.chat-input-row input:focus { border-color: var(--accent); }
.chat-send {
    background: var(--accent); border: none;
    color: #fff; padding: 9px 14px;
    border-radius: 10px; cursor: pointer;
    font-size: 14px; transition: opacity 0.2s;
}
.chat-send:hover { opacity: 0.85; }

/* ─── Reveal Animation ─── */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .hero { gap: 40px; }
    .hero-code { flex: 0 0 360px; }
}
@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; padding-top: 100px; }
    .hero-content { max-width: 100%; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-code { width: 100%; flex: unset; }
    .about-inner { grid-template-columns: 1fr; gap: 48px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .step-arrow { display: none; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    .footer-inner { grid-template-columns: 1fr; }
    .chatbot { width: calc(100vw - 32px); right: 16px; }
    .chatbot-trigger { padding: 12px 16px; }
    .chat-label { display: none; }
    .chatbot-trigger { border-radius: 50%; width: 56px; height: 56px; justify-content: center; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px; }
}