@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Solid Matte Palette: Easy on the eyes, ZERO gradients */
  --bg-dark: #0b0f19;
  --bg-card: #111827;
  --bg-card-hover: #172033;
  --bg-surface: #1e293b;
  --bg-surface-light: #283548;

  --border: #1f293d;
  --border-focus: #3b82f6;
  --border-emerald: #10b981;

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Solid Accents */
  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* Animations (Smooth, No eye-strain) */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes float-reverse {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(8px); }
}

@keyframes radar {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Solid Text Highlights (NO Gradients) */
.text-highlight-emerald {
  color: var(--accent-emerald);
  font-weight: 800;
}

.text-highlight-blue {
  color: var(--accent-blue);
  font-weight: 800;
}

.text-highlight-amber {
  color: var(--accent-amber);
  font-weight: 800;
}

/* Solid Badges & Tags */
.eyebrow-tech {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.eyebrow-tech.blue {
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.eyebrow-tech.amber {
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.tag.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.tag.blue {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
  border-color: rgba(59, 130, 246, 0.3);
}

.tag.amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.3);
}

/* Solid Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--bg-surface-light);
  border-color: #374151;
  color: #ffffff;
}

.btn.btn-emerald {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #0b0f19;
  font-weight: 800;
}

.btn.btn-emerald:hover {
  background: var(--accent-emerald-hover);
  border-color: var(--accent-emerald-hover);
  color: #ffffff;
}

.btn.btn-blue {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #ffffff;
}

.btn.btn-blue:hover {
  background: var(--accent-blue-hover);
  border-color: var(--accent-blue-hover);
}

.btn.large {
  padding: 14px 28px;
  font-size: 15px;
}

.btn.wide {
  width: 100%;
}

.btn.small {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}

.btn.ghost:hover {
  background: var(--bg-surface);
  color: #ffffff;
}

/* ==========================================================================
   LANDING PAGE (SOLID MATTE TECH & CLEAN CUAN)
   ========================================================================== */

.landing {
  background: var(--bg-dark);
}

/* Header */
.landing-header {
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0b0f19;
  border-bottom: 1px solid var(--border);
}

.landing-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  color: #ffffff;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent-emerald);
  color: #0b0f19;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

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

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

/* Hero Section */
.hero {
  padding: 70px 0 90px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.live-radar-dot {
  position: relative;
  width: 9px;
  height: 9px;
  background: var(--accent-emerald);
  border-radius: 50%;
}

.live-radar-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: radar 2s infinite ease-out;
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero p.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tech-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}

.trust-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.trust-stat-box strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--accent-emerald);
}

.trust-stat-box small {
  font-size: 11px;
  color: var(--text-muted);
}

/* Tech Motion Illustration Stage (Matte Solid) */
.hero-board-wrapper {
  position: relative;
}

/* Floating Alerts */
.floating-closing-alert {
  position: absolute;
  top: -20px;
  right: -12px;
  background: #111827;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  z-index: 20;
  animation: float-slow 6s infinite ease-in-out;
}

.closing-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #10b981;
  color: #0b0f19;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.closing-text b {
  display: block;
  font-size: 12px;
  color: #ffffff;
}

.closing-text span {
  font-size: 11px;
  color: var(--accent-emerald);
  font-weight: 700;
}

.floating-revenue-pill {
  position: absolute;
  bottom: -16px;
  left: -12px;
  background: #111827;
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  z-index: 20;
  animation: float-reverse 7s infinite ease-in-out;
}

.revenue-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-blue);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.revenue-text b {
  display: block;
  font-size: 12px;
  color: #ffffff;
}

.revenue-text small {
  font-size: 11px;
  color: #93c5fd;
  font-family: var(--font-mono);
}

/* Tech Board */
.hero-tech-board {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.tech-stage-nav {
  display: flex;
  gap: 6px;
  background: var(--bg-dark);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.tech-tab-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tech-tab-btn.active {
  background: var(--bg-surface);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Terminal View */
.terminal-window {
  background: #070a12;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: #94a3b8;
  min-height: 210px;
  margin-bottom: 16px;
}

.term-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
}

.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #f59e0b; }
.term-dot.green { background: #10b981; }

.term-title {
  font-size: 11px;
  color: #64748b;
  margin-left: 6px;
}

.code-keyword { color: var(--accent-blue); font-weight: 700; }
.code-fn { color: var(--accent-emerald); }
.code-str { color: #fde047; }
.code-comment { color: #64748b; }

/* POS Simulator */
.pos-sim-stage {
  background: #070a12;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 210px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pos-sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pos-price-display {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-emerald);
}

.pos-chips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.pos-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.pos-chip:hover {
  background: var(--bg-surface);
  border-color: var(--accent-blue);
}

.pos-chip b {
  display: block;
  font-size: 11px;
  color: #ffffff;
}

.pos-chip span {
  font-size: 10px;
  color: var(--accent-blue);
  font-family: var(--font-mono);
}

/* Cuan Calculator */
.cuan-calc-stage {
  background: #070a12;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 210px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cuan-slider-wrap label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cuan-slider-wrap input[type=range] {
  width: 100%;
  accent-color: var(--accent-emerald);
  cursor: pointer;
}

.cuan-result-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  margin-top: 8px;
}

.cuan-result-num {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  color: var(--accent-emerald);
}

.board-quick-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.flow-step-mini {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flow-step-mini span {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.flow-step-mini b {
  font-size: 11px;
  color: #cbd5e1;
}

/* Sections */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.section.alt-dark {
  background: #080c14;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-top: 10px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 580px;
}

/* Market Cards */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s ease;
}

.market-card:hover {
  border-color: #374151;
  transform: translateY(-4px);
}

.market-badge-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: var(--accent-emerald);
  margin-bottom: 12px;
}

.market-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.market-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Project Cards */
.project-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  justify-content: center;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip.active, .filter-chip:hover {
  background: var(--bg-surface);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.project-grid-tech {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.project-card-tech {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s;
}

.project-card-tech:hover {
  border-color: #374151;
  transform: translateY(-3px);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.project-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.project-card-tech h4 {
  font-size: 17px;
  margin-bottom: 6px;
}

.project-card-tech p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.project-cuan-price {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-top: auto;
}

.project-cuan-price span {
  color: var(--text-secondary);
}

.project-cuan-price strong {
  color: var(--accent-emerald);
  font-family: var(--font-heading);
}

/* 6 Steps */
.workflow-tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.workflow-tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.workflow-tech-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-3px);
}

.step-tech-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--accent-emerald);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 14px;
}

.workflow-tech-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.workflow-tech-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Pricing Card */
.pricing-wrapper {
  max-width: 920px;
  margin: 0 auto;
}

.pricing-tech-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  align-items: center;
  gap: 36px;
}

.pricing-tech-box h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  margin: 10px 0 14px;
}

.pricing-features-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-main);
}

.pricing-features-list li i {
  color: var(--accent-emerald);
  font-weight: 900;
  font-style: normal;
}

.pricing-action-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.price-display-big {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
}

/* FAQ */
.faq-tech-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s;
}

.faq-tech-item:hover {
  border-color: #374151;
}

.faq-tech-item summary {
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-tech-item summary::-webkit-details-marker {
  display: none;
}

.faq-tech-item summary::after {
  content: '+';
  font-size: 18px;
  color: var(--accent-emerald);
}

.faq-tech-item[open] summary::after {
  content: '−';
}

.faq-tech-item p {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.landing-footer {
  background: #070a12;
  color: var(--text-secondary);
  padding: 40px 0 24px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

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

/* ==========================================================================
   MEMBER APP & TOOLS (CLEAN SOLID MATTE)
   ========================================================================== */

.app-body {
  background: var(--bg-dark);
  color: var(--text-main);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  background: #080c16;
  border-right: 1px solid var(--border);
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 40;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
}

.brand-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-emerald);
  color: #0b0f19;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
}

.side-brand small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.side-nav {
  display: grid;
  gap: 4px;
  margin-top: 26px;
}

.side-nav-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 12px 4px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.side-nav a:hover {
  background: var(--bg-surface);
  color: #ffffff;
}

.side-nav a.active {
  background: var(--bg-surface);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.side-account {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-emerald);
  color: #0b0f19;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
}

.app-top {
  height: 70px;
  background: #080c16;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.app-top h1 {
  font-size: 19px;
}

.app-top p {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-top p::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.app-content {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 28px 60px;
}

.welcome {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.welcome h2 {
  font-size: 26px;
  margin: 6px 0 8px;
}

.welcome p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 620px;
}

.progress-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-surface);
  border: 3px solid var(--accent-emerald);
}

.progress-ring strong {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-emerald);
}

.member-roadmap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.member-roadmap a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: all 0.2s;
}

.member-roadmap a:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
}

.member-roadmap b {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--accent-emerald);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
}

.member-roadmap strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
}

.member-roadmap small {
  font-size: 11px;
  color: var(--text-muted);
}

.content-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 20px;
  margin-top: 20px;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.panel-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.panel-head h2 {
  font-size: 16px;
}

.panel-head p {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}

.panel-body {
  padding: 22px;
}

.flow-list {
  display: grid;
  gap: 10px;
}

.flow-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--bg-dark);
  transition: all 0.2s;
}

.flow-row:hover {
  border-color: #374151;
}

.flow-row.done {
  border-color: rgba(16, 185, 129, 0.4);
}

.flow-check {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.flow-row.done .flow-check {
  background: var(--accent-emerald);
  color: #0b0f19;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--bg-dark);
  transition: all 0.2s;
}

.quick-card:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
}

.quick-card.community-link {
  grid-column: 1 / -1;
  border-color: rgba(16, 185, 129, 0.35);
}

.quick-card b {
  display: block;
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 2px;
}

.quick-card small {
  font-size: 11px;
  color: var(--text-muted);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.system-card:hover {
  border-color: #374151;
}

.system-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--accent-emerald);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
}

/* Forms & Code Display */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
}

.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-dark);
  padding: 10px 12px;
  color: #ffffff;
  font-size: 14px;
  transition: all 0.2s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-emerald);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.code-output {
  width: 100%;
  min-height: 500px;
  background: #070a12;
  color: #e2e8f0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}

.code-output:focus {
  outline: none;
  border-color: var(--accent-emerald);
}

.code-output.compact {
  min-height: 260px;
}

.tool-intro, .community-hero {
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.community-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #10b981;
  color: #0b0f19;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  flex-shrink: 0;
}

.qa-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.checklist fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--bg-dark);
}

.checklist legend {
  padding: 0 6px;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-secondary);
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  background: var(--bg-card);
  margin-top: 5px;
  border: 1px solid var(--border);
}

.check-row b {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.output-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.output-tabs button {
  border: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.2s;
}

.output-tabs button.active {
  background: var(--bg-surface);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.4);
}

.help-note {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 14px;
}

.alert {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
}

.alert.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.alert.info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

.auth-body {
  min-height: 100vh;
  background: var(--bg-dark);
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.auth-shell {
  width: min(440px, 100%);
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-brand > span {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-emerald);
  color: #0b0f19;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
}

.auth-card h1 {
  font-size: 24px;
  margin-bottom: 6px;
}

.auth-lead {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 20px;
}

.auth-foot {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .workflow-tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .market-grid {
    grid-template-columns: 1fr;
  }
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: -280px;
    width: 260px;
    transition: left 0.3s ease;
  }
  .sidebar.open {
    left: 0;
  }
  .content-grid, .qa-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 32px;
  }
  .section {
    padding: 55px 0;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .workflow-tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-trust-grid {
    grid-template-columns: 1fr;
  }
  .pricing-tech-box {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  .member-roadmap {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .floating-closing-alert, .floating-revenue-pill {
    display: none;
  }
}

@media (max-width: 520px) {
  .workflow-tech-grid {
    grid-template-columns: 1fr;
  }
  .member-roadmap {
    grid-template-columns: 1fr;
  }
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .pos-chips-grid {
    grid-template-columns: 1fr;
  }
}
