@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #050505;
  --bg-alt: #0b0f12;
  --panel: rgba(10, 14, 18, 0.75);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --neon: #00e6ff;
  --neon-bright: #45f8ff;
  --text: #e6f2f5;
  --muted: #a4b5be;
  --border: rgba(0, 246, 255, 0.2);
  --shadow: rgba(0, 246, 255, 0.25);
  --accent-sovereign: #2feaff;
  --accent-market: #7eff95;
  --accent-sentinel: #55baff;
}

* {
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at 20% 0%, #0a1014 0%, #050505 45%, #040404 100%);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  position: relative;
  transition: all 0.3s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 230, 255, 0.12), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(126, 255, 149, 0.08), transparent 50%),
    linear-gradient(120deg, rgba(6, 12, 18, 0.9), rgba(2, 4, 6, 0.95));
  opacity: 0.9;
  z-index: -2;
  animation: drift 18s ease-in-out infinite;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: -20%;
  background-image:
    linear-gradient(rgba(0, 246, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 246, 255, 0.08) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.15;
  z-index: -1;
  animation: gridShift 28s linear infinite;
  pointer-events: none;
}

header {
  text-align: center;
  padding: 3.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('images/skyline.jpg') center/cover no-repeat;
  filter: brightness(0.4) blur(2px);
  transform: scale(1.05);
  z-index: 0;
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.25), rgba(8, 10, 12, 0.6));
  z-index: 1;
}

header > * {
  position: relative;
  z-index: 2;
}

header h1 {
  font-size: 3.2rem;
  color: var(--neon);
  animation: glitch 2.5s infinite;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-subhead {
  max-width: 720px;
  margin: 0.75rem auto 1.5rem;
  font-size: 1.15rem;
  color: #c9d7de;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-actions .cta-button {
  margin-top: 0;
}

main {
  padding: 2rem 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

h1,
h2,
h3,
h4 {
  font-family: 'Orbitron', sans-serif;
}

h2 {
  color: var(--neon);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
}

p {
  color: var(--muted);
  margin: 0 0 1rem;
}

ul {
  list-style-type: none;
  padding-left: 1rem;
  margin: 0;
}

ul li {
  margin-bottom: 0.5rem;
}

ul li::before {
  content: ">";
  color: var(--neon);
  padding-right: 0.5rem;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #0b0b0b;
  color: #6c7a83;
  font-size: 0.9rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
  background-color: #070707;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.menu li {
  position: relative;
  padding: 0.5rem 0;
}

.menu a {
  color: var(--neon);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  display: block;
  position: relative;
}

.menu a:hover {
  color: var(--neon-bright);
  text-shadow: 0 0 10px var(--neon);
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.menu a:hover::after {
  transform: scaleX(1);
}

.menu-caret {
  margin-left: 0.35rem;
  color: var(--neon-bright);
  font-size: 0.85rem;
}

.submenu {
  display: none;
  position: absolute;
  background-color: rgba(8, 12, 16, 0.98);
  top: 2.5rem;
  left: 0;
  padding: 0.5rem 0;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  min-width: 200px;
  z-index: 1000;
}

.submenu li {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.dropdown:hover .submenu {
  display: block;
}

@keyframes glitch {
  0% { text-shadow: 0 0 2px #0ff, 0 0 5px #0ff; }
  20% { text-shadow: -2px 0 red, 2px 0 blue; }
  40% { text-shadow: 2px 0 red, -2px 0 blue; }
  60% { text-shadow: 0 0 2px #0ff, 0 0 10px #0ff; }
  80% { text-shadow: 1px 0 red, -1px 0 blue; }
  100% { text-shadow: 0 0 2px #0ff, 0 0 5px #0ff; }
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-2%, -1%, 0) scale(1.02);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes gridShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(3%, 2%, 0);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 10px rgba(0, 246, 255, 0.25), 0 0 24px rgba(0, 246, 255, 0.18);
  }
  50% {
    box-shadow: 0 0 18px rgba(0, 246, 255, 0.45), 0 0 40px rgba(0, 246, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 10px rgba(0, 246, 255, 0.25), 0 0 24px rgba(0, 246, 255, 0.18);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.sector-card {
  background: rgba(6, 8, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  --sector-accent: var(--neon);
}

.sector-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--sector-accent), transparent);
  opacity: 0.8;
}

.sector-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(0, 246, 255, 0.12);
}

.sector-sovereign {
  --sector-accent: var(--accent-sovereign);
}

.sector-market {
  --sector-accent: var(--accent-market);
}

.sector-sentinel {
  --sector-accent: var(--accent-sentinel);
}

.sector-header h3 {
  color: var(--neon);
  margin: 0 0 0.35rem;
  letter-spacing: 1px;
}

.sector-card:hover .sector-header h3 {
  color: var(--sector-accent);
  text-shadow: 0 0 10px rgba(0, 246, 255, 0.25);
}

.sector-header p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.app-grid {
  display: grid;
  gap: 0.85rem;
}

.app-card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
}

.app-card img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  background: rgba(5, 10, 12, 0.6);
  border: 1px solid rgba(0, 246, 255, 0.18);
  border-radius: 10px;
  padding: 0.5rem;
  filter: drop-shadow(0 0 12px rgba(0, 230, 255, 0.2));
}

.app-card h4 {
  color: var(--neon-bright);
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.app-chips span {
  font-size: 0.7rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(6, 16, 20, 0.75);
  border: 1px solid rgba(0, 246, 255, 0.2);
  color: #cfe7ed;
}

.app-card p {
  color: #cdd9df;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 246, 255, 0.75);
  animation: pulseGlow 1.8s ease-in-out infinite;
  box-shadow: 0 0 16px rgba(0, 246, 255, 0.25), 0 0 32px rgba(0, 246, 255, 0.16);
}

.app-card:focus-visible {
  outline: 2px solid rgba(0, 246, 255, 0.8);
  outline-offset: 3px;
}

.cta-button {
  display: inline-block;
  background-color: var(--neon);
  color: #020405;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1.5rem;
  box-shadow: 0 0 18px rgba(0, 230, 255, 0.6);
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: var(--neon-bright);
  color: #000;
  box-shadow: 0 0 26px rgba(0, 246, 255, 0.9);
  transform: translateY(-2px);
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--neon);
  border: 1px solid rgba(0, 246, 255, 0.5);
  box-shadow: none;
}

.cta-button.secondary:hover {
  background-color: rgba(0, 246, 255, 0.12);
  color: #dffbff;
  box-shadow: 0 0 16px rgba(0, 246, 255, 0.35);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(20px);
  z-index: 2000;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  background: #050505;
  border: 1px solid var(--neon);
  border-radius: 16px;
  width: min(90vw, 760px);
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 246, 255, 0.2);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 246, 255, 0.6);
  background: rgba(5, 10, 12, 0.8);
  color: var(--neon-bright);
  font-family: 'Orbitron', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 246, 255, 0.15);
  box-shadow: 0 0 12px rgba(0, 246, 255, 0.4);
}

.modal-body {
  display: grid;
  gap: 1.25rem;
}

.modal-logo {
  width: 140px;
  max-height: 140px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(0, 246, 255, 0.25);
  padding: 0.75rem;
  background: rgba(6, 10, 12, 0.75);
}

.modal-section h4 {
  color: var(--neon);
  margin-bottom: 0.5rem;
}

.modal-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.modal-specs li {
  padding-left: 1.2rem;
  position: relative;
  color: #d0dbe2;
}

.modal-specs li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--neon);
}

.modal-philosophy {
  color: #cdd9df;
  margin: 0;
}

body.modal-open {
  overflow: hidden;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form label {
  color: var(--neon);
}

form input[type="email"],
form textarea {
  background-color: rgba(5, 7, 9, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  padding: 0.75rem;
  border-radius: 6px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
}

form input[type="email"]:focus,
form textarea:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 10px rgba(0, 230, 255, 0.5);
}

form input[type="submit"] {
  background-color: var(--neon);
  color: #020405;
  border: none;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

form input[type="submit"]:hover {
  background-color: var(--neon-bright);
  color: #000;
  box-shadow: 0 0 16px rgba(0, 246, 255, 0.8);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .sectors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .menu {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .sectors-grid {
    grid-template-columns: 1fr;
  }

  header h1 {
    font-size: 2.4rem;
  }
}
