:root {
  color-scheme: dark;
  --stage: #08090b;
  --stage-soft: #101218;
  --ink: #f8faf7;
  --muted: rgba(248, 250, 247, 0.58);
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --accent: #9cff00;
  --cyan: #70e5ff;
  --violet: #a66cff;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--stage);
  color: var(--ink);
}

.js-enabled:not(.gsap-ready) [data-animate],
.js-enabled:not(.gsap-ready) .float-panel,
.js-enabled:not(.gsap-ready) .orbit-ring,
.js-enabled:not(.gsap-ready) .service-console,
.js-enabled:not(.gsap-ready) .service-card {
  opacity: 0;
}

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

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 40;
  transform: translateY(-150%);
  border-radius: 999px;
  background: #fff;
  color: #111;
  padding: 0.65rem 0.9rem;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 3;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(156, 255, 0, 0.18), rgba(112, 229, 255, 0.08) 42%, transparent 68%);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.scene-light {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene-light span {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(44px);
  opacity: 0.36;
}

.scene-light span:nth-child(1) {
  left: -14vw;
  top: 12vh;
  width: 42vw;
  height: 34vh;
  background: rgba(49, 74, 120, 0.72);
}

.scene-light span:nth-child(2) {
  right: -12vw;
  top: 4vh;
  width: 38vw;
  height: 36vh;
  background: rgba(166, 108, 255, 0.52);
}

.scene-light span:nth-child(3) {
  right: 16vw;
  bottom: -16vh;
  width: 34vw;
  height: 30vh;
  background: rgba(156, 255, 0, 0.18);
}

main {
  position: relative;
  z-index: 1;
}

.portal-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.09), transparent 18rem),
    radial-gradient(circle at center, transparent 0 36%, rgba(0, 0, 0, 0.44) 78%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%),
    var(--stage);
}

.portal-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  mask-image: radial-gradient(circle at 50% 42%, black 0 28rem, transparent 48rem);
  opacity: 0.35;
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: auto minmax(220px, 420px) auto;
  align-items: center;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 0;
  flex: 0 0 auto;
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 900;
  backdrop-filter: blur(16px);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.command-search {
  display: flex;
  align-items: center;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.command-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  outline: 0;
  padding: 0.8rem 0.35rem 0.8rem 1rem;
}

.command-search input::placeholder {
  color: rgba(255, 255, 255, 0.43);
}

.command-search button {
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0 1rem;
}

.top-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}

.top-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.58rem 0.78rem;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.orbital-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  perspective: 1200px;
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 56%;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(68deg);
  will-change: transform;
}

.ring-one {
  width: min(78vw, 980px);
  height: min(78vw, 980px);
}

.ring-two {
  width: min(56vw, 720px);
  height: min(56vw, 720px);
  border-color: rgba(156, 255, 0, 0.075);
}

.float-panel {
  position: absolute;
  display: grid;
  align-content: end;
  gap: 0.35rem;
  width: clamp(210px, 22vw, 330px);
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.22), transparent 8rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
  color: rgba(255, 255, 255, 0.9);
  padding: 1.05rem;
  pointer-events: auto;
  transform-style: preserve-3d;
  will-change: transform;
}

.float-panel::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.12), transparent 42%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  content: "";
  opacity: 0.6;
}

.float-panel span,
.float-panel strong,
.float-panel small {
  position: relative;
  z-index: 1;
}

.float-panel span {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.float-panel strong {
  font-size: 1.18rem;
}

.float-panel small {
  color: rgba(255, 255, 255, 0.52);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
}

.panel-git {
  left: 7%;
  top: 30%;
  transform: rotate(-10deg) translateZ(24px);
}

.panel-blog {
  left: 22%;
  top: 9%;
  transform: rotate(14deg) translateZ(-30px);
}

.panel-api {
  right: 7%;
  top: 22%;
  transform: rotate(11deg) translateZ(28px);
}

.panel-vault {
  right: 18%;
  bottom: 13%;
  transform: rotate(-13deg) translateZ(-10px);
}

.hero-copy {
  position: relative;
  z-index: 8;
  display: grid;
  min-height: 0;
  flex: 1 0 auto;
  place-items: center;
  align-content: center;
  width: min(940px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(72px, 8vw, 118px) 0 clamp(42px, 5vw, 72px);
  text-align: center;
}

.hero-copy::before {
  position: absolute;
  left: 50%;
  top: 49%;
  z-index: -1;
  width: min(760px, 92vw);
  height: 330px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18) 55%, transparent 74%);
  content: "";
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.status-pulse {
  width: 16px;
  height: 16px;
  margin-bottom: 2.4rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.58), 0 0 80px rgba(156, 255, 0, 0.32);
}

.server-line {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.84rem;
  font-weight: 800;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  margin: 0;
  color: #fff;
  max-width: 820px;
  font-size: clamp(3rem, 6.1vw, 6.35rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 0.92;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
}

h1::before,
h1::after {
  content: none;
}

h1 span {
  display: block;
}

h1 span + span {
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 850;
  padding: 0.8rem 1.08rem;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  border-color: transparent;
  background: var(--accent);
  color: #10130b;
  box-shadow: 0 18px 44px rgba(156, 255, 0, 0.2);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.service-console {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 12;
  width: min(1120px, calc(100% - 32px));
  flex: 0 0 auto;
  margin: 0 auto 28px;
  transform: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06)),
    rgba(10, 10, 12, 0.78);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  padding: 1.15rem;
  backdrop-filter: blur(24px);
}

.service-console::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(156, 255, 0, 0.1), transparent 16rem),
    radial-gradient(circle at 88% 0%, rgba(112, 229, 255, 0.08), transparent 18rem);
  content: "";
  pointer-events: none;
}

.console-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0.1rem 0.9rem;
}

.console-head h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1;
}

.console-head p {
  margin: 0.16rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.console-state {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.48rem 0.64rem;
}

.console-state i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(156, 255, 0, 0.74);
}

.service-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(230px, 1.25fr) repeat(4, minmax(150px, 1fr));
  gap: 0.72rem;
  align-items: stretch;
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.72rem;
  min-width: 0;
  min-height: 112px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.08), transparent 8rem),
    rgba(9, 10, 12, 0.6);
  padding: 0.9rem;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

.service-card::after {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(156, 255, 0, 0.7), transparent);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(156, 255, 0, 0.42);
  background:
    radial-gradient(circle at 20% 0%, rgba(156, 255, 0, 0.11), transparent 8rem),
    rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  outline: none;
}

.service-card:hover::after,
.service-card:focus-visible::after {
  opacity: 1;
}

.service-card.featured {
  min-height: 128px;
  background:
    radial-gradient(circle at 18% 10%, rgba(156, 255, 0, 0.15), transparent 10rem),
    linear-gradient(140deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
}

.service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.service-card strong,
.service-card small,
.service-card em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-card strong {
  font-size: 0.95rem;
}

.service-card small {
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
}

.service-card em {
  grid-column: 1 / -1;
  align-self: end;
  color: rgba(255, 255, 255, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  font-style: normal;
}

.ops-section,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.ops-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: 2rem;
  align-items: start;
  padding: 54px 0 58px;
}

.ops-section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.ops-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.ops-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
}

.ops-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem;
}

.ops-item dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.ops-item dd {
  margin: 0.35rem 0 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.86rem;
  padding: 22px 0 30px;
}

[data-animate],
.float-panel,
.service-console,
.service-card,
.reveal {
  will-change: transform, opacity;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-git,
  .panel-api {
    width: 28vw;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 18px;
  }

  .hero-copy {
    min-height: 0;
    padding: 64px 0 34px;
  }

  .status-pulse {
    margin-bottom: 2.4rem;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.5rem);
  }

  h1::before,
  h1::after {
    display: none;
  }

  .panel-blog,
  .panel-vault,
  .orbit-ring {
    display: none;
  }

  .panel-git {
    left: 5%;
    top: 48%;
    width: 42vw;
    min-height: 150px;
  }

  .panel-api {
    right: 4%;
    top: 25%;
    width: 42vw;
    min-height: 160px;
  }

  .service-grid,
  .ops-section,
  .ops-list {
    grid-template-columns: 1fr;
  }

  .service-console {
    margin-bottom: 16px;
  }

  .console-head,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .cursor-glow {
    display: none;
  }
}
