:root {
  --bg: #031427;
  --bg-soft: #071f3d;
  --bg-deep: #020d19;
  --card: rgba(8, 30, 56, 0.88);
  --card-strong: rgba(9, 35, 65, 0.96);
  --line: rgba(61, 189, 255, 0.26);
  --line-strong: rgba(61, 189, 255, 0.5);
  --text: #e8f4ff;
  --muted: #a8bfd5;
  --accent: #33d7ff;
  --accent-soft: rgba(51, 215, 255, 0.14);
  --ok: #7df6c6;
  --warn: #ffd67c;
  --danger: #ff9ca3;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(51, 215, 255, 0.14), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(51, 215, 255, 0.1), transparent 22%),
    linear-gradient(180deg, #041427 0%, #031224 36%, #020d19 100%);
  overflow-x: hidden;
}

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

.deep-card a,
.info-card a,
.format-note a,
.faq-item a,
.table-wrap a,
.prompt-text a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.info-card h3,
.deep-card h3,
.prompt-head h3,
.info-card p,
.deep-card p,
.prompt-head p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(20px);
  background: rgba(2, 16, 31, 0.84);
  border-bottom: 1px solid rgba(61, 189, 255, 0.16);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 0 24px rgba(51, 215, 255, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.header-cta,
.btn,
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-cta,
.btn-primary {
  background: linear-gradient(135deg, rgba(51, 215, 255, 0.18), rgba(18, 84, 135, 0.42));
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn-secondary,
.copy-btn {
  border: 1px solid var(--line);
  background: rgba(4, 25, 46, 0.48);
  color: var(--text);
}

.header-cta:hover,
.btn:hover,
.copy-btn:hover {
  transform: translateY(-1px);
}

.content-section,
.hero-section {
  padding: 46px 0;
}

.hero-section {
  padding-top: 62px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 34px;
  align-items: start;
}

.hero-copy,
.hero-panel,
.definition-card,
.info-card,
.deep-card,
.mini-card,
.step-card,
.sidebar-card,
.prompt-card,
.done-item,
.warn-card,
.cta-band,
.anchor-shell,
.quickstart-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 28, 52, 0.9), rgba(4, 19, 37, 0.94));
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.definition-card,
.cta-band,
.quickstart-card {
  border-radius: var(--radius-xl);
  padding: 34px;
}

.info-card,
.deep-card,
.sidebar-card,
.prompt-card,
.warn-card,
.anchor-shell {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.mini-card,
.step-card,
.done-item {
  border-radius: var(--radius-md);
  padding: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul,
pre {
  margin: 0;
}

h1 {
  margin-top: 20px;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  margin-top: 18px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 22px;
  line-height: 1.18;
}

.subtitle,
.lead,
.section-heading p,
.info-card p,
.deep-card p,
.mini-card span,
.prompt-head p,
.warn-card p,
.done-item,
.footer-brand p,
.cta-band p,
.signal-list li,
.check-list li,
.stat-card span,
.command-note,
.meta-note,
.format-note {
  color: var(--muted);
  line-height: 1.72;
}

.subtitle {
  margin-top: 16px;
  font-size: 20px;
  color: #d8f2ff;
}

.lead {
  margin-top: 18px;
  font-size: 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 18px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(125, 246, 198, 0.28);
  background: rgba(5, 27, 41, 0.82);
  color: var(--ok);
  font-size: 13px;
  font-weight: 700;
}

.meta-note {
  font-size: 14px;
}

.hero-actions,
.cta-actions,
.anchor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.compact-actions {
  margin-top: 18px;
}

.command-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 0;
}

.centered-actions {
  justify-content: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.badge {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(4, 24, 45, 0.62);
  color: #d6f7ff;
  font-size: 13px;
  font-weight: 600;
}

.panel-card {
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(61, 189, 255, 0.24);
  background: rgba(4, 22, 42, 0.72);
}

.panel-highlight {
  margin-bottom: 18px;
}

.panel-kicker,
.prompt-step {
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

.stats-grid,
.cards-grid,
.done-grid,
.steps-grid,
.comparison-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.mini-card strong,
.step-card strong {
  display: block;
  margin-bottom: 8px;
  color: #f5fbff;
}

.step-card {
  position: relative;
  overflow: hidden;
}

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

.step-card span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-weight: 800;
  color: #02111e;
  background: linear-gradient(135deg, rgba(125, 246, 198, 0.95), rgba(51, 215, 255, 0.95));
}

.step-card p {
  color: var(--muted);
  line-height: 1.6;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 24px;
}

.section-heading-wide {
  max-width: 980px;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.split-grid-wide {
  align-items: start;
}

.split-grid > *,
.split-grid-wide > * {
  min-width: 0;
}

.signal-list,
.check-list {
  padding-left: 20px;
}

.signal-list li + li,
.check-list li + li {
  margin-top: 8px;
}

.quickstart-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
  border-color: rgba(125, 246, 198, 0.38);
  background:
    radial-gradient(circle at top right, rgba(125, 246, 198, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(7, 28, 52, 0.94), rgba(4, 19, 37, 0.98));
}

.quickstart-prompt {
  min-height: 100%;
}

.info-card-muted {
  border-color: rgba(255, 214, 124, 0.22);
}

.comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.scanner-command-grid,
.scanner-ci-grid {
  margin-top: 18px;
}

.compact-badges {
  margin-top: 18px;
}

.comparison-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: rgba(4, 22, 42, 0.72);
}

.comparison-before {
  border-color: rgba(255, 214, 124, 0.3);
}

.comparison-after {
  border-color: rgba(125, 246, 198, 0.3);
}

.comparison-card h3,
.detail-card h3,
.command-group h3 {
  margin-bottom: 12px;
}

.scanner-card,
.scanner-report-card {
  margin-top: 18px;
}

.example-conclusion,
.format-note {
  margin-top: 18px;
}

.ai-cost-card {
  border-color: rgba(255, 156, 163, 0.22);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border-radius: 18px;
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: rgba(4, 22, 42, 0.72);
  border-radius: 18px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(61, 189, 255, 0.12);
}

.data-table th {
  color: #f2fbff;
  background: rgba(3, 18, 34, 0.92);
  font-size: 14px;
  letter-spacing: 0.03em;
}

.data-table td {
  color: var(--muted);
}

.anchor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.prompt-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.prompt-anchor-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(4, 24, 45, 0.56);
  color: #d2effa;
  font-size: 14px;
}

.prompt-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
}

.prompt-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.prompt-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.prompt-card,
.prompt-head,
.prompt-head > div,
.prompt-text {
  min-width: 0;
}

.prompt-head {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 18px;
}

.prompt-head h3 {
  margin-bottom: 10px;
}

.copy-btn.is-copied,
.btn.is-copied {
  color: #03111f;
  background: linear-gradient(135deg, rgba(125, 246, 198, 0.95), rgba(51, 215, 255, 0.95));
  border-color: rgba(125, 246, 198, 0.95);
}

.prompt-text {
  overflow-x: auto;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(61, 189, 255, 0.16);
  background: #031221;
  color: #d9effb;
  font: 15px/1.68 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  white-space: pre-wrap;
}

.command-card {
  display: grid;
  gap: 18px;
}

.command-block {
  margin-top: 10px;
  padding: 18px;
}

.triage-wrap {
  margin-top: 22px;
}

.detail-card,
.command-card {
  height: 100%;
}

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

.done-item {
  color: #e6f8ff;
  border-left: 3px solid var(--ok);
  background: linear-gradient(180deg, rgba(8, 30, 56, 0.88), rgba(4, 19, 37, 0.96));
}

.warn-card {
  border-color: rgba(255, 214, 124, 0.28);
}

.warn-card h3 {
  margin-bottom: 10px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 18px;
  background: rgba(6, 24, 45, 0.72);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  color: #f1fbff;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 0 18px;
  color: var(--muted);
}

.site-footer {
  padding: 20px 0 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(61, 189, 255, 0.16);
}

.footer-links {
  display: grid;
  grid-auto-flow: row;
  gap: 10px;
  align-content: start;
  justify-items: start;
  color: var(--muted);
}

.footer-links a:hover,
.prompt-anchor-nav a:hover {
  color: #ffffff;
}

@media (max-width: 1160px) {
  .cards-grid-4,
  .steps-grid-9 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .quickstart-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .cards-grid-3,
  .done-grid,
  .footer-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

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

  .anchor-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .header-row {
    min-height: 78px;
    gap: 12px;
  }

  .site-nav {
    display: none;
  }

  .hero-section,
  .content-section {
    padding: 22px 0;
  }

  .hero-copy,
  .hero-panel,
  .definition-card,
  .cta-band,
  .quickstart-card {
    padding: 20px;
    border-radius: 22px;
  }

  .info-card,
  .deep-card,
  .sidebar-card,
  .prompt-card,
  .warn-card,
  .anchor-shell {
    padding: 18px;
    border-radius: 18px;
  }

  h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .subtitle,
  .lead {
    font-size: 16px;
  }

  .meta-row {
    align-items: flex-start;
  }

  .hero-actions,
  .cta-actions,
  .anchor-actions {
    gap: 10px;
  }

  .header-cta,
  .btn,
  .copy-btn {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
  }

  .cards-grid-4,
  .prompt-sidebar,
  .steps-grid-9 {
    grid-template-columns: 1fr;
  }

  .prompt-layout {
    display: block;
  }

  .prompt-layout > *,
  .prompt-sidebar,
  .prompt-stack {
    min-width: 0 !important;
    width: 100%;
  }

  .prompt-card,
  .sidebar-card,
  .prompt-text,
  .copy-btn {
    max-width: 100%;
  }

  .prompt-card,
  .prompt-head,
  .prompt-head > div,
  .prompt-text,
  .copy-btn {
    width: 100%;
    min-width: 0;
  }

  .prompt-head {
    flex-direction: column;
  }

  .prompt-text {
    padding: 16px;
    font-size: 13px;
  }

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

  .prompt-anchor-nav a {
    width: 100%;
    text-align: center;
  }

  .table-wrap {
    overflow: visible;
  }

  .data-table {
    min-width: 0;
    border: 0;
    background: transparent;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody {
    display: grid;
    gap: 12px;
  }

  .data-table tr {
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    background: rgba(4, 22, 42, 0.72);
  }

  .data-table td {
    display: grid;
    gap: 5px;
    padding: 0;
    border: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
  }
}
