/* ============================================
   ADELPHOS SHARED STYLES
   ============================================
   Single source of truth for typography, buttons,
   menubar, logo, chat styles, and badges.
   
   Include this CSS on all pages:
   <link rel="stylesheet" href="css/shared-styles.css">
*/

/* ============================================
   SCROLLBAR STABILITY - Removed as it offsets brain nodes
   ============================================ */

/* ============================================
   CUSTOM FONTS
   ============================================ */
@font-face {
  font-family: 'Gotham Medium';
  src: url('../fonts/gotham-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   PREMIUM UX: 90% ZOOM FOR OPTIMAL VIEWING
   ============================================ */
body {
  zoom: 0.90;
}

/* ============================================
   SCROLLBAR GUTTER: PREVENT LAYOUT SHIFT
   Applied per-page where scrolling occurs (about, roadmap, contact)
   Not on home page which uses overflow:hidden
   ============================================ */

/* ============================================
   TYPOGRAPHY STANDARDS
   ============================================ */

h1 {
  font-family: 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.3;
  color: #222222;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.3;
  color: #222222;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 300;
  font-optical-sizing: auto;
  line-height: 1.4;
  color: #333333;
}

p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  font-optical-sizing: auto;
  line-height: 1.7;
  color: #444444;
}

html.dark-mode h1,
html.dark-mode h2 {
  color: #e0e0e0;
}

html.dark-mode h3 {
  color: #cccccc;
}

html.dark-mode p {
  color: #999999;
}

/* ============================================
   LOGO
   ============================================ */
.logo {
  position: fixed;
  top: 20px;
  left: 28px;
  z-index: 10001;
  font-family: 'Gotham Medium', 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 5VH;
  font-weight: 500;
  letter-spacing: 5pt;
  color: #222;
  text-decoration: none;
}

.logo .ai {
  color: #156082;
}

html.dark-mode .logo {
  color: #e0e0e0;
}

html.dark-mode .logo .ai {
  color: #156082;
}

/* ============================================
   MENUBAR - Tesla-style hover
   ============================================ */
.menubar {
  position: fixed;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 1;
  transition: opacity 0.6s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-highlight {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(150, 150, 150, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform, opacity;
  border-radius: 4px;
}

.menu-highlight.visible {
  opacity: 1;
}

.menu-highlight.bright {
  background: rgba(80, 80, 80, 0.38);
  transition: background 0.1s ease, opacity 0.4s ease;
}

.menu-highlight.dimming {
  background: rgba(170, 170, 170, 0.32);
  transition: background 0.7s ease, opacity 0.4s ease;
}

.menu-highlight.moving {
  transition: transform 0.1s ease-out, width 0.1s ease-out, opacity 0.4s ease;
}

.menu-highlight.fading {
  opacity: 0;
}

.menu-tail {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(150, 150, 150, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease;
  border-radius: 4px;
}

.menu-tail.visible {
  opacity: 1;
}

.menu-tail.moving {
  transition: transform 0.5s ease-out, width 0.5s ease-out, opacity 0.7s ease;
}

.menu-tail.fading {
  opacity: 0;
}

html.dark-mode .menu-highlight {
  background: rgba(0, 0, 0, 0.4);
}

html.dark-mode .menu-highlight.bright {
  background: rgba(55, 55, 55, 0.5);
  transition: background 0.1s ease, opacity 0.4s ease;
}

html.dark-mode .menu-highlight.dimming {
  background: rgba(40, 40, 40, 0.45);
  transition: background 0.7s ease, opacity 0.4s ease;
}

html.dark-mode .menu-tail {
  background: rgba(0, 0, 0, 0.25);
}

.menu-link {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #000;
  text-decoration: none;
  padding: 6px 20px;
  background-color: transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

html.dark-mode .menu-link {
  color: #fff;
}

/* ============================================
   DARK MODE TOGGLE
   ============================================ */
.dark-toggle {
  position: fixed;
  top: 75px;
  right: 40px;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dark-toggle-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #999;
  text-transform: uppercase;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.toggle-switch.active {
  background: #156082;
}

.toggle-switch.active::after {
  transform: translateX(20px);
}

html.dark-mode .dark-toggle-label {
  color: #666;
}

html.dark-mode .toggle-switch {
  background: #444;
}

/* ============================================
   BUTTON CLASSES - Chat (Small)
   ============================================ */
.btn-chat-blue {
  padding: 6px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: white;
  background: #156082;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-chat-blue:hover {
  background: #0e4560;
  transform: scale(1.02);
}

.btn-chat-blue:disabled {
  background: #999;
  cursor: not-allowed;
  transform: none;
}

html.dark-mode .btn-chat-blue {
  background: #156082;
}

html.dark-mode .btn-chat-blue:hover {
  background: #0e4560;
}

html.dark-mode .btn-chat-blue:disabled {
  background: #444;
}

.btn-chat-grey {
  padding: 6px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: white;
  background: #6c757d;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-chat-grey:hover {
  background: #5a6268;
  transform: scale(1.02);
}

html.dark-mode .btn-chat-grey {
  background: #555;
}

html.dark-mode .btn-chat-grey:hover {
  background: #666;
}

/* ============================================
   BUTTON CLASSES - Large (Non-Chat)
   ============================================ */
.btn-primary {
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: white;
  background: #156082;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: #0e4560;
  transform: scale(1.02);
}

html.dark-mode .btn-primary {
  background: #156082;
}

html.dark-mode .btn-primary:hover {
  background: #0e4560;
}

.btn-secondary {
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: white;
  background: #6c757d;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: scale(1.02);
}

html.dark-mode .btn-secondary {
  background: #555;
}

html.dark-mode .btn-secondary:hover {
  background: #666;
}

/* ============================================
   BADGES
   ============================================ */
.coming-soon-badge {
  display: inline-block;
  padding: 6px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: white;
  background: #6c757d;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

html.dark-mode .coming-soon-badge {
  background: #555;
}

/* ============================================
   CHAT WINDOW STYLES
   ============================================ */

/* Chat text (messages) */
.chat-text,
.demo-msg-user p,
.demo-msg-bot p {
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.6;
}

/* Chat history item title - Keep as specified */
.demo-history-item-title {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
}

/* Chat history item preview - Keep as specified */
.demo-history-item-preview {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 400;
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  line-height: 1.2;
}

.demo-history-item.active .demo-history-item-preview {
  opacity: 0.8;
}

/* Chat message styling */
.demo-msg-user {
  background: #156082;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  align-self: flex-end;
  margin-left: 40px;
  max-width: 90%;
}

.demo-msg-user:hover {
  background: #0056D6;
}

html.dark-mode .demo-msg-user {
  background: #156082;
}

html.dark-mode .demo-msg-user:hover {
  background: #0056D6;
}

.demo-msg-bot {
  background: white;
  color: #333;
  padding: 12px 14px;
  border-radius: 10px;
  align-self: flex-start;
  max-width: 90%;
}

html.dark-mode .demo-msg-bot {
  background: rgba(40, 40, 40, 0.95);
  color: #e0e0e0;
}

/* Chat history sidebar */
.demo-chat-history-sidebar {
  flex: 0 0 35%;
  background: #f5f5f5;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

html.dark-mode .demo-chat-history-sidebar {
  background: #2a2a2a;
  border-right-color: rgba(255, 255, 255, 0.08);
}

.demo-history-header {
  padding: 6px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

html.dark-mode .demo-history-header {
  color: #555555;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.demo-history-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
}

.demo-history-item {
  padding: 5px 8px;
  margin-bottom: 2px;
  background: transparent;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #555555;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-history-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

html.dark-mode .demo-history-item {
  color: #888888;
}

html.dark-mode .demo-history-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.demo-history-item.active {
  background: #156082;
  color: #fff;
}

html.dark-mode .demo-history-item.active {
  background: #156082;
  color: #fff;
}

/* Chat input row */
.demo-chat-input-row {
  padding: 8px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

html.dark-mode .demo-chat-input-row {
  background: #2a2a2a;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.demo-chat-input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  background: #f5f5f5;
  color: #333;
  outline: none;
  transition: all 0.3s ease;
}

.demo-chat-input:focus {
  border-color: #156082;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(21, 96, 130, 0.1);
}

html.dark-mode .demo-chat-input {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

html.dark-mode .demo-chat-input:focus {
  border-color: #156082;
  background: #222;
  box-shadow: 0 0 0 2px rgba(21, 96, 130, 0.1);
}

/* Chat send button - uses btn-chat-blue styles */
.demo-chat-send {
  padding: 6px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: white;
  background: #156082;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.demo-chat-send:hover {
  background: #0e4560;
  transform: scale(1.02);
}

.demo-chat-send:disabled {
  background: #999;
  cursor: not-allowed;
  transform: none;
}

html.dark-mode .demo-chat-send {
  background: #156082;
}

html.dark-mode .demo-chat-send:hover {
  background: #0e4560;
}

html.dark-mode .demo-chat-send:disabled {
  background: #444;
}

/* Chat messages container */
.demo-chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f5f5f5;
}

html.dark-mode .demo-chat-messages {
  background: #1a1a1a;
}

/* Ready prompt */
.demo-ready-prompt {
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(21, 96, 130, 0.1) 0%, rgba(74, 155, 184, 0.1) 100%);
  border: 1px dashed rgba(21, 96, 130, 0.3);
  border-radius: 8px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #156082;
  margin-top: 8px;
}

html.dark-mode .demo-ready-prompt {
  background: linear-gradient(135deg, rgba(21, 96, 130, 0.15) 0%, rgba(74, 155, 184, 0.15) 100%);
  border-color: rgba(21, 96, 130, 0.4);
  color: #156082;
}

.demo-ready-prompt strong {
  color: #156082;
  font-weight: 600;
}

html.dark-mode .demo-ready-prompt strong {
  color: #6ec4e0;
}

/* ============================================
   SECTION INDICATOR - Dots on left side
   ============================================ */
.section-indicator {
  position: fixed;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.section-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(100, 100, 100, 0.25);
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  position: relative;
}

.section-dot:hover {
  background: rgba(100, 100, 100, 0.5);
  transform: scale(1.2);
}

.section-dot.active {
  background: transparent;
  transform: scale(1);
}

.section-active-ball {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #156082;
  transform: scale(1.2);
  pointer-events: none;
  left: 0;
  top: 0;
  transition: top 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.section-trail-ball {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #156082;
  pointer-events: none;
  left: 0;
  opacity: 0;
  transform: scale(1);
  z-index: 0;
}

.section-trail-ball.animating {
  animation: trailFade 0.2s ease-out forwards;
}

@keyframes trailFade {
  0% { opacity: 0.4; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(0.7); }
}

html.dark-mode .section-dot {
  background: rgba(200, 200, 200, 0.25);
}

html.dark-mode .section-dot:hover {
  background: rgba(200, 200, 200, 0.5);
}

html.dark-mode .section-dot.active {
  background: transparent;
}

html.dark-mode .section-active-ball,
html.dark-mode .section-trail-ball {
  background: #4a9bb8;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 1;
  width: fit-content;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #888;
  letter-spacing: 0.05em;
}

.scroll-indicator-arrow {
  width: 24px;
  height: 24px;
  animation: bounce 2s infinite;
}

.scroll-indicator-arrow svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #888;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

html.dark-mode .scroll-indicator-text {
  color: #666;
}

html.dark-mode .scroll-indicator-arrow svg {
  stroke: #666;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 10001;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  width: fit-content;
  height: fit-content;
  cursor: pointer;
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top-arrow {
  width: 20px;
  height: 20px;
}

.back-to-top-arrow svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #888;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-to-top-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #888;
}

html.dark-mode .back-to-top-arrow svg {
  stroke: #666;
}

html.dark-mode .back-to-top-text {
  color: #666;
}

/* ============================================
   SITE FOOTER - SHARED ACROSS ALL PAGES
   ============================================ */

.site-footer {
  position: relative;
  z-index: 100;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 30px 0 20px;
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-weight: 300;
}

/* Footer on index.html - embedded in BUILD X view, not shown separately */
body.has-view-system .site-footer {
  display: none;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* Compact footer layout */
.footer-content-compact {
  align-items: flex-start;
}

.footer-brand {
  flex: 0 0 280px;
}

.footer-brand .footer-copyright {
  margin-top: 12px;
}

.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-bottom: 12px;
  text-decoration: none;
}

.footer-logo-adelphos {
  font-family: 'Gotham Medium', 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 4vh;
  font-weight: 500;
  color: #222;
  letter-spacing: 5pt;
  text-transform: uppercase;
}

.footer-logo-ai {
  font-family: 'Gotham Medium', 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 4vh;
  font-weight: 500;
  color: #156082;
  letter-spacing: 5pt;
  text-transform: uppercase;
  margin-left: 8px;
}

.footer-tagline {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-weight: 300;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-links-column {
  min-width: 120px;
}

.footer-links-title {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #333;
  margin: 0 0 10px;
}

.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links-list li {
  margin-bottom: 6px;
}

.footer-links-list a {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-weight: 300;
  color: #666;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: #156082;
}

/* Footer bottom - only used if not using compact layout */
.footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 15px 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Hide footer-bottom when using compact layout */
.footer-content-compact + .footer-bottom {
  display: none;
}

.footer-copyright {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-weight: 300;
  color: #888;
  font-size: 12px;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-weight: 300;
  color: #888;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #156082;
}

/* Dark Mode Footer */
html.dark-mode .site-footer {
  background: #2a2a2a;
  border-top-color: rgba(255, 255, 255, 0.06);
}

html.dark-mode .footer-logo-adelphos {
  color: #fff;
}

html.dark-mode .footer-tagline {
  color: #888;
}

html.dark-mode .footer-links-title {
  color: #ddd;
}

html.dark-mode .footer-links-list a {
  color: #888;
}

html.dark-mode .footer-links-list a:hover {
  color: #4a9bb8;
}

html.dark-mode .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.06);
}

html.dark-mode .footer-copyright,
html.dark-mode .footer-legal a {
  color: #666;
}

html.dark-mode .footer-legal a:hover {
  color: #4a9bb8;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 24px;
  }
  
  .footer-brand {
    flex: 1 1 100%;
  }
  
  .footer-links {
    gap: 24px;
    flex-wrap: wrap;
  }
  
  .footer-links-column {
    min-width: 100px;
    flex: 0 0 auto;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   SIGNUP MODAL STYLES
   ============================================ */

.signup-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.signup-modal.active {
  opacity: 1;
  visibility: visible;
}

.signup-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.signup-modal-content {
  position: relative;
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid rgba(21, 96, 130, 0.4);
  border-radius: 16px;
  padding: 40px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(21, 96, 130, 0.15);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.signup-modal.active .signup-modal-content {
  transform: translateY(0);
}

.signup-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.signup-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.signup-modal-title {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
}

.signup-modal-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 28px 0;
  line-height: 1.5;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.signup-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.signup-field label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.signup-field input {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.signup-field input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.signup-field input:focus,
.signup-field select:focus,
.signup-field textarea:focus {
  border-color: rgba(21, 96, 130, 0.6);
  background: rgba(21, 96, 130, 0.08);
  box-shadow: 0 0 0 3px rgba(21, 96, 130, 0.15);
}

.signup-field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
  resize: vertical;
  min-height: 100px;
}

.signup-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.signup-field select {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.signup-field select option {
  background: #1a1a1a;
  color: #fff;
  padding: 10px;
}

.signup-field-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

.signup-submit-btn {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 24px;
  background: #156082;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.signup-submit-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: signup-btn-shine 2.5s ease-in-out infinite;
}

@keyframes signup-btn-shine {
  0% {
    transform: translateX(-100%);
  }
  50%, 100% {
    transform: translateX(100%);
  }
}

.signup-submit-btn:hover:not(:disabled) {
  background: #1a7a9e;
}

.signup-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.signup-message {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
  margin: 0;
}

.signup-message.success {
  color: #4a9bb8;
}

.signup-message.error {
  color: #ff6b6b;
}

/* Light mode adjustments */
html:not(.dark-mode) .signup-modal-content {
  background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%);
  border-color: rgba(21, 96, 130, 0.25);
}

html:not(.dark-mode) .signup-modal-title {
  color: #1a1a1a;
}

html:not(.dark-mode) .signup-modal-subtitle {
  color: rgba(0, 0, 0, 0.6);
}

html:not(.dark-mode) .signup-field label {
  color: rgba(0, 0, 0, 0.7);
}

html:not(.dark-mode) .signup-field input {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.15);
  color: #1a1a1a;
}

html:not(.dark-mode) .signup-field input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

html:not(.dark-mode) .signup-field input:focus,
html:not(.dark-mode) .signup-field select:focus,
html:not(.dark-mode) .signup-field textarea:focus {
  border-color: rgba(21, 96, 130, 0.5);
  background: rgba(21, 96, 130, 0.03);
}

html:not(.dark-mode) .signup-field textarea {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.15);
  color: #1a1a1a;
}

html:not(.dark-mode) .signup-field textarea::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

html:not(.dark-mode) .signup-field select {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.15);
  color: #1a1a1a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

html:not(.dark-mode) .signup-field select option {
  background: #fff;
  color: #1a1a1a;
}

html:not(.dark-mode) .signup-field-hint {
  color: rgba(0, 0, 0, 0.4);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .signup-modal-content {
    padding: 28px 24px;
    border-radius: 12px;
  }
  
  .signup-modal-title {
    font-size: 24px;
  }
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* ---- PHONE (max-width: 767px) ---- */
@media (max-width: 767px) {

  /* Disable 90% zoom on mobile */
  body {
    zoom: 1 !important;
  }

  /* Logo - smaller, repositioned */
  .logo {
    font-size: 3vh;
    top: 14px;
    left: 16px;
    letter-spacing: 3pt;
  }

  /* Menubar - hide desktop links, show hamburger */
  .menubar {
    display: none !important;
  }

  /* Hamburger button - shown on phone only */
  .hamburger-btn {
    display: flex !important;
  }

  /* Mobile menu overlay - shown when hamburger is open */
  .mobile-menu-overlay.active {
    display: flex;
  }

  /* Dark toggle - hide label, reposition, bigger for touch */
  .dark-toggle {
    top: 14px;
    right: 60px;
  }

  .dark-toggle-label {
    display: none;
  }

  .toggle-switch {
    width: 56px;
    height: 30px;
    border-radius: 15px;
  }

  .toggle-switch::after {
    width: 26px;
    height: 26px;
    top: 2px;
    left: 2px;
  }

  .toggle-switch.active::after {
    transform: translateX(26px);
  }

  /* Section indicator dots - hide on phone */
  .section-indicator {
    display: none !important;
  }

  /* Scroll indicator - hide on phone */
  .scroll-indicator {
    display: none !important;
  }

  /* Back to top - reposition */
  .back-to-top {
    bottom: 20px;
    right: 20px;
  }

  /* Footer adjustments */
  .footer-content {
    padding: 0 20px;
  }

  .footer-logo-adelphos,
  .footer-logo-ai {
    font-size: 3vh;
  }

  .footer-bottom {
    padding: 15px 20px 0;
  }

  /* Coming soon dropdown - adjust for mobile */
  .coming-soon-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 12px 12px 0 0;
    min-width: 100%;
  }
}

/* ---- TABLET (768px - 1024px) -- future ---- */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Reserved for future tablet-specific rules */
}

/* ---- DESKTOP (1025px - 1919px) -- future ---- */
@media (min-width: 1025px) and (max-width: 1919px) {
  /* Reserved for future desktop-specific rules */
}

/* ---- LARGE SCREEN 27"+ (1920px+) -- future ---- */
@media (min-width: 1920px) {
  /* Reserved for future large screen rules */
}

/* ============================================
   HAMBURGER MENU (Mobile Only)
   ============================================ */

/* Hamburger button - hidden by default, shown on phone */
.hamburger-btn {
  display: none;
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 10002;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #222;
  border-radius: 2px;
  transition: all 0.3s ease;
}

html.dark-mode .hamburger-btn span {
  background: #e0e0e0;
}

/* Hamburger animation - X when open */
.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10001;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
}

html.dark-mode .mobile-menu-overlay {
  background: rgba(26, 26, 26, 0.97);
}

.mobile-menu-overlay.active {
  display: flex;
}

.mobile-menu-overlay .mobile-menu-link {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 300;
  color: #222;
  text-decoration: none;
  padding: 16px 40px;
  transition: color 0.2s ease;
  width: 100%;
  text-align: center;
}

.mobile-menu-overlay .mobile-menu-link:hover {
  color: #156082;
}

html.dark-mode .mobile-menu-overlay .mobile-menu-link {
  color: #e0e0e0;
}

html.dark-mode .mobile-menu-overlay .mobile-menu-link:hover {
  color: #4a9bb8;
}

.mobile-menu-overlay .mobile-menu-divider {
  width: 60px;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 4px auto;
}

html.dark-mode .mobile-menu-overlay .mobile-menu-divider {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-overlay .mobile-menu-coming-soon {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 300;
  color: #999;
  padding: 16px 40px;
  width: 100%;
  text-align: center;
  cursor: default;
}

.mobile-menu-overlay .coming-soon-tag {
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  background: #156082;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
}


