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

:root {
  --navy-900: #0b1b3f;
  --navy-800: #102a62;
  --navy-700: #1534a0;
  --navy-600: #1c3f8b;
  --blue-500: #1f73e5;
  --cyan-400: #29b8ff;
  --green-500: #10b981;
  --ink: #0f172a;
  --muted: #5b6b82;
  --bg: #f4f7fd;
  --surface: #ffffff;
  --border: rgba(15, 27, 63, 0.08);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 22px 52px -30px rgba(11, 27, 63, 0.45);
  --shadow-sm: 0 12px 28px -18px rgba(11, 27, 63, 0.25);
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --brand-size: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-sans);
}

a {
  color: inherit;
}

header {
  position: relative;
  overflow: hidden;
  color: #f8fbff;
  background:
    radial-gradient(circle at 18% 12%, rgba(41, 184, 255, 0.3), transparent 50%),
    linear-gradient(135deg, var(--navy-900), var(--navy-600));
  padding: clamp(80px, 10vw, 140px) 0 120px;
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(11, 27, 63, 0.35), rgba(255, 255, 255, 0.08));
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: grid;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: var(--brand-size);
  height: var(--brand-size);
  filter: drop-shadow(0 16px 30px rgba(41, 184, 255, 0.35));
  object-fit: contain;
}

.brand span {
  display: grid;
  gap: 4px;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: rgba(201, 231, 255, 0.85);
}

.brand em {
  font-style: normal;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 68px);
  letter-spacing: -1px;
  line-height: 1.05;
}

header p {
  margin: 0;
  max-width: 720px;
  font-size: 20px;
  color: rgba(229, 239, 255, 0.88);
  line-height: 1.5;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn,
.btn-outline,
.btn-success,
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
  background: none;
}

.btn {
  background: linear-gradient(135deg, #fff, #f8fbff);
  color: var(--navy-700);
  box-shadow: 0 4px 14px rgba(11, 27, 63, 0.18);
  border: 1px solid rgba(31, 115, 229, 0.15);
}

.btn:hover,
.btn-outline:hover,
.btn-success:hover,
.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 27, 63, 0.25);
}

.btn-outline {
  border: 1px solid rgba(229, 239, 255, 0.6);
  color: #f1f5ff;
  background: rgba(15, 27, 63, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn-success {
  background: var(--green-500);
  color: #fff;
  box-shadow: 0 22px 40px -26px rgba(16, 185, 129, 0.5);
}

.btn-action {
  background: var(--blue-500);
  color: #fff;
  box-shadow: 0 22px 40px -26px rgba(31, 115, 229, 0.5);
}

main {
  max-width: 1180px;
  margin: -80px auto 120px;
  padding: 0 clamp(20px, 4vw, 40px);
  display: grid;
  gap: clamp(60px, 8vw, 80px);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: clamp(36px, 5vw, 56px);
  display: grid;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(31, 115, 229, 0.08), transparent 60%);
  pointer-events: none;
}

.card > * {
  position: relative;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 42px);
  letter-spacing: -0.5px;
  color: var(--navy-900);
}

h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy-800);
}

h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy-800);
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin: 20px 0;
}

.feature-card {
  background: rgba(31, 115, 229, 0.04);
  border: 1px solid rgba(31, 115, 229, 0.15);
  border-radius: var(--radius-md);
  padding: 28px;
  display: grid;
  gap: 16px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy-600), var(--cyan-400));
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}

.highlight-box {
  padding: 24px;
  background: linear-gradient(135deg, rgba(31, 115, 229, 0.06), rgba(41, 184, 255, 0.04));
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 115, 229, 0.1);
  text-align: center;
}

.highlight-box h3 {
  color: var(--navy-600);
  margin-bottom: 8px;
}

.list-check {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(31, 115, 229, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(31, 115, 229, 0.08);
}

.list-check li span {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-size: 14px;
  flex-shrink: 0;
}

.snippet-container {
  position: relative;
}

.snippet-copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.snippet-copy-btn:hover {
  background: rgba(16, 185, 129, 1);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.snippet-copy-btn.copied {
  background: rgba(59, 130, 246, 0.9);
}

pre {
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', 'Courier New';
  border: 1px solid rgba(148, 163, 184, 0.3);
}

code {
  font-family: inherit;
}

.snippet-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

#copyStatus {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--green-500);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#copyStatus.show {
  opacity: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(31, 115, 229, 0.12);
  color: var(--navy-600);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.steps {
  display: grid;
  gap: 20px;
  padding: 0;
}

.steps li {
  list-style: none;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 27, 63, 0.1);
  background: rgba(31, 115, 229, 0.04);
  font-weight: 500;
  color: var(--ink);
}

.installation-method {
  background: rgba(31, 115, 229, 0.04);
  border: 1px solid rgba(31, 115, 229, 0.15);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.installation-method ol {
  margin: 16px 0;
  padding-left: 24px;
}

.installation-method ol li {
  margin: 8px 0;
  color: var(--ink);
}

.cms-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.cms-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.cms-item h5 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-800);
}

.cms-item ol {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
}

.cms-item li {
  margin: 6px 0;
}

.two-column {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.checklist {
  display: grid;
  gap: 12px;
  padding: 0;
}

.checklist li {
  list-style: none;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 27, 63, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 27, 63, 0.03);
}

.checklist strong {
  color: var(--navy-600);
}

.alert {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
}

.alert-title {
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 8px;
}

.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

footer {
  background: var(--navy-900);
  color: rgba(229, 239, 255, 0.9);
  padding: 60px 20px;
  text-align: center;
}

footer p {
  color: rgba(229, 239, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 24px;
}

footer a {
  color: var(--cyan-400);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-legal {
  margin-top: 40px;
  font-size: 14px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-24 {
  margin-top: 24px;
}

.list-gap-sm {
  margin-top: 12px;
}

.support-text {
  margin-top: 8px;
}

.text-xs {
  font-size: 13px;
}

.heading-sub {
  margin: 16px 0 0;
  font-size: 16px;
  color: var(--navy-800);
}

body.page-guide header {
  padding: clamp(64px, 9vw, 112px) 0 120px;
}

body.page-guide .header-inner {
  max-width: 1080px;
  gap: 32px;
}

body.page-guide .header-actions {
  gap: 14px;
}

body.page-guide .btn,
body.page-guide .btn-outline,
body.page-guide .btn-success,
body.page-guide .btn-action {
  padding: 12px 22px;
  font-size: 15px;
}

body.page-guide .brand img {
  width: 44px;
  height: 44px;
}

body.page-guide header h1 {
  font-size: clamp(34px, 5.5vw, 52px);
  letter-spacing: -0.7px;
}

body.page-guide header p {
  max-width: 640px;
  font-size: 18px;
}

body.page-home header p {
  font-size: 20px;
}

body.page-guide main {
  max-width: 1080px;
  gap: clamp(48px, 8vw, 72px);
}

body.page-guide .card {
  padding: clamp(32px, 5vw, 46px);
  gap: 24px;
}

body.page-guide .feature-grid {
  gap: 24px;
}

body.page-guide footer {
  margin-top: 80px;
  padding: 40px 20px;
}

body.page-qa header {
  padding: clamp(64px, 9vw, 112px) 0 100px;
}

body.page-qa .header-inner {
  gap: 32px;
}

body.page-qa .header-actions {
  gap: 14px;
}

body.page-qa .brand img {
  width: 44px;
  height: 44px;
}

body.page-qa header h1 {
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.7px;
}

body.page-qa header p {
  max-width: 640px;
  font-size: 18px;
  color: rgba(226, 232, 240, 0.85);
}

body.page-qa main {
  margin: -60px auto 60px;
  gap: 24px;
}

body.page-qa .card {
  padding: clamp(24px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid rgba(31, 115, 229, 0.15);
  box-shadow: 0 4px 16px -4px rgba(11, 27, 63, 0.12);
}

body.page-qa h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 600;
}

body.page-qa h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}

body.page-qa .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  border: 1px solid rgba(229, 239, 255, 0.6);
  color: #f1f5ff;
  background: rgba(15, 27, 63, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: none;
}

body.page-qa .button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

body.page-qa .btn.ghost {
  background: linear-gradient(135deg, rgba(31, 115, 229, 0.1), rgba(41, 184, 255, 0.08));
  color: var(--navy-700);
  border: 1px solid rgba(31, 115, 229, 0.25);
  font-size: 14px;
  padding: 10px 16px;
  box-shadow: 0 2px 6px rgba(11, 27, 63, 0.08);
  font-weight: 600;
}

body.page-qa .btn.ghost:hover {
  background: linear-gradient(135deg, rgba(31, 115, 229, 0.18), rgba(41, 184, 255, 0.12));
  border-color: rgba(31, 115, 229, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(11, 27, 63, 0.12);
}

body.page-qa .callout {
  padding: 14px;
  background: linear-gradient(135deg, rgba(41, 184, 255, 0.12), rgba(31, 115, 229, 0.08));
  border: 1px solid rgba(41, 184, 255, 0.3);
  border-radius: var(--radius-sm);
  color: var(--navy-700);
  font-size: 14px;
  font-weight: 500;
  box-shadow: inset 0 1px 2px rgba(41, 184, 255, 0.1);
}

body.page-qa :not(pre) > code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', 'Courier New';
  background: rgba(15, 27, 63, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 90%;
}

body.page-qa .two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

body.page-qa table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid rgba(31, 115, 229, 0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

body.page-qa th {
  text-align: left;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(31, 115, 229, 0.12), rgba(41, 184, 255, 0.08));
  color: var(--navy-800);
  font-weight: 600;
  border-bottom: 2px solid rgba(31, 115, 229, 0.2);
}

body.page-qa td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(31, 115, 229, 0.1);
  color: var(--ink);
  background: #fff;
}

body.page-qa .ok {
  color: #16a34a;
  font-weight: 600;
}

body.page-qa .warn {
  color: #dc2626;
  font-weight: 600;
}

body.page-qa .muted {
  color: var(--muted);
}

body.page-qa .toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(31, 115, 229, 0.12);
}

body.page-qa .pill {
  border: 1px solid rgba(31, 115, 229, 0.2);
  cursor: pointer;
  transition: background 0.2s ease;
}

body.page-qa .pill:hover {
  background: rgba(31, 115, 229, 0.15);
}

body.page-qa .log {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px;
  border-radius: var(--radius-sm);
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', 'Courier New';
  height: 280px;
  overflow-y: auto;
  border: 2px solid rgba(31, 115, 229, 0.2);
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.page-qa .log::-webkit-scrollbar {
  width: 8px;
}

body.page-qa .log::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

body.page-qa .log::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 4px;
}

body.page-qa .status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

body.page-qa .status-item {
  background: rgba(31, 115, 229, 0.04);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(31, 115, 229, 0.1);
}

body.page-qa .status-item h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--navy-800);
  font-weight: 600;
}

body.page-qa .status-item .value {
  font-size: 16px;
  font-weight: 600;
}

body.page-qa .counter-table {
  width: 100%;
  margin-top: 16px;
}

body.page-qa .counter-table tbody tr:hover {
  background: rgba(31, 115, 229, 0.04);
}

body.page-qa .url-check-section {
  background: linear-gradient(135deg, rgba(31, 115, 229, 0.06), rgba(41, 184, 255, 0.04));
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 115, 229, 0.2);
  box-shadow: inset 0 1px 3px rgba(31, 115, 229, 0.08);
}

body.page-qa #urlInput {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(31, 115, 229, 0.25);
  border-radius: 8px;
  font-size: 15px;
  margin: 12px 0;
  background: #fff;
  transition: all 0.2s ease;
}

body.page-qa #urlInput:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(31, 115, 229, 0.12);
}

body.page-qa .results-table {
  margin-top: 20px;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

body.page-qa footer {
  margin-top: 80px;
  padding: 40px 20px;
}

@media (max-width: 640px) {
  header {
    padding-bottom: 160px;
  }

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

  footer {
    padding: 40px 20px;
  }
}
