:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #07131a;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: #f8fafc;
  background: #07131a;
}

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

.portal-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% -10%, rgba(45, 212, 191, 0.14), transparent 32rem),
    radial-gradient(circle at 100% 15%, rgba(56, 189, 248, 0.09), transparent 30rem),
    linear-gradient(145deg, #07131a 0%, #091820 52%, #071219 100%);
}

.portal-grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  pointer-events: none;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 1.75rem 2.5rem 2rem;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(153, 246, 228, 0.32);
  border-radius: 0.82rem;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.26), rgba(14, 116, 144, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.2);
  color: #ccfbf1;
  font-weight: 750;
}

.brand-mark::after {
  position: absolute;
  right: -0.28rem;
  bottom: -0.28rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #5eead4;
  content: "";
  filter: blur(0.5px);
  opacity: 0.7;
}

.eyebrow,
.brand-name,
.section-label,
.intro > p,
.page-footer p,
.card-area,
.description {
  margin: 0;
}

.eyebrow {
  color: rgba(153, 246, 228, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-name {
  margin-top: 0.16rem;
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.875rem;
}

.status span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #6ee7b7;
  box-shadow: 0 0 12px rgba(110, 231, 183, 0.8);
}

.systems {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 0 4rem;
}

.intro {
  max-width: 42rem;
  margin-bottom: 2.25rem;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  color: #99f6e4;
  font-size: 0.875rem;
  font-weight: 650;
}

.section-label span {
  width: 2rem;
  height: 1px;
  background: rgba(94, 234, 212, 0.72);
}

h1 {
  max-width: 38rem;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.intro > p:last-child {
  max-width: 38rem;
  margin-top: 0.8rem;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.7;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.system-card {
  --tone: #67e8c1;
  display: flex;
  min-width: 0;
  min-height: 238px;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.13);
  backdrop-filter: blur(16px);
  transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.system-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.105);
}

.system-card:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 4px;
}

.tone-amber { --tone: #fbbf6a; }
.tone-purple { --tone: #c4b5fd; }
.tone-blue { --tone: #7dd3fc; }
.tone-teal { --tone: #67e8c1; }
.tone-green { --tone: #86efac; }
.tone-rose { --tone: #fda4af; }
.tone-orange { --tone: #fdba74; }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.icon,
.arrow {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.78rem;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 8%, transparent);
}

.icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.arrow {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.045);
  font-size: 1rem;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.system-card:hover .arrow {
  border-color: rgba(153, 246, 228, 0.3);
  color: #ccfbf1;
  background: rgba(153, 246, 228, 0.1);
}

.card-area {
  margin-bottom: 0.48rem;
  color: var(--tone);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.description {
  min-height: 3rem;
  margin-top: 0.42rem;
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.55;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-footer span {
  min-width: 0;
  overflow: hidden;
  color: #94a3b8;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-footer strong {
  flex: none;
  color: #ccfbf1;
  font-size: 0.75rem;
  font-weight: 700;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
  font-size: 0.75rem;
}

@media (max-width: 1023px) {
  .system-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .page { padding: 1.25rem 1.25rem 1.75rem; }
  .status { display: none; }
  .systems { padding: 2.6rem 0 3rem; }
  .intro { margin-bottom: 1.75rem; }
  .system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .brand-name { font-size: 1rem; }
  .eyebrow { font-size: 0.66rem; }
  .system-grid { grid-template-columns: 1fr; }
  .system-card { min-height: 224px; }
  .page-footer { align-items: flex-start; flex-direction: column; gap: 0.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .system-card,
  .arrow { transition: none; }
}
