@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #0b0f1f;
  --bg-2: #12162a;
  --card: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e8ecf3;
  --muted: #a9b3cc;
  --primary: #5b8cff;
  --accent: #b16cff;
  --success: #23d18b;
  --warning: #f5c542;
  --plan: #f78fb3;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1200px 700px at 20% -10%, #182140 0%, var(--bg) 55%),
    radial-gradient(900px 600px at 85% 18%, rgba(91, 140, 255, 0.18), transparent 65%),
    radial-gradient(720px 520px at 78% 88%, rgba(177, 108, 255, 0.18), transparent 70%),
    linear-gradient(135deg, rgba(21, 28, 55, 0.45), rgba(6, 8, 16, 0.95));
  background-attachment: fixed;
  background-size: 140% 140%;
  animation: background-drift 12s ease-in-out infinite;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

#neural-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  mix-blend-mode: screen;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.35), transparent 70%);
  filter: blur(60px);
  opacity: 0.7;
  z-index: -1;
  animation: orb-float 18s ease-in-out infinite;
  will-change: transform, opacity;
}

body::before {
  top: -120px;
  right: 10%;
  animation-delay: -6s;
}

body::after {
  bottom: -160px;
  left: 5%;
  background: radial-gradient(circle, rgba(177, 108, 255, 0.4), transparent 70%);
  animation: orb-float-reverse 22s ease-in-out infinite;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 10, 22, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

.cta {
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: border 0.2s ease, background 0.2s ease;
}

.cta:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: 1.1;
  margin: 0 0 18px;
}

.hero-text p {
  margin: 0 0 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 32px;
}

.btn {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 500;
  transition: transform 0.2s ease, border 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-stats div {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.hero-stats span {
  font-size: 1.6rem;
  font-weight: 600;
}

.hero-stats p {
  margin: 6px 0 0;
  color: var(--muted);
}

.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  margin-bottom: 26px;
}

.last-updated strong {
  color: var(--text);
}

.hero-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  min-height: 320px;
  aspect-ratio: 16 / 9;
}

.banner-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.status-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 20px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(35, 209, 139, 0.7);
  animation: pulse 2s infinite;
}

.status-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.status-list li {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.status-list strong {
  color: var(--text);
}

.status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.tag.live,
.legend-item.live,
.status-live {
  color: var(--success);
  border-color: rgba(35, 209, 139, 0.4);
  background: rgba(35, 209, 139, 0.1);
}

.tag.beta,
.legend-item.beta,
.status-beta {
  color: var(--warning);
  border-color: rgba(245, 197, 66, 0.4);
  background: rgba(245, 197, 66, 0.12);
}

.tag.build,
.legend-item.build,
.status-build {
  color: #8ab4ff;
  border-color: rgba(138, 180, 255, 0.4);
  background: rgba(138, 180, 255, 0.12);
}

.tag.plan,
.legend-item.plan,
.status-plan {
  color: var(--plan);
  border-color: rgba(247, 143, 179, 0.4);
  background: rgba(247, 143, 179, 0.12);
}

.section {
  padding: 72px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: start;
}

.about-stack {
  display: grid;
  gap: 28px;
}

.about-content {
  max-width: 780px;
}

.about-content h2 {
  margin: 0 0 10px;
}

.about-content p {
  margin: 0;
}

.about-content p + p {
  margin-top: 10px;
}

.about-lead {
  font-size: 1.05rem;
}

.info-grid {
  display: grid;
  gap: 18px;
}

.about-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 36px rgba(4, 7, 16, 0.25);
}

.info-card::before {
  content: "";
  position: absolute;
  inset: -40% 40% 40% -40%;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.info-card:hover::before {
  opacity: 1;
}

.info-card h3 {
  margin: 0 0 10px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legend-item {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.project-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 16px 36px rgba(4, 7, 16, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.project-number {
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.project-status {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
}

.project-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-meta li {
  display: flex;
  gap: 8px;
}

.project-meta li::before {
  content: "•";
  color: var(--primary);
}

.progress {
  margin-top: auto;
}

.progress-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.progress-bar {
  margin-top: 8px;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1.2s ease;
}

.project-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.project-links a,
.project-links button {
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.85rem;
  transition: border 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.project-links a:hover,
.project-links button:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.project-links .ghost {
  background: rgba(255, 255, 255, 0.04);
}

.project-links button {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.project-links .details-btn {
  border-color: rgba(91, 140, 255, 0.5);
  grid-column: span 2;
}

.project-links .details-btn:hover {
  border-color: rgba(91, 140, 255, 0.9);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.link-card {
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.3s ease, border 0.3s ease;
}

.link-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
}

.contact-section {
  position: relative;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: start;
}

.contact-intro {
  display: grid;
  gap: 16px;
}

.contact-intro h2 {
  margin: 0;
}

.contact-intro p {
  margin: 0;
  max-width: 640px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.contact-mini {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 8px;
  min-height: 110px;
}

.contact-mini h4 {
  margin: 0;
  font-size: 0.95rem;
}

.contact-mini p {
  margin: 0;
  font-size: 0.9rem;
}

.contact-panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 22px;
  display: grid;
  gap: 18px;
  box-shadow: 0 18px 36px rgba(4, 7, 16, 0.25);
}

.contact-panel-header h3 {
  margin: 0 0 6px;
}

.contact-panel-header p {
  margin: 0;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.contact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.contact-value {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.contact-value:hover {
  color: #ffffff;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 16, 0.72);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(720px, 92%);
  max-height: 85vh;
  overflow: auto;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #0f1428;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}

.modal-status {
  display: inline-flex;
  margin-bottom: 12px;
}

.modal-body {
  color: var(--muted);
  font-size: 0.95rem;
}

.modal-body ul {
  margin: 12px 0 0 18px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.modal-body strong {
  color: var(--text);
}

.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.modal-links a {
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.85rem;
  transition: border 0.2s ease, transform 0.2s ease;
}

.modal-links a:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.modal-links .ghost {
  background: rgba(255, 255, 255, 0.04);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

@keyframes background-drift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 40%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@keyframes orb-float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate3d(36px, -28px, 0) scale(1.12);
    opacity: 0.9;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.65;
  }
}

@keyframes orb-float-reverse {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translate3d(-32px, 30px, 0) scale(1.1);
    opacity: 0.85;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.6;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta {
    display: none;
  }

  .hero-banner {
    min-height: 240px;
    aspect-ratio: 4 / 3;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-links {
    grid-template-columns: 1fr;
  }

  .project-links .details-btn {
    grid-column: auto;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-value {
    text-align: left;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
