@import 'tailwindcss';

:root {
  --ink: #eaf8f9;
  --muted: #9db8bf;
  --navy: #06171d;
  --panel: rgba(8, 33, 40, 0.78);
  --line: rgba(156, 231, 229, 0.16);
  --cyan: #62e2dc;
  --blue: #6ba9ff;
  --amber: #f2c06c;
  --danger: #ff9b9b;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--navy); }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.site-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(29, 181, 183, 0.13), transparent 34%),
    radial-gradient(circle at 10% 82%, rgba(52, 111, 178, 0.13), transparent 32%),
    linear-gradient(145deg, #041318 0%, #071b22 48%, #06171d 100%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(133, 213, 214, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 213, 214, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 88%);
}

.ambient {
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(102, 226, 220, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.ambient::before, .ambient::after {
  position: absolute;
  content: "";
  inset: 12%;
  border: 1px solid rgba(102, 226, 220, 0.07);
  border-radius: inherit;
}
.ambient::after { inset: 28%; }
.ambient-one { top: -180px; right: -80px; }
.ambient-two { bottom: -230px; left: -120px; }

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand img {
  width: 47px;
  height: 55px;
  object-fit: contain;
  filter: drop-shadow(0 7px 18px rgba(25, 194, 191, 0.2));
}
.brand div { display: grid; gap: 3px; }
.brand strong { color: #f0ffff; font-size: 15px; letter-spacing: 0.025em; }
.brand span {
  color: #7f9da5;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.environment-pill, .protected-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #a8c1c7;
  background: rgba(8, 35, 42, 0.52);
  font-size: 12px;
}
.environment-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}
.protected-label { border: 0; background: transparent; padding-right: 0; }

.quiet-button, .text-button, .disabled-launch, .primary-button { border: 0; cursor: pointer; }
.quiet-button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 14px;
  color: #b9ced3;
  background: rgba(11, 42, 49, 0.55);
  transition: 160ms ease;
}
.quiet-button:hover { color: white; border-color: rgba(98, 226, 220, 0.4); }

.page-frame {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
  gap: clamp(44px, 7vw, 96px);
  min-height: calc(100svh - 160px);
  align-items: center;
  padding: 54px 0 74px;
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.hero-copy h1, .workspace-heading h1 {
  margin: 0;
  color: #f4ffff;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.hero-copy h1 span {
  display: inline-block;
  margin-top: 9px;
  color: transparent;
  background: linear-gradient(90deg, #e9ffff 3%, #68e1dc 62%, #83b8ff 100%);
  background-clip: text;
}
.hero-description {
  max-width: 630px;
  margin: 28px 0 0;
  color: #a5bec4;
  font-size: 17px;
  line-height: 1.85;
}

.capability-row { display: flex; gap: 8px; margin-top: 42px; }
.capability-row div {
  display: grid;
  min-width: 136px;
  gap: 5px;
  padding: 16px 18px;
  border-left: 1px solid rgba(98, 226, 220, 0.22);
  background: linear-gradient(90deg, rgba(11, 45, 53, 0.5), transparent);
}
.capability-row strong { font-size: 21px; color: #eaffff; }
.capability-row span { color: #78969d; font-size: 12px; }

.access-card {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(134, 224, 223, 0.19);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(14, 49, 57, 0.92), rgba(6, 25, 31, 0.91));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.31);
  backdrop-filter: blur(18px);
}
.access-card::before {
  position: absolute;
  content: "";
  top: -1px;
  right: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(98, 226, 220, 0.65), transparent);
}
.access-card-head { display: flex; align-items: center; gap: 15px; }
.access-card-head p {
  margin: 0 0 4px;
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.access-card-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }

.lock-mark {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(98, 226, 220, 0.25);
  border-radius: 14px;
  background: rgba(43, 179, 178, 0.08);
}
.lock-mark i {
  position: relative;
  display: block;
  width: 16px;
  height: 13px;
  margin-top: 6px;
  border: 1.5px solid var(--cyan);
  border-radius: 3px;
}
.lock-mark i::before {
  position: absolute;
  content: "";
  width: 9px;
  height: 9px;
  left: 2px;
  top: -9px;
  border: 1.5px solid var(--cyan);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.access-intro {
  margin: 24px 0;
  color: #91acb2;
  font-size: 14px;
  line-height: 1.75;
}
.access-card label {
  display: block;
  margin-bottom: 9px;
  color: #c5d9dd;
  font-size: 13px;
  font-weight: 600;
}
.input-shell {
  display: flex;
  align-items: center;
  border: 1px solid rgba(139, 206, 207, 0.2);
  border-radius: 13px;
  background: rgba(2, 17, 21, 0.55);
  transition: 160ms ease;
}
.input-shell:focus-within {
  border-color: rgba(98, 226, 220, 0.7);
  box-shadow: 0 0 0 3px rgba(98, 226, 220, 0.08);
}
.input-shell input {
  min-width: 0;
  flex: 1;
  padding: 15px 16px;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
}
.input-shell input::placeholder { color: #547078; }
.input-shell span { padding: 0 16px; color: #52747a; letter-spacing: 0.12em; }
.form-message {
  min-height: 19px;
  margin: 8px 0 14px;
  color: #66878e;
  font-size: 11px;
}
.form-message.error { color: var(--danger); }

.primary-button {
  display: flex;
  width: 100%;
  margin-top: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-radius: 13px;
  color: #04191e;
  background: linear-gradient(90deg, #52d8d2, #78e9df);
  font-weight: 750;
  box-shadow: 0 14px 30px rgba(29, 187, 183, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 17px 36px rgba(29, 187, 183, 0.22);
}
.primary-button:disabled { opacity: 0.68; cursor: wait; transform: none; }
.security-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 21px;
  padding-top: 18px;
  border-top: 1px solid rgba(146, 214, 214, 0.1);
  color: #66878e;
  font-size: 11px;
}
.security-note span { width: 6px; height: 6px; border-radius: 50%; background: #4bd5c9; }

.workspace { min-height: calc(100svh - 160px); padding: 52px 0 74px; }
.workspace-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.workspace-heading h1 { font-size: clamp(36px, 4vw, 55px); }
.workspace-heading > div > p:last-child {
  max-width: 690px;
  margin: 14px 0 0;
  color: #93adb3;
  line-height: 1.7;
}
.connection-summary {
  display: grid;
  min-width: 154px;
  gap: 3px;
  padding-left: 22px;
  border-left: 1px solid rgba(98, 226, 220, 0.23);
}
.connection-summary span, .connection-summary small { color: #769299; font-size: 11px; }
.connection-summary strong { color: #f0ffff; font-size: 28px; }

.system-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 31px 0 20px;
  padding: 16px 18px;
  border: 1px solid rgba(242, 192, 108, 0.17);
  border-radius: 15px;
  background: rgba(62, 47, 25, 0.2);
}
.system-banner > div:nth-child(2) { display: grid; gap: 4px; }
.system-banner strong { color: #f6e0b8; font-size: 13px; }
.system-banner span { color: #99896f; font-size: 11px; }
.pulse-orbit {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(242, 192, 108, 0.2);
  border-radius: 50%;
}
.pulse-orbit i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 15px rgba(242, 192, 108, 0.7);
}
.last-check { margin-left: auto; white-space: nowrap; }

.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tool-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(14, 48, 56, 0.86), rgba(6, 27, 33, 0.86));
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.2);
}
.tool-card::after {
  position: absolute;
  content: "";
  top: -90px;
  right: -85px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(98, 226, 220, 0.08);
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(98, 226, 220, 0.035);
}
.tool-card.blue::after { border-color: rgba(107, 169, 255, 0.1); }
.tool-card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tool-index {
  color: rgba(176, 231, 232, 0.37);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(242, 192, 108, 0.17);
  border-radius: 999px;
  color: #cdb383;
  background: rgba(84, 60, 25, 0.15);
  font-size: 10px;
}
.status-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.status-badge.online {
  border-color: rgba(98, 226, 220, 0.2);
  color: #8ee4de;
  background: rgba(37, 137, 133, 0.13);
}
.status-badge.online i {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(98, 226, 220, 0.65);
}
.tool-eyebrow {
  position: relative;
  z-index: 1;
  margin: 30px 0 8px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
}
.tool-card.blue .tool-eyebrow { color: #8dbbff; }
.tool-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #f1ffff;
  font-size: clamp(21px, 2.1vw, 28px);
  letter-spacing: -0.025em;
}
.tool-description {
  min-height: 54px;
  margin: 14px 0 18px;
  color: #91adb3;
  font-size: 13px;
  line-height: 1.7;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-row span {
  padding: 6px 9px;
  border: 1px solid rgba(142, 214, 214, 0.11);
  border-radius: 7px;
  color: #86a6ac;
  background: rgba(10, 34, 41, 0.45);
  font-size: 10px;
}
.endpoint-box {
  display: grid;
  gap: 7px;
  margin: 22px 0;
  padding: 13px 14px;
  border: 1px dashed rgba(135, 209, 209, 0.17);
  border-radius: 11px;
  background: rgba(3, 19, 23, 0.45);
}
.endpoint-box span {
  color: #57777e;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.endpoint-box code {
  overflow: hidden;
  color: #75959b;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
}
.endpoint-box small { color: #526f75; font-size: 9px; }
.tool-actions { display: flex; align-items: center; gap: 10px; }
.disabled-launch {
  padding: 11px 16px;
  border-radius: 10px;
  color: #5d7c82;
  background: rgba(92, 126, 132, 0.11);
  cursor: not-allowed;
}
.launch-button {
  display: inline-flex;
  min-width: 150px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border: 1px solid rgba(98, 226, 220, 0.23);
  border-radius: 10px;
  color: #06191e;
  background: linear-gradient(90deg, #59d9d4, #78e6df);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.launch-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(45, 189, 185, 0.16);
}
.launch-button:disabled {
  cursor: wait;
  opacity: 0.82;
  transform: none;
}
.system-banner.healthy {
  border-color: rgba(98, 226, 220, 0.16);
  background: rgba(25, 82, 78, 0.16);
}
.system-banner.healthy strong { color: #b9eeea; }
.system-banner.healthy .pulse-orbit { border-color: rgba(98, 226, 220, 0.2); }
.system-banner.healthy .pulse-orbit i {
  background: var(--cyan);
  box-shadow: 0 0 15px rgba(98, 226, 220, 0.7);
}
.text-button { padding: 10px 8px; color: #79c8c6; background: transparent; font-size: 12px; }
.text-button:hover { color: #b8f5f1; }

.workspace-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(137, 207, 208, 0.11);
  border-radius: 16px;
  background: rgba(7, 28, 34, 0.5);
}
.workspace-footnote strong { font-size: 13px; }
.workspace-footnote p {
  margin: 5px 0 0;
  color: #6f8c92;
  font-size: 11px;
  line-height: 1.6;
}
.toast {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(380px, calc(100% - 48px));
  padding: 14px 16px;
  border: 1px solid rgba(98, 226, 220, 0.2);
  border-radius: 12px;
  color: #bad2d6;
  background: rgba(7, 31, 37, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  font-size: 12px;
}
.toast button {
  border: 0;
  color: #729097;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: #547078;
  font-size: 10px;
  letter-spacing: 0.035em;
}

@media (max-width: 860px) {
  .login-layout { grid-template-columns: 1fr; gap: 42px; padding-top: 45px; }
  .hero-copy { text-align: center; }
  .hero-description { margin-inline: auto; }
  .capability-row { justify-content: center; }
  .access-card { width: min(100%, 540px); margin: 0 auto; }
  .workspace-heading { align-items: flex-start; }
  .tool-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header, .page-frame, .site-footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 76px; }
  .brand img { width: 39px; height: 47px; }
  .brand span, .environment-pill { display: none; }
  .brand strong { font-size: 13px; }
  .login-layout { min-height: auto; padding: 48px 0 58px; }
  .hero-copy h1 { font-size: 39px; }
  .hero-description { font-size: 15px; }
  .capability-row { display: grid; grid-template-columns: repeat(3, 1fr); }
  .capability-row div { min-width: 0; padding: 12px 9px; }
  .capability-row strong { font-size: 16px; }
  .access-card, .tool-card { padding: 22px; border-radius: 18px; }
  .workspace { padding-top: 42px; }
  .workspace-heading { display: grid; }
  .connection-summary {
    grid-template-columns: auto auto 1fr;
    align-items: baseline;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .connection-summary strong { font-size: 20px; }
  .connection-summary small { text-align: right; }
  .system-banner { align-items: flex-start; }
  .last-check { display: none; }
  .tool-actions, .workspace-footnote, .site-footer { align-items: stretch; flex-direction: column; }
  .tool-actions button, .workspace-footnote .quiet-button { width: 100%; }
  .site-footer { justify-content: center; gap: 7px; padding: 20px 0; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Compact portal cards after removing technical copy. */
.tool-grid { margin-top: 32px; }
.tool-card h3 { margin-top: 24px; }
.tool-description { min-height: 44px; margin-bottom: 24px; }
