@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --sp-bg: #060606;
  --sp-bg-soft: #101010;
  --sp-bg-panel: #141414;
  --sp-line: #2a2a2a;
  --sp-line-strong: #3a3a3a;
  --sp-text: #f3f3f3;
  --sp-muted: #a8a8a8;
  --sp-accent: #f5f5f5;
  --sp-accent-dark: #0f0f0f;
  --sp-success: #34d399;
  --sp-error: #f87171;
}

body {
  font-family: "Manrope", sans-serif;
  background:
    linear-gradient(
      180deg,
      rgba(63, 112, 186, 0.34) 0%,
      rgba(39, 69, 118, 0.24) 24%,
      rgba(18, 29, 49, 0.16) 44%,
      rgba(6, 6, 6, 0) 72%
    ),
    radial-gradient(circle at 84% -8%, rgba(255, 255, 255, 0.16), transparent 34%),
    radial-gradient(circle at 8% 14%, rgba(142, 199, 255, 0.14), transparent 33%),
    var(--sp-bg);
  color: var(--sp-text);
}

body.qa-admin-page {
  background:
    linear-gradient(
      180deg,
      rgba(63, 112, 186, 0.34) 0%,
      rgba(39, 69, 118, 0.24) 24%,
      rgba(18, 29, 49, 0.16) 44%,
      rgba(6, 6, 6, 0) 72%
    ),
    radial-gradient(circle at 84% -8%, rgba(255, 255, 255, 0.16), transparent 34%),
    radial-gradient(circle at 8% 14%, rgba(142, 199, 255, 0.14), transparent 33%),
    var(--sp-bg);
}

.sub-nav {
  width: min(1200px, calc(100vw - 2.8rem));
  margin: 1rem auto 0;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--sp-line);
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0.8rem;
  z-index: 20;
}

.sub-nav a {
  color: var(--sp-muted);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 180ms ease;
}

.sub-nav .sub-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 0.25rem;
  padding-right: 0.92rem;
  border: 0;
  border-right: 1px solid var(--sp-line-strong);
  border-radius: 0;
  color: #dcdcdc;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

.sub-nav .sub-brand img {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(142, 199, 255, 0.32));
}

.sub-nav .sub-brand:hover {
  border-right-color: var(--sp-line-strong);
  color: #ededed;
}

.sub-nav a:hover:not(.sub-brand) {
  color: var(--sp-text);
  border-color: var(--sp-line-strong);
}

.sub-nav a.active {
  color: var(--sp-accent-dark);
  border-color: var(--sp-accent);
  background: var(--sp-accent);
}

.sub-nav .sub-brand.active {
  background: transparent;
  border-color: var(--sp-line-strong);
  color: #ededed;
}

.header {
  background: transparent;
  padding: 2.1rem 1.2rem 1.7rem;
  border: 0;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -210px;
  width: min(920px, 98vw);
  height: 520px;
  transform: translateX(-50%);
  background: url("/assets/brand/hyperplan-nedonsign.png") center top / contain no-repeat;
  filter: blur(30px) saturate(1.06);
  opacity: 0.22;
  pointer-events: none;
}

.header h1 {
  color: var(--sp-text);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.header .tagline {
  color: var(--sp-muted);
  position: relative;
  z-index: 1;
}

.header::after {
  content: "";
  position: absolute;
  right: max(2.5%, 1rem);
  top: -12px;
  width: min(180px, 26vw);
  aspect-ratio: 1 / 1;
  background: url("/assets/brand/hyperplan-mono.png") center / contain no-repeat;
  opacity: 0.11;
  pointer-events: none;
}

.container {
  width: min(1200px, calc(100vw - 2.8rem));
  max-width: none;
  padding: 0 0 3rem;
}

section {
  margin-bottom: 1.2rem;
}

.cta-card,
.feature-card,
.faq-form,
.admin-panel,
.chart-card,
.table-wrapper,
.stat-card,
.qa-item {
  background: var(--sp-bg-panel);
  border: 1px solid var(--sp-line);
  box-shadow: none;
}

.cta-card:hover,
.feature-card:hover,
.stat-card:hover {
  border-color: var(--sp-line-strong);
}

.intro h2,
.cta-card h2,
.feature-card h3,
.question-section h2,
.admin-panel h2,
section > h2 {
  color: var(--sp-text);
  font-family: "Space Grotesk", sans-serif;
}

.intro p,
.cta-card p,
.feature-card p,
p,
.question-hint,
.chart-subtitle {
  color: #c2c2c2;
}

.btn.primary,
button[type="submit"],
.filter-row button,
.qa-save-btn {
  background: var(--sp-accent);
  color: var(--sp-accent-dark);
  border: 1px solid var(--sp-accent);
}

.btn.primary:hover,
button[type="submit"]:hover,
.filter-row button:hover,
.qa-save-btn:hover {
  background: #ffffff;
  color: #000000;
}

.btn.ghost,
.refresh-btn,
.qa-delete-btn {
  background: transparent !important;
  color: var(--sp-text) !important;
  border: 1px solid var(--sp-line-strong) !important;
}

.btn.ghost:hover,
.refresh-btn:hover,
.qa-delete-btn:hover {
  background: #1b1b1b !important;
  border-color: #555 !important;
}

.eyebrow {
  color: #b6b6b6;
}

label {
  color: #dcdcdc;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  background: var(--sp-bg-soft);
  border: 1px solid var(--sp-line-strong);
  color: var(--sp-text);
}

input::placeholder,
textarea::placeholder {
  color: #8a8a8a;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: #a1a1a1;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.qa-question,
.qa-answer {
  color: #ededed;
}

.qa-meta,
.qa-list-loading,
.qa-list-empty {
  color: #9f9f9f;
}

.qa-list-loading,
.qa-list-empty {
  border: 1px dashed var(--sp-line-strong);
  background: #111111;
}

.events-table {
  background: transparent;
}

.events-table th {
  background: #151515;
  color: #ececec;
  border-bottom: 1px solid var(--sp-line-strong);
}

.events-table td {
  color: #d8d8d8;
  border-bottom: 1px solid var(--sp-line);
  background: #101010;
}

.events-table tr:hover td {
  background: #181818;
}

.meta-cell {
  color: #9a9a9a;
}

.meta-cell:hover {
  background: #1f1f1f;
}

.session-id {
  color: #9ccaff;
}

.event-name {
  color: #8dd1ff;
}

.timestamp,
.stat-card .label,
.loading,
.empty {
  color: #9f9f9f;
}

.stat-card .value {
  color: #f3f3f3;
}

.version-badge {
  background: #202020;
  color: #d8d8d8;
}

.chart-empty {
  color: #a7a7a7;
  background: rgba(10, 10, 10, 0.82);
}

.admin-pill {
  border-color: #5a5a5a;
  color: #ececec;
}

.qa-save-message.success {
  color: var(--sp-success);
}

.qa-save-message.error {
  color: var(--sp-error);
}

.qa-save-message.info {
  color: #b4b4b4;
}

.media-showcase {
  border: 1px solid var(--sp-line);
  border-radius: 18px;
  padding: 1rem;
  background: #101010;
  display: grid;
  gap: 0.75rem;
}

.media-showcase.snap {
  grid-template-columns: 1.25fr 1fr;
}

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

.media-showcase figure {
  margin: 0;
  border: 1px solid var(--sp-line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #050505;
}

.media-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-showcase.snap figure:first-child {
  grid-row: span 2;
  min-height: 310px;
}

.media-showcase.snap figure:nth-child(2),
.media-showcase.snap figure:nth-child(3) {
  min-height: 150px;
}

.media-showcase.modi figure {
  min-height: 200px;
}

.status-note {
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #4a4a4a;
  border-radius: 10px;
  background: #141414;
  color: #d0d0d0;
  font-size: 0.9rem;
}

.btn.disabled-link {
  opacity: 0.55;
  pointer-events: none;
}

.sub-footer {
  width: min(1200px, calc(100vw - 2.8rem));
  margin: 0 auto 1.6rem;
  border-top: 1px solid var(--sp-line);
  padding-top: 1rem;
}

.sub-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sub-footer-inner img {
  width: 1.6rem;
  height: 1.6rem;
  object-fit: contain;
  opacity: 0.9;
}

.sub-footer-inner p {
  margin: 0;
  color: #9f9f9f;
  font-size: 0.84rem;
}

.sub-footer-inner a {
  color: #c9c9c9;
  text-decoration: none;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.sub-footer-inner a:hover {
  color: #f0f0f0;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  .media-showcase.modi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .sub-nav,
  .container {
    width: min(1200px, calc(100vw - 1.4rem));
  }

  .sub-nav {
    border-radius: 12px;
    position: static;
    margin-top: 0.7rem;
  }

  .sub-nav .sub-brand {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--sp-line-strong);
    border-radius: 0;
    padding-bottom: 0.7rem;
    margin-right: 0;
  }

  .header::after {
    width: min(120px, 33vw);
    right: 0.5rem;
    top: 0.2rem;
    opacity: 0.1;
  }

  .header::before {
    width: min(720px, 120vw);
    height: 420px;
    top: -170px;
    opacity: 0.18;
  }

  .media-showcase.snap,
  .media-showcase.modi {
    grid-template-columns: 1fr;
  }

  .media-showcase.snap figure:first-child,
  .media-showcase.snap figure:nth-child(2),
  .media-showcase.snap figure:nth-child(3),
  .media-showcase.modi figure {
    min-height: 170px;
  }

  .sub-footer,
  .container {
    width: min(1200px, calc(100vw - 1.4rem));
  }

  .sub-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
}
