/* ════════════════════════════════════════════════════════
   MV Technology Inc — Global Design System
   site.css · v1.0 · April 2026
   ════════════════════════════════════════════════════════ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Design Tokens ── */
:root {
  --bg:          #0A0D10;
  --bg2:         #0F1318;
  --bg3:         #141920;
  --bg4:         #1A2028;
  --border:      #1E2530;
  --border2:     #2A3440;
  --teal:        #00E5CC;
  --teal-dim:    #00B8A4;
  --teal-glow:   rgba(0,229,204,0.10);
  --teal-glow2:  rgba(0,229,204,0.06);
  --orange:      #FF6B35;
  --orange-dim:  #CC5528;
  --orange-glow: rgba(255,107,53,0.10);
  --text:        #E8ECF0;
  --text2:       #8A97A8;
  --text3:       #4A5568;
  --white:       #FFFFFF;
  --font-head:   'Space Grotesk', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --radius:      6px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:   0 16px 64px rgba(0,0,0,0.6);
  --shadow-teal: 0 0 32px rgba(0,229,204,0.18);
  --transition:  0.22s cubic-bezier(0.4,0,0.2,1);
  --nav-h:       68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

/* Noise grain overlay */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; overflow: visible; padding-bottom: 0.1em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
p  { color: var(--text2); }
a  { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }
strong { color: var(--text); }

/* ── Layout ── */
.container {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  position: relative; z-index: 1;
}
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.section      { padding: 96px 0; }
.section-sm   { padding: 64px 0; }
.section-lg   { padding: 120px 0; }

/* ── Accent elements ── */
.accent-line {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 18px;
}
.accent-line::before {
  content: ''; display: block; width: 24px; height: 2px; background: var(--teal);
  border-radius: 2px;
}

.section-header { max-width: 640px; }
.section-header.center { text-align: center; margin: 0 auto; }
.section-header h2 { margin-bottom: 14px; }
.section-header p  { font-size: 1.05rem; line-height: 1.75; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius);
  font-family: var(--font-head); font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.03em; cursor: pointer; transition: all var(--transition);
  border: none; text-decoration: none; line-height: 1;
}
.btn-primary  { background: var(--teal); color: var(--bg); box-shadow: 0 0 20px rgba(0,229,204,0.2); }
.btn-primary:hover { background: var(--white); color: var(--bg); box-shadow: 0 0 32px rgba(0,229,204,0.35); transform: translateY(-2px); }
.btn-outline  { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-outline:hover { background: var(--teal-glow); transform: translateY(-2px); }
.btn-ghost    { background: var(--bg3); color: var(--text); border: 1px solid var(--border2); }
.btn-ghost:hover { background: var(--bg4); color: var(--white); border-color: var(--border2); }
.btn-orange   { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: #FF8555; transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ── Cards ── */
.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.card-pad { padding: 32px 28px; }
.card-hover {
  transition: all var(--transition);
}
.card-hover:hover {
  border-color: var(--border2); transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ── Feature list ── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--text2);
}
.feature-list li::before {
  content: '›'; color: var(--teal); font-size: 1.1rem;
  font-weight: 700; flex-shrink: 0; margin-top: 1px;
}

/* ── Tags ── */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 100px; padding: 4px 12px;
  font-size: 0.75rem; color: var(--text2); font-weight: 500;
}
.tag-teal { background: var(--teal-glow); border-color: rgba(0,229,204,0.2); color: var(--teal); }
.tag-orange { background: var(--orange-glow); border-color: rgba(255,107,53,0.2); color: var(--orange); }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--text3); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 12px 15px;
  color: var(--text); font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color var(--transition); outline: none;
}
.form-group input::placeholder { color: var(--text3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,229,204,0.08);
}
.form-group select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A97A8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Consent / data-use notice shown beneath form submit buttons */
.form-consent { font-size: 0.72rem; line-height: 1.55; color: var(--text3); margin-top: 14px; }
.form-consent a { color: var(--text2); text-decoration: underline; }
.form-consent a:hover { color: var(--teal); }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h);
  background: rgba(10,13,16,0.92); backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.nav.scrolled { background: rgba(10,13,16,0.98); }
.nav-inner {
  display: flex; align-items: center; height: 100%;
  max-width: 1280px; margin: 0 auto; padding: 0 28px;
  gap: 40px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 800;
  color: var(--white); text-decoration: none; flex-shrink: 0;
}
.nav-logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 800; color: var(--bg);
  box-shadow: 0 0 14px rgba(0,229,204,0.25);
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; flex: 1;
}
.nav-links > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; color: var(--text2);
  transition: all var(--transition); white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--white); background: var(--bg3); }
.nav-links > li > a.active { color: var(--teal); }

/* Dropdown */
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 8px; min-width: 210px;
  opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: all 0.18s ease; box-shadow: var(--shadow-lg);
}
.nav-drop:hover .nav-drop-menu,
.nav-drop-menu:hover { opacity: 1; pointer-events: all; transform: translateY(0); }
/* Invisible bridge across the 10px gap so the menu doesn't vanish when the
   mouse travels from the "Services" link down to an option. */
.nav-drop-menu::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 14px;
}
.nav-drop-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: var(--radius);
  font-size: 0.85rem; color: var(--text2);
}
.nav-drop-menu a:hover { background: var(--bg3); color: var(--white); }
.nav-drop-menu a .menu-icon { font-size: 0.9rem; }

.nav-cta { margin-left: auto; }
.nav-mobile-btn {
  display: none; background: none; border: none; margin-left: auto;
  color: var(--text2); font-size: 1.5rem; cursor: pointer; padding: 4px;
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg2); padding: 88px 28px 32px;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  display: block; padding: 14px 0;
  font-family: var(--font-head); font-size: 1.1rem; color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--teal); }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: calc(var(--nav-h) + 72px) 0 72px;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,204,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,204,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 100% at 80% 50%, black 20%, transparent 75%);
}
.page-hero-glow {
  position: absolute; width: 500px; height: 500px;
  background: radial-gradient(ellipse, var(--teal-glow2) 0%, transparent 70%);
  right: -100px; top: -100px; pointer-events: none;
}
.page-hero .breadcrumb {
  font-size: 0.8rem; color: var(--text3); margin-bottom: 20px;
}
.page-hero .breadcrumb a { color: var(--text3); }
.page-hero .breadcrumb a:hover { color: var(--teal); }
.page-hero .breadcrumb span { color: var(--teal); }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { font-size: 1.1rem; line-height: 1.75; max-width: 620px; margin-bottom: 32px; }
.page-hero .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Footer ── */
.footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
.footer-brand p { font-size: 0.875rem; margin-top: 16px; max-width: 300px; line-height: 1.75; }
.footer-col h4 {
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
  color: var(--white); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 0.875rem; color: var(--text3); transition: color var(--transition); }
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text3); flex-wrap: wrap; gap: 12px;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--text3); }
.footer-bottom-links a:hover { color: var(--teal); }

/* ── Chatbot FAB ── */
.chatbot-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 9000;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  border: none; cursor: pointer; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 28px rgba(0,229,204,0.3);
  transition: all var(--transition);
}
.chatbot-fab:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 10px 36px rgba(0,229,204,0.45); }
.chatbot-fab-dot {
  position: absolute; top: 4px; right: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--orange); border: 2px solid var(--bg);
  animation: blink 2s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ── Chatbot Panel ── */
.chatbot-panel {
  position: fixed; bottom: 100px; right: 28px; z-index: 8999;
  width: 380px; max-height: 560px;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateY(20px) scale(0.96);
  opacity: 0; pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.chatbot-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1; pointer-events: all;
}
.chatbot-panel-header {
  background: var(--teal); padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.chatbot-panel-header-info { display: flex; align-items: center; gap: 10px; }
.chatbot-panel-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.chatbot-panel-name { font-family: var(--font-head); font-weight: 700; color: var(--bg); font-size: 0.9rem; }
.chatbot-panel-status { font-size: 0.72rem; color: rgba(10,13,16,0.65); }
.chatbot-close {
  background: none; border: none; color: var(--bg);
  font-size: 1.2rem; cursor: pointer; opacity: 0.7; padding: 4px;
}
.chatbot-close:hover { opacity: 1; }

/* Messages area */
.chatbot-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 280px;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

/* Message bubbles */
.cb-msg { display: flex; gap: 8px; max-width: 90%; }
.cb-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.cb-avatar-sm {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; flex-shrink: 0;
}
.cb-bubble {
  padding: 10px 14px; border-radius: 14px;
  font-size: 0.85rem; line-height: 1.55; color: var(--text);
  background: var(--bg3); border: 1px solid var(--border);
}
.cb-msg.user .cb-bubble {
  background: var(--teal); color: var(--bg); border-color: transparent; font-weight: 500;
}

/* Typing indicator */
.cb-typing { display: flex; gap: 4px; align-items: center; padding: 4px 2px; }
.cb-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text3); animation: cbtype 1.2s ease infinite;
}
.cb-typing span:nth-child(2) { animation-delay: 0.2s; }
.cb-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes cbtype { 0%,80%,100%{transform:scale(1);opacity:0.4} 40%{transform:scale(1.3);opacity:1} }

/* Input row */
.chatbot-input-row {
  padding: 12px 14px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; align-items: center; flex-shrink: 0;
  background: var(--bg3);
}
.chatbot-input {
  flex: 1; background: var(--bg); border: 1px solid var(--border2);
  border-radius: 20px; padding: 9px 16px;
  color: var(--text); font-family: var(--font-body); font-size: 0.85rem;
  outline: none; transition: border-color var(--transition);
}
.chatbot-input:focus { border-color: var(--teal); }
.chatbot-input:disabled { opacity: 0.5; cursor: not-allowed; }
.chatbot-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal); color: var(--bg);
  border: none; cursor: pointer; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0;
}
.chatbot-send:hover { background: var(--white); transform: scale(1.08); }

/* Nudge popup */
.chat-nudge {
  position: fixed; bottom: 100px; right: 100px; z-index: 8998;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 14px 18px;
  max-width: 260px; box-shadow: var(--shadow);
  animation: nudgeIn 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes nudgeIn { from{transform:translateX(20px);opacity:0} to{transform:translateX(0);opacity:1} }
.chat-nudge p { font-size: 0.85rem; color: var(--text); margin-bottom: 8px; }
.chat-nudge-dismiss {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; color: var(--text3); font-size: 1rem; cursor: pointer;
}

/* ── Responsive chatbot ── */
@media (max-width: 768px) {
  .chatbot-panel { width: calc(100vw - 32px); right: 16px; bottom: 90px; }
  .chat-nudge { right: 16px; bottom: 90px; max-width: calc(100vw - 100px); }
  /* While the chat is open on mobile, hide the floating button so its ✕ doesn't
     crowd the send button. The panel header already has its own close ✕. */
  body.chatbot-open .chatbot-fab { display: none; }
}

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; left: 24px; z-index: 9999;
  background: var(--bg2); border: 1px solid var(--teal);
  border-radius: var(--radius); padding: 13px 20px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; box-shadow: var(--shadow);
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: all 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; pointer-events: all; }
.toast-icon { color: var(--teal); }

/* ── Misc utilities ── */
.divider { height: 1px; background: var(--border); }
.glow-teal { box-shadow: var(--shadow-teal); }
.text-teal  { color: var(--teal); }
.text-orange { color: var(--orange); }
.text-muted  { color: var(--text3); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* Stat block */
.stat-block { text-align: center; }
.stat-num {
  font-family: var(--font-head); font-size: clamp(2rem,3.5vw,2.8rem);
  font-weight: 800; color: var(--white); display: block; line-height: 1;
}
.stat-lbl { font-size: 0.82rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; }
.stat-desc { font-size: 0.875rem; color: var(--text2); margin-top: 8px; }

/* Scroll animations */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .page-hero { padding: calc(var(--nav-h) + 48px) 0 48px; }
}
