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

:root {
  --bg: #05070d;
  --bg-soft: #0b1020;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(0, 245, 255, 0.24);
  --text: #ffffff;
  --muted: #b8c2d6;
  --cyan: #00f5ff;
  --green: #00ff9d;
  --violet: #7c5cff;
  --dark: #020409;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Courier New", monospace;
  overflow-x: hidden;
}

body.loaded .page-loader {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #020409;
  display: grid;
  place-items: center;
  transition: 0.7s ease;
}

.loader-text {
  color: var(--cyan);
  font-size: clamp(20px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: 6px;
  animation: pulseText 1.4s ease-in-out infinite;
}

.loader-line {
  position: absolute;
  bottom: 40%;
  width: min(340px, 70%);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: loaderMove 1.2s ease-in-out infinite;
}

@keyframes loaderMove {
  0% { transform: scaleX(0); opacity: 0; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0); opacity: 0; }
}

@keyframes pulseText {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 20%, #fff 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, #fff 0 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 50;
}

.floating-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.38;
  z-index: -1;
  animation: floatOrb 9s ease-in-out infinite alternate;
}

.orb-one {
  width: 260px;
  height: 260px;
  background: var(--cyan);
  left: -80px;
  top: 140px;
}

.orb-two {
  width: 320px;
  height: 320px;
  background: var(--violet);
  right: -120px;
  top: 80px;
  animation-delay: 1.3s;
}

.orb-three {
  width: 240px;
  height: 240px;
  background: var(--green);
  right: 20%;
  bottom: -120px;
  animation-delay: 2.4s;
}

@keyframes floatOrb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(38px, -28px, 0) scale(1.08); }
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(16px);
  transition: 0.3s ease;
}

.site-header.scrolled {
  top: 8px;
  background: rgba(5, 7, 13, 0.95);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.logo {
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--cyan);
  font-weight: 900;
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.15);
  animation: logoGlow 2.5s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(0, 245, 255, 0.12); }
  50% { box-shadow: 0 0 34px rgba(0, 245, 255, 0.38); }
}

.logo-text {
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: 0.25s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  height: 1px;
  width: 0;
  left: 0;
  bottom: -6px;
  background: var(--cyan);
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 9px;
}

.menu-btn span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--cyan);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 24px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 42px;
  width: min(1180px, 100%);
  margin: auto;
}

.hero::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(0,245,255,0.2), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(88,86,214,0.22), transparent 28%),
    radial-gradient(circle at 50% 90%, rgba(0,255,157,0.1), transparent 28%),
    linear-gradient(135deg, #05070d 0%, #07111f 45%, #020409 100%);
  z-index: -3;
}

.hero-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,245,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  z-index: -2;
  animation: gridMove 18s linear infinite;
}

@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 96px 96px; }
}

.eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 20px;
}

h1 {
  min-height: 190px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.05;
  letter-spacing: -3px;
  margin-bottom: 24px;
}

#typewriter {
  color: var(--text);
  text-shadow: 0 0 28px rgba(0, 245, 255, 0.3);
}

.cursor {
  color: var(--cyan);
  animation: blink 0.75s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-subtitle {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  transition: 0.25s;
}

.primary-btn {
  background: var(--cyan);
  color: #001014;
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.2);
}

.secondary-btn {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.btn:hover {
  transform: translateY(-3px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: #dffcff;
  background: rgba(255,255,255,0.05);
  font-size: 13px;
  animation: tagFloat 4s ease-in-out infinite;
}

.hero-tags span:nth-child(2) { animation-delay: 0.4s; }
.hero-tags span:nth-child(3) { animation-delay: 0.8s; }
.hero-tags span:nth-child(4) { animation-delay: 1.2s; }
.hero-tags span:nth-child(5) { animation-delay: 1.6s; }

@keyframes tagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.terminal-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(2, 4, 9, 0.75);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,0.45), 0 0 50px rgba(0,245,255,0.1);
  transform: rotate(1.2deg);
  transition: 0.35s ease;
}

.terminal-card:hover {
  transform: rotate(0deg) translateY(-8px);
  box-shadow: 0 40px 120px rgba(0,0,0,0.55), 0 0 70px rgba(0,245,255,0.18);
}

.terminal-top {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
}

.terminal-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.8;
}

.terminal-body {
  padding: 24px;
  min-height: 330px;
}

.terminal-body p {
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.green {
  color: var(--green);
}

.cyan {
  color: var(--cyan);
}

.success {
  color: var(--green) !important;
  margin-top: 30px;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 90px 0;
}

.section-title {
  max-width: 850px;
  margin-bottom: 34px;
}

.section-title p {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-title h2,
.join-text h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -1.5px;
}

.about-card,
.contact-card {
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--card);
  border-radius: 24px;
  padding: 32px;
  color: var(--muted);
  line-height: 1.8;
  position: relative;
  overflow: hidden;
}

.about-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(0,245,255,0.08), transparent);
  transform: translateX(-100%);
  transition: 0.8s ease;
}

.about-card:hover::before,
.contact-card:hover::before {
  transform: translateX(100%);
}

.about-card p,
.contact-card p,
.contact-card h3,
.email-link {
  position: relative;
  z-index: 1;
}

.about-card p + p {
  margin-top: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.stat-card {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  border-radius: 22px;
  padding: 26px;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: clamp(36px, 5vw, 58px);
  color: var(--cyan);
  margin-bottom: 8px;
}

.stat-card span {
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 240px;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  transition: 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  background: rgba(0,245,255,0.1);
  transition: 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--line);
  box-shadow: 0 20px 70px rgba(0,0,0,0.25);
}

.service-card:hover::after {
  transform: scale(1.8);
}

.service-icon {
  color: var(--green);
  font-weight: 900;
  margin-bottom: 20px;
}

.service-card h3 {
  color: var(--cyan);
  margin-bottom: 14px;
  font-size: 21px;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--muted);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.timeline-item {
  padding: 26px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  position: relative;
  transition: 0.25s ease;
}

.timeline-item:hover {
  transform: translateY(-6px);
  border-color: var(--line);
}

.timeline-item span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(0,245,255,0.1);
  color: var(--cyan);
  font-weight: 900;
  margin-bottom: 20px;
}

.timeline-item h3 {
  margin-bottom: 12px;
  color: #ffffff;
}

.timeline-item p {
  color: var(--muted);
  line-height: 1.7;
}

.join-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: start;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(0,245,255,0.12), transparent 35%),
    rgba(255,255,255,0.06);
}

.join-text p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
  margin-top: 20px;
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.mini-list span {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(0,245,255,0.08);
  border: 1px solid rgba(0,245,255,0.18);
  font-size: 13px;
}

.join-form {
  border-radius: 24px;
  padding: 28px;
  background: rgba(2,4,9,0.66);
  border: 1px solid rgba(255,255,255,0.1);
}

.join-form label {
  display: block;
  margin-bottom: 8px;
  color: #e8faff;
  font-size: 14px;
}

.join-form input,
.join-form select,
.join-form textarea {
  width: 100%;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  outline: none;
  background: #080c16;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}

.join-form textarea {
  min-height: 110px;
  resize: vertical;
}

.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,245,255,0.08);
}

.join-form button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: var(--cyan);
  color: #001014;
  font-weight: 900;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
  transition: 0.25s;
}

.join-form button:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

#formStatus {
  min-height: 22px;
  color: var(--green);
  margin-top: 14px;
  line-height: 1.5;
}

.contact-card {
  max-width: 620px;
}

.contact-card h3 {
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 24px;
}

.email-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 800;
}

.floating-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 15;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--cyan);
  color: #001014;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 0 30px rgba(0,245,255,0.25);
  animation: ctaPulse 2s infinite;
}

@keyframes ctaPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 28px rgba(0,245,255,0.22); }
  50% { transform: scale(1.04); box-shadow: 0 0 44px rgba(0,245,255,0.38); }
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 30px 0 50px;
  color: #7f8aa3;
  border-top: 1px solid rgba(255,255,255,0.08);
  line-height: 1.6;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

.delay-3 {
  transition-delay: 0.36s;
}

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

@media (max-width: 900px) {
  .hero,
  .join-wrapper {
    grid-template-columns: 1fr;
  }

  .terminal-card {
    transform: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    min-height: 150px;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 230px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(5, 7, 13, 0.96);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .hero {
    padding-top: 120px;
  }

  .services-grid,
  .timeline,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .join-wrapper {
    padding: 22px;
  }

  .join-form {
    padding: 22px;
  }

  h1 {
    letter-spacing: -2px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .floating-cta {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
