/* HQFAST Enterprise UX Design System (Figma/Adobe Inspired) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  
  --border-light: #f1f5f9;
  --border-main: #e2e8f0;
  --border-dark: #cbd5e1;
  
  --text-heading: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --brand-blue: #0284c7;
  --brand-blue-hover: #0369a1;
  --brand-blue-subtle: #f0f9ff;
  
  --accent-green: #059669;
  --accent-green-bg: #ecfdf5;
  --accent-red: #dc2626;
  --accent-red-bg: #fef2f2;
  --accent-amber: #d97706;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --container-max: 1200px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-main);
  padding: 0.75rem 2rem;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-heading);
  text-decoration: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-icon {
  color: var(--brand-blue);
  font-size: 1.2rem;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--bg-subtle);
  color: var(--brand-blue);
  border: 1px solid var(--border-main);
  margin-left: 0.25rem;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-blue);
}

/* BUTTONS */
.btn-primary-sm, .btn-primary, .btn-primary-block {
  background: var(--brand-blue);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-primary {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.btn-primary-block {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
}

.btn-primary-sm:hover, .btn-primary:hover, .btn-primary-block:hover {
  background: var(--brand-blue-hover);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.btn-secondary, .btn-secondary-sm, .btn-secondary-full {
  background: #ffffff;
  color: var(--text-heading);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-main);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.825rem;
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

.btn-secondary-full {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
}

.btn-secondary:hover, .btn-secondary-sm:hover, .btn-secondary-full:hover {
  background: var(--bg-subtle);
  border-color: var(--border-dark);
}

/* LAYOUT & CONTAINERS */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padded {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.bg-subtle {
  background-color: var(--bg-subtle);
}

.section-header {
  max-width: 760px;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* HERO */
.hero-section {
  padding: 5.5rem 0 4.5rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-main);
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border-main);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
}

.highlight-text {
  color: var(--brand-blue);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 820px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

/* METRICS GRID */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-heading);
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.metric-lbl {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.metric-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* HARDWARE NEUTRAL SECTION WITH SCHEMATIC IMAGE */
.hybrid-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.visual-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.hardware-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  object-fit: cover;
}

.visual-caption {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
}

.neutrality-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.feature-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-blue-subtle);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid rgba(2, 132, 199, 0.15);
}

.feature-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
}

.feature-box p {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* COST GUARD & ROI COMPARISON */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.gap-large {
  gap: 3rem;
}

.gap-medium {
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.roi-card {
  background: #ffffff;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.highlight-border {
  border: 2px solid var(--brand-blue);
  box-shadow: var(--shadow-md);
}

.badge-recommended {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.roi-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
}

.cost-comparison-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.cost-comparison-row.bad {
  background: var(--accent-red-bg);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.cost-comparison-row.good {
  background: var(--accent-green-bg);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.cost-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
}

.cost-value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
}

.bad .cost-value { color: var(--accent-red); }
.good .cost-value { color: var(--accent-green); }

.roi-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.875rem;
}

.check-list.error li { color: var(--accent-red); }
.check-list.success li { color: var(--accent-green); font-weight: 500; }

/* ARCHITECTURE STACK */
.architecture-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.arch-layer-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.arch-layer-card:hover {
  transform: translateX(4px);
  border-color: var(--brand-blue);
}

.arch-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-blue);
  opacity: 0.6;
}

.arch-content {
  flex-grow: 1;
}

.arch-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.arch-meta h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.badge-tag {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.arch-content p {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* SIMULATOR WIDGET */
.sim-demo-card {
  background: #ffffff;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.sim-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
}

.sim-controls {
  background: var(--bg-subtle);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.sim-control-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: #ffffff;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-heading);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-help {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.sim-note {
  margin-top: 1rem;
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.viz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-heading);
}

.viz-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-blue);
  background: var(--brand-blue-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.sim-canvas {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
}

.sim-status-box {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border-main);
  background: var(--bg-subtle);
}

.status-ready {
  color: var(--text-body);
}

/* DOCUMENT CARDS */
.doc-card {
  background: #ffffff;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.doc-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.doc-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.doc-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 860px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
}

.modal-body h1, .modal-body h2, .modal-body h3 {
  color: var(--text-heading);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.modal-body code {
  background: var(--bg-subtle);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* FOOTER */
footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-main);
  padding: 2.5rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

.footer-links a:hover {
  color: var(--brand-blue);
}

@media (max-width: 900px) {
  .hero-title { font-size: 2.5rem; }
  .hybrid-visual-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .sim-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
