:root {
  --bg: #020812;
  --surface: rgba(5, 17, 31, .88);
  --surface-2: rgba(7, 22, 39, .72);
  --line: rgba(99, 153, 205, .25);
  --line-strong: rgba(58, 142, 229, .42);
  --text: #f5f8fd;
  --muted: #a8b5c8;
  --blue: #138cff;
  --cyan: #00dcff;
  --green: #35f2ae;
  --purple: #aa63ff;
  --yellow: #ffba28;
  --radius: 18px;
  --topbar-h: 86px;
  --footer-h: 54px;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100dvh;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 30%, rgba(0, 101, 214, .12), transparent 30%),
    linear-gradient(135deg, #020812 0%, #03101d 48%, #01060e 100%);
  font-family: Inter, system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(84, 143, 200, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 143, 200, .07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 75%, transparent);
}

.ambient {
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .08;
  pointer-events: none;
}
.ambient-one { background: #0089ff; right: -15vw; top: -15vw; }
.ambient-two { background: #00e5ba; left: -22vw; bottom: -25vw; }

.topbar {
  height: var(--topbar-h);
  padding: 0 clamp(24px, 3vw, 54px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 8, 18, .8);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 5;
}

.brand img {
  display: block;
  width: clamp(185px, 15vw, 270px);
  max-height: 55px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(1.18) contrast(1.08);
}

.ecosystem {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c9d5e4;
  font-size: clamp(10px, .82vw, 14px);
  font-weight: 600;
  letter-spacing: .18em;
  white-space: nowrap;
}
.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(53, 242, 174, .11), 0 0 20px var(--green);
}

.platform-button {
  justify-self: end;
  height: 48px;
  padding: 0 24px;
  border: 1px solid #087cff;
  border-radius: 12px;
  color: white;
  font: 700 12px Inter, sans-serif;
  letter-spacing: .08em;
  background: linear-gradient(180deg, rgba(10, 96, 216, .85), rgba(3, 54, 128, .72));
  box-shadow: 0 0 32px rgba(0, 111, 255, .22), inset 0 1px rgba(255,255,255,.14);
  cursor: pointer;
  transition: .25s ease;
}
.platform-button:hover { transform: translateY(-2px); filter: brightness(1.15); }
.lock-icon { margin-right: 8px; color: #79bbff; }

.app-shell {
  height: calc(100dvh - var(--topbar-h) - var(--footer-h));
  min-height: 0;
  padding: clamp(18px, 2vh, 28px) clamp(22px, 2.4vw, 42px);
  display: grid;
  grid-template-columns: minmax(300px, 29%) minmax(0, 1fr);
  gap: clamp(22px, 2.5vw, 38px);
}

.intro-panel,
.projects-panel {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(6, 21, 38, .86), rgba(2, 11, 22, .74));
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 20px 60px rgba(0,0,0,.18);
}

.intro-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  overflow: hidden;
  padding: clamp(20px, 2.3vh, 30px);
}

.eyebrow, .section-kicker {
  color: var(--blue);
  font: 700 11px Inter, sans-serif;
  letter-spacing: .18em;
}
.intro-copy h1 {
  max-width: 420px;
  margin: 12px 0 12px;
  font: 700 clamp(28px, 2.3vw, 42px)/1.02 Rajdhani, Inter, sans-serif;
  letter-spacing: -.02em;
}
.intro-copy p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(12px, .9vw, 16px);
  line-height: 1.55;
}

.hero-visual {
  min-height: 0;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  transform: scale(1.02);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(1,8,16,.04), rgba(2,10,20,.28) 60%, rgba(2,10,20,.9));
}
.hero-grid {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(0,137,255,.14), transparent 60%);
  mix-blend-mode: screen;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 4px;
  border: 1px solid rgba(62, 132, 194, .18);
  border-radius: 11px;
  background: rgba(1, 12, 25, .66);
}
.capabilities div { text-align: center; }
.cap-icon {
  display: block;
  color: var(--cyan);
  font-size: clamp(18px, 1.45vw, 28px);
  line-height: 1.1;
  text-shadow: 0 0 14px rgba(0,220,255,.45);
}
.capabilities small {
  color: #d7e1ef;
  font-size: clamp(7px, .58vw, 10px);
  line-height: 1.35;
  letter-spacing: .06em;
}

.system-status {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(53, 242, 174, .17);
  border-radius: 10px;
  background: rgba(0, 25, 35, .62);
  font-size: clamp(8px, .63vw, 11px);
  letter-spacing: .05em;
}
.system-status span { display: flex; align-items: center; gap: 8px; }
.system-status i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 12px var(--green);
}
.system-status strong { color: var(--green); font-weight: 500; }

.projects-panel {
  padding: clamp(16px, 2vh, 26px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(12px, 1.6vh, 20px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0 4px;
}
.section-heading h2 {
  margin: 5px 0 0;
  font: 700 clamp(23px, 1.9vw, 34px)/1 Rajdhani, Inter, sans-serif;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.section-heading h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 9px;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(19,140,255,.55);
}
.project-counter { text-align: right; }
.project-counter strong {
  display: block;
  color: var(--blue);
  font: 700 clamp(27px, 2vw, 38px)/.8 Rajdhani, sans-serif;
}
.project-counter span { color: var(--muted); font-size: 9px; letter-spacing: .15em; }

.projects-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.2vh, 15px);
}

.project-card {
  min-height: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(112, 158, 201, .31);
  border-radius: 15px;
  background: #06111f;
  box-shadow: inset 0 1px rgba(255,255,255,.04);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 149, 255, .72);
  box-shadow: 0 13px 35px rgba(0, 48, 100, .25), inset 0 1px rgba(255,255,255,.06);
}
.project-card > img {
  position: absolute;
  inset: 0 0 38px 0;
  width: 100%;
  height: calc(100% - 38px);
  object-fit: cover;
  transition: transform .45s ease;
}
.project-card:hover > img { transform: scale(1.035); }

.image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 12, 24, .96) 0%, rgba(3, 12, 24, .72) 40%, rgba(3, 12, 24, .12) 75%),
    linear-gradient(to top, rgba(3, 12, 24, .96) 0%, transparent 50%);
}

.project-argos {
  grid-row: 1 / span 2;
}
.project-argos > img {
  object-position: center;
}
.project-argos .image-overlay {
  background:
    linear-gradient(90deg, rgba(3, 12, 24, .97) 0%, rgba(3, 12, 24, .53) 46%, rgba(3, 12, 24, .08) 78%),
    linear-gradient(to top, rgba(3, 12, 24, .95), transparent 46%);
}

.project-number {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 20px;
  color: var(--blue);
  font: 700 clamp(16px, 1.2vw, 23px) Rajdhani, sans-serif;
}
.project-status {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 13px;
  padding: 6px 11px;
  border: 1px solid rgba(53, 242, 174, .25);
  border-radius: 7px;
  color: var(--green);
  background: rgba(0, 40, 37, .63);
  font-size: clamp(7px, .55vw, 10px);
  letter-spacing: .05em;
}

.project-content {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 50px;
  width: min(67%, 360px);
}
.project-content h3 {
  margin: 3px 0 3px;
  font: 700 clamp(23px, 1.75vw, 34px)/1 Rajdhani, sans-serif;
}
.project-content p {
  margin: 0;
  color: #d0d8e4;
  font-size: clamp(10px, .72vw, 14px);
  line-height: 1.45;
}
.project-symbol {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  margin-bottom: 5px;
  border: 3px solid var(--blue);
  color: var(--blue);
  font: 700 25px Rajdhani, sans-serif;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: rgba(6, 39, 78, .45);
  filter: drop-shadow(0 0 12px rgba(19,140,255,.32));
}
.mini-symbol { display: block; font-size: 30px; line-height: 1; }
.cyan { color: var(--cyan); }
.yellow { color: var(--yellow); }
.purple { color: var(--purple); }

.tags { display: flex; gap: 7px; margin-top: 12px; }
.tags span {
  padding: 5px 9px;
  border: 1px solid rgba(75, 138, 201, .32);
  border-radius: 6px;
  color: #dbe8f6;
  background: rgba(4, 21, 39, .76);
  font-size: clamp(7px, .52vw, 9px);
  letter-spacing: .06em;
}

.project-access {
  position: absolute;
  z-index: 10;
  left: 0; right: 0; bottom: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-top: 1px solid rgba(92, 139, 184, .28);
  color: #168fff;
  background: rgba(2, 11, 21, 0.96);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.project-access span {
    display: inline-block;
    color: #168fff;
    opacity: 1;
    visibility: visible;
}

.project-access b {
    display: inline-block;
    color: #168fff;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s ease;
}

.project-access:hover {
    color: #ffffff;
    background: rgba(5, 29, 55, 0.98);
}

.project-access:hover span,
.project-access:hover b {
    color: #ffffff;
}

.project-access:hover b {
    transform: translateX(5px);
}

.project-small .project-content {
  width: 54%;
  bottom: 49px;
}
.project-small .project-content h3 { font-size: clamp(20px, 1.45vw, 29px); }

.footer {
  height: var(--footer-h);
  padding: 0 clamp(24px, 3vw, 54px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  color: #aeb9c8;
  background: rgba(2, 8, 18, .88);
  font-size: 10px;
  letter-spacing: .27em;
}
.footer-mark {
  color: #dff2ff;
  font: 700 26px Rajdhani, sans-serif;
  text-shadow: 2px 0 var(--blue);
}
.footer i { color: #49708f; font-style: normal; margin: 0 9px; }
.footer nav { justify-self: end; display: flex; gap: 8px; }
.footer nav span {
  padding: 6px 12px;
  border: 1px solid rgba(60, 130, 190, .25);
  border-radius: 7px;
  letter-spacing: .08em;
}
.footer nav span:first-child { color: var(--green); border-color: rgba(53,242,174,.3); }

.login-dialog {
  width: min(430px, calc(100vw - 30px));
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
}
.login-dialog::backdrop {
  background: rgba(0, 5, 12, .76);
  backdrop-filter: blur(8px);
}
.login-card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(145deg, #07182b, #020a14);
  box-shadow: 0 35px 90px rgba(0,0,0,.55), 0 0 50px rgba(0,113,255,.12);
}
.login-card h2 { margin: 10px 0 5px; font: 700 30px Rajdhani, sans-serif; }
.login-card > p { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.login-card label { display: block; margin-top: 14px; color: #bdc9d8; font-size: 11px; letter-spacing: .08em; }
.login-card input {
  width: 100%; height: 46px; margin-top: 7px; padding: 0 13px;
  border: 1px solid rgba(80, 142, 199, .3); border-radius: 9px;
  outline: none; color: white; background: rgba(2, 10, 20, .75);
}
.login-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(19,140,255,.1); }
.close-button {
  position: absolute; right: 15px; top: 12px; border: 0; color: #a9b8ca;
  background: transparent; font-size: 25px; cursor: pointer;
}
.submit-button {
  width: 100%; height: 46px; margin-top: 22px; border: 1px solid #0787ff;
  border-radius: 9px; color: white; background: linear-gradient(180deg,#0878e8,#064997);
  font-weight: 800; letter-spacing: .09em; cursor: pointer;
}
.login-feedback { min-height: 22px; padding-top: 10px; font-size: 12px; }
.login-feedback.success { color: var(--green); }
.login-feedback.error { color: #ff7b8a; }
.login-card small { display: block; color: #748398; font-size: 10px; }

@media (max-height: 820px) and (min-width: 1001px) {
  :root { --topbar-h: 72px; --footer-h: 42px; }
  .app-shell { padding-top: 12px; padding-bottom: 12px; }
  .intro-panel { padding: 17px; gap: 9px; }
  .intro-copy h1 { margin: 8px 0; font-size: clamp(25px, 2vw, 34px); }
  .intro-copy p { line-height: 1.35; }
  .capabilities { padding: 6px 3px; }
  .system-status { min-height: 30px; }
  .projects-panel { padding: 14px; gap: 9px; }
  .section-heading h2::after { margin-top: 5px; }
  .projects-grid { gap: 9px; }
  .project-number { top: 10px; left: 15px; }
  .project-status { top: 8px; }
  .project-content { left: 15px; bottom: 42px; }
  .project-symbol { width: 42px; height: 42px; font-size: 21px; }
  .tags { margin-top: 7px; }

  .project-card > img {
    position: absolute;
    inset: 0 0 44px 0;
    width: 100%;
    height: calc(100% - 44px);
    object-fit: cover;
    }

  .project-access { height: 34px; padding: 0 15px; }
}

@media (max-width: 1000px) {
  body { overflow: auto; }
  .topbar { grid-template-columns: 1fr auto; }
  .ecosystem { display: none; }
  .app-shell {
    height: auto;
    min-height: calc(100dvh - var(--topbar-h));
    grid-template-columns: 1fr;
  }
  .intro-panel { min-height: 680px; }
  .projects-panel { min-height: 900px; }
  .footer { grid-template-columns: 1fr auto; }
  .footer > div { display: none; }
}

@media (max-width: 650px) {
  :root { --topbar-h: 68px; }
  .topbar { padding: 0 16px; gap: 10px; }
  .brand img { width: 150px; }
  .platform-button { height: 40px; padding: 0 12px; font-size: 9px; }
  .lock-icon { display: none; }
  .app-shell { padding: 12px; gap: 12px; }
  .intro-panel { min-height: 640px; padding: 18px; }
  .projects-panel { min-height: auto; padding: 14px; }
  .projects-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 260px);
  }
  .project-argos { grid-row: auto; }
  .project-small .project-content, .project-content { width: 62%; }
  .project-counter { display: none; }
  .footer { padding: 0 16px; }
  .footer nav span { padding: 5px 7px; }
}
