/* New sections (plans, features, brochure, contact), the Lumo demo bot,
   and the DARK theme. Loaded last. */

/* ── sections ───────────────────────────────────────────── */
.mc-sec { background: var(--bg-dark); }
.mc-grid { display: grid; gap: 22px; margin-top: 36px; }
.mc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mc-grid-4 { grid-template-columns: repeat(4, 1fr); }
.mc-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 22px;
  padding: 30px 26px; box-shadow: 0 8px 32px rgba(12, 21, 40, 0.08); display: flex; flex-direction: column;
}
.mc-card-hi { border: 2px solid var(--neon-blue); box-shadow: 0 18px 50px rgba(18, 70, 214, 0.18); }
.mc-badge { position: absolute; top: -13px; left: 26px; background: var(--neon-blue); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.mc-ico { font-size: 2rem; margin-bottom: 10px; }
.mc-card h3 { font-family: var(--font-display); font-size: 1.35rem; color: var(--text-main); margin-bottom: 6px; }
.mc-tag { color: var(--neon-cyan); font-weight: 600; font-size: .88rem; margin-bottom: 16px; }
.mc-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.mc-card li { color: var(--text-dim); font-size: .93rem; padding-left: 24px; position: relative; line-height: 1.45; }
.mc-card li::before { content: '✓'; position: absolute; left: 0; color: var(--neon-cyan); font-weight: 700; }
.mc-btn { align-self: flex-start; padding: 11px 22px; border-radius: 12px; border: 1.5px solid var(--neon-blue); color: var(--neon-blue); font-weight: 700; text-decoration: none; transition: all .2s; }
.mc-btn:hover, .mc-btn-fill { background: var(--neon-blue); color: #fff; }
.mc-feat { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 18px; padding: 22px; transition: transform .25s, box-shadow .25s; }
.mc-feat:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(12, 21, 40, 0.10); }
.mc-feat span { font-size: 1.6rem; }
.mc-feat h4 { font-family: var(--font-display); font-size: 1.05rem; color: var(--text-main); margin: 10px 0 6px; }
.mc-feat p { color: var(--text-dim); font-size: .88rem; line-height: 1.5; }
.mc-soon { margin-top: 22px; color: var(--text-muted); font-size: .88rem; }
.mc-brochure { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 28px; padding: 44px; }
.mc-brochure img { width: 100%; border-radius: 16px; box-shadow: 0 18px 50px rgba(12, 21, 40, 0.16); }

.mc-contact { background: var(--ground); position: relative; z-index: 20; }
.mc-tabs { display: flex; gap: 10px; justify-content: center; margin: -30px 0 22px; }
.mc-tab { padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--ink-2); font-weight: 600; cursor: pointer; }
.mc-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.mc-form { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.mc-form .qf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mc-form .qf-field { display: flex; flex-direction: column; gap: 6px; }
.mc-form .qf-lbl { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.mc-form input, .mc-form textarea { border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; font: inherit; background: var(--ground); color: var(--ink); outline: none; }
.mc-form input:focus, .mc-form textarea:focus { border-color: var(--brand); }
.mc-form .qf-btn { background: var(--brand); color: #fff; border: 0; border-radius: 12px; padding: 14px; font-weight: 700; cursor: pointer; }
.mc-form .qf-btn:disabled { opacity: .6; cursor: wait; }
.mc-form .form-msg.ok { color: #0a8a32; } .mc-form .form-msg.err { color: #cc0000; }
.mc-form .form-msg a { color: inherit; text-decoration: underline; }
.mc-stars { display: flex; gap: 6px; }
.mc-stars button { font-size: 1.9rem; background: none; border: 0; color: #c9d4ea; cursor: pointer; line-height: 1; }
.mc-stars button.on { color: #f59e0b; }
.mc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── Lumo demo bot ──────────────────────────────────────── */
.lb-fab { position: fixed; right: 24px; bottom: 24px; z-index: 900; width: 60px; height: 60px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6);
  background: radial-gradient(circle at 35% 30%, #6ea8ff, #1246d6 70%); box-shadow: 0 12px 34px rgba(18,70,214,.45); cursor: pointer; display: grid; place-items: center; transition: transform .2s, opacity .2s; }
.lb-fab:hover { transform: translateY(-3px); }
.lb-fab.gone { opacity: 0; transform: scale(.4); pointer-events: none; }
.lb-eyes { display: flex; gap: 9px; }
.lb-eye { width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .12s; }
.lb-fab.blink .lb-eye { transform: scaleY(.1); }
.lb-tip { position: absolute; right: calc(100% + 12px); white-space: nowrap; background: #0c1528; color: #fff; font-size: .75rem; padding: 6px 10px; border-radius: 8px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.lb-fab:hover .lb-tip { opacity: 1; }
.lb-dock { position: fixed; right: 24px; bottom: 24px; z-index: 960; width: min(390px, calc(100vw - 24px)); height: min(580px, calc(100vh - 110px));
  background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 28px 70px rgba(12,21,40,.28);
  display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(20px) scale(.97); pointer-events: none; transition: opacity .2s, transform .2s; }
.lb-dock.open { opacity: 1; transform: none; pointer-events: auto; }
.lb-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--brand); color: #fff; }
.lb-head small { display: block; opacity: .8; font-size: .72rem; }
.lb-close { background: rgba(255,255,255,.18); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.lb-feed { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.lb-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: .88rem; line-height: 1.5; white-space: pre-line; }
.lb-msg.bot { background: var(--ground); align-self: flex-start; border-bottom-left-radius: 4px; }
.lb-msg.me { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.lb-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-top: 1px solid var(--border); }
.lb-chip { flex: 0 0 auto; font-size: .75rem; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.lb-chip:hover { border-color: var(--brand); color: var(--brand); }
.lb-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.lb-input input { flex: 1; border: 1.5px solid var(--border); border-radius: 10px; padding: 10px; font: inherit; background: var(--ground); color: var(--ink); outline: none; }
.lb-input button { background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 0 16px; font-weight: 700; cursor: pointer; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) { .mc-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .mc-grid-3 { grid-template-columns: 1fr; }
  .mc-brochure { grid-template-columns: 1fr; padding: 26px; }
  .sec-layer { padding: 90px 18px; }
}
@media (max-width: 600px) {
  .mc-grid-4 { grid-template-columns: 1fr; }
  .mc-form { padding: 20px; } .mc-form .qf-row { grid-template-columns: 1fr; }
  .lb-fab { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .lb-dock { right: 8px; left: 8px; bottom: 8px; width: auto; height: calc(100vh - 90px); }
  .hero-stats-band { gap: 14px; }
}

/* ── DARK THEME (follows the system setting) ─────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-dark: #0a1422; --bg-deep: #0d1a2c; --bg-card: rgba(18, 31, 51, 0.92); --bg-card-hover: rgba(22, 38, 63, 0.97); --bg-glass: rgba(18, 31, 51, 0.8);
    --neon-cyan: #00c8a0; --neon-blue: #3b6ef5;
    --text-main: #eef3fb; --text-dim: #aab8cd; --text-muted: #6b7e9c; --text-mono: #6ea8ff;
    --border-subtle: rgba(255, 255, 255, 0.09); --border-glow: rgba(59, 110, 245, 0.4); --border-cyan: rgba(0, 200, 160, 0.4);
    --ground: #0d1a2c; --surface: #12203a; --ink: #eef3fb; --ink-2: #c3cfe2; --ink-3: #8193b0; --border: rgba(255, 255, 255, 0.10);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.35); --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
  html, body { background: var(--bg-dark); color: var(--text-main); }
  body::before { background-image: linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px); }
  .hud-nav, .hud-nav.scrolled { background: rgba(10, 20, 34, 0.9); }
  .nav-link { color: var(--text-dim); } .nav-link:hover { color: #fff; }
  .btn-cyber-ghost { background: var(--surface); color: var(--text-main); border-color: var(--border); }
  .brand-official-logo { content: url('../public/brand/logo-dark.png'); }
  .interactive-pill-card, .machine-card-3d, .suite-card, .screen-narrative-card, .floor-legend, .machine-state-switcher,
  .suite-filter-btn, .ai-console-window, .ai-chip-btn, .modal-window, .modal-close-btn, .btn-inspect-4k, .suite-badge-tag { background: var(--surface); color: var(--text-main); }
  .ai-lab-container { background: linear-gradient(145deg, #12203a, #0d1a2c); }
  .ai-console-header, .modal-header, .modal-footer { background: #0d1a2c; }
  .ai-bubble.bot, .sc-chip, .suite-spec-tag { background: #0d1a2c; color: var(--text-dim); }
  .hero-left { background: transparent; }
  .appsec, .faq { background: var(--ground) !important; }
  .faq-item, .app-dl, .phone-screen { background: var(--surface); color: var(--ink); }
  .faq-q { color: var(--ink); }
  .mc-stars button { color: #33435f; }
  .lb-dock { box-shadow: 0 28px 70px rgba(0,0,0,.6); }
}
@media (prefers-color-scheme: dark) and (max-width: 768px) {
  .hero-left { background: rgba(10, 20, 34, 0.78); }
}
/* phone: card grids must never be wider than the screen */
.suite-grid { grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); }
.matrix-grid { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
@media (max-width: 600px) { .screen-suite-sec { padding-left: 16px; padding-right: 16px; } .sec-title { font-size: clamp(1.9rem, 8vw, 2.6rem); } }
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-left { background: rgba(238, 242, 251, 0.78); border-radius: 18px; padding: 18px; }
}
@media (prefers-color-scheme: dark) and (min-width: 769px) and (max-width: 1024px) { .hero-left { background: rgba(10, 20, 34, 0.78); } }
