/* ==========================================================================
   Strop — Modern Dark CSS Design System
   Compatible with modern web guidance: dark-mode, accessibility, responsive-design
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Theme Tokens */
  --bg-base: #090c12;
  --bg-surface: #0f141f;
  --bg-card: rgba(18, 24, 36, 0.75);
  --bg-card-hover: rgba(26, 35, 52, 0.9);
  --bg-input: #0b0f17;
  --bg-code: #06080d;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(0, 255, 115, 0.14);
  --border-hover: rgba(0, 255, 115, 0.4);

  --color-razer: #00ff73;
  --color-razer-hover: #1eff83;
  --color-razer-dim: rgba(0, 255, 115, 0.12);
  --color-cyan: #00d4ff;
  --color-cyan-dim: rgba(0, 212, 255, 0.12);
  --color-amber: #ffb703;
  --color-purple: #9d4edd;

  --text-main: #f3f6fc;
  --text-muted: #9aa7bc;
  --text-dim: #6c788d;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 35px rgba(0, 255, 115, 0.18);
  --shadow-cyan-glow: 0 0 30px rgba(0, 212, 255, 0.16);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Ubuntu", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", "Ubuntu Mono", Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --container-max: 1200px;
  --transition-fast: 150ms ease;
  --transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 255, 115, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 40%, rgba(0, 212, 255, 0.06), transparent),
    radial-gradient(ellipse 50% 30% at 10% 80%, rgba(157, 78, 221, 0.05), transparent);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--color-razer);
  color: #000;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid #fff;
}

/* Focus Visible Indicator */
:focus-visible {
  outline: 2px solid var(--color-razer);
  outline-offset: 3px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 12, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 255, 115, 0.4));
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.version-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-razer);
  background: var(--color-razer-dim);
  border: 1px solid var(--border-card);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-razer);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.github-link:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.github-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hero Section */
.hero-section {
  padding-block: 4.5rem 3rem;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-razer-dim);
  border: 1px solid var(--border-card);
  color: var(--color-razer);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-razer);
  box-shadow: 0 0 10px var(--color-razer);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw + 1rem, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--color-razer) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.5vw + 0.5rem, 1.25rem);
  color: var(--text-muted);
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  line-height: 1.65;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 1.75rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--color-razer);
  color: #05080e;
  box-shadow: var(--shadow-glow);
  border: 1px solid var(--color-razer-hover);
}

.btn-primary:hover {
  background: var(--color-razer-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(0, 255, 115, 0.35);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.hero-install-box {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  gap: 16px;
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
  box-shadow: var(--shadow-card);
}

.hero-install-code {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-cyan);
  white-space: nowrap;
  overflow-x: auto;
}

.hero-install-prompt {
  color: var(--text-dim);
  user-select: none;
}

.btn-copy {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  color: var(--color-razer);
  background: var(--color-razer-dim);
  border-color: var(--border-card);
}

.btn-copy.copied {
  color: #000;
  background: var(--color-razer);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-badge-item svg {
  color: var(--color-razer);
}

/* Showcase Section */
.showcase-section {
  padding-block: 2rem 5rem;
}

.showcase-banner {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  margin-bottom: 3.5rem;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.showcase-image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-normal);
}

.showcase-image:hover {
  transform: scale(1.01);
}

.showcase-caption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Section Headings */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--color-razer);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-inline: auto;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 25px rgba(0, 255, 115, 0.12);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-razer-dim);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-razer);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feature-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--color-cyan-dim);
  color: var(--color-cyan);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.feature-list li svg {
  color: var(--color-razer);
  flex-shrink: 0;
}

/* Compatibility Matrix Section */
.matrix-section {
  padding-block: 5rem;
  border-top: 1px solid var(--border-subtle);
}

.matrix-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.matrix-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
}

.filter-btn.active {
  background: var(--color-razer);
  color: #05080e;
  border-color: var(--color-razer-hover);
}

.matrix-search-box {
  position: relative;
  min-width: 260px;
}

.matrix-search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.matrix-search-input:focus {
  border-color: var(--color-razer);
  box-shadow: 0 0 0 2px var(--color-razer-dim);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.table-wrapper {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.matrix-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.matrix-table th {
  background: rgba(15, 20, 31, 0.9);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.matrix-table tbody tr {
  transition: background var(--transition-fast);
}

.matrix-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.device-name {
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.device-subtext {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.code-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--color-cyan);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.status-verified {
  background: rgba(0, 255, 115, 0.14);
  color: var(--color-razer);
  border: 1px solid rgba(0, 255, 115, 0.3);
}

.status-supported {
  background: rgba(0, 212, 255, 0.14);
  color: var(--color-cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.status-catalog {
  background: rgba(255, 183, 3, 0.14);
  color: var(--color-amber);
  border: 1px solid rgba(255, 183, 3, 0.3);
}

.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cap-tag {
  font-size: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

/* Quickstart & Documentation Hub */
.docs-section {
  padding-block: 5rem;
  border-top: 1px solid var(--border-subtle);
}

.tab-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--color-razer);
  border-bottom-color: var(--color-razer);
}

.tab-panel {
  display: none;
}

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

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.guide-step {
  margin-bottom: 2rem;
}

.guide-step:last-child {
  margin-bottom: 0;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-razer-dim);
  border: 1px solid var(--border-card);
  color: var(--color-razer);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.code-block-wrapper {
  position: relative;
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.code-block-wrapper pre {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-main);
  overflow-x: auto;
  line-height: 1.5;
}

.code-block-copy {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* FAQ Accordion */
.faq-grid {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--border-card);
}

.faq-trigger {
  padding: 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;
}

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

.faq-trigger::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-razer);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-trigger::after {
  content: "−";
}

.faq-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-content a {
  color: var(--color-razer);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #06080d;
  border-top: 1px solid var(--border-subtle);
  padding-block: 4rem 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col ul a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--color-razer);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--color-razer);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-section {
    padding-block: 3rem 2rem;
  }

  .matrix-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .matrix-search-box {
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
