:root {
  --bg: #000000;
  --bg-offset: #0a0a0a;
  --text: #ededed;
  --text-muted: #888888;
  --accent: #0070f3; /* Clean tech blue */
  --accent-glow: rgba(0, 112, 243, 0.4);
  --border: #333333;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }

/* HERO */
.hero { padding: 160px 24px 100px; }
.hero-container {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-offset); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 24px;
}
.pill-dot {
  width: 6px; height: 6px; background: #00ff88;
  border-radius: 50%; box-shadow: 0 0 10px #00ff88;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 24px; }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 32px; max-width: 480px; }
.hero-buttons { display: flex; gap: 16px; }
.btn-large { padding: 12px 24px; border-radius: 8px; font-size: 1rem; font-weight: 500; }
.btn-large.primary { background: var(--accent); color: #fff; box-shadow: 0 4px 20px var(--accent-glow); }
.btn-large.secondary { background: var(--bg-offset); border: 1px solid var(--border); }
.btn-large.secondary:hover { background: #1a1a1a; }

/* HERO VISUAL (Terminal) */
.glass-terminal {
  background: var(--bg-offset); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.terminal-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: #111;
}
.mac-btn { width: 10px; height: 10px; border-radius: 50%; }
.mac-btn.red { background: #ff5f56; }
.mac-btn.yellow { background: #ffbd2e; }
.mac-btn.green { background: #27c93f; }
.term-title { margin-left: 8px; font-family: var(--font-mono); font-size: 0.75rem; color: #666; }
.terminal-body { padding: 20px; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.8; }
.time { color: #555; }
.tag { padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; }
.tag.info { background: rgba(0, 112, 243, 0.2); color: #5ba4ff; }
.tag.ok { background: rgba(0, 255, 136, 0.1); color: #00ff88; }
.tag.warn { background: rgba(255, 189, 46, 0.1); color: #ffbd2e; }
.tag.danger { background: rgba(255, 95, 86, 0.1); color: #ff5f56; }

/* TRUSTED */
.trusted { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0; background: var(--bg-offset); }
.trusted-container { max-width: 1200px; margin: 0 auto; text-align: center; }
.trusted-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.05em; }
.logos { display: flex; justify-content: center; gap: 48px; font-size: 1.2rem; font-weight: 600; color: #333; }
.logos span { transition: color 0.3s; }
.logos span:hover { color: #666; }

/* SOLUTIONS */
.solutions { padding: 100px 24px; max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { font-size: 2.5rem; margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; max-width: 500px; margin: 0 auto; }
.grid-container { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
  background: var(--bg-offset); border: 1px solid var(--border);
  padding: 32px; border-radius: 12px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-2px); border-color: #555; }
.icon-box { font-size: 1.5rem; margin-bottom: 16px; }
.card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 64px 24px 24px; background: #000; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; margin-bottom: 64px; }
.footer-brand p { color: var(--text-muted); margin-top: 16px; font-size: 0.9rem; max-width: 300px; }
.footer-links { display: flex; gap: 80px; }
.link-col h4 { font-size: 0.9rem; margin-bottom: 16px; color: #fff; }
.link-col a { display: block; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; transition: color 0.2s; }
.link-col a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--border); padding-top: 24px; text-align: center; color: #666; font-size: 0.85rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero p { margin: 0 auto 32px; }
  .grid-container { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-container { flex-direction: column; gap: 40px; }
  .footer-links { flex-direction: column; gap: 40px; }
  .logos { flex-wrap: wrap; gap: 24px; }
}


/* NEW NAVBAR */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 600;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  z-index: 1001; /* Keep above mobile menu */
}
.logo-mark {
  background: #fff;
  color: #000;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.3s ease;
}
.logo:hover .logo-mark {
  transform: rotate(10deg) scale(1.05);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
}
.mobile-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  transition: all 0.3s ease;
}
.mobile-toggle .icon-close { display: none; }
.mobile-toggle.open .icon-menu { display: none; }
.mobile-toggle.open .icon-close { display: block; }

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}
.mobile-link {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}
.mobile-menu.open .mobile-link {
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-link:hover {
  color: #fff;
  transform: scale(1.05);
}

/* Replace old mobile media query for nav */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
}

/* ============================================
   MOBILE MENU (Fullscreen Overlay)
   ============================================ */
.mobile-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}
.mobile-toggle svg {
  width: 28px;
  height: 28px;
  transition: all 0.3s ease;
}
.mobile-toggle .icon-close { display: none; }
.mobile-toggle.open .icon-menu { display: none; }
.mobile-toggle.open .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}
.mobile-link {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}
.mobile-menu.open .mobile-link {
  transform: translateY(0);
  opacity: 1;
  color: #fff;
}
.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-link:hover {
  transform: scale(1.1);
}

/* Show burger on small screens */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
}

/* Animation delay for the 5th mobile link */
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ============================================
   FORCE MOBILE MENU OVERRIDE
   ============================================ */
@media (max-width: 768px) {
  .mobile-toggle { display: block !important; }
  .nav-links { display: none !important; }
}

.mobile-menu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #000000 !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.mobile-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  text-align: center !important;
}

.mobile-link {
  font-size: 2rem !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

/* Force close button above the menu */
.mobile-toggle {
  position: relative !important;
  z-index: 10000 !important;
}

/* Keep the header (and the button inside it) above the menu overlay */
.header {
  z-index: 10000 !important;
}
/* Make sure the menu is just beneath the header */
.mobile-menu {
  z-index: 9999 !important;
}

/* ============================================
   NAVIGATION DROPDOWN
   ============================================ */
.dropdown {
  position: relative;
  display: inline-block;
}
.caret {
  font-size: 0.6rem;
  margin-left: 4px;
  vertical-align: middle;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.dropdown:hover .caret {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-offset);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.dropdown-menu a:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
  padding-left: 24px; /* Subtle slide effect */
}

/* Mobile Submenu */
.mobile-submenu {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mobile-submenu-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  width: 100%;
  align-items: center;
}
.mobile-submenu-links a {
  font-size: 1rem;
  color: var(--text-muted);
}

/* --- Navigation Dropdowns --- */
.dropdown { position: relative; display: inline-block; }
.caret { font-size: 0.6rem; margin-left: 4px; color: var(--text-muted); }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-offset);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1001;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.dropdown-menu a:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
  padding-left: 24px;
}

/* Force Dropdown Visibility */
.dropdown { position: relative; display: inline-block; }
.caret { font-size: 0.6rem; margin-left: 4px; color: var(--text-muted); }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1001;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #888;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.dropdown-menu a:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
  padding-left: 24px;
}

/* ============================================
   MOBILE MENU STYLING
   ============================================ */
.mobile-menu {
  overflow-y: auto; /* Allow scrolling if list gets too long */
  padding-top: 80px;
}
.mobile-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent); /* Highlight the category */
  margin-bottom: 8px;
  width: 100%;
  text-align: left;
  padding-left: 24px;
}
.mobile-link {
  font-size: 1.1rem !important; /* Slightly smaller than before to fit more */
  padding: 10px 24px !important;
  text-align: left !important;
  border-bottom: none !important; /* Remove default border */
  color: #ccc !important;
}
.mobile-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Homepage Card Learn More Links */
.learn-more {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.learn-more:hover {
  transform: translateX(4px);
  text-decoration: underline;
}
/* Make the whole card hover nicely */
.card {
  position: relative;
  transition: all 0.3s ease;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 112, 243, 0.1);
  transform: translateY(-2px);
}

/* ============================================
   HERO FEATURE SWITCHER
   ============================================ */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.feature-switcher {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Left Side: List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feat-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}
.feat-item:hover, .feat-item.active {
  background: var(--bg-offset);
  border-color: var(--border);
}
.feat-item.active {
  border-color: var(--accent);
  background: rgba(0, 112, 243, 0.05);
}
.feat-icon {
  font-size: 1.5rem;
  background: #111;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #333;
}
.feat-item h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 4px;
}
.feat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Right Side: Dynamic Display */
.feature-display {
  position: relative;
  height: 260px;
  background: var(--bg-offset);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.display-panel {
  position: absolute;
  inset: 0;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  transform: translateY(10px);
  display: flex;
  flex-direction: column;
}
.display-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.status-dot.green { background: #00ff88; box-shadow: 0 0 10px #00ff88; }
.status-dot.blue { background: #00d4ff; box-shadow: 0 0 10px #00d4ff; }
.status-dot.purple { background: #a855f7; box-shadow: 0 0 10px #a855f7; }

.panel-body { flex: 1; position: relative; }
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.stat-row strong { color: #fff; font-family: var(--mono); }

.shield-graphic {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  opacity: 0.1;
}
.shield-graphic svg { width: 100%; height: 100%; }

@media (min-width: 1024px) {
  .hero-visual { margin: 0; margin-left: auto; }
}

/* ============================================
   TRUSTED LOGOS (UPGRADED)
   ============================================ */
.trusted {
  padding: 60px 0;
  background: #000;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.trusted-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center;
}
.trusted-label {
  font-size: 0.8rem; color: #666; text-transform: uppercase;
  letter-spacing: 0.15em; font-weight: 600; margin-bottom: 40px;
  text-align: center;
}
.logos {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 48px 64px;
}
.brand-logo {
  display: flex; align-items: center; gap: 12px;
  color: #444; /* Dimmed by default */
  transition: all 0.3s ease;
  cursor: pointer;
}
.brand-logo svg {
  width: 28px; height: 28px;
  fill: currentColor;
}
.brand-logo span {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
}
/* Hover effect: light up */
.brand-logo:hover {
  color: #fff;
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .logos { gap: 32px; }
  .brand-logo span { font-size: 1rem; }
  .brand-logo svg { width: 24px; height: 24px; }
}

/* ============================================
   PROFESSIONAL FOOTER
   ============================================ */
.footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}
.footer-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}

/* Footer Top (Brand & Newsletter) */
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-brand-col { max-width: 350px; }
.footer-brand-col .logo { margin-bottom: 20px; }
.footer-desc {
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 24px;
}
.social-links { display: flex; gap: 16px; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg-offset);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all 0.3s ease;
}
.social-links a:hover {
  background: var(--accent); color: #000; border-color: var(--accent);
  transform: translateY(-2px);
}
.social-links svg { width: 18px; height: 18px; }

.footer-newsletter { max-width: 400px; width: 100%; }
.footer-newsletter h4 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.footer-newsletter p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1; padding: 12px 16px; border-radius: 8px; background: var(--bg-offset);
  border: 1px solid var(--border); color: #fff; outline: none; transition: border 0.2s;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  padding: 12px 24px; background: #fff; color: #000; font-weight: 600;
  border-radius: 8px; cursor: pointer; transition: opacity 0.2s;
}
.newsletter-form button:hover { opacity: 0.8; }

/* Footer Middle (Links) */
.footer-mid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  padding: 60px 0;
}
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }

/* Footer Bottom (Copyright) */
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--border);
  color: #666; font-size: 0.85rem;
  flex-wrap: wrap; gap: 16px;
}
.legal-links { display: flex; gap: 24px; flex-wrap: wrap; }
.legal-links a { color: #666; transition: color 0.2s; }
.legal-links a:hover { color: #fff; }

@media (max-width: 900px) {
  .footer-mid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-mid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; }
}

/* ============================================
   FOOTER LAYOUT FIX
   ============================================ */
.footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}

.footer-container {
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 24px;
}

/* The top part (Brand & Newsletter) */
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Brand takes 2 parts, Newsletter takes 1 */
  gap: 64px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}

.footer-brand-col .logo { margin-bottom: 24px; display: inline-flex; }
.footer-desc { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin-bottom: 32px; max-width: 400px; }

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%; background: #111;
  border: 1px solid #333; display: flex; align-items: center; justify-content: center;
  color: #888; transition: all 0.2s ease;
}
.social-links a:hover { background: #fff; color: #000; border-color: #fff; transform: translateY(-2px); }
.social-links svg { width: 18px; height: 18px; }

/* Newsletter */
.footer-newsletter h4 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.footer-newsletter p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.6; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1; padding: 12px 16px; border-radius: 8px; background: #0a0a0a;
  border: 1px solid #333; color: #fff; outline: none; transition: border 0.2s;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  padding: 12px 24px; background: #fff; color: #000; font-weight: 600;
  border-radius: 8px; cursor: pointer; transition: opacity 0.2s; border: none;
}
.newsletter-form button:hover { opacity: 0.8; }

/* The middle part (Links) */
.footer-mid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.footer-col h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 24px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }

/* The bottom part (Copyright & Legal) */
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; font-size: 0.85rem; color: #666;
}
.legal-links { display: flex; gap: 24px; }
.legal-links a { color: #666; transition: color 0.2s; }
.legal-links a:hover { color: #fff; }

/* Responsive */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-mid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .footer-mid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .legal-links { justify-content: center; flex-wrap: wrap; }
  .newsletter-form { flex-direction: column; }
}

/* ============================================
   FOOTER COPYRIGHT FIX
   ============================================ */
.footer {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.footer-container {
  display: flex;
  flex-direction: column;
  flex: 1; /* Pushes the bottom bar to the end */
}

/* The bottom bar */
.footer-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  width: 100%;
}

/* Force copyright to left and links to right */
.copyright {
  color: #666;
  font-size: 0.85rem;
  text-align: left;
}
.legal-links {
  display: flex;
  gap: 24px;
  margin-left: auto; /* Pushes it to the far right */
}
.legal-links a {
  color: #666;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.legal-links a:hover {
  color: #fff;
}

/* Mobile fix */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .legal-links {
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ============================================
   FULL FOOTER LAYOUT (6 COLUMNS)
   ============================================ */
.footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}
.footer-container {
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 24px;
}

/* The Top Grid (Brand + Newsletter + 4 Link Columns) */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr 1fr; /* Ratios for the 6 columns */
  gap: 32px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

/* Brand Column */
.footer-brand-col .logo { margin-bottom: 20px; display: inline-flex; }
.footer-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 24px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%; background: #111;
  border: 1px solid #333; display: flex; align-items: center; justify-content: center;
  color: #888; transition: all 0.2s ease;
}
.social-links a:hover { background: #fff; color: #000; border-color: #fff; }
.social-links svg { width: 16px; height: 16px; }

/* Newsletter Column */
.footer-newsletter h4 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.footer-newsletter p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; line-height: 1.5; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form input {
  width: 100%; padding: 10px 14px; border-radius: 6px; background: #0a0a0a;
  border: 1px solid #333; color: #fff; outline: none; transition: border 0.2s; font-size: 0.9rem;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  width: 100%; padding: 10px; background: #fff; color: #000; font-weight: 600;
  border-radius: 6px; cursor: pointer; transition: opacity 0.2s; border: none; font-size: 0.9rem;
}
.newsletter-form button:hover { opacity: 0.8; }

/* Link Columns */
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }

/* The Bottom Bar (Copyright & Legal) */
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; font-size: 0.85rem; color: #666;
  flex-wrap: wrap; gap: 16px;
}
.copyright { font-size: 0.85rem; color: #666; }
.legal-links { display: flex; gap: 24px; }
.legal-links a { color: #666; transition: color 0.2s; }
.legal-links a:hover { color: #fff; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-newsletter { grid-column: span 2; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-newsletter { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .legal-links { justify-content: center; flex-wrap: wrap; }
}
