/* ============================================
   ALTOFLY MX — DESIGN TOKENS
   ============================================ */
:root {
  --bg-deep: #0A1420;
  --bg-base: #0D1B2A;
  --bg-card: #0F2133;
  --bg-card-hover: #14293D;
  --blue: #3B7AFF;
  --blue-dim: #2C5FD4;
  --teal: #00C9A7;
  --teal-dim: #00A88B;
  --orange: #C06020;
  --text-bright: #FFFFFF;
  --text-light: #E8F0FF;
  --text-muted: #8EA0B8;
  --text-dim: #5A7088;
  --border-soft: rgba(59, 122, 255, 0.18);
  --border-strong: rgba(59, 122, 255, 0.4);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-bright);
  letter-spacing: -0.01em;
}

.accent { color: var(--teal); }

/* ============================================
   STATUS BAR — signature telemetry strip
   ============================================ */
.statusbar {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  overflow: hidden;
  white-space: nowrap;
}
.statusbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 7px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.sb-item { display: flex; align-items: center; gap: 7px; color: var(--text-dim); }
.sb-sep { border-left: 1px solid var(--border-soft); padding-left: 28px; margin-left: -8px; }
.sb-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal);
  animation: pulse 2s ease-in-out infinite;
}
.sb-time { margin-left: auto; color: var(--teal); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

@media (max-width: 640px) {
  .sb-hide-sm { display: none; }
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(10px);
}
.nav-logo img { height: 38px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a { color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text-bright); }
.nav-cta {
  background: var(--blue);
  color: var(--text-bright) !important;
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
}
.nav-cta:hover { background: var(--blue-dim); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text-light);
  border-radius: 2px;
}

@media (max-width: 800px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 70%;
    max-width: 320px;
    background: var(--bg-deep);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--border-soft);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-dim); }
.btn-ghost { background: transparent; color: var(--text-light); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-outline-light { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline-light:hover { border-color: var(--teal); color: var(--teal); }
.btn-block { width: 100%; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 24px 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 8%, rgba(59,122,255,0.22), transparent 60%),
    linear-gradient(180deg, #060B12 0%, #0A1420 45%, #0D1B2A 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 35%, black 15%, transparent 78%);
  animation: gridDrift 40s linear infinite;
}
@keyframes gridDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 56px 112px, 56px 112px; }
}
.hero::before {
  content: '';
  position: absolute;
  top: -14%; left: 50%;
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse, rgba(59,122,255,0.20), transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(0deg, var(--bg-base) 0%, transparent 100%);
  pointer-events: none;
}

/* Streaking light lines — signature motion element */
.hero-streak {
  position: absolute;
  height: 1px;
  width: 220px;
  background: linear-gradient(90deg, transparent, rgba(59,122,255,0.9), transparent);
  opacity: 0;
  animation: streak 6s ease-in infinite;
}
.hero-streak:nth-child(1) { top: 22%; left: -10%; animation-delay: 0s; }
.hero-streak:nth-child(2) { top: 58%; left: -10%; width: 160px; animation-delay: 2.2s; }
.hero-streak:nth-child(3) { top: 74%; left: -10%; width: 260px; animation-delay: 4.1s; }
@keyframes streak {
  0% { transform: translateX(0); opacity: 0; }
  8% { opacity: 0.8; }
  45% { opacity: 0.5; }
  60% { transform: translateX(135vw); opacity: 0; }
  100% { transform: translateX(135vw); opacity: 0; }
}

.hero-wordmark {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  opacity: 0.92;
}
.hero-wordmark img { height: 30px; }

.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 26px;
  letter-spacing: -0.02em;
}
.hero-title .line2 { display: block; }
.accent {
  background: linear-gradient(90deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.hero-coords {
  position: absolute;
  bottom: 28px;
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  z-index: 2;
}

@media (max-width: 640px) {
  .hero { min-height: 86vh; padding-bottom: 70px; }
  .hero-coords { flex-wrap: wrap; justify-content: center; gap: 14px; padding: 0 16px; }
}

/* ============================================
   SECTION HEAD (shared)
   ============================================ */
.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
  padding: 0 24px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub { color: var(--text-muted); font-size: 1.02rem; }

/* ============================================
   SERVICES — MODULE GRID
   ============================================ */
.services { padding: 100px 24px; max-width: var(--container); margin: 0 auto; }
.modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.module {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.25s, transform 0.25s;
}
.module:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.module-wide { grid-column: 1 / -1; }
.module-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.module-id {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue);
  letter-spacing: 0.08em;
  font-weight: 600;
}
.module-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border-radius: 100px;
  font-weight: 600;
}
.status-live { background: rgba(0,201,167,0.12); color: var(--teal); border: 1px solid rgba(0,201,167,0.3); }
.status-soon { background: rgba(192,96,32,0.14); color: #E0935A; border: 1px solid rgba(192,96,32,0.35); }

.module h3 { font-size: 1.35rem; margin-bottom: 12px; font-weight: 600; }
.module-desc { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 18px; }
.module-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; }
.module-list li {
  font-size: 0.88rem;
  color: var(--text-light);
  padding-left: 18px;
  position: relative;
}
.module-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.module-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  transition: color 0.2s;
}
.module-link:hover { color: var(--teal); }

.module-wide-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}
.module-wide-img img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}

/* Marketing — coming soon, blurred */
.module-marketing {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}
.marketing-bg { position: absolute; inset: 0; z-index: 0; }
.marketing-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(0.75) brightness(0.55);
  transform: scale(1.12);
}
.marketing-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(13,27,42,0.88), rgba(13,27,42,0.65));
}
.marketing-content {
  position: relative;
  z-index: 2;
  padding: 40px 32px;
  max-width: 520px;
}
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--teal);
  border: 1px solid rgba(0,201,167,0.4);
  background: rgba(0,201,167,0.08);
  padding: 9px 20px;
  border-radius: 100px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .modules { grid-template-columns: 1fr; }
  .module-wide-grid { grid-template-columns: 1fr; }
  .module-wide-img { order: -1; }
}

/* ============================================
   ABOUT US
   ============================================ */
.about {
  position: relative;
  padding: 110px 24px;
  max-width: var(--container);
  margin: 0 auto;
  overflow: hidden;
}
.about-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.18;
  mask-image: radial-gradient(ellipse 50% 60% at 50% 50%, black 0%, transparent 80%);
}
.about-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.about-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}
.about-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 56px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
  padding: 36px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.about-stat { display: flex; flex-direction: column; gap: 8px; }
.about-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--blue);
}
.about-stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.about-closing {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .about-stats { grid-template-columns: 1fr; gap: 28px; text-align: center; }
}

/* ============================================
   NELA — COMING SOON
   ============================================ */
.nela {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.nela-bg { position: absolute; inset: 0; z-index: 0; }
.nela-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(0.7) brightness(0.5);
  transform: scale(1.1);
}
.nela-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,32,0.75), rgba(10,20,32,0.92) 70%, var(--bg-base));
}
.nela-scanline {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,201,167,0.6), transparent);
  animation: scan 5s linear infinite;
  opacity: 0.6;
}
@keyframes scan {
  0% { top: 0%; }
  100% { top: 100%; }
}
.nela-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  padding: 0 24px;
}
.nela-title {
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px rgba(59,122,255,0.25);
}
.nela-tag {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 28px;
}
.nela-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--teal);
  border: 1px solid rgba(0,201,167,0.4);
  background: rgba(0,201,167,0.08);
  padding: 9px 20px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.nela-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse 1.6s ease-in-out infinite;
}
.nela-desc { color: var(--text-muted); margin-bottom: 32px; font-size: 0.98rem; }

/* ============================================
   UNIVERSITY DETAIL
   ============================================ */
.university { padding: 100px 24px; max-width: var(--container); margin: 0 auto; }
.uni-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.uni-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: left;
}
.uni-icon { font-size: 1.6rem; display: block; margin-bottom: 14px; }
.uni-card h4 { font-size: 1.02rem; margin-bottom: 8px; font-weight: 600; }
.uni-card p { font-size: 0.86rem; color: var(--text-muted); }

.uni-network {
  text-align: center;
  border-top: 1px solid var(--border-soft);
  padding-top: 40px;
}
.uni-network-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  .uni-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .uni-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CONTACT + FOOTER
   ============================================ */
.contact {
  padding: 100px 24px 0;
  max-width: var(--container);
  margin: 0 auto;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
}
.contact-left h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 16px; }
.contact-channels { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.contact-channel {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
  transition: border-color 0.2s;
}
.contact-channel:hover { border-color: var(--teal); }
.cc-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--text-dim); text-transform: uppercase; }
.cc-value { font-size: 1rem; font-weight: 500; color: var(--text-light); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--bg-deep);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--blue); }
.form-success {
  display: none;
  text-align: center;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 500;
}
.form-success.show { display: block; }

.footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0 32px;
  text-align: center;
}
.footer-logo { height: 32px; margin: 0 auto 12px; opacity: 0.9; border-radius: 6px; background: white; padding: 4px 8px; }
.footer-tag {
  font-family: 'Segoe Script', 'Brush Script MT', cursive;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
  font-style: italic;
}
.footer-copy { font-size: 0.78rem; color: var(--text-dim); }

@media (max-width: 800px) {
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}
