﻿:root {
  --bg: #071a33;
  --navy: #0b2242;
  --glass: rgba(15,45,83,0.74);
  --glass-strong: rgba(18,57,102,0.88);
  --border: rgba(148,197,255,0.18);
  --text: #f4f9ff;
  --muted: #a9bdd6;
  --cyan: #38c4ff;
  --violet: #7aa2ff;
  --emerald: #38d6a3;
  --pink: #ff7aa8;
  --amber: #ffc857;
  --rose: #ff6b8f;
  --radius-lg: 24px;
  --radius-md: 18px;
  --ease: 0.25s ease;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.aurora-bg,
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.aurora-bg {
  z-index: -3;
  background:
    radial-gradient(circle at 16% 8%, rgba(56, 196, 255, 0.22), transparent 30%),
    radial-gradient(circle at 82% 14%, rgba(122, 162, 255, 0.20), transparent 28%),
    radial-gradient(circle at 52% 88%, rgba(56, 214, 163, 0.14), transparent 32%),
    linear-gradient(135deg, #071a33 0%, #0a2446 48%, #061425 100%);
}

.grid-bg {
  z-index: -2;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(148,197,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,197,255,0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.22) 72%, transparent);
}

.portal-shell {
  width: min(1200px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(8,31,61,0.78);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 60px rgba(0,7,18,0.32);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #ffffff;
  font-size: 1.28rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(56,196,255,0.24);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: 0;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.nav-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: 999px;
  background: rgba(12,41,77,0.64);
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color var(--ease), background var(--ease);
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--text);
  background: rgba(56,196,255,0.14);
}

.launch-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background var(--ease);
}

.launch-btn {
  min-width: 108px;
  min-height: 44px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #ffffff;
  box-shadow: 0 0 32px rgba(56,196,255,0.24);
}

.launch-btn:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 42px rgba(56,196,255,0.32);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  gap: 28px;
  align-items: center;
  padding: 82px 0 56px;
}

.hero-content h1 {
  margin: 18px 0 0;
  max-width: 680px;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.system-badge,
.section-kicker,
.tile-status,
.preview-online {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  border: 1px solid rgba(52,211,153,0.26);
  background: rgba(52,211,153,0.09);
  color: #c9fff0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.system-badge { min-height: 32px; padding: 0 12px; }
.system-badge i,
.tile-status i,
.preview-online i,
.system-list i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 14px rgba(52,211,153,0.78);
}

.hero-lead {
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(1.18rem, 2.4vw, 1.72rem);
  font-weight: 700;
}

.hero-desc {
  max-width: 540px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--border);
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #ffffff;
}

.btn-secondary {
  background: rgba(13,45,83,0.62);
  color: var(--text);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(56,196,255,0.38);
  background: rgba(16,52,95,0.92);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 128px));
  gap: 12px;
  margin-top: 30px;
}

.mini-stats span {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid rgba(148,197,255,0.14);
  border-radius: 18px;
  background: rgba(13,45,83,0.72);
  backdrop-filter: blur(18px);
}

.mini-stats strong { font-size: 1.08rem; }
.mini-stats small { color: var(--muted); font-size: 0.78rem; font-weight: 700; }

.system-panel {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(13,45,83,0.86), rgba(8,31,61,0.74));
  overflow: hidden;
  backdrop-filter: blur(24px);
}

.system-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(8,145,178,0.16);
  border-radius: 24px;
}

.radar-core {
  position: relative;
  width: min(260px, 76vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56,196,255,0.30);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,196,255,0.18), rgba(122,162,255,0.10) 38%, transparent 64%);
}

.radar-core::before,
.radar-core::after,
.radar-core span {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(148,197,255,0.14);
}

.radar-core::before { inset: 18%; }
.radar-core::after { inset: 36%; background: linear-gradient(135deg, rgba(56,196,255,0.30), rgba(122,162,255,0.24)); }
.radar-core span:nth-child(1) { inset: -8%; border-color: rgba(255,107,143,0.18); }
.radar-core span:nth-child(2) { width: 62%; height: 1px; border: 0; background: linear-gradient(90deg, transparent, rgba(56,196,255,0.68), transparent); }
.radar-core span:nth-child(3) { width: 1px; height: 62%; border: 0; background: linear-gradient(180deg, transparent, rgba(122,162,255,0.68), transparent); }

.system-list {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.system-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(148,197,255,0.14);
  border-radius: 14px;
  background: rgba(8,31,61,0.78);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.projects-section {
  padding: 22px 0 72px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-kicker {
  min-height: 30px;
  padding: 0 12px;
  border-color: rgba(56,196,255,0.24);
  background: rgba(56,196,255,0.10);
  color: #dff7ff;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: 0;
}

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

.project-tile {
  --accent: var(--cyan);
  position: relative;
  min-height: 372px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.075);
  overflow: hidden;
  backdrop-filter: blur(22px);
  transition: transform var(--ease), border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.project-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 28%), color-mix(in srgb, var(--accent) 24%, transparent), transparent 36%);
  opacity: 0.72;
  pointer-events: none;
}

.project-tile > * { position: relative; }
.project-tile:hover {
  transform: perspective(900px) translateY(-6px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  border-color: color-mix(in srgb, var(--accent) 50%, rgba(255,255,255,0.18));
  background: rgba(16,52,95,0.92);
  box-shadow: 0 18px 54px rgba(0,7,18,0.34);
}

.project-tile.is-pressing { transform: perspective(900px) translateY(-2px) scale(0.995) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)); }
.accent-violet { --accent: var(--violet); }
.accent-cyan { --accent: var(--cyan); }
.accent-emerald { --accent: var(--emerald); }
.accent-amber { --accent: var(--amber); }
.accent-rose { --accent: var(--rose); }

.tile-status {
  min-height: 28px;
  padding: 0 10px;
  align-self: flex-start;
}

.tile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 1px solid rgba(148,197,255,0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 78%, #0e315d 0%), rgba(148,197,255,0.16));
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 900;
}

.tile-head strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.26rem;
  line-height: 1.1;
}

.tile-head small {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-preview {
  min-height: 150px;
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(148,197,255,0.14);
  border-radius: 22px;
  background: rgba(7,26,51,0.62);
}

.preview-header,
.progress-row,
.stock-card,
.preview-online {
  display: flex;
  align-items: center;
}

.preview-header {
  justify-content: space-between;
}

.preview-header i {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 46%, #09203d 54%);
}

.preview-header b,
.stock-card b {
  font-size: 1.34rem;
}

.preview-header em {
  width: 46px;
  height: 10px;
  border-radius: 999px;
  background: rgba(148,197,255,0.14);
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 9px;
  min-height: 54px;
}

.mini-bars i,
.line-chart i {
  flex: 1;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--accent), rgba(148,197,255,0.14));
}

.mini-bars i:nth-child(1) { height: 28px; }
.mini-bars i:nth-child(2) { height: 46px; }
.mini-bars i:nth-child(3) { height: 36px; }
.mini-bars i:nth-child(4) { height: 58px; }

.preview-online {
  min-height: 26px;
  padding: 0 9px;
  font-size: 0.72rem;
}

.mini-table {
  display: grid;
  gap: 9px;
}

.mini-table i {
  display: block;
  height: 22px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(15,23,42,0.12), rgba(15,23,42,0.04));
}

.progress-row {
  gap: 10px;
}

.progress-row b,
.progress-row em {
  display: block;
  height: 10px;
  border-radius: 999px;
}

.progress-row b { flex: 1; background: linear-gradient(90deg, var(--accent), rgba(148,197,255,0.14)); }
.progress-row em { width: 22%; background: rgba(148,197,255,0.14); }

.stock-card {
  justify-content: space-between;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(56,214,163,0.14);
}

.stock-card em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.line-chart {
  display: flex;
  align-items: end;
  gap: 7px;
  min-height: 54px;
}

.line-chart i:nth-child(1) { height: 28px; }
.line-chart i:nth-child(2) { height: 42px; }
.line-chart i:nth-child(3) { height: 34px; }
.line-chart i:nth-child(4) { height: 52px; }

.open-link {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(148,197,255,0.14);
  border-radius: 16px;
  background: rgba(13,45,83,0.62);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 900;
  transition: background var(--ease), border-color var(--ease);
}

.open-link i {
  font-style: normal;
  transition: transform var(--ease);
}

.project-tile:hover .open-link {
  border-color: color-mix(in srgb, var(--accent) 42%, rgba(148,197,255,0.14));
  background: color-mix(in srgb, var(--accent) 16%, rgba(255,255,255,0.62));
}

.project-tile:hover .open-link i { transform: translateX(4px); }

.portal-footer {
  margin-top: auto;
  padding: 26px 0 30px;
  color: rgba(169,189,214,0.86);
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 1020px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .project-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-panel { min-height: 360px; }
}

@media (max-width: 760px) {
  .portal-shell { width: min(100% - 28px, 1200px); }
  .topbar {
    position: relative;
    top: 0;
    flex-wrap: wrap;
    border-radius: 22px;
  }
  .brand { min-width: 0; flex: 1; }
  .nav-menu {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .nav-menu a { flex: 1; justify-content: center; padding: 0 8px; }
  .launch-btn { min-width: 96px; }
  .hero-section { padding: 52px 0 42px; }
  .hero-content h1 { font-size: clamp(3rem, 16vw, 4.6rem); }
  .mini-stats { grid-template-columns: 1fr; }
  .project-cards { grid-template-columns: 1fr; }
  .system-list { grid-template-columns: 1fr; }
  .system-panel { min-height: 390px; }
  .tile-head small { white-space: normal; }
}

@media (max-width: 420px) {
  .brand-copy strong { font-size: 0.9rem; }
  .brand-copy small { font-size: 0.7rem; }
  .brand-mark { width: 44px; height: 44px; }
  .launch-btn { min-height: 40px; min-width: 86px; }
  .hero-actions .btn { width: 100%; }
  .project-tile { min-height: 360px; padding: 18px; }
}

.salvage-flow,
.order-stack {
  display: grid;
  gap: 10px;
}

.salvage-flow {
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  min-height: 70px;
}

.salvage-flow i {
  display: block;
  border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 72%, #0e315d 0%), rgba(148,197,255,0.16));
  box-shadow: inset 0 0 0 1px rgba(148,197,255,0.12);
}

.salvage-flow i:nth-child(1) { height: 44px; }
.salvage-flow i:nth-child(2) { height: 64px; }
.salvage-flow i:nth-child(3) { height: 52px; }

.order-stack i {
  display: block;
  height: 24px;
  border-radius: 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 58%, #0e315d 18%), rgba(148,197,255,0.16));
  box-shadow: inset 0 0 0 1px rgba(148,197,255,0.10);
}

.order-stack i:nth-child(2) { width: 86%; }
.order-stack i:nth-child(3) { width: 64%; }

.project-tile {
  transform: perspective(900px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
}

.project-tile.is-ready {
  animation: tile-in 0.48s ease both;
  animation-delay: var(--delay, 0ms);
}

@keyframes tile-in {
  from { opacity: 0; filter: blur(4px); }
  to { opacity: 1; filter: blur(0); }
}







