/* =====================================================
   SOLVEI8 AI LABS — SHARED STYLES
   Used across all pages: Home, Command, Action, Signal, About
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1E0D3C;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ===== DESIGN TOKENS ===== */
:root {
  --purple:       #5B21B6;
  --purple-dark:  #3B0764;
  --purple-mid:   #7C3AED;
  --purple-light: #EDE9FE;
  --amber:        #F59E0B;
  --amber-dark:   #B45309;
  --amber-light:  #FEF3C7;
  --dark:         #1E0D3C;
  --mid:          #3D2E5C;
  --muted:        #6B607A;
  --border:       #E8E4F0;
  --bg-soft:      #F9F7FF;
  --bg-amber:     #FFFBEB;
  --white:        #FFFFFF;
  --green:        #16A34A;
  --green-light:  #DCFCE7;
  --red:          #DC2626;
  --red-light:    #FEE2E2;
  --radius:       12px;
  --radius-lg:    16px;
  --shadow-xs:    0 1px 3px rgba(0,0,0,.04);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.06);
  --shadow-md:    0 8px 32px rgba(0,0,0,.10);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.13);
  --shadow-glow:  0 0 40px rgba(91,33,182,.25);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 { color: var(--dark); line-height: 1.2; }
h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 22px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 600; }
p  { color: var(--mid); }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-dark { background: var(--dark); color: rgba(255,255,255,.8); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-soft { background: var(--bg-soft); }
.text-center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

.label {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--purple);
  background: var(--purple-light); border-radius: 100px;
  padding: 5px 14px; margin-bottom: 18px;
}
.label-amber { color: #92400E; background: var(--amber-light); }
.label-dark  { color: #C4B5FD; background: rgba(91,33,182,.18); }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--purple);
  margin-bottom: 16px; display: inline-block;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .2s ease;
  border: none; line-height: 1;
}
.btn-primary {
  background: var(--purple); color: #fff;
  box-shadow: 0 4px 16px rgba(91,33,182,.3);
}
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(91,33,182,.4); }
.btn-secondary {
  background: transparent; color: var(--purple);
  border: 1.5px solid var(--purple);
}
.btn-secondary:hover { background: var(--purple-light); }
.btn-amber {
  background: var(--amber); color: #fff;
  box-shadow: 0 4px 16px rgba(245,158,11,.35);
}
.btn-amber:hover { background: var(--amber-dark); transform: translateY(-1px); }
.btn-white {
  background: #fff; color: var(--purple);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn-white:hover { box-shadow: 0 8px 24px rgba(0,0,0,.2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--dark); }
.btn-ghost:hover { background: var(--bg-soft); }

/* ===== NAV ===== */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 19px; font-weight: 800; letter-spacing: -.02em;
  color: var(--dark);
}
.nav-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 60%, var(--amber) 130%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 14px rgba(91,33,182,.35);
  position: relative; overflow: hidden;
}
.nav-logo-mark::after {
  content: ''; position: absolute; inset: 4px;
  border-radius: 5px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.45), transparent 55%);
}
.nav-logo-text { display: inline-flex; align-items: baseline; gap: 6px; }
.nav-logo-text strong { color: var(--dark); }
.nav-logo-text span {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--purple), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  position: relative;
  padding: 8px 14px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: var(--mid);
  transition: all .15s;
  cursor: pointer;
}
.nav-link:hover { color: var(--dark); background: var(--bg-soft); }
.nav-link.active { color: var(--purple); font-weight: 600; }
.nav-link.disabled { color: var(--muted); cursor: not-allowed; opacity: .5; }
.nav-link.disabled:hover { background: transparent; color: var(--muted); }

.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link::after {
  content: '▾'; font-size: 9px; margin-left: 6px; opacity: .6;
}
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 320px;
  opacity: 0; pointer-events: none;
  transition: all .2s ease;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  transition: background .15s;
}
.dropdown-item:hover { background: var(--bg-soft); }
.dropdown-item-icon {
  width: 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px;
}
.dropdown-item-icon.command { background: var(--purple-light); color: var(--purple); }
.dropdown-item-icon.action  { background: var(--amber-light); color: var(--amber-dark); }
.dropdown-item-icon.signal  { background: #DBEAFE; color: #1D4ED8; }
.dropdown-item-body strong {
  display: block; font-size: 14px; color: var(--dark); margin-bottom: 2px; font-weight: 700;
}
.dropdown-item-body span { font-size: 12px; color: var(--muted); line-height: 1.5; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ===== FOOTER ===== */
footer.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding: 56px 0 28px;
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .nav-logo { color: #fff; }
.footer-brand .nav-logo-text strong { color: #fff; }
.footer-brand p {
  margin-top: 18px; max-width: 320px;
  color: rgba(255,255,255,.55); line-height: 1.7;
}
.footer-col h5 {
  color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255,255,255,.6); font-size: 13px;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 18px; }

/* ===== MODAL (Book a Meeting form) ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(30,13,60,.55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .25s ease;
}
.modal-overlay.open { display: flex; }
@keyframes fadeIn { from {opacity:0} to {opacity:1} }
.modal {
  background: #fff;
  border-radius: 18px;
  width: 100%; max-width: 520px;
  box-shadow: 0 30px 80px rgba(30,13,60,.5);
  overflow: hidden;
  animation: slideUp .35s cubic-bezier(.16,1,.3,1);
  max-height: 92vh;
  display: flex; flex-direction: column;
}
@keyframes slideUp { from {opacity:0; transform:translateY(20px)} to {opacity:1; transform:translateY(0)} }
.modal-header {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 100%);
  color: #fff;
  padding: 26px 28px 22px;
  position: relative;
}
.modal-header h3 { color: #fff; font-size: 22px; margin-bottom: 6px; font-weight: 800; }
.modal-header p { color: rgba(255,255,255,.8); font-size: 14px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border: 0;
  background: rgba(255,255,255,.15);
  color: #fff; border-radius: 50%;
  cursor: pointer; font-size: 16px;
  transition: background .15s;
}
.modal-close:hover { background: rgba(255,255,255,.28); }
.modal-body {
  padding: 26px 28px 28px;
  overflow-y: auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.single { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 12px; font-weight: 600; color: var(--mid);
  letter-spacing: .02em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 14px; font-family: inherit;
  color: var(--dark);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(91,33,182,.1);
}
.form-field textarea { min-height: 84px; resize: vertical; }
.form-submit {
  width: 100%;
  background: var(--purple); color: #fff;
  border: 0; padding: 14px;
  border-radius: 10px;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(91,33,182,.3);
}
.form-submit:hover { background: var(--purple-dark); transform: translateY(-1px); }
.form-success {
  display: none;
  text-align: center; padding: 24px 12px;
}
.form-success.show { display: block; }
.form-success .check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 16px;
}
.form-success h4 { font-size: 20px; margin-bottom: 8px; color: var(--dark); }
.form-success p { font-size: 14px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav-cta .btn { padding: 10px 16px; font-size: 13px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
}
