:root {
  --bg: #0b0f19;
  --bg-elevated: rgba(20, 26, 40, 0.88);
  --bg-elevated-2: rgba(16, 21, 34, 0.92);

  --panel: rgba(20, 26, 40, 0.72);
  --panel-hover: rgba(24, 31, 48, 0.88);

  --text: #eef2ff;
  --text-soft: rgba(238, 242, 255, 0.78);
  --text-faint: rgba(238, 242, 255, 0.54);

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --accent: #7c6cff;
  --accent-2: #22b8ff;
  --accent-3: #35d07f;
  --danger: #ff6b81;

  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.22);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;

  --max-width: 1160px;
  --transition: 160ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 10% 0%, rgba(124, 108, 255, 0.18), transparent 58%),
    radial-gradient(900px 620px at 90% 0%, rgba(34, 184, 255, 0.16), transparent 56%),
    radial-gradient(820px 620px at 50% 100%, rgba(53, 208, 127, 0.06), transparent 50%),
    linear-gradient(180deg, #0b0f19 0%, #0a1220 48%, #0a0f19 100%);
  background-attachment: fixed;
  font: 15px/1.65 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.15px;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.018), rgba(255,255,255,0.018) 1px, transparent 1px, transparent 7px);
  opacity: 0.12;
  mix-blend-mode: soft-light;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
}

.page-shell {
  padding: 26px 0 72px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 40;
  margin-bottom: 28px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(20, 26, 40, 0.88), rgba(15, 20, 32, 0.80));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

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

.brand-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(124, 108, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(124,108,255,0.18), rgba(34,184,255,0.10)),
    rgba(255,255,255,0.02);
  box-shadow:
    0 0 0 1px rgba(34,184,255,0.05) inset,
    0 8px 18px rgba(0,0,0,0.18);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.3px;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--text-soft);
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
  color: var(--text);
}

.nav-link.active {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(124,108,255,0.18), rgba(34,184,255,0.12));
  border-color: rgba(124,108,255,0.28);
}

.hero {
  padding: 30px 0 24px;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 20px;
  align-items: stretch;
}

.hero-panel,
.hero-side {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(19, 25, 39, 0.90), rgba(13, 19, 31, 0.86));
  box-shadow: var(--shadow-lg);
}

.hero-panel {
  padding: 34px 30px 28px;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -60px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,108,255,0.22), transparent 65%);
  pointer-events: none;
}

.hero-side {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  color: var(--text-soft);
  font-size: 12px;
}

.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(124,108,255,0.48);
}

.hero-title {
  margin: 18px 0 12px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.03;
  letter-spacing: -1.2px;
  max-width: 12ch;
}

.gradient-text {
  background: linear-gradient(90deg, #ffffff 0%, rgba(238,242,255,0.92) 42%, rgba(124,108,255,0.92) 68%, rgba(34,184,255,0.95) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  margin: 0;
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 16px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(90deg, rgba(124,108,255,0.96), rgba(34,184,255,0.88));
  border: 1px solid rgba(124,108,255,0.38);
  box-shadow:
    0 14px 30px rgba(124,108,255,0.22),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}

.button-primary:hover {
  box-shadow:
    0 18px 34px rgba(124,108,255,0.28),
    0 0 0 1px rgba(255,255,255,0.06) inset;
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.035);
}

.button-secondary:hover {
  background: rgba(255,255,255,0.06);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meta-card {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.025);
}

.meta-label {
  color: var(--text-faint);
  font-size: 12px;
  margin-bottom: 6px;
}

.meta-value {
  font-size: 14px;
  font-weight: 600;
}

.mini-console {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(4, 8, 16, 0.72);
}

.mini-console-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 12px;
}

.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.26), transparent 45%),
    rgba(255,255,255,0.14);
}

.mini-console-body {
  padding: 14px 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(238, 242, 255, 0.86);
}

.console-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console-prefix {
  color: rgba(53,208,127,0.94);
}

.console-accent {
  color: rgba(34,184,255,0.98);
}

.section {
  margin-top: 30px;
}

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

.section-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.section-text {
  margin: 0;
  color: var(--text-soft);
  max-width: 64ch;
}

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

.card {
  grid-column: span 6;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(19, 25, 39, 0.88), rgba(13, 19, 31, 0.90));
  box-shadow: var(--shadow-md);
  padding: 22px;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(124,108,255,0.22);
  background:
    linear-gradient(180deg, rgba(22, 29, 44, 0.94), rgba(15, 20, 33, 0.96));
  box-shadow:
    0 18px 36px rgba(0,0,0,0.28),
    0 0 0 1px rgba(34,184,255,0.05) inset;
}

.card-small {
  grid-column: span 4;
}

.card-wide {
  grid-column: span 8;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.3px;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-description {
  margin: 0 0 16px;
  color: var(--text-soft);
}

.card-divider {
  margin: 18px 0;
  height: 1px;
  background: var(--line);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.038);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 500;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.status-up {
  color: var(--accent-3);
  border-color: rgba(53,208,127,0.28);
  background: rgba(53,208,127,0.12);
}

.status-down {
  color: var(--danger);
  border-color: rgba(255,107,129,0.22);
  background: rgba(255,107,129,0.10);
}

.status-unknown {
  color: rgba(238,242,255,0.72);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.project-cta {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  font-weight: 700;
}

.inline-link {
  color: rgba(34,184,255,0.94);
}

.inline-link:hover {
  color: #6fd3ff;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-item {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  color: var(--text-faint);
  font-size: 12px;
}

.info-value {
  color: var(--text);
  font-size: 14px;
}

.footer {
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.025);
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.028);
  font-size: 12px;
}

.page-title-wrap {
  margin: 6px 0 20px;
}

.page-title {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.9px;
}

.page-text {
  margin: 0;
  max-width: 72ch;
  color: var(--text-soft);
}

.stack-list {
  display: grid;
  gap: 10px;
}

.stack-item {
  padding: 16px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.stack-item-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.stack-item-text {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.contact-link:hover {
  transform: translateY(-2px);
  border-color: rgba(34,184,255,0.20);
  background: rgba(255,255,255,0.05);
}

.contact-link-main {
  display: grid;
  gap: 4px;
}

.contact-link-title {
  font-size: 14px;
  font-weight: 700;
}

.contact-link-value {
  font-size: 14px;
  color: var(--text-soft);
}

.arrow {
  color: var(--text-faint);
  font-size: 18px;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .card-small,
  .card-wide,
  .card {
    grid-column: span 6;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(var(--max-width), calc(100% - 24px));
  }

  .topbar {
    top: 10px;
  }

  .topbar-inner {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .nav::-webkit-scrollbar {
    height: 0;
  }

  .hero-panel,
  .hero-side,
  .card {
    border-radius: 22px;
  }

  .hero-panel {
    padding: 26px 22px 22px;
  }

  .hero-side {
    padding: 18px;
  }

  .card,
  .card-small,
  .card-wide {
    grid-column: span 12;
    padding: 18px;
  }

  .footer {
    border-radius: 20px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding-top: 14px;
  }

  .container {
    width: calc(100% - 20px);
  }

  .topbar-inner {
    padding: 12px;
    border-radius: 20px;
  }

  .brand-logo-wrap {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .brand-logo {
    width: 20px;
    height: 20px;
  }

  .hero-panel {
    padding: 22px 18px 18px;
  }

  .hero-side {
    padding: 16px;
  }

  .hero-title {
    max-width: none;
  }

  .hero-text,
  .page-text,
  .card-description,
  .stack-item-text,
  .contact-link-value {
    font-size: 14px;
  }

  .button,
  .project-cta {
    width: 100%;
  }

  .card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    padding: 16px;
  }
}
