:root {
--font-sans: "Inter", "SF Pro Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
--font-mono: "JetBrains Mono", "Consolas", "Menlo", "Monaco", monospace;
--primary: #2563eb;
--primary-dark: #1d4ed8;
--secondary: #0d9488;
--accent: #7e22ce;
--light: #f8fafc;
--gray-50: #f8fafc;
--gray-100: #f1f5f9;
--gray-200: #e2e8f0;
--gray-300: #cbd5e1;
--gray-600: #475569;
--gray-700: #334155;
--gray-900: #0f172a;
--radius: 12px;
--shadow: 0 4px 12px rgba(0,0,0,0.04);
--shadow-lg: 0 10px 25px rgba(0,0,0,0.06);
--transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
--code-bg: #1e293b;
--code-text: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-900);
  background-color: #fafbff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ===== HEADINGS — CONSISTENT FONT STACK & WEIGHTS ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.9rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.95rem;
  font-weight: 700;
  margin: 3rem 0 1.75rem;
  color: var(--primary-dark);
}

h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
  color: var(--primary);
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: var(--gray-900);
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--gray-700);
}

.header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
  font-family: var(--font-sans);
}

.tagline {
  background: rgba(255,255,255,0.15);
  display: inline-block;
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 1rem;
  backdrop-filter: blur(8px);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  font-family: var(--font-sans);
}

.byline {
  margin-top: 1.5rem;
  font-size: 0.98rem;
  opacity: 0.85;
  font-weight: 500;
  font-family: var(--font-sans);
}

main {
  padding: 3rem 0 4rem;
}

.section {
  margin-bottom: 4.5rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gray-200);
  font-family: var(--font-sans);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
  max-width: 800px;
  font-weight: 500;
  line-height: 1.6;
  font-family: var(--font-sans);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

.card p,
.highlight-box p,
.use-case p {
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
  color: var(--gray-700);
  font-family: var(--font-sans);
  font-weight: 400;
}

.card ul,
.highlight-box ul,
.use-case ul {
  list-style: none;
  padding-left: 0;
}

.card li,
.highlight-box li,
.use-case li {
  padding: 0.6rem 0 0.6rem 2rem;
  position: relative;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--gray-700);
  font-family: var(--font-sans);
  font-weight: 400;
}

.card li:before,
.highlight-box li:before,
.use-case li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-sans);
}

.highlight-box {
  background: linear-gradient(135deg, #f0fdf9, #e6f7f4);
  border-left: 4px solid var(--secondary);
  padding: 2.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2.8rem 0;
  position: relative;
}

.highlight-box h3 {
  color: var(--secondary);
}

/* Tables */
.specs-table,
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.7rem;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-family: var(--font-sans);
}

.specs-table th,
.comparison-table th {
  background: var(--primary);
  color: white;
  text-align: left;
  padding: 1.2rem 1.4rem;
  font-weight: 600;
  font-size: 1.05rem;
  font-family: var(--font-sans);
}

.specs-table td,
.comparison-table td {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
  font-size: 1.02rem;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--gray-700);
}

.specs-table tr:last-child td,
.comparison-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:nth-child(even),
.comparison-table tr:nth-child(even) {
  background-color: var(--gray-50);
}

.comparison-table .yes { color: var(--secondary); font-weight: 600; }
.comparison-table .partial { color: #ca8a04; font-weight: 500; }
.comparison-table .no { color: #dc2626; }

/* Code Blocks */
.code-block {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 1.4rem;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-x: auto;
  margin: 1.4rem 0;
  border-left: 3px solid var(--accent);
}

/* Diagram */
.workflow-diagram {
  text-align: center;
  margin: 3rem 0;
  padding: 2rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.diagram-title {
  font-size: 1.35rem;
  margin-bottom: 1.4rem;
  color: var(--primary-dark);
  font-weight: 700;
  font-family: var(--font-sans);
}

.use-case {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.use-case h4 {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 1.1rem 2.6rem;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: var(--transition);
  margin-top: 1.2rem;
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Footer */
footer {
  text-align: center;
  padding: 2.8rem 1.5rem 2rem;
  color: var(--gray-600);
  font-size: 0.95rem;
  border-top: 1px solid var(--gray-200);
  margin-top: 3.5rem;
  background: var(--gray-50);
  font-family: var(--font-sans);
}

.footer-links {
  margin-top: 1.2rem;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.footer-links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Inline code */
code {
  font-family: var(--font-mono);
  background: var(--gray-100);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.95em;
  color: var(--gray-900);
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.3rem; }
  h4 { font-size: 1.15rem; }
  .subtitle { font-size: 1.2rem; }
  .tagline { font-size: 1.05rem; padding: 0.5rem 1.4rem; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 1.7rem; }
  .section { margin-bottom: 3.5rem; }
}

/* Icons */
.icon-code,
.icon-math,
.icon-hardware,
.icon-gui,
.icon-deploy,
.icon-doc {
  flex-shrink: 0;
}
