﻿:root {
  --bg: #07111f;
  --bg-soft: #0d1c2d;
  --surface: rgba(15, 33, 53, 0.86);
  --surface-strong: #10253c;
  --surface-light: #f6f9fc;
  --card-border: rgba(154, 181, 211, 0.18);
  --text: #e9f2fb;
  --text-muted: #b7c7da;
  --text-dark: #16324f;
  --heading: #ffffff;
  --primary: #2ad4ff;
  --primary-dark: #0090d0;
  --accent: #53e4a8;
  --accent-dark: #19b270;
  --warning: #ffb454;
  --danger: #ff6b79;
  --shadow: 0 18px 45px rgba(1, 11, 24, 0.35);
  --radius: 24px;
  --radius-sm: 16px;
  --content-width: 1180px;
  --article-width: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(42, 212, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(83, 228, 168, 0.14), transparent 24%),
    linear-gradient(180deg, #07111f 0%, #091523 55%, #0b1727 100%);
  line-height: 1.65;
}

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

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

p,
li {
  color: var(--text-muted);
  font-size: 1.06rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.8rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.1;
  color: var(--heading);
}

h1 {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

code,
pre,
kbd,
samp {
  font-family: "JetBrains Mono", Consolas, monospace;
}

pre {
  overflow-x: auto;
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  background: #081523;
  border: 1px solid rgba(154, 181, 211, 0.14);
  color: #cfe9ff;
  font-size: 0.95rem;
}

code {
  color: #9ce7ff;
}

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

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(42, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(42, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.44), transparent 88%);
  pointer-events: none;
}

.container {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.article-container {
  width: min(calc(100% - 2rem), var(--article-width));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -200px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--heading);
  color: var(--bg);
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.72);
  border-bottom: 1px solid rgba(154, 181, 211, 0.12);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(42, 212, 255, 0.16), rgba(83, 228, 168, 0.25)),
    #0d2135;
  border: 1px solid rgba(83, 228, 168, 0.22);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.brand-mark span {
  color: var(--heading);
  font-size: 1.15rem;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(154, 181, 211, 0.2);
  background: transparent;
  color: var(--heading);
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
}

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

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--heading);
}

.nav-cta {
  padding: 0.82rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #04111d;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(42, 212, 255, 0.24);
}

.hero {
  padding: 4.2rem 0 3rem;
}

.hero-grid,
.split-grid,
.content-grid,
.tools-grid,
.stats-grid,
.footer-grid,
.feature-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: rgba(83, 228, 168, 0.12);
  color: #9df0ca;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-copy p,
.section-copy p {
  font-size: 1.12rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.8rem 0 1rem;
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #04111d;
  box-shadow: 0 14px 30px rgba(42, 212, 255, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(154, 181, 211, 0.18);
  color: var(--heading);
}

.button-ghost {
  background: transparent;
  border: 1px solid rgba(154, 181, 211, 0.16);
  color: var(--text-muted);
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-2px);
}

.eyebrow-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.eyebrow-list span {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(154, 181, 211, 0.12);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.hero-card,
.card,
.stat-card,
.tool-panel,
.faq-item,
.article-callout,
.toc-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
}

.hero-card img,
.feature-image img,
.guide-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card figcaption,
.image-caption {
  padding: 0.9rem 1rem 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.section {
  padding: 2rem 0 4rem;
}

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

.stats-grid,
.tools-grid,
.content-grid,
.feature-grid,
.footer-grid,
.split-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split-grid {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.card,
.stat-card,
.tool-panel,
.faq-item,
.article-callout,
.toc-card {
  padding: 1.35rem;
}

.card p:last-child,
.tool-panel p:last-child {
  margin-bottom: 0;
}

.card-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0.95rem;
  background: linear-gradient(135deg, rgba(42, 212, 255, 0.2), rgba(83, 228, 168, 0.16));
  color: var(--heading);
  font-weight: 900;
}

.stat-value {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--heading);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tag {
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  background: rgba(42, 212, 255, 0.1);
  color: #9feaff;
  font-size: 0.9rem;
  font-weight: 700;
}

.feature-image {
  overflow: hidden;
  min-height: 100%;
}

.feature-image img {
  min-height: 100%;
}

.inline-link {
  color: #9ce7ff;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}

.tool-box {
  display: grid;
  gap: 1rem;
}

.field,
.textarea,
.select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(154, 181, 211, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--heading);
  font-size: 1rem;
}

.textarea {
  min-height: 12rem;
  resize: vertical;
}

.label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--heading);
  font-weight: 700;
}

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

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

.result-card {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(154, 181, 211, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.status-ok {
  color: #8ff5c5;
}

.status-warn {
  color: #ffd38a;
}

.status-bad {
  color: #ff9da7;
}

.list-clean,
.checklist,
.link-list,
.article-list {
  padding-left: 1.2rem;
}

.list-clean li,
.checklist li,
.link-list li,
.article-list li {
  margin-bottom: 0.55rem;
}

.guide-hero,
.page-intro {
  padding: 3rem 0 2rem;
}

.page-intro h1,
.guide-hero h1 {
  max-width: 14ch;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.5rem;
  align-items: start;
}

.article-layout main {
  min-width: 0;
}

.toc-card {
  position: sticky;
  top: 6.4rem;
}

.toc-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-card li + li {
  margin-top: 0.5rem;
}

.toc-card a {
  color: var(--text-muted);
}

.toc-card a:hover,
.toc-card a:focus-visible {
  color: var(--heading);
}

.article-section {
  margin-bottom: 2.3rem;
}

.article-section h2,
.article-section h3 {
  scroll-margin-top: 7rem;
}

.article-callout {
  margin: 1.5rem 0;
  background:
    linear-gradient(135deg, rgba(42, 212, 255, 0.08), rgba(83, 228, 168, 0.08)),
    rgba(15, 33, 53, 0.9);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  overflow: hidden;
  border-radius: 20px;
  border-style: hidden;
  box-shadow: 0 0 0 1px rgba(154, 181, 211, 0.14);
}

.comparison-table th,
.comparison-table td {
  padding: 0.9rem;
  border: 1px solid rgba(154, 181, 211, 0.14);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.04);
}

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

.cta-banner {
  margin: 2rem 0 4rem;
  padding: 1.6rem;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top left, rgba(83, 228, 168, 0.18), transparent 40%),
    radial-gradient(circle at bottom right, rgba(42, 212, 255, 0.16), transparent 32%),
    rgba(15, 33, 53, 0.9);
  border: 1px solid rgba(154, 181, 211, 0.16);
}

.site-footer {
  border-top: 1px solid rgba(154, 181, 211, 0.12);
  padding: 2.2rem 0;
  background: rgba(7, 17, 31, 0.85);
}

.footer-grid {
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  align-items: start;
}

.footer-note {
  color: var(--text-muted);
  margin-top: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-bottom {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(154, 181, 211, 0.1);
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .content-grid,
  .tools-grid,
  .stats-grid,
  .footer-grid,
  .feature-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(7, 17, 31, 0.96);
    border: 1px solid rgba(154, 181, 211, 0.16);
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

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

  .cta-row,
  .tool-actions,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .cta-row,
  .tool-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .button,
  .button-secondary,
  .button-ghost {
    transition: none;
  }
}
