:root {
  --obsidian: #0b0f19;
  --obsidian-elevated: #111827;
  --obsidian-surface: #151c2c;
  --obsidian-border: rgba(148, 163, 184, 0.14);
  --hq-white: #f8fafc;
  --hq-silver: #94a3b8;
  --kairo: #00c896;
  --kairo-glow: rgba(0, 200, 150, 0.35);
  --kairo-muted: rgba(0, 200, 150, 0.12);
  --telos: #38bdf8;
  --telos-silver: #e2e8f0;
  --telos-glow: rgba(56, 189, 248, 0.22);
  --telos-muted: rgba(56, 189, 248, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--obsidian);
  color: var(--hq-white);
}

::selection {
  background: rgba(0, 200, 150, 0.3);
  color: #fff;
}

.gateway {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(56, 189, 248, 0.06), transparent),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(0, 200, 150, 0.04), transparent),
    var(--obsidian);
}

.gateway-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 0;
}

@media (min-width: 768px) {
  .gateway-header {
    justify-content: flex-start;
    padding: 2.5rem 2.5rem 0;
  }
}

@media (min-width: 1024px) {
  .gateway-header {
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }
}

.gateway-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 0.2s;
}

.gateway-logo:hover {
  opacity: 0.92;
}

.gateway-logo-img {
  height: 1.125rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.gateway-logo-text {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.75);
}

.gateway-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem 1.5rem;
}

@media (min-width: 768px) {
  .gateway-main {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .gateway-main {
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }
}

.gateway-tagline {
  margin: 0 0 2rem;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.6);
}

@media (min-width: 768px) {
  .gateway-tagline {
    margin-bottom: 2.5rem;
  }
}

.gateway-split {
  display: flex;
  width: 100%;
  max-width: 72rem;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--obsidian-border);
  border-radius: 2px;
}

@media (min-width: 768px) {
  .gateway-split {
    flex-direction: row;
    max-height: min(520px, 55vh);
  }
}

.gateway-card {
  position: relative;
  display: flex;
  min-height: 280px;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 2rem;
  background: rgba(17, 24, 39, 0.6);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.5s, box-shadow 0.5s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: fadeUp 0.6s ease-out forwards;
  opacity: 0;
}

.gateway-card:nth-child(1) { animation-delay: 80ms; }
.gateway-card:nth-child(2) { animation-delay: 160ms; }

@media (min-width: 768px) {
  .gateway-card {
    min-height: 0;
    padding: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .gateway-card {
    padding: 3rem;
  }
}

.gateway-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.gateway-card--telos {
  border: 1px solid rgba(226, 232, 240, 0.1);
}

.gateway-card--telos::before {
  background: linear-gradient(to bottom right, rgba(56, 189, 248, 0.05), transparent);
}

.gateway-card--telos:not(.gateway-card--soon):hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.22), 0 0 80px rgba(56, 189, 248, 0.06);
}

.gateway-card--soon {
  cursor: default;
  pointer-events: none;
  opacity: 0.72;
}

.gateway-card--soon .gateway-card-cta {
  border-color: rgba(148, 163, 184, 0.28);
  color: rgba(148, 163, 184, 0.85);
  background: transparent;
  box-shadow: none;
}

.gateway-card--kairo {
  border: 1px solid rgba(0, 200, 150, 0.1);
}

.gateway-card--kairo::before {
  background: linear-gradient(to bottom right, rgba(0, 200, 150, 0.05), transparent);
}

.gateway-card--kairo:hover {
  border-color: rgba(0, 200, 150, 0.5);
  box-shadow: 0 0 40px rgba(0, 200, 150, 0.25), 0 0 80px rgba(0, 200, 150, 0.08);
}

.gateway-card:hover::before {
  opacity: 1;
}

.gateway-card-inner {
  position: relative;
  z-index: 1;
}

.gateway-card-label {
  margin: 0 0 0.75rem;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gateway-card--telos .gateway-card-label { color: rgba(56, 189, 248, 0.8); }
.gateway-card--kairo .gateway-card-label { color: rgba(0, 200, 150, 0.8); }

.gateway-card-title {
  margin: 0 0 1rem;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}

@media (min-width: 768px) {
  .gateway-card-title { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .gateway-card-title { font-size: 2.75rem; }
}

.gateway-card-desc {
  max-width: 28rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.8);
}

@media (min-width: 768px) {
  .gateway-card-desc { font-size: 1rem; }
}

.gateway-card-cta-wrap {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
}

.gateway-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid;
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s;
}

.gateway-card--telos .gateway-card-cta {
  border-color: rgba(226, 232, 240, 0.3);
  color: var(--telos-silver);
}

.gateway-card--telos:not(.gateway-card--soon):hover .gateway-card-cta {
  border-color: var(--telos);
  color: var(--telos);
  background: var(--telos-muted);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.22);
}

.gateway-card--kairo .gateway-card-cta {
  border-color: rgba(0, 200, 150, 0.4);
  color: var(--kairo);
}

.gateway-card--kairo:hover .gateway-card-cta {
  border-color: var(--kairo);
  background: var(--kairo-muted);
  box-shadow: 0 0 40px rgba(0, 200, 150, 0.25);
}

.gateway-card-cta svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.3s;
}

.gateway-card:hover .gateway-card-cta svg {
  transform: translateX(2px);
}

.gateway-footer {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  border-top: 1px solid var(--obsidian-border);
  padding: 1rem 1.5rem;
}

.gateway-footer a {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.gateway-footer a:hover {
  color: var(--hq-silver);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
