:root {
  --bg: #050d17;
  --bg-soft: #0b1728;
  --surface: rgba(11, 23, 40, 0.78);
  --surface-strong: #12253c;
  --surface-2: #173453;
  --line: rgba(142, 169, 199, 0.22);
  --text: #edf5ff;
  --muted: #9db1ca;
  --accent: #f9b447;
  --accent-2: #2fd4bf;
  --danger: #fb7185;
  --success: #4ade80;
  --warning: #facc15;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 24px 44px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 14px 30px rgba(0, 0, 0, 0.28);
  --container: min(1180px, 92vw);
}

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

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

body {
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1350px 700px at 0% 0%, rgba(47, 212, 191, 0.13) 0%, transparent 58%),
    radial-gradient(900px 620px at 100% 10%, rgba(249, 180, 71, 0.12) 0%, transparent 52%),
    linear-gradient(180deg, #040a13 0%, #061120 100%);
  overflow-x: clip;
}

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

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  z-index: -2;
  background-image:
    linear-gradient(130deg, rgba(255, 255, 255, 0.2) 0.8px, transparent 0.8px),
    linear-gradient(40deg, rgba(255, 255, 255, 0.2) 0.8px, transparent 0.8px);
  background-size: 4px 4px;
}

.aurora {
  position: fixed;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
  border-radius: 100%;
}

.aurora-a {
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle at 30% 30%, rgba(47, 212, 191, 0.45), transparent 68%);
  top: -7rem;
  left: -8rem;
  animation: drift-a 16s ease-in-out infinite alternate;
}

.aurora-b {
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle at 70% 40%, rgba(249, 180, 71, 0.36), transparent 72%);
  right: -10rem;
  top: -6rem;
  animation: drift-b 19s ease-in-out infinite alternate;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 70%, #8dd3ff 100%);
  width: 0%;
  z-index: 300;
  box-shadow: 0 0 24px rgba(47, 212, 191, 0.6);
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 140;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

#site-header.is-scrolled {
  background: rgba(5, 13, 23, 0.84);
  backdrop-filter: blur(18px);
  border-color: rgba(150, 170, 194, 0.2);
}

.nav-wrap {
  width: var(--container);
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: #132238;
  background: linear-gradient(135deg, var(--accent), #ffd38d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 22px rgba(249, 180, 71, 0.35);
}

.brand-text {
  font-family: "Fraunces", serif;
  font-size: 1.32rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-link {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.55rem 0.68rem;
  border-radius: 10px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mobile-toggle {
  display: none;
}

#app-main {
  min-height: calc(100vh - 220px);
  display: block;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.container-wide-pipeline {
  width: min(1680px, 98vw);
}

.page {
  animation: enter-page 0.48s ease both;
}

.hero {
  padding: 5.6rem 0 3.2rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.1rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #0d2238;
  background: linear-gradient(110deg, rgba(249, 180, 71, 0.95), rgba(47, 212, 191, 0.85));
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
}

.hero-title {
  margin: 1.15rem 0 0.9rem;
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  color: var(--muted);
  margin-bottom: 1.35rem;
  max-width: 58ch;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.74rem 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #11263e;
  background: linear-gradient(135deg, #f9b447, #ffd185);
  box-shadow: 0 18px 28px rgba(249, 180, 71, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 34px rgba(249, 180, 71, 0.36);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(151, 199, 240, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(20, 49, 77, 0.8), rgba(7, 20, 36, 0.78));
  box-shadow: var(--shadow-lg);
  min-height: 350px;
  padding: 1rem;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, transparent 30%, rgba(255, 255, 255, 0.08) 48%, transparent 66%);
  transform: translateX(-100%);
  animation: glint 7s ease-in-out infinite;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  position: relative;
  z-index: 2;
}

.chip {
  border: 1px solid rgba(175, 212, 245, 0.26);
  background: rgba(8, 20, 35, 0.68);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  color: #b8d2ee;
  font-size: 0.73rem;
  width: fit-content;
}

.metric {
  border: 1px solid rgba(175, 212, 245, 0.18);
  border-radius: 16px;
  padding: 0.95rem 0.9rem;
  background: rgba(9, 24, 43, 0.88);
}

.metric-value {
  font-size: 1.26rem;
  font-weight: 700;
}

.metric-label {
  margin-top: 0.4rem;
  font-size: 0.77rem;
  color: var(--muted);
}

.section {
  padding: 3.2rem 0;
}

.section-header {
  margin-bottom: 1.45rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.55;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}

.card h3,
.card h4 {
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.card:hover {
  border-color: rgba(143, 190, 230, 0.42);
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-thumb {
  border-radius: 14px;
  min-height: 140px;
  border: 1px solid rgba(180, 207, 230, 0.18);
  background:
    linear-gradient(130deg, rgba(47, 212, 191, 0.25), transparent 55%),
    linear-gradient(220deg, rgba(249, 180, 71, 0.24), transparent 60%),
    linear-gradient(180deg, #0f2338 0%, #0a1829 100%);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c8d9ec;
  overflow: hidden;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(151, 198, 235, 0.26);
  color: #b9d1e7;
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  font-size: 0.71rem;
  gap: 0.3rem;
}

.price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.22rem;
}

.strip {
  border: 1px solid rgba(47, 212, 191, 0.34);
  background: linear-gradient(120deg, rgba(15, 42, 65, 0.92), rgba(12, 26, 44, 0.85));
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(7, 19, 33, 0.82);
}

.table th,
.table td {
  padding: 0.72rem 0.82rem;
  border-bottom: 1px solid rgba(151, 185, 216, 0.16);
  text-align: left;
  font-size: 0.86rem;
}

.table th {
  color: #c4daef;
  background: rgba(16, 40, 63, 0.74);
}

.table tr:last-child td {
  border-bottom: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table-fixed {
  table-layout: fixed;
}

.table .request-col {
  max-width: 320px;
  white-space: normal;
  word-break: break-word;
}

.table .action-col {
  width: 132px;
  min-width: 132px;
  white-space: nowrap;
}

.table .updated-col {
  width: 172px;
  min-width: 172px;
  white-space: nowrap;
}

.table .job-col {
  width: 210px;
  min-width: 210px;
  white-space: normal;
  word-break: break-word;
}

.pipeline-table-wrap {
  overflow-x: auto;
}

.pipeline-table {
  min-width: 1320px;
}

.pipeline-table th,
.pipeline-table td {
  white-space: nowrap;
  word-break: normal;
}

.pipeline-col-queue {
  min-width: 260px;
}

.pipeline-col-job {
  min-width: 440px;
}

.pipeline-col-created {
  min-width: 180px;
}

.pipeline-col-id {
  min-width: 90px;
}

.pipeline-col-name {
  min-width: 760px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.62rem;
}

.status-active {
  background: rgba(74, 222, 128, 0.18);
  color: #7cf2a7;
}

.status-warning {
  background: rgba(250, 204, 21, 0.2);
  color: #fde37d;
}

.status-danger {
  background: rgba(251, 113, 133, 0.2);
  color: #fda4af;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid rgba(149, 179, 207, 0.32);
  border-radius: 12px;
  background: rgba(8, 20, 34, 0.88);
  color: var(--text);
  padding: 0.68rem 0.75rem;
  font-size: 0.9rem;
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(47, 212, 191, 0.9);
  box-shadow: 0 0 0 3px rgba(47, 212, 191, 0.18);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.44rem;
}

.feature-list li {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  color: #c5dbef;
  font-size: 0.9rem;
}

.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(249, 180, 71, 0.42);
}

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

.timeline {
  display: grid;
  gap: 0.75rem;
}

.timeline-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.8rem;
  align-items: start;
}

.timeline-index {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #122239;
  background: linear-gradient(135deg, var(--accent), #ffdc9f);
}

.timeline-step p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  line-height: 1.52;
}

.page-head {
  padding-top: 2.4rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #96adc6;
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1rem;
}

.side-panel {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 21, 36, 0.8);
  padding: 0.7rem;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border-radius: 10px;
  padding: 0.6rem 0.65rem;
  color: #abc2dc;
  font-size: 0.86rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.side-link:hover,
.side-link.is-active {
  color: #f2f8ff;
  background: rgba(47, 212, 191, 0.14);
}

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

.dash-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 21, 35, 0.86);
  padding: 0.95rem;
  min-width: 0;
}

.span-3 {
  grid-column: span 3;
}

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

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

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

.span-12 {
  grid-column: span 12;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  min-height: 170px;
}

.bar {
  flex: 1;
  border-radius: 9px 9px 6px 6px;
  background: linear-gradient(180deg, rgba(47, 212, 191, 0.86), rgba(27, 113, 132, 0.5));
  transform-origin: bottom center;
  animation: rise 0.9s ease both;
}

.bar[data-alt="true"] {
  background: linear-gradient(180deg, rgba(249, 180, 71, 0.92), rgba(146, 98, 28, 0.52));
}

.kpi {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.25rem 0;
}

.kpi-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
}

.cta-banner {
  border: 1px solid rgba(249, 180, 71, 0.35);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(249, 180, 71, 0.2), transparent 55%),
    linear-gradient(115deg, rgba(47, 212, 191, 0.18), transparent 62%),
    rgba(9, 23, 39, 0.86);
  padding: 1.15rem;
}

#site-footer {
  border-top: 1px solid rgba(145, 170, 194, 0.21);
  margin-top: 3rem;
  background: rgba(6, 15, 26, 0.82);
}

.footer-wrap {
  width: var(--container);
  margin: 0 auto;
  padding: 1.4rem 0 1.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: #9db0c6;
  font-size: 0.85rem;
}

#page-transition {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 260;
  background: linear-gradient(120deg, rgba(249, 180, 71, 0.1), rgba(47, 212, 191, 0.08), rgba(4, 10, 18, 0.95));
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.is-transitioning #page-transition {
  opacity: 1;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.56s ease, transform 0.56s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.not-found {
  text-align: center;
  padding: 6rem 0;
}

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

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

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

  .side-panel {
    position: static;
    max-height: unset;
  }

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-8 {
    grid-column: span 12;
  }
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    left: 4vw;
    right: 4vw;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.7rem;
    background: rgba(7, 17, 30, 0.98);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.is-open {
    display: flex;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
  }

  .nav-actions .btn-secondary {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 4.4rem;
  }

  .grid-3,
  .grid-2,
  .grid-4,
  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.5rem 0;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes drift-a {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(3rem, 4rem) scale(1.2);
  }
}

@keyframes drift-b {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-3rem, 3.5rem) scale(1.14);
  }
}

@keyframes glint {
  0%,
  30% {
    transform: translateX(-120%);
  }
  52% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes enter-page {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    transform: scaleY(0.1);
    opacity: 0.1;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}
