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

:root {
  --bg: #0d0d0d;
  --panel: #0d0d0d;
  --panel-alt: #111111;
  --border: #1a1a1a;
  --text: #ffffff;
  --muted: #666666;
  --highlight: #06b0ff;
  --highlight-low-sat: #5b8fc4;
  --link: #4da3ff;
}

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

html, body {
  height: 100%;
}

body {
  margin: 0;
  padding: 40px 0 60px;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

strong {
  color: var(--text);
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: #74b9ff;
  outline: none;
}

main {
  width: min(960px, calc(100% - 60px));
  margin: 0 auto;
  background: var(--panel);
  border: 2px solid var(--border);
  padding: 60px 40px 64px;
}

@media (max-width: 768px) {
  body {
    padding: 24px 0 40px;
  }
  main {
    width: calc(100% - 32px);
    padding: 40px 24px 48px;
  }
}

header.page {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding-bottom: 28px;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--border);
}

header.page .logo {
  width: 64px;
  height: auto;
  border-radius: 16px;
}

header.page .titles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

header.page h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -2px;
}

header.page .meta {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

a.back,
a.back:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid var(--border);
  color: var(--link);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 12px;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

a.back:hover,
a.back:focus,
a.back:focus-visible,
a.back:active {
  border-color: var(--highlight);
  background: #1a1a1a;
  color: #74b9ff;
  text-decoration: none;
  outline: none;
}

.is-hidden {
  display: none !important;
}

.actions-end {
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 28px;
  border-top: 2px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

@media (max-width: 640px) {
  .actions-end {
    flex-direction: column;
  }
  .actions-end .back {
    width: 100%;
  }
}

.doc {
  color: #cfcfcf;
  font-size: 17px;
  line-height: 1.75;
}

.doc p {
  margin: 18px 0;
}

.doc h2,
.doc h3 {
  color: var(--text);
  letter-spacing: -0.5px;
  margin: 38px 0 12px;
}

.doc h2 {
  font-size: 26px;
}

.doc h3 {
  font-size: 20px;
}

.doc ul,
.doc ol {
  margin: 0 0 28px 20px;
  padding-left: 0;
}

.doc li {
  margin: 8px 0;
}

.doc li::marker {
  color: var(--muted);
}
.doc strong {
  color: var(--text);
}

.doc a:not(.back) {
  border-bottom: 1px solid #2a2a2a;
}

.doc blockquote {
  margin: 24px 0;
  padding: 24px;
  background: var(--panel-alt);
  border-left: 3px solid var(--highlight);
  color: #ddd;
}

.cta-card {
  margin: 56px 0;
  padding: 32px 36px;
  display: flex;
  gap: 28px;
  align-items: center;
  border: 2px solid var(--border);
  background: var(--panel-alt);
}

.cta-card h2 {
  margin: 0 0 8px;
}

.cta-card p {
  margin: 0;
  color: #d7d7d7;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 26px;
  border: 1px solid var(--highlight);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--highlight);
  color: #000;
  outline: none;
}

@media (max-width: 640px) {
  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-button {
    width: 100%;
    text-align: center;
  }
}

.doc code {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

/* Survey page */
body.survey-page {
  padding: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
}

.survey-page .survey-container {
  max-width: 1600px;
  margin: 0 auto;
  background: var(--bg);
  padding: 60px 40px;
}

.survey-page h1 {
  margin: 0 0 8px;
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 0.95;
}

.survey-page .survey-subtitle {
  color: #d7d7d7;
  margin: 10px 0 40px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.survey-page .survey-subtitle a {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

.survey-page .survey-subtitle a:hover,
.survey-page .survey-subtitle a:focus-visible {
  color: #74b9ff;
  text-decoration: underline;
}

.survey-page .metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  margin-bottom: 40px;
  background: var(--border);
  padding: 2px;
}

.survey-page .charts-table {
  width: 100%;
  border-collapse: collapse;
  background: #1a1a1a;
  border: 2px solid var(--border);
}

.survey-page .charts-table td {
  background: var(--panel);
  padding: 0;
  border: 2px solid var(--border);
  vertical-align: middle;
  text-align: center;
}

.survey-page .chart-container {
  background: var(--panel);
  padding: 32px;
  position: relative;
  height: 100%;
}

.survey-page .chart-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--highlight);
  opacity: 0;
  transition: opacity 0.3s;
}

.survey-page .chart-container:hover::before {
  opacity: 1;
}

.survey-page .chart-title {
  font-size: 13px;
  font-weight: 500;
  color: #999;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.survey-page .bar {
  fill: var(--highlight-low-sat);
  transition: all 0.2s ease;
}

.survey-page .bar:hover {
  fill: #0594d4;
}

.survey-page .bar-tooltip {
  position: absolute;
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 1000;
}

.survey-page .pie-slice {
  stroke: var(--bg);
  stroke-width: 2px;
  transition: all 0.2s ease;
}

.survey-page .pie-slice:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.survey-page .pie-label {
  font-size: 11px;
  fill: var(--text);
  font-weight: 500;
  pointer-events: none;
}

.survey-page .pie-percentage {
  font-size: 10px;
  fill: #999;
  pointer-events: none;
}

.survey-page .axis {
  font-size: 11px;
  font-family: 'Space Grotesk', sans-serif;
}

.survey-page .axis path,
.survey-page .axis line {
  stroke: #2a2a2a;
  stroke-width: 1px;
}

.survey-page .axis text {
  fill: #666;
  font-size: 13px;
}

.survey-page .metric-card {
  background: var(--panel);
  color: var(--text);
  padding: 40px 32px;
  text-align: left;
  position: relative;
  transition: all 0.3s ease;
}

.survey-page .metric-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #06b0ff, #36c4ff, #8fe7ff);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.survey-page .metric-card:hover::after {
  transform: scaleX(1);
}

.survey-page .metric-value {
  font-size: 56px;
  font-weight: 700;
  margin: 12px 0 8px;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #d8f4ff 0%, #06b0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.survey-page .metric-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #666;
  font-weight: 500;
}

.survey-page .loading {
  text-align: center;
  padding: 80px;
  color: #666;
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 500;
}

.survey-page .error {
  background: #1a0a0a;
  border-left: 4px solid #ef4444;
  padding: 32px;
  color: #ef4444;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.survey-page .responses-section {
  margin-top: 60px;
  background: var(--border);
  padding: 2px;
}

.survey-page .responses-container {
  background: var(--panel);
  padding: 40px;
}

.survey-page .responses-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.survey-page .responses-subtitle {
  font-size: 13px;
  color: #666;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.survey-page .response-item {
  background: #1a1a1a;
  padding: 20px 24px;
  margin-bottom: 12px;
  border-left: 3px solid #2a2a2a;
  transition: all 0.2s ease;
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
}

.survey-page .response-item:hover {
  border-left-color: var(--highlight);
  background: #222;
}

.survey-page .response-number {
  display: inline-block;
  width: 30px;
  color: #666;
  font-weight: 500;
  font-size: 12px;
}

@media (max-width: 768px) {
  .survey-page .survey-container {
    padding: 40px 20px;
  }

  .survey-page h1 {
    font-size: 48px;
  }

  .survey-page .charts-table td {
    display: block;
    width: 100%;
  }

  .survey-page .responses-container {
    padding: 24px;
  }
}

.doc pre {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 22px;
  overflow-x: auto;
}

.doc hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

.nav-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.nav-links a {
  opacity: 0.75;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
}

.legal {
  margin-top: 48px;
  color: var(--muted);
  font-size: 14px;
}

.legal a {
  color: inherit;
  border-bottom: 1px solid #2a2a2a;
}

.legal a:hover,
.legal a:focus-visible {
  color: var(--highlight);
  border-bottom-color: var(--highlight);
}

footer.page {
  margin-top: 64px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
