:root {
  --bg: #07090c;
  --bg-alt: #0b0f14;
  --fg: #f4f6f8;
  --primary: #ff6b00; /* RustDesk-style orange */
  --primary-hover: #e65f00;
  --secondary: #2d333b;
  --muted: rgba(244, 246, 248, 0.7);
  --border: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.03);
  --max-width: 1100px;
  --r: 12px;
  --transition: all 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Typography */
h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn--primary {
  background-color: var(--primary);
  color: white;
}

.btn--primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn--outline {
  border-color: var(--border);
  background-color: transparent;
}

.btn--outline:hover {
  background-color: var(--card-bg);
  border-color: var(--muted);
}

.btn--ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--fg);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}

/* Header */
.header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(7, 9, 12, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.5rem;
}

.brand__mark {
  color: var(--primary);
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-weight: 500;
  color: var(--muted);
}

.nav__link:hover {
  color: var(--fg);
}

/* Mobile nav (reuse details.menu pattern used elsewhere) */
.menu {
  display: none;
  position: relative;
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .menu {
    display: block;
  }
}

.menu__btn {
  padding: 0.5rem 1rem;
  gap: 0.5rem;
}

.menu__icon {
  width: 20px;
  height: 20px;
}

.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: calc(100vw - 48px);
  max-width: 320px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu__link {
  padding: 0.75rem 1rem;
  border-radius: calc(var(--r) - 4px);
  font-weight: 600;
  color: var(--muted);
}

.menu__link:hover {
  background: var(--card-bg);
  color: var(--fg);
}

.menu__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.menu__actions .btn {
  width: 100%;
}

/* Hero */
.hero {
  padding: 6rem 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 107, 0, 0.1), transparent 40%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__actions {
  display: flex;
  gap: 1rem;
}

.placeholder-graphic {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.window {
  background: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
}

.window__header {
  background: #333;
  padding: 8px 12px;
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #555;
}

.window__body {
  padding: 1.5rem;
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
}

.keyword { color: #569cd6; }
.string { color: #ce9178; }
.error { color: #f44336; background: rgba(244, 67, 54, 0.1); padding: 2px 4px; border-radius: 4px; }

/* Why Section */
.why-section {
  padding: 6rem 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-content h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--fg);
}

.why-item {
  margin-bottom: 2rem;
}

.why-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.why-img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Features */
.features {
  padding: 6rem 0;
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.feature-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* How it works */
.how-it-works {
  padding: 6rem 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.step {
  text-align: center;
}

.step__number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 1.5rem;
}

/* Setup Section */
.setup-section {
  padding: 6rem 0;
  background-color: var(--bg-alt);
}

.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.setup-step {
  margin-bottom: 2rem;
}

.setup-step p {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.code-block {
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #333;
  font-family: ui-monospace, monospace;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.setup-img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Stats */
.stats {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  color: var(--muted);
  font-weight: 600;
}

/* Scenarios */
.scenarios {
  padding: 6rem 0;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.scenario-percent {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.scenario-label {
  font-weight: 600;
  color: var(--muted);
}

/* Community */
.community {
  padding: 6rem 0;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-link {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--muted);
}

.social-link:hover {
  color: var(--primary);
}

.social-link[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.65;
}

.social-link[aria-disabled="true"]:hover {
  color: var(--muted);
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--primary), #ff8c00);
  padding: 4rem;
  border-radius: 24px;
  text-align: center;
  color: white;
}

.cta-card h2 {
  margin-bottom: 1rem;
}

.cta-card p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.cta-card .btn--primary {
  background: white;
  color: var(--primary);
}

.cta-card .btn--outline {
  border-color: white;
  color: white;
}

/* Footer */
/* Spotlights */
.spotlights {
  padding: 6rem 0;
  background-color: var(--bg-alt);
}

.spotlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.spotlight-card {
  padding: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.spotlight-card h3 {
  margin-bottom: 1rem;
}

.spotlight-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.spotlight-link {
  color: var(--primary);
  font-weight: 700;
}

.spotlight-link:hover {
  text-decoration: underline;
}

/* Experience Section */
.experience-section {
  padding: 8rem 0;
  background: linear-gradient(rgba(7, 9, 12, 0.8), rgba(7, 9, 12, 0.8)), 
              url('./assets/hero-concept.png?v=20260123a') center/cover no-repeat;
}

.experience-card {
  text-align: center;
}

.experience-card h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
  color: white;
}

.experience-actions {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer {
  padding: 4rem 0 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer__brand p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 300px;
}

.footer__links h4 {
  margin-bottom: 1.5rem;
}

.footer__links a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    padding: 4rem 0;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .why-section, .features, .setup-section, .scenarios, .community, .spotlights, .cta-section {
    padding: 4rem 0;
  }
  .setup-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .scenarios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spotlights-grid {
    grid-template-columns: 1fr;
  }
  .cta-card {
    padding: 2.5rem 1.5rem;
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .cta-actions .btn {
    width: 100%;
  }
  .experience-section {
    padding: 5rem 0;
  }
  .experience-card h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .experience-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .experience-actions .btn {
    width: 100%;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .footer__brand p {
    margin: 1rem auto 0;
  }
  .footer__links a {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.25rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  .container {
    padding: 0 20px;
  }
  .scenarios-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Legacy docs pages (styles.css markup)                                       */
/* Goal: keep existing docs HTML, but make it look like the concept theme.     */
/* -------------------------------------------------------------------------- */

/* Remove the old “glow grid” background layer used by styles.css pages. */
.bg {
  display: none !important;
}

/* Unify links to the concept accent. */
a:hover {
  color: var(--fg);
}

/* Cards / grids used by standards, library, privacy, terms. */
.card {
  background: var(--card-bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: calc(var(--r) + 2px) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45) !important;
}

.card p,
.list,
.note,
.fineprint,
.muted {
  color: var(--muted) !important;
}

.card h2,
.card h3 {
  color: var(--fg) !important;
}

/* Make pill/subnav links feel consistent. */
.subnav__link {
  border-radius: 999px !important;
  border: 1px solid var(--border) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: rgba(244, 246, 248, 0.92) !important;
}

.subnav__link[aria-current="page"] {
  border-color: rgba(255, 107, 0, 0.35) !important;
  background: rgba(255, 107, 0, 0.1) !important;
}

.subnav__link:hover {
  border-color: rgba(255, 107, 0, 0.45) !important;
}

/* FAQ/accordion styling reused on vulnerability library page. */
.faq__item,
.faq__item[open] {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--border) !important;
  border-radius: calc(var(--r) + 4px) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4) !important;
}

.faq__item summary {
  color: rgba(244, 246, 248, 0.95) !important;
}

.faq__body {
  color: var(--muted) !important;
}

