:root {
  --bg: #08111f;
  --bg-soft: #0f1d34;
  --card: rgba(19, 36, 63, 0.8);
  --text: #ecf4ff;
  --muted: #b5c8e3;
  --line: rgba(183, 212, 255, 0.2);
  --primary: #47d1ff;
  --primary-ink: #04131e;
  --accent: #87f59f;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at 0% 0%, #102445 0%, transparent 40%), radial-gradient(circle at 100% 0%, #1f3f3a 0%, transparent 35%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  width: 36rem;
  height: 36rem;
  border-radius: 999px;
  z-index: -1;
  filter: blur(85px);
  opacity: 0.18;
}

.bg-glow-a {
  background: #58d4ff;
  left: -10rem;
  top: -8rem;
}

.bg-glow-b {
  background: #86f9a2;
  right: -12rem;
  bottom: -9rem;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  margin-top: 0.9rem;
  position: relative;
  z-index: 5;
  border: 1px solid rgba(183, 212, 255, 0.22);
  border-radius: 0.95rem;
  background: linear-gradient(95deg, rgba(8, 22, 44, 0.9), rgba(6, 20, 41, 0.76));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img {
  width: 1.9rem;
  height: 1.9rem;
}

.brand-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--primary));
  box-shadow: 0 0 14px rgba(71, 209, 255, 0.6);
}

nav {
  display: inline-flex;
  gap: 1.1rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.25rem;
}

nav a:hover {
  color: var(--text);
}

.nav-github {
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0.2rem 0;
}

.nav-github:hover {
  opacity: 1;
}

.owasp-banner {
  background: linear-gradient(90deg, rgba(246, 139, 31, 0.08) 0%, rgba(246, 139, 31, 0.04) 100%);
  border-top: 1px solid rgba(246, 139, 31, 0.25);
  border-bottom: 1px solid rgba(246, 139, 31, 0.25);
  padding: 0.9rem 0;
}

.owasp-banner-inner {
  display: flex;
  align-items: center;
}

.owasp-banner-link {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
  width: 100%;
}

.owasp-banner-link:hover .owasp-banner-cta {
  color: #F68B1F;
}

.owasp-banner-logo {
  height: 32px;
  width: auto;
  background: white;
  border-radius: 5px;
  padding: 4px 8px;
  flex-shrink: 0;
}

.owasp-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
}

.owasp-banner-text strong {
  font-size: 0.9rem;
  color: #F68B1F;
}

.owasp-banner-text span {
  font-size: 0.78rem;
  color: var(--muted);
}

.owasp-banner-cta {
  font-size: 0.78rem;
  color: rgba(246, 139, 31, 0.7);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s;
}

.hero {
  padding: 3.5rem 0 1.5rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.7rem;
  align-items: start;
}

.hero-logo {
  margin-bottom: 0.7rem;
}

.logo-pair {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: white;
  border-radius: 0.9rem;
  padding: 14px 22px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.logo-pair img {
  height: 56px;
  width: auto;
}

.logo-pair a {
  display: flex;
  align-items: center;
}

.logo-plus {
  font-size: 26px;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1;
  user-select: none;
}

.release-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.2rem 0 0.9rem;
  padding: 0.34rem 0.62rem;
  border-radius: 0.68rem;
  border: 1px solid rgba(71, 209, 255, 0.42);
  background: linear-gradient(120deg, rgba(7, 24, 44, 0.92), rgba(17, 49, 44, 0.84));
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
}

.release-badge-label {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cde5ff;
  font-weight: 700;
}

.release-badge-version {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: #052437;
  background: linear-gradient(120deg, #87f59f, #47d1ff);
  border-radius: 0.5rem;
  padding: 0.16rem 0.42rem;
  font-weight: 700;
}

.release-badge:hover {
  border-color: rgba(135, 245, 159, 0.6);
  transform: translateY(-1px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  margin-bottom: 0.8rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 2.1rem 0 1rem;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

p {
  margin: 0.7rem 0;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.62rem 0.95rem;
  border-radius: 0.72rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), #7fe7ff);
  color: var(--primary-ink);
  box-shadow: 0 10px 26px rgba(71, 209, 255, 0.25);
}

.btn-ghost {
  color: var(--text);
  background: rgba(183, 212, 255, 0.08);
  border: 1px solid rgba(183, 212, 255, 0.22);
}

.stats {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.stats li {
  font-size: 0.85rem;
  border: 1px solid rgba(183, 212, 255, 0.25);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  color: #d5e5f9;
}

.hero-art img {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(183, 212, 255, 0.22);
  box-shadow: var(--shadow);
}

.preview-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.preview-tab {
  background: transparent;
  border: 1px solid rgba(183, 212, 255, 0.2);
  border-radius: 6px;
  color: #8b949e;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.preview-tab:hover {
  color: #e6edf3;
  border-color: rgba(183, 212, 255, 0.45);
}

.preview-tab.active {
  background: rgba(87, 245, 159, 0.08);
  border-color: #57f59f;
  color: #57f59f;
}

.preview-panel {
  display: none;
}

.preview-panel.active {
  display: block;
}

.preview-verbose-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-link {
  display: block;
  cursor: zoom-in;
}

.preview-link img {
  transition: opacity 0.15s;
}

.preview-link:hover img {
  opacity: 0.88;
}

.grid {
  display: grid;
  gap: 0.95rem;
}

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

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

.card {
  background: linear-gradient(170deg, rgba(26, 47, 79, 0.74), var(--card));
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow);
  animation: fade-slide 650ms ease both;
}

pre {
  background: #04101d;
  border: 1px solid #1a395f;
  border-radius: 0.8rem;
  padding: 0.75rem;
  margin: 0.3rem 0 0;
  overflow-x: auto;
}

.command-box {
  position: relative;
}

.copy-btn {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(183, 212, 255, 0.3);
  background: rgba(7, 24, 44, 0.8);
  color: #cfe7ff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.copy-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.copy-btn .icon-check {
  display: none;
}

.copy-btn.copied .icon-copy {
  display: none;
}

.copy-btn.copied .icon-check {
  display: block;
}

.copy-btn:hover {
  border-color: rgba(183, 212, 255, 0.5);
  background: rgba(11, 37, 67, 0.9);
}

.copy-btn.copied {
  color: var(--accent);
  border-color: rgba(135, 245, 159, 0.7);
}

.copy-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 0.55rem);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: rgba(4, 16, 29, 0.96);
  color: #d8ecff;
  border: 1px solid rgba(183, 212, 255, 0.28);
  border-radius: 0.45rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.74rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.copy-btn:hover::after,
.copy-btn:focus-visible::after,
.copy-btn.copied::after {
  opacity: 1;
}

code {
  font-family: "IBM Plex Mono", monospace;
  color: #d6ecff;
  font-size: 0.9rem;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

a {
  color: #9ad9ff;
}

a:hover {
  color: #d6f0ff;
}

.site-footer {
  padding: 2.2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.speed-section h2 {
  margin-bottom: 1.35rem;
}

.speed-section .grid.two {
  gap: 1.35rem;
  margin-bottom: 1.35rem;
}

.speed-section .card {
  padding: 1.35rem;
}

.site-footer p {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.25rem 0;
}

.pillars {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  background: rgba(71, 209, 255, 0.07);
  border: 1px solid rgba(71, 209, 255, 0.18);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  flex: 1;
  min-width: 140px;
}

.pillar-icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.pillar strong {
  font-size: 0.95rem;
  color: var(--primary);
}

.pillar span {
  font-size: 0.8rem;
  color: var(--muted);
}

@keyframes fade-slide {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  nav {
    display: none;
  }
  .site-header {
    padding: 0.75rem 0.85rem;
  }
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }
  .copy-btn {
    right: 0.52rem;
    width: 1.9rem;
    height: 1.9rem;
  }
}
