/* ========================================
   Glaer.org — Global Stylesheet
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.cn/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Custom Properties (Light Theme) ── */
:root,
[data-theme="light"] {
  --color-bg-primary: #f8fafc;
  --color-bg-secondary: #ffffff;
  --color-bg-nav: #0a1929;
  --color-bg-hero: #0a1929;
  --color-bg-card: #ffffff;
  --color-bg-footer: #0a1929;
  --color-text-primary: #0a1929;
  --color-text-secondary: #475569;
  --color-text-nav: #ffffff;
  --color-text-footer: #94a3b8;
  --color-text-muted: #64748b;
  --color-accent: #00b4d8;
  --color-accent-hover: #0096b7;
  --color-border: #e2e8f0;
  --color-card-shadow: rgba(0, 0, 0, 0.06);
  --color-grid: rgba(10, 25, 41, 0.05);
  --color-overlay: rgba(255, 255, 255, 0.8);
  --color-code-bg: #f1f5f9;
  --color-tag-bg: rgba(0, 180, 216, 0.1);
  --color-tag-text: #0096b7;
}

/* ── Dark Theme ── */
[data-theme="dark"] {
  --color-bg-primary: #0a1929;
  --color-bg-secondary: #0f2744;
  --color-bg-nav: #060f1d;
  --color-bg-hero: #060f1d;
  --color-bg-card: #0f2744;
  --color-bg-footer: #060f1d;
  --color-text-primary: #e2e8f0;
  --color-text-secondary: #94a3b8;
  --color-text-nav: #e2e8f0;
  --color-text-footer: #64748b;
  --color-text-muted: #94a3b8;
  --color-accent: #00b4d8;
  --color-accent-hover: #22d3ee;
  --color-border: #1e3a5f;
  --color-card-shadow: rgba(0, 180, 216, 0.06);
  --color-grid: rgba(0, 180, 216, 0.04);
  --color-overlay: rgba(10, 25, 41, 0.85);
  --color-code-bg: #0f2744;
  --color-tag-bg: rgba(0, 180, 216, 0.15);
  --color-tag-text: #00b4d8;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: var(--color-bg-nav);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 180, 216, 0.1);
  transition: background-color 0.3s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  color: var(--color-text-nav);
}

.nav-logo img {
  height: 28px;
  width: auto;
  display: block;
}

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

.nav-links a {
  color: var(--color-text-nav);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active::after {
  width: 100%;
}

.nav-links .nav-item-disabled {
  color: rgba(255, 255, 255, 0.4);
  cursor: default;
  position: relative;
}

.nav-links .nav-item-disabled::after {
  display: none;
}

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

.lang-switch {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-nav);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Space Grotesk', sans-serif;
}

.lang-switch:hover {
  background: rgba(0, 180, 216, 0.2);
  border-color: var(--color-accent);
}

.theme-switch {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-nav);
  width: 36px;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-switch:hover {
  background: rgba(0, 180, 216, 0.2);
  border-color: var(--color-accent);
}

/* Tooltip for Coming Soon */
.nav-tooltip {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.nav-tooltip::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid var(--color-accent);
}

.nav-item-disabled:hover .nav-tooltip {
  opacity: 1;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-nav);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-inner {
    justify-content: flex-start;
    gap: 0;
  }

  .nav-logo {
    flex: 1;
  }

  .nav-controls {
    margin-right: 8px;
    flex-shrink: 0;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--color-bg-nav);
    flex-direction: column;
    padding: 0;
    gap: 0;
    height: 0;
    overflow: hidden;
    border-bottom: none;
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links.open {
    height: auto;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(0, 180, 216, 0.1);
  }

  .hamburger {
    display: flex;
    flex-shrink: 0;
  }
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  padding-top: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--color-bg-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 160, 220, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(10, 30, 70, 0.2) 0%, transparent 45%),
    radial-gradient(ellipse at 15% 60%, rgba(0, 120, 180, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

/* Animated hero background canvas */
.hero-bg-canvas,
.product-hero-bg-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-canvas canvas,
.product-hero-bg-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-title .accent {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: #94a3b8;
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--color-accent);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 180, 216, 0.3);
}

/* ── Sections ── */
.section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Product Cards ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 12px 40px var(--color-card-shadow), 0 0 20px rgba(0, 180, 216, 0.08);
}

.product-card.disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.product-card .card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--color-tag-bg);
}

.product-card .card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.5;
}

.product-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

.product-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-card .card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-tag-text);
  background: var(--color-tag-bg);
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.product-card .card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-code-bg);
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Coming Soon tooltip on card */
.product-card .coming-soon-tip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  margin-bottom: 8px;
  font-weight: 500;
}

.product-card .coming-soon-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--color-accent);
}

.product-card.disabled:hover .coming-soon-tip {
  opacity: 1;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Tech Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: var(--color-accent);
}

.feature-item .feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-tag-bg);
  border-radius: 8px;
}

.feature-item .feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.5;
}

.feature-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text-primary);
}

.feature-item p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Product Page Sections ── */
.product-hero {
  min-height: 60vh;
  padding-top: 120px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  background: var(--color-bg-hero);
  position: relative;
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 160, 220, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(10, 30, 70, 0.2) 0%, transparent 45%),
    radial-gradient(ellipse at 15% 60%, rgba(0, 120, 180, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.product-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.product-hero-bg-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.product-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.product-hero-inner h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.product-hero-inner h1 .accent {
  color: var(--color-accent);
}

.product-hero-inner p {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 600px;
  line-height: 1.7;
}

/* Highlights list */
.highlights-section {
  padding: 80px 24px;
  background: var(--color-bg-primary);
}

.highlights-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.highlights-inner h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 48px;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.highlights-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.highlight-item .hl-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-tag-bg);
  border-radius: 8px;
}

.highlight-item .hl-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.5;
}

.highlight-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text-primary);
}

.highlight-item p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Usage steps */
/* ══════════════════════════════════════════════════════════
   Usage Section — Redesigned
   ══════════════════════════════════════════════════════════ */
.usage-section {
  padding: 100px 24px;
  background: var(--color-bg-secondary);
  position: relative;
}
.usage-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.3;
}

.usage-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.usage-inner h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.usage-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* ── Install Tabs ── */
.install-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--color-border);
}
.install-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.install-tab:hover {
  color: var(--color-text-primary);
  background: rgba(0, 180, 216, 0.04);
}
.install-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.tab-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--color-accent);
  color: #fff;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

/* ── Install Panel ── */
.install-panel {
  display: none;
  padding: 40px 0 0 0;
}
.install-panel.active {
  display: block;
}

/* ── Terminal Card (one-click install) ── */
.terminal-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc29; }
.terminal-dot:nth-child(3) { background: #28c840; }
.terminal-bar .terminal-title {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-left: 8px;
  font-family: 'Space Grotesk', monospace;
}
.terminal-body {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.terminal-prompt {
  color: var(--color-text-muted);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.95rem;
  flex-shrink: 0;
  user-select: none;
}
.terminal-code {
  flex: 1;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.95rem;
  color: var(--color-accent);
  line-height: 1.6;
  word-break: break-all;
}

/* Quick install info */
.quick-info {
  margin-top: 32px;
}
.quick-info-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}
.quick-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
}
.quick-features li {
  padding: 4px 0 4px 22px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  position: relative;
  line-height: 1.6;
}
.quick-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.35;
}
.quick-paths {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.qp-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qp-label {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.qp-value {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.85rem;
  color: var(--color-accent);
  opacity: 0.8;
}

/* ── Timeline (manual install) ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--color-border);
}
.timeline-step {
  position: relative;
  padding: 20px 0;
}
.timeline-step:first-child { padding-top: 0; }
.timeline-step:last-child { padding-bottom: 0; }

.tl-marker {
  position: absolute;
  left: -40px;
  top: 20px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-secondary);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  z-index: 1;
}
.tl-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--color-accent);
}
.tl-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}
.step-hint {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  margin-top: 10px;
  opacity: 0.65;
}

/* ── Code Box (shared) ── */
.code-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}
.code-box code {
  display: block;
  padding: 14px 18px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.88rem;
  color: var(--color-accent);
  line-height: 1.6;
  word-break: break-all;
}

/* ── Copy Button (inline with command) ── */
.copy-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  padding: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  vertical-align: middle;
}
.copy-btn:hover {
  color: var(--color-accent);
  background: var(--color-bg-secondary);
}
.copy-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.copy-btn.copied {
  color: #22c55e;
}
.copy-btn .check-icon { display: none; }
.copy-btn.copied .copy-icon { display: none; }
.copy-btn.copied .check-icon { display: block; }

/* ── Command line row (code + copy inline) ── */
.cmd-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cmd-line .code-box {
  flex: 1;
  min-width: 0;
}

/* ── Verify Card ── */
.verify-card {
  margin-top: 36px;
  padding: 20px 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  border-left: 3px solid var(--color-accent);
}
.verify-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}
.verify-label svg {
  color: var(--color-accent);
}
.code-output {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--color-accent);
  opacity: 0.55;
  font-family: 'Space Grotesk', monospace;
}

/* ── Sub Sections (Paths / Commands / Docs) ── */
.sub-section {
  margin-top: 10px;
  padding-top: 36px;
}
.sub-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sub-title svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Path grid */
.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}
.path-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
}
.path-row:nth-last-child(-n+2) {
  border-bottom: none;
}
.path-row:nth-child(odd) {
  border-right: 1px solid var(--color-border);
}
.path-label {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  flex-shrink: 0;
  min-width: 72px;
}
.path-value {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.85rem;
  color: var(--color-accent);
  opacity: 0.8;
}

/* Command list */
.cmd-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cmd-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cmd-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-primary);
}
.cmd-output {
  font-size: 0.82rem;
  color: var(--color-accent);
  opacity: 0.5;
  font-family: 'Space Grotesk', monospace;
  margin-top: 2px;
}

/* ── Info Duo (version + docs side by side) ── */
.info-duo {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.info-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 24px;
}
.info-card .sub-title {
  margin-bottom: 16px;
}
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-list li {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}
.info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.4;
}
.info-list a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.info-list a:hover {
  border-bottom-color: var(--color-accent);
}

/* ── Download Section ── */
.download-section {
  padding: 100px 24px;
  background: var(--color-bg-primary);
  text-align: center;
}

@media (max-width: 768px) {
  .usage-section { padding: 60px 20px; }
  .install-panel { padding: 28px 0; }
  .install-tab { padding: 12px 18px; font-size: 0.88rem; }
  .quick-features { grid-template-columns: 1fr; }
  .path-grid { grid-template-columns: 1fr; }
  .path-row:nth-child(odd) { border-right: none; }
  .terminal-body { padding: 16px; gap: 10px; }
  .terminal-code { font-size: 0.82rem; }
  .code-box code { font-size: 0.82rem; }
  .quick-paths { flex-direction: column; gap: 12px; }
  .info-duo { grid-template-columns: 1fr; }
}

.download-inner {
  max-width: 600px;
  margin: 0 auto;
}

.download-inner h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.download-inner p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--color-accent);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 180, 216, 0.3);
}

.download-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ── Coming Soon Page — The Expanse "Stirring in the Deep" ── */
.coming-soon-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #020810;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 24px;
}

.coming-soon-page canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Distant ring gate — a slow-breathing circular glow on the horizon */
.ring-gate {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 160, 210, 0.2);
  box-shadow:
    0 0 80px rgba(0, 150, 200, 0.1),
    0 0 160px rgba(0, 120, 170, 0.05),
    inset 0 0 80px rgba(0, 150, 200, 0.06);
  transform: translate(-50%, -50%);
  animation: ringBreathe 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.ring-gate::before {
  content: '';
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 1px solid rgba(0, 180, 220, 0.12);
  animation: ringBreathe 8s ease-in-out 2s infinite;
}

.ring-gate::after {
  content: '';
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 230, 0.08);
  animation: ringBreathe 8s ease-in-out 4s infinite;
}

@keyframes ringBreathe {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.coming-soon-content {
  position: relative;
  z-index: 1;
}

.coming-soon-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  text-shadow: 0 0 40px rgba(0, 160, 210, 0.35), 0 0 80px rgba(0, 120, 180, 0.15);
  animation: expanseTitlePulse 6s ease-in-out infinite;
}

@keyframes expanseTitlePulse {
  0%, 100% { text-shadow: 0 0 40px rgba(0, 160, 210, 0.35), 0 0 80px rgba(0, 120, 180, 0.15); }
  50% { text-shadow: 0 0 60px rgba(0, 180, 220, 0.5), 0 0 120px rgba(0, 140, 200, 0.2), 0 0 200px rgba(0, 100, 160, 0.08); }
}

.coming-soon-content h1 .accent {
  color: var(--color-accent);
  text-shadow: 0 0 20px rgba(0, 180, 216, 0.6), 0 0 40px rgba(0, 150, 200, 0.2);
}

.coming-soon-content p {
  font-size: 1.15rem;
  color: #7a8ea0;
  margin-bottom: 40px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-home-btn:hover {
  background: var(--color-accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 180, 216, 0.3);
}

/* ── Footer ── */
.footer {
  background: var(--color-bg-footer);
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid rgba(0, 180, 216, 0.08);
}

.footer p {
  font-size: 0.85rem;
  color: var(--color-text-footer);
}

/* ── Animations ── */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger delay */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 64px 20px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .product-hero-inner h1 {
    font-size: 2.25rem;
  }

  .highlights-list {
    grid-template-columns: 1fr;
  }

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

  .coming-soon-content h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

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