:root {
  --bg: #191b1c;
  --bg-soft: #242728;
  --panel: rgba(35, 39, 40, 0.78);
  --panel-strong: rgba(25, 27, 28, 0.94);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-soft: rgba(255, 255, 255, 0.08);
  --text: #f7f1e8;
  --muted: #b5ada0;
  --amber: #ffac3f;
  --amber-soft: #ffd08a;
  --blue: #ffac3f;
  --blue-soft: rgba(255, 172, 63, 0.3);
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --display: "Plus Jakarta Sans", sans-serif;
  --body: "Plus Jakarta Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
}

body::before {
  content: none;
}

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

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

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border: 1px solid var(--stroke-soft);
  border-radius: 999px;
  background: rgba(31, 34, 35, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.brand {
  flex-shrink: 0;
}

.brand img {
  width: 164px;
  height: auto;
}

.topbar-meta {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.topbar-pill.is-live {
  color: #23180a;
  background: var(--amber-soft);
  border-color: rgba(255, 208, 138, 0.5);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 34px;
  align-items: center;
  padding: 52px 0 28px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  display: block;
  margin-top: 18px;
  max-width: 12ch;
  font-size: clamp(1.35rem, 2.5vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: 0;
  color: rgba(247, 241, 232, 0.78);
}

.lead {
  max-width: 62ch;
  margin: 26px 0 0;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--muted);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 58px;
  padding: 14px 24px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

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

.button.is-primary {
  color: #23180a;
  background: var(--amber-soft);
  box-shadow:
    0 18px 36px rgba(255, 172, 63, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.quick-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.quick-points li {
  padding: 11px 16px;
  border: 1px solid rgba(255, 172, 63, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #eadfce;
  font-size: 0.94rem;
}

.floating-card {
  border: 1px solid var(--stroke-soft);
  background: rgba(25, 27, 28, 0.94);
  box-shadow: var(--shadow);
}

.floating-card .label {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.floating-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
}

.visual-shell {
  position: relative;
  overflow: visible;
  min-height: 640px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.visual-grid {
  display: none;
}

.hero-scene {
  position: relative;
  min-height: 640px;
}

.hero-art-wrap {
  position: relative;
  z-index: 3;
  width: fit-content;
  margin: 0 auto;
}

.hero-art {
  position: relative;
  z-index: 2;
  width: min(100%, 640px);
  margin: 0 auto;
  transform: translate(10px, 18px);
  filter:
    drop-shadow(0 28px 46px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 30px rgba(255, 172, 63, 0.14));
}

.visual-glow {
  position: absolute;
  pointer-events: none;
}

.visual-glow {
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(28px);
}

.visual-glow-left {
  top: 118px;
  left: 18px;
  background: rgba(255, 172, 63, 0.14);
}

.visual-glow-right {
  right: 22px;
  bottom: 54px;
  background: rgba(255, 116, 32, 0.16);
}

.hero-trail,
.portal {
  position: absolute;
  pointer-events: none;
}

.hero-trail {
  left: 50%;
  top: 430px;
  z-index: 1;
  width: min(72%, 420px);
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 116, 32, 0.18), rgba(255, 172, 63, 0.3), transparent);
  filter: blur(10px);
  transform: translateX(-50%) rotate(3deg);
  animation: circuit-scan 5.6s ease-in-out infinite;
}

.portal {
  left: 50%;
  top: 54px;
  right: auto;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  margin-left: -215px;
  transform: none;
}

.portal-back {
  z-index: 0;
  border: 1px solid rgba(255, 208, 138, 0.18);
  box-shadow:
    0 0 0 26px rgba(255, 172, 63, 0.035),
    inset 0 0 52px rgba(255, 172, 63, 0.045);
  animation: line-ring-pulse 7.5s ease-in-out infinite;
}

.visual-line {
  display: none;
}

.floating-card {
  position: absolute;
  z-index: 2;
  max-width: 260px;
  padding: 18px 18px 20px;
  border-radius: 20px;
  backdrop-filter: blur(20px);
  animation: card-bob 6.2s ease-in-out infinite;
}

.floating-card strong {
  display: block;
  margin-bottom: 9px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.floating-card-top {
  top: 92px;
  right: 22px;
}

.floating-card-bottom {
  bottom: 32px;
  left: 22px;
  animation-delay: 0.8s;
}

.operations-panel {
  margin-top: 18px;
  padding: 30px;
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-xl);
  background: rgba(25, 27, 28, 0.94);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.panel-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

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

.operation-card {
  min-height: 218px;
  padding: 22px;
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-md);
  background: rgba(31, 33, 34, 0.94);
  box-shadow: var(--shadow);
}

.operation-card .index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 800;
  color: #23180a;
  background: var(--amber-soft);
}

.operation-card h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.operation-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

@keyframes line-ring-pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.82;
    transform: scale(1.04);
  }
}

@keyframes circuit-scan {
  0%,
  100% {
    opacity: 0.36;
    transform: translateX(-50%) rotate(3deg) translateX(-18px);
  }
  50% {
    opacity: 0.74;
    transform: translateX(-50%) rotate(3deg) translateX(22px);
  }
}

@keyframes card-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .visual-shell {
    min-height: 580px;
  }

  .portal {
    left: 50%;
    top: 40px;
    right: auto;
    width: 390px;
    height: 390px;
    margin-left: -195px;
  }

  .operation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 18px;
    padding-bottom: 28px;
  }

  .topbar {
    padding: 18px;
    border-radius: 28px;
  }

  .topbar-meta {
    justify-content: flex-start;
  }

  .brand img {
    width: 144px;
  }

  .hero-layout {
    gap: 24px;
    padding-top: 34px;
  }

  .lead {
    font-size: 1rem;
  }

  .action-row,
  .quick-points {
    flex-direction: column;
  }

  .button,
  .quick-points li {
    width: 100%;
  }

  .visual-shell {
    min-height: 460px;
  }

  .hero-scene {
    min-height: 480px;
  }

  .hero-art {
    width: min(100%, 540px);
    transform: translate(8px, 28px);
  }

  .portal {
    top: 64px;
    left: 50%;
    right: auto;
    width: 300px;
    height: 300px;
    margin-left: -150px;
    opacity: 0.58;
  }

  .floating-card {
    position: relative;
    inset: auto;
    max-width: none;
    margin-top: 18px;
  }

  .operations-panel {
    padding: 22px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 16px;
  }

  .hero-trail {
    display: none;
  }
}
