:root {
  --bg-deep: #06080f;
  --bg: #0a0e17;
  --surface: #111827;
  --surface-2: #1a2332;
  --border: #2a3548;
  --text: #e8eef7;
  --muted: #8b9cb3;
  --cyan: #00d4ff;
  --cyan-dim: #00a8cc;
  --gold: #f0c14b;
  --gold-dim: #c9a227;
  --green: #3dd68c;
  --red: #ff6b6b;
  --purple: #a78bfa;
  --glow: 0 0 40px rgba(0, 212, 255, 0.15);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(240, 193, 75, 0.06), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(0, 212, 255, 0.08), transparent);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold);
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(6, 8, 15, 0.85);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--cyan), var(--gold), var(--cyan));
  position: relative;
  box-shadow: var(--glow);
  animation: pulse-ring 3s ease-in-out infinite;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 1px solid rgba(0, 212, 255, 0.4);
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.2); }
  50% { box-shadow: 0 0 35px rgba(0, 212, 255, 0.35); }
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav a {
  font-size: 0.9rem;
  color: var(--muted);
}

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

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.8);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-badge span {
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 20%, var(--cyan) 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.hero-tagline strong {
  color: var(--cyan);
  font-weight: 600;
}

.hero-vision {
  max-width: 720px;
  margin: 0 auto 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: rgba(240, 193, 75, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  text-align: left;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-vision em {
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan));
  color: var(--bg-deep);
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  color: var(--bg-deep);
  box-shadow: 0 6px 32px rgba(0, 212, 255, 0.45);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(17, 24, 39, 0.6);
}

.platform-pills {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.site-disclaimer {
  max-width: 680px;
  margin: 1.75rem auto 0;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(167, 139, 250, 0.45);
  border-radius: var(--radius);
  background: rgba(167, 139, 250, 0.08);
  text-align: left;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.site-disclaimer strong {
  color: var(--purple);
  font-weight: 600;
}

.site-disclaimer code {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--cyan);
}

.disclaimer-inline {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--purple);
  font-style: normal;
}

.pill {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}

.pill.active {
  border-color: rgba(0, 212, 255, 0.5);
  color: var(--cyan);
}

.pill.planned {
  border-color: rgba(167, 139, 250, 0.4);
  color: var(--purple);
}

/* Sections */
section {
  padding: 3.5rem 0;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-intro {
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 2rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: var(--glow);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card p,
.card li {
  font-size: 0.875rem;
  color: var(--muted);
}

.card ul {
  margin: 0.5rem 0 0 1.1rem;
}

.status {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.35rem;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-active {
  background: rgba(61, 214, 140, 0.15);
  color: var(--green);
}

.status-planned {
  background: rgba(167, 139, 250, 0.15);
  color: var(--purple);
}

/* Diagram panels */
.diagram-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.diagram-panel h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.mermaid {
  display: flex;
  justify-content: center;
}

.mermaid svg {
  max-width: 100%;
  height: auto;
}

/* Workflow tabs */
.workflow-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.workflow-tab {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.workflow-tab:hover {
  border-color: var(--cyan-dim);
  color: var(--text);
}

.workflow-tab.active {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
}

.workflow-panel {
  display: none;
}

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

.command-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.command-table th,
.command-table td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.command-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.command-table code {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* GUI wireframe (index.html App UI section) */
.ui-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.ui-mock-region {
  border: 1px dashed rgba(0, 212, 255, 0.35);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  font-size: 0.875rem;
  color: var(--muted);
  background: rgba(10, 14, 23, 0.5);
}

.ui-mock-region:last-child {
  margin-bottom: 0;
}

.ui-mock-region strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.ui-mock-log {
  min-height: 4.5rem;
  border-style: solid;
  border-color: var(--border);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.compare-table td:first-child {
  color: var(--muted);
  font-size: 0.82rem;
  width: 22%;
}

.compare-note {
  margin-top: 2rem;
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }

  nav ul {
    gap: 0.75rem;
  }
}
