/* =========================================
   1. VARIABLES & BASE SETUP
   ========================================= */
:root {
  --bg: #050a15;
  --panel: rgba(255, 255, 255, 0.05);
  --text: #ffffff;
  --muted: #a1a1aa;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.5);
  --border: rgba(255, 255, 255, 0.1);
  --radius: 12px;
}

* { 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth; 
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

body::before {
  content: ""; 
  position: fixed; 
  top: 0; left: 0; 
  width: 100%; height: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(59, 130, 246, 0.1), transparent 40%),
              radial-gradient(circle at 90% 90%, rgba(59, 130, 246, 0.05), transparent 40%);
  z-index: -1;
}

/* =========================================
   2. TYPOGRAPHY & HELPERS
   ========================================= */
a { 
  color: inherit; 
  text-decoration: none; 
  transition: 0.3s; 
}

.text-center { 
  text-align: center; 
}

.muted-text {
  color: var(--muted);
}

h1 { 
  font-size: clamp(2.2rem, 5vw, 4rem); 
  line-height: 1.1; 
  margin: 0 0 20px; 
}

h2 { 
  font-size: 2rem; 
  margin-top: 0; 
}

h3 { 
  color: var(--accent); 
  margin-top: 0; 
}

h4 {
  font-size: 1.1rem;
  margin: 0 0 5px 0;
  color: #fff;
}

.subhead { 
  font-size: 1.2rem; 
  font-weight: 600; 
  color: var(--muted); 
  max-width: 800px; 
  margin: 0 auto 30px; 
}

.kicker { 
  color: var(--accent); 
  font-weight: 700; 
  text-transform: uppercase; 
  font-size: 0.85rem; 
  letter-spacing: 1px; 
  margin-bottom: 20px; 
}

.bullets { 
  padding-left: 20px; 
  color: var(--muted); 
}

.bullets li { 
  margin-bottom: 10px; 
}

.tag { 
  display: inline-block; 
  background: var(--accent); 
  color: #fff; 
  padding: 4px 12px; 
  border-radius: 4px; 
  font-size: 0.8rem; 
  margin-top: 15px; 
  font-weight: 600; 
}

/* =========================================
   3. BUTTONS & LINKS
   ========================================= */
.btn { 
  display: inline-flex; 
  align-items: center; 
  padding: 12px 24px; 
  border-radius: 8px; 
  font-weight: 600; 
  cursor: pointer; 
  transition: 0.3s; 
  border: 2px solid transparent; 
  font-family: inherit; 
  font-size: 1rem; 
}

.btn.primary { 
  background: var(--accent); 
  color: #fff; 
  border-color: var(--accent);
}

.btn.primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 5px 15px var(--accent-glow); 
}

.btn.secondary { 
  background: transparent; 
  border-color: var(--border); 
  color: var(--text); 
}

.btn.secondary:hover { 
  background: var(--panel); 
}

.btn.tools-btn {
  background: transparent;
  border-color: var(--accent);
  color: #fff;
}
.btn.tools-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--accent-glow);
}

.btn.support-btn { 
  background: #fff; 
  border-color: var(--accent); 
  color: #000; 
}

.btn.support-btn:hover { 
  background: #f4f4f5; 
  transform: translateY(-2px); 
  box-shadow: 0 5px 15px var(--accent-glow); 
}

.topbar-actions .btn.primary {
  border-color: #fff;
}

.learn-more-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.learn-more-btn:hover {
  color: #fff;
  text-decoration: underline;
}

.inline-modal-link {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.inline-modal-link:hover {
  color: #fff;
  text-decoration: underline;
}

.case-study-link { 
  color: var(--text); 
  text-decoration: underline; 
  text-decoration-color: var(--border); 
  transition: 0.3s ease; 
}

.case-study-link:hover { 
  color: var(--accent); 
  text-decoration-color: var(--accent); 
}

/* =========================================
   4. LAYOUT CONTAINERS & PANELS
   ========================================= */
.container { 
  width: min(1100px, 90%); 
  margin: 0 auto; 
}

section { 
  padding: 80px 0; 
  scroll-margin-top: 130px; 
}

.panel { 
  background: var(--panel); 
  border: 1px solid var(--border); 
  padding: 40px; 
  border-radius: var(--radius); 
}

.highlight-border { 
  border-color: var(--accent); 
}

.grid { 
  display: grid; 
  gap: 30px; 
  grid-template-columns: 1fr 1fr; 
}

.cards { 
  display: grid; 
  gap: 20px; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
}

.card { 
  background: rgba(255,255,255,0.03); 
  border: 1px solid var(--border); 
  padding: 25px; 
  border-radius: var(--radius); 
}

/* =========================================
   5. HEADER & NAVIGATION
   ========================================= */
.topbar {
  position: sticky; 
  top: 0; 
  z-index: 100;
  background: rgba(5, 10, 21, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 15px 0 10px 0;
}

.topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px; 
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 15px; 
  font-weight: 700; 
  font-size: 1.2rem; 
}

.logo-img { 
  height: 64px; 
  width: auto; 
  display: block; 
  filter: drop-shadow(0 0 10px var(--accent-glow)); 
  cursor: pointer; 
}

.topbar-actions { 
  display: flex; 
  align-items: center; 
  gap: 15px; 
}

.header-btns {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 25px;
  background: transparent;
  z-index: 10;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px); 
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 10, 21, 0.95);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: none;
  flex-direction: column;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 200;
  overflow: hidden; 
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  padding: 12px 20px;
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--accent);
  color: #fff;
}

#hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 5px;
}

.navlinks { 
  display: flex; 
  gap: 20px; 
  flex-wrap: wrap; 
  justify-content: center; 
  border-top: 1px solid rgba(255, 255, 255, 0.05); 
  padding-top: 15px;
}

.navlinks a { 
  font-size: 0.9rem; 
  color: var(--muted); 
}

.navlinks a:hover { 
  color: #fff; 
}

.mobile-cta, .mobile-only-link { 
  display: none; 
}

/* =========================================
   6. PAGE-SPECIFIC SECTIONS
   ========================================= */
.hero { 
  text-align: center; 
  padding-top: 80px; 
}

.chips { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 15px; 
  margin-top: 50px; 
}

.chip { 
  background: var(--panel); 
  border: 1px solid var(--border); 
  padding: 20px; 
  border-radius: var(--radius); 
  font-size: 0.95rem; 
  text-align: left; 
}

.role-list li {
  margin-bottom: 15px;
}

.reality-stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
  text-align: center;
}

.reality-stack i {
  color: var(--accent);
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.reality-stack p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.model-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.model-step p {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
}

.steps { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px; 
  margin-top: 20px; 
}

.step { 
  background: var(--panel); 
  padding: 25px; 
  border-radius: var(--radius); 
  border: 1px solid var(--border); 
}

.num { 
  font-size: 2rem; 
  font-weight: 800; 
  color: var(--accent); 
  opacity: 0.5; 
  margin-bottom: 10px; 
}

.cta-box { 
  background: linear-gradient(135deg, #0044cc, #001133); 
  padding: 60px; 
  border-radius: 20px; 
  text-align: center; 
}

.cta-box h2 { 
  margin-bottom: 15px; 
}

/* =========================================
   7. FOOTER
   ========================================= */
.main-footer { 
  border-top: 1px solid var(--border); 
  margin-top: 80px; 
  width: 100%; 
}

.footer-container { 
  display: flex; 
  flex-wrap: wrap; 
  align-items: stretch; 
}

.footer-left { 
  flex: 0 0 70%; 
  background: #000; 
  padding: 80px 5%; 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 40px; 
}

.footer-right { 
  flex: 0 0 30%; 
  background: var(--accent); 
  padding: 80px 4%; 
  display: flex; 
  flex-direction: column; 
  color: #fff;
}

.footer-logo { 
  height: 45px; 
  width: auto; 
  margin-bottom: 20px; 
  display: block; 
}

.footer-col h4, .footer-right h4 { 
  margin: 0 0 20px; 
  text-transform: uppercase; 
  font-size: 0.85rem; 
  letter-spacing: 1px; 
  color: #fff; 
}

.tagline { 
  color: var(--muted); 
  margin-bottom: 25px; 
  font-size: 0.9rem; 
  font-style: italic; 
}

.social-icons { 
  display: flex; 
  gap: 15px; 
  flex-wrap: wrap; 
  margin-bottom: 30px; 
}

.social-icons a { 
  color: #fff; 
  opacity: 0.6; 
  font-size: 1.25rem; 
  transition: 0.3s; 
}

.social-icons a:hover { 
  opacity: 1; 
  color: var(--accent); 
  transform: translateY(-3px); 
}

.footer-nav a, address { 
  display: block; 
  color: var(--muted); 
  font-size: 0.9rem; 
  margin-bottom: 12px; 
  font-style: normal; 
}

.footer-nav a:hover { 
  color: #fff; 
}

.legal-info { 
  border-top: 1px solid #222; 
  padding-top: 25px; 
  font-size: 0.8rem; 
  color: #444; 
  display: flex; 
  gap: 20px; 
  flex-wrap: wrap; 
  justify-content: space-between;
}

.legal-link { 
  color: #444; 
  text-decoration: underline; 
}

/* =========================================
   8. MODALS (POPUPS)
   ========================================= */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px; 
}

.modal-content {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%; 
  max-width: 650px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.3s ease;
  
  max-height: calc(100vh - 40px); 
  overflow-y: auto; 
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-content h3 {
  color: var(--accent);
  margin-top: 0;
  font-size: 1.5rem;
}

.modal-content p {
  color: var(--text);
  line-height: 1.7;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--muted);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #fff;
}

/* =========================================
   9. FORMS
   ========================================= */
.newsletter-form { 
  display: flex; 
  flex-direction: column; 
  gap: 15px; 
  margin-top: auto; 
}

.newsletter-form input { 
  padding: 14px; 
  border-radius: 6px; 
  border: 1px solid rgba(255,255,255,0.2); 
  background: rgba(0,0,0,0.1); 
  color: #fff; 
  font-family: inherit;
}

.btn-submit { 
  padding: 14px; 
  border-radius: 6px; 
  border: none; 
  background: #fff; 
  color: var(--accent); 
  font-weight: 700; 
  cursor: pointer; 
  font-family: inherit;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.2);
  color: #fff;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group select option {
  background: var(--bg);
  color: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.success-well {
  background-color: #469c24;
  color: white;
  text-align: center;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(70, 156, 36, 0.3);
}

.form-group input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin: 0;
  display: inline-block;
  cursor: pointer;
}
.checkbox-inline-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkbox-inline-group label {
  margin-bottom: 0;
  cursor: pointer;
}

.datetime-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.time-selects {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-selects select {
  min-width: 60px;
  text-align: center;
}

.time-selects span {
  font-weight: bold;
  color: #fff;
}

@media (min-width: 650px) {
  .datetime-group {
    flex-direction: row;
  }
}

/* =========================================
   10. MOBILE RESPONSIVENESS (iOS/Android)
   ========================================= */
@media (max-width: 950px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .footer-left, .footer-right { flex: 0 0 100%; }
  .footer-left { grid-template-columns: 1fr 1fr; padding: 60px 5%;}

  .header-btns { display: none; }
  #hamburger-btn { display: block; }
  
  .navlinks {
    display: none; 
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
  }
  
  .navlinks.active {
    display: flex; 
  }

  .mobile-only-link { 
    display: block; 
  }
  
  .mobile-cta { 
    display: block; 
    font-weight: 700; 
    padding: 8px 16px; 
    border-radius: 6px; 
    text-align: center;
    width: 100%;
    max-width: 250px;
  }
  
  .mobile-cta.support-btn-mobile {
    background: #fff;
    border-color: var(--accent);
    color: #000 !important;
    margin-bottom: 5px;
  }
  
  .mobile-cta.primary-mobile {
    background: var(--accent);
    border-color: #fff; 
    color: #fff !important;
    margin-bottom: 15px;
  }
}

@media (max-width: 650px) {
  .form-row { flex-direction: column; gap: 0; }
  .footer-left { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 20px; }
  .modal-content { padding: 30px 20px; }
  
  .hero { padding-top: 30px; }
  h1 { margin-bottom: 15px; }
  .subhead { font-size: 1.05rem; margin-bottom: 20px; line-height: 1.4; }
  .kicker { margin-bottom: 15px; }
}