/* ═══════════════════════════════════════════════════════
   TXROBO — Precision Architect Design System
   Shared CSS for all pages
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; background: #0d131f; }
body { font-family: 'Inter', sans-serif; color: #dde2f4; background: #0d131f; overflow-x: hidden; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24; vertical-align: middle; }

/* ─── Dot-grid background texture ─── */
.dot-grid {
  background-image: radial-gradient(circle, rgba(178,197,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ─── Glass card ─── */
.glass {
  background: rgba(47, 53, 66, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ─── Gradient machined button ─── */
.btn-machined {
  background: linear-gradient(135deg, #b2c5ff 0%, #2b6cee 100%);
  color: #001848;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-machined:hover { opacity: 0.92; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(43,108,238,0.4); }

/* ─── Ghost / glass button ─── */
.btn-ghost {
  background: rgba(178,197,255,0.07);
  border: 1px solid rgba(178,197,255,0.15);
  color: #b2c5ff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: rgba(178,197,255,0.12); border-color: rgba(178,197,255,0.3); }

/* ─── Navbar ─── */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 200;
  background: rgba(8,14,26,0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(66,70,84,0.4);
  transition: background 0.3s;
}
#navbar.scrolled { background: rgba(8,14,26,0.95); }
.nav-inner { max-width: 1320px; margin: 0 auto; padding: 0 28px; height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; background: linear-gradient(135deg, #b2c5ff, #2b6cee); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-text { font-family: 'Space Grotesk'; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: #dde2f4; }
.logo-text span { color: #b2c5ff; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { padding: 7px 13px; font-size: 13px; font-weight: 500; color: #8c90a0; text-decoration: none; border-radius: 7px; transition: color 0.15s, background 0.15s; font-family: 'Inter'; }
.nav-link:hover, .nav-link.active { color: #dde2f4; background: rgba(178,197,255,0.06); }
.nav-ai-btn { display: flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 7px; border: 1px solid rgba(178,197,255,0.2); color: #b2c5ff; font-size: 12px; font-weight: 600; font-family: 'Space Grotesk'; letter-spacing: 0.04em; cursor: pointer; background: rgba(178,197,255,0.05); transition: all 0.15s; }
.nav-ai-btn:hover { background: rgba(178,197,255,0.1); border-color: rgba(178,197,255,0.35); }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px #4ade80; animation: pulse-anim 2s infinite; flex-shrink: 0; }
@keyframes pulse-anim { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }
.nav-demo { padding: 8px 18px; border-radius: 7px; font-size: 13px; font-weight: 700; font-family: 'Space Grotesk'; letter-spacing: 0.04em; text-decoration: none; background: linear-gradient(135deg, #b2c5ff, #2b6cee); color: #001848; transition: opacity 0.2s, transform 0.15s; }
.nav-demo:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #8c90a0; border-radius: 1px; transition: all 0.2s; }
@media (max-width: 768px) { .nav-links { display: none; } .nav-ai-btn { display: none; } .nav-hamburger { display: flex; } }

/* ─── Page wrapper shifts when AI panel opens ─── */
#page-wrapper { transition: padding-right 0.38s cubic-bezier(.4,0,.2,1); }
#page-wrapper.panel-open { padding-right: 420px; }
@media (max-width: 900px) { #page-wrapper.panel-open { padding-right: 0; } }

/* ─── AI Panel ─── */
#ai-panel {
  position: fixed; top: 0; right: -420px; width: 420px; height: 100dvh;
  background: #080e1a; border-left: 1px solid rgba(66,70,84,0.5);
  display: flex; flex-direction: column; z-index: 300;
  transition: right 0.38s cubic-bezier(.4,0,.2,1);
  box-shadow: -16px 0 60px rgba(0,0,0,0.5);
}
#ai-panel.open { right: 0; }
@media (max-width: 900px) { #ai-panel { width: 100%; right: -100%; } }
.ai-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 299; backdrop-filter: blur(3px); }
.ai-overlay.visible { display: block; }
@media (min-width: 901px) { .ai-overlay { display: none !important; } }

.ai-hdr { padding: 16px 18px; border-bottom: 1px solid rgba(66,70,84,0.4); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.ai-avatar { width: 36px; height: 36px; background: linear-gradient(135deg, #b2c5ff20, #2b6cee30); border: 1px solid rgba(178,197,255,0.2); border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.ai-name { font-family: 'Space Grotesk'; font-weight: 700; font-size: 13px; color: #dde2f4; }
.ai-status { font-size: 11px; color: #4ade80; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.ai-close { width: 30px; height: 30px; border-radius: 7px; background: rgba(178,197,255,0.06); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #8c90a0; transition: all 0.15s; }
.ai-close:hover { background: rgba(178,197,255,0.12); color: #dde2f4; }
.ai-chips { padding: 10px 14px; border-bottom: 1px solid rgba(66,70,84,0.3); display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; background: rgba(22,28,40,0.6); }
.chip { padding: 5px 11px; background: rgba(178,197,255,0.05); border: 1px solid rgba(66,70,84,0.5); border-radius: 100px; font-size: 11px; font-weight: 500; color: #c3c6d7; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.chip:hover { background: rgba(178,197,255,0.1); border-color: rgba(178,197,255,0.25); color: #b2c5ff; }
#ai-msgs { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 11px; }
#ai-msgs::-webkit-scrollbar { width: 3px; }
#ai-msgs::-webkit-scrollbar-thumb { background: rgba(178,197,255,0.15); border-radius: 2px; }
.msg-bot { background: rgba(47,53,66,0.5); border: 1px solid rgba(66,70,84,0.3); border-radius: 3px 14px 14px 14px; padding: 10px 13px; max-width: 90%; font-size: 13px; color: #dde2f4; line-height: 1.55; align-self: flex-start; }
.msg-bot a { color: #b2c5ff; text-decoration: underline; }
.msg-user { background: linear-gradient(135deg, rgba(178,197,255,0.15), rgba(43,108,238,0.2)); border: 1px solid rgba(178,197,255,0.15); border-radius: 14px 3px 14px 14px; padding: 10px 13px; max-width: 90%; font-size: 13px; color: #dde2f4; line-height: 1.55; align-self: flex-end; }
.typing { display: flex; gap: 4px; align-items: center; height: 16px; }
.td { width: 6px; height: 6px; border-radius: 50%; background: #424654; animation: td 1.2s infinite; }
.td:nth-child(2) { animation-delay: 0.15s; }
.td:nth-child(3) { animation-delay: 0.3s; }
@keyframes td { 0%,60%,100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-6px); opacity: 1; } }
.ai-inp-area { padding: 12px 14px; border-top: 1px solid rgba(66,70,84,0.3); flex-shrink: 0; background: rgba(8,14,26,0.8); }
.ai-inp { width: 100%; background: rgba(47,53,66,0.4); border: 1px solid rgba(66,70,84,0.4); border-radius: 10px; padding: 10px 13px; font-size: 13px; color: #dde2f4; font-family: 'Inter'; resize: none; outline: none; transition: border-color 0.15s; min-height: 42px; max-height: 110px; }
.ai-inp:focus { border-color: rgba(178,197,255,0.3); }
.ai-inp::placeholder { color: #424654; }
.ai-send { margin-top: 8px; width: 100%; padding: 10px; border-radius: 10px; border: none; cursor: pointer; font-size: 12px; font-weight: 700; font-family: 'Space Grotesk'; letter-spacing: 0.06em; display: flex; align-items: center; justify-content: center; gap: 7px; transition: all 0.15s; }
.ai-hint { font-size: 10px; color: #424654; text-align: center; margin-top: 8px; }

/* ─── AI FAB ─── */
#ai-fab { position: fixed; bottom: 26px; right: 26px; z-index: 298; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #b2c5ff, #2b6cee); border: none; cursor: pointer; display: none; align-items: center; justify-content: center; box-shadow: 0 8px 32px rgba(43,108,238,0.5); transition: transform 0.2s, box-shadow 0.2s; }
#ai-fab:hover { transform: scale(1.08); box-shadow: 0 12px 40px rgba(43,108,238,0.6); }
#ai-fab .notif { position: absolute; top: -3px; right: -3px; width: 16px; height: 16px; background: #f87171; border: 2px solid #0d131f; border-radius: 50%; font-size: 9px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ─── Section commons ─── */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.sec { padding: 100px 0; }
.sec-label { font-family: 'DM Mono'; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #b2c5ff; margin-bottom: 14px; }
.sec-title { font-family: 'Space Grotesk'; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; color: #dde2f4; line-height: 1.08; margin-bottom: 14px; }
.sec-desc { font-size: 15px; color: #8c90a0; line-height: 1.75; max-width: 520px; }
.sec-line { width: 36px; height: 2px; background: linear-gradient(90deg, #b2c5ff, #2b6cee); border-radius: 1px; margin-top: 18px; }

/* ─── Page Hero ─── */
.page-hero { padding: 140px 28px 80px; background: #080e1a; position: relative; overflow: hidden; }
.page-hero-glow { position: absolute; pointer-events: none; }
.page-hero-glow.left { top: -20%; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(ellipse, rgba(43,108,238,0.10) 0%, transparent 65%); }
.page-hero-glow.right { bottom: -30%; right: -5%; width: 40vw; height: 40vw; background: radial-gradient(ellipse, rgba(178,197,255,0.05) 0%, transparent 65%); }
.page-hero-inner { max-width: 1320px; margin: 0 auto; position: relative; z-index: 1; }
.page-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: 'DM Mono'; font-size: 11px; letter-spacing: 0.12em; color: #b2c5ff; text-transform: uppercase; margin-bottom: 24px; border: 1px solid rgba(178,197,255,0.15); padding: 6px 14px; border-radius: 3px; background: rgba(178,197,255,0.04); }
.page-hero-title { font-family: 'Space Grotesk'; font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; color: #dde2f4; margin-bottom: 20px; }
.page-hero-title span { color: #b2c5ff; }
.page-hero-sub { font-size: 1.05rem; color: #8c90a0; line-height: 1.75; max-width: 560px; margin-bottom: 36px; }

/* ─── Product cards (shared) ─── */
.p-card { background: #161c28; border-radius: 14px; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.p-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(178,197,255,0.08); }
.p-card-img { height: 320px; display: flex; align-items: center; justify-content: center; background: #1a202c; position: relative; overflow: hidden; }
.p-card-img img { max-height: 290px; max-width: 80%; object-fit: contain; transition: transform 0.4s; filter: drop-shadow(0 16px 48px rgba(43,108,238,0.3)); }
.p-card:hover .p-card-img img { transform: scale(1.04) translateY(-4px); }
.p-tag { position: absolute; top: 14px; left: 14px; padding: 4px 9px; border-radius: 3px; font-family: 'DM Mono'; font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; }
.tag-award { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.tag-fleet { background: rgba(178,197,255,0.1); color: #b2c5ff; border: 1px solid rgba(178,197,255,0.15); }
.tag-health { background: rgba(52,211,153,0.1); color: #34d399; border: 1px solid rgba(52,211,153,0.15); }
.p-body { padding: 24px; }
.p-cat { font-family: 'DM Mono'; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #424654; margin-bottom: 8px; }
.p-name { font-family: 'Space Grotesk'; font-size: 1.5rem; font-weight: 800; color: #dde2f4; letter-spacing: -0.02em; margin-bottom: 8px; }
.p-desc { font-size: 13px; color: #8c90a0; line-height: 1.65; margin-bottom: 20px; }
.p-specs { display: flex; gap: 20px; padding: 14px 0; border-top: 1px solid rgba(66,70,84,0.3); border-bottom: 1px solid rgba(66,70,84,0.3); margin-bottom: 18px; flex-wrap: wrap; }
.p-spec-val { font-family: 'Space Grotesk'; font-size: 1.05rem; font-weight: 700; color: #b2c5ff; }
.p-spec-key { font-family: 'DM Mono'; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: #424654; margin-top: 2px; }
.p-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; font-family: 'Space Grotesk'; letter-spacing: 0.04em; color: #b2c5ff; text-decoration: none; transition: gap 0.15s; }
.p-link:hover { gap: 10px; }

/* ─── CTA Section ─── */
.cta-sec { background: #080e1a; padding: 120px 28px; text-align: center; position: relative; overflow: hidden; }
.cta-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 80%; height: 80%; background: radial-gradient(ellipse, rgba(43,108,238,0.08) 0%, transparent 70%); pointer-events: none; }
.cta-title { font-family: 'Space Grotesk'; font-size: clamp(2.2rem,5vw,3.8rem); font-weight: 900; letter-spacing: -0.04em; color: #dde2f4; margin-bottom: 16px; line-height: 1.05; }
.cta-title span { color: #b2c5ff; }
.cta-sub { font-size: 15px; color: #8c90a0; margin-bottom: 44px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-btns a, .cta-btns button { padding: 14px 28px; border-radius: 8px; font-size: 14px; font-family: 'Space Grotesk'; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; text-decoration: none; border: none; display: inline-flex; align-items: center; gap: 8px; }

/* ─── FOOTER ─── */
footer { background: #080e1a; border-top: 1px solid rgba(66,70,84,0.25); padding: 72px 28px 40px; }
.footer-inner { max-width: 1320px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
.f-logo { font-family: 'Space Grotesk'; font-weight: 800; font-size: 1.1rem; color: #dde2f4; margin-bottom: 12px; }
.f-logo span { color: #b2c5ff; }
.f-tagline { font-size: 12px; color: #424654; line-height: 1.7; max-width: 220px; }
.f-col-title { font-family: 'DM Mono'; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #424654; margin-bottom: 16px; }
.f-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.f-links a { font-size: 13px; color: #8c90a0; text-decoration: none; transition: color 0.15s; }
.f-links a:hover { color: #dde2f4; }
.footer-bottom { border-top: 1px solid rgba(66,70,84,0.2); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.f-copy { font-family: 'DM Mono'; font-size: 10px; letter-spacing: 0.06em; color: #424654; }
.f-contacts { display: flex; gap: 20px; }
.f-contacts a { font-family: 'DM Mono'; font-size: 10px; letter-spacing: 0.06em; color: #424654; text-decoration: none; transition: color 0.15s; }
.f-contacts a:hover { color: #b2c5ff; }

/* ─── Award pill ─── */
.award-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.25); border-radius: 3px; padding: 4px 10px; font-family: 'DM Mono'; font-size: 10px; letter-spacing: 0.08em; color: #fbbf24; text-transform: uppercase; }

/* ─── Spec pill ─── */
.spec-pill { background: rgba(178,197,255,0.07); border: 1px solid rgba(178,197,255,0.12); border-radius: 100px; padding: 4px 10px; font-family: 'DM Mono'; font-size: 10px; color: #b2c5ff; }

/* ─── Check list item ─── */
.check-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #c3c6d7; line-height: 1.6; }
.check-icon { width: 20px; height: 20px; border-radius: 5px; background: rgba(52,211,153,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }

/* ─── Tag chip ─── */
.s-tag { background: rgba(178,197,255,0.06); border: 1px solid rgba(66,70,84,0.5); border-radius: 100px; padding: 3px 10px; font-family: 'DM Mono'; font-size: 10px; color: #8c90a0; letter-spacing: 0.04em; }

/* ─── Form inputs ─── */
.form-label { display: block; font-family: 'DM Mono'; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #8c90a0; margin-bottom: 8px; }
.form-input { width: 100%; background: rgba(47,53,66,0.4); border: 1px solid rgba(66,70,84,0.4); border-radius: 8px; padding: 11px 14px; font-size: 14px; color: #dde2f4; font-family: 'Inter'; outline: none; transition: border-color 0.15s, background 0.15s; }
.form-input:focus { border-color: rgba(178,197,255,0.35); background: rgba(47,53,66,0.6); }
.form-input::placeholder { color: #424654; }
.form-select { width: 100%; background: rgba(47,53,66,0.4); border: 1px solid rgba(66,70,84,0.4); border-radius: 8px; padding: 11px 14px; font-size: 14px; color: #dde2f4; font-family: 'Inter'; outline: none; cursor: pointer; transition: border-color 0.15s; }
.form-select:focus { border-color: rgba(178,197,255,0.35); }
.form-select option { background: #161c28; color: #dde2f4; }
.form-textarea { width: 100%; background: rgba(47,53,66,0.4); border: 1px solid rgba(66,70,84,0.4); border-radius: 8px; padding: 11px 14px; font-size: 14px; color: #dde2f4; font-family: 'Inter'; outline: none; resize: vertical; min-height: 120px; transition: border-color 0.15s; }
.form-textarea:focus { border-color: rgba(178,197,255,0.35); }
.form-textarea::placeholder { color: #424654; }
