@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@300;400;500;600;700&family=Geist+Mono:wght@300;400;500;600&display=swap');

:root {
  /* Warm Premium Light Paper Aesthetic */
  --bg: #fdfcf8;
  --bg-soft: #f6f2ea;
  --bg-softer: #fbf9f3;
  --surface: #ffffff;
  --surface-soft: #faf7f1;
  --surface-dark: #1c1c1a;
  --surface-dark-soft: #2c2c2a;
  
  /* Borders and Linework */
  --border: rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.12);
  --border-light: rgba(255, 255, 255, 0.8);
  
  /* Typography Text Colors */
  --text: #1c1c1a;
  --text-muted: #5f5f5c;
  --text-soft: #8b8a85;
  --text-inverse: #fdfcf8;
  
  /* Vibrant Technical Accents */
  --brand-cyan: #4bd9eb;
  --brand-cyan-glow: rgba(75, 217, 235, 0.15);
  --brand-blue: #4d66f2;
  --brand-blue-glow: rgba(77, 102, 242, 0.12);
  --brand-gold: #dfd2bc;
  --brand-gold-glow: rgba(223, 210, 188, 0.2);
  
  /* Layout Dimensions */
  --page-gutter: clamp(1rem, 4vw, 3rem);
  --max-width: 1440px;
  --hero-measure: 58rem;
  --copy-measure: 48rem;
  
  /* Premium Radius System */
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  
  /* Drop Shadows */
  --shadow-soft: 0 16px 40px rgba(28, 28, 26, 0.04);
  --shadow-panel: 0 24px 60px rgba(28, 28, 26, 0.06);
  --shadow-focus: 0 0 0 3px rgba(77, 102, 242, 0.25);
  
  /* Transition Speeds */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 10% 15%, var(--brand-blue-glow), transparent 30%),
    radial-gradient(circle at 90% 20%, var(--brand-cyan-glow), transparent 28%),
    radial-gradient(circle at 50% 60%, var(--brand-gold-glow), transparent 35%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Base Selections */
::selection {
  background-color: rgba(77, 102, 242, 0.15);
  color: var(--text);
}

/* Focus Ring Customization */
*:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Typography elements */
h1, h2, h3, h4, h5 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}

h1 {
  font-size: clamp(3.2rem, 8vw, 5.8rem);
}

h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

h3 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

code, pre, .font-mono {
  font-family: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}

/* Main Layout Helper */
.container {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--max-width));
  margin: 0 auto;
}

/* --- HEADER AND NAVIGATION --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(253, 252, 248, 0.82);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-normal);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2.1rem;
  color: var(--surface-dark);
}

.brand-logo-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-cyan) 100%);
  color: var(--bg);
  box-shadow: 0 4px 12px rgba(77, 102, 242, 0.2);
}

.brand-logo-mark::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.brand-logo-mark svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
}

.site-nav a:not(.btn):hover {
  color: var(--text);
}

.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn).active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Wallet Pill Widget */
.wallet-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.wallet-widget .wallet-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  border-radius: 50%;
  animation: pulse-glow 2.5s infinite ease-in-out;
}

.wallet-widget .wallet-val {
  font-family: "Geist Mono", monospace;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--surface-dark-soft);
  color: var(--text-inverse);
  box-shadow: 0 8px 24px rgba(28, 28, 26, 0.12);
}

.btn-primary:hover {
  background-color: var(--surface-dark);
  box-shadow: 0 12px 30px rgba(28, 28, 26, 0.18);
}

.btn-secondary {
  background-color: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
  background-color: var(--bg-soft);
  border-color: var(--text-soft);
}

.btn-pill {
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.84rem;
}

.btn-pill.btn-primary {
  background: linear-gradient(135deg, var(--surface-dark-soft) 0%, var(--surface-dark) 100%);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 2.2rem;
  height: 2.2rem;
  position: relative;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  display: block;
  width: 1.3rem;
  height: 2px;
  background-color: var(--text);
  position: absolute;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-toggle span:first-child { transform: translateY(-5px); }
.menu-toggle span:last-child { transform: translateY(5px); }

.menu-toggle.active span:first-child { transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:last-child { transform: rotate(-45deg); }

/* --- HERO SECTION --- */
.hero {
  padding: 5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.eyebrow-badge .badge-dot {
  width: 0.4rem;
  height: 0.4rem;
  background-color: var(--brand-blue);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--brand-blue);
}

.hero-copy h1 {
  margin-bottom: 1.5rem;
}

.hero-copy p {
  font-size: 1.22rem;
  max-width: min(100%, var(--copy-measure));
  margin-bottom: 2.2rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

/* Hero Network Stats strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-stat-item strong {
  font-family: "Geist Mono", monospace;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--surface-dark);
  line-height: 1;
}

.hero-stat-item span {
  font-size: 0.84rem;
  color: var(--text-soft);
  font-weight: 500;
}

/* Floating Orbit Mock Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-shell {
  width: 100%;
  aspect-ratio: 1;
  max-width: 440px;
  position: relative;
  border-radius: 50%;
  border: 1px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin-slow 35s linear infinite;
}

.orbit-center {
  width: 8.5rem;
  height: 8.5rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-panel);
  z-index: 10;
  animation: spin-reverse 35s linear infinite;
  text-align: center;
  padding: 1rem;
}

.orbit-center img {
  width: 2.8rem;
  margin-bottom: 0.4rem;
}

.orbit-center h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

.orbit-center span {
  font-size: 0.65rem;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* Floating orbit nodes */
.orbit-node {
  position: absolute;
  width: 2.8rem;
  height: 2.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  animation: spin-reverse 35s linear infinite;
  transition: transform var(--transition-fast);
}

.orbit-node:hover {
  transform: scale(1.15) !important;
  border-color: var(--brand-blue);
}

.orbit-node svg, .orbit-node img {
  width: 1.5rem;
  height: 1.5rem;
}

.orbit-node-1 { top: 0; left: 50%; transform: translate(-50%, -50%); }
.orbit-node-2 { right: 0; top: 50%; transform: translate(50%, -50%); }
.orbit-node-3 { bottom: 0; left: 50%; transform: translate(-50%, 50%); }
.orbit-node-4 { left: 0; top: 50%; transform: translate(-50%, -50%); }

.orbit-glow-overlay {
  position: absolute;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(77, 102, 242, 0.08), transparent 70%);
  filter: blur(20px);
  z-index: 1;
}

/* --- SECTIONS --- */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 3.5rem;
  max-width: var(--hero-measure);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 1rem;
  height: 1px;
  background-color: var(--brand-gold);
}

.section-header h2 {
  margin-bottom: 0.9rem;
}

.section-header p {
  font-size: 1.15rem;
  max-width: var(--copy-measure);
}

/* Elegant Grid Containers */
.card-grid {
  display: grid;
  gap: 1.8rem;
}

.grid-3-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

/* Premium Card Module */
.premium-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 247, 241, 0.98) 100%);
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.premium-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 102, 242, 0.2);
  box-shadow: var(--shadow-panel);
}

.card-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--brand-blue);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.premium-card:hover .card-icon {
  background: var(--surface-dark-soft);
  color: var(--text-inverse);
}

.premium-card h3 {
  font-size: 1.55rem;
  font-weight: 550;
  margin-bottom: 0.75rem;
}

.premium-card p {
  font-size: 0.96rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-features-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.card-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.card-features-list li::before {
  content: "→";
  color: var(--brand-blue);
  font-weight: bold;
}

.card-action-link {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-blue);
}

.card-action-link span {
  transition: transform var(--transition-fast);
}

.premium-card:hover .card-action-link span {
  transform: translateX(3px);
}

/* --- FEATURE 1: MODEL ROUTING PLAYGROUND --- */
.playground-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: start;
}

.playground-controls {
  padding-right: 1.5rem;
}

.playground-controls p {
  margin-bottom: 1.8rem;
}

.selector-group-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}

.prompt-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.prompt-card {
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  text-align: left;
}

.prompt-card:hover {
  border-color: var(--text-soft);
}

.prompt-card.active {
  border-color: var(--brand-blue);
  background: var(--surface-soft);
}

.prompt-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.prompt-card-preview {
  font-size: 0.78rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Custom Prompt Input Box */
.custom-prompt-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.custom-prompt-input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--transition-fast);
}

.custom-prompt-input:focus {
  border-color: var(--brand-blue);
}

/* Routing Mode Tabs styling */
.routing-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: var(--bg-soft);
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.routing-tab-btn {
  background: none;
  border: none;
  padding: 0.7rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--text-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.routing-tab-btn span.tab-meta {
  font-size: 0.65rem;
  color: var(--text-soft);
}

.routing-tab-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.routing-tab-btn.active .tab-meta {
  color: var(--brand-blue);
  font-weight: 700;
}

/* Routing Simulator Console screen */
.playground-console {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface-dark-soft);
  color: var(--text-inverse);
  box-shadow: var(--shadow-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 480px;
}

.console-header {
  background: var(--surface-dark);
  padding: 0.75rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.console-controls {
  display: flex;
  gap: 0.35rem;
}

.console-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
}

.console-dot:nth-child(1) { background-color: #ff5f56; }
.console-dot:nth-child(2) { background-color: #ffbd2e; }
.console-dot:nth-child(3) { background-color: #27c93f; }

.console-title {
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  color: rgba(253, 252, 248, 0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.console-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  overflow-y: auto;
  font-family: "Geist Mono", monospace;
  font-size: 0.82rem;
}

/* Console Flow animation pieces */
.step-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(6px);
  animation: fade-in-up 0.4s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.step-prefix {
  color: var(--brand-cyan);
  font-weight: 700;
  user-select: none;
}

.step-content {
  color: rgba(253, 252, 248, 0.85);
}

.step-content.highlight {
  color: #fff;
  background: rgba(77, 102, 242, 0.2);
  border: 1px solid rgba(77, 102, 242, 0.4);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-xs);
}

/* Glowing Dynamic Flow Visual */
.benchmarking-flow {
  border: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0.5rem 0;
}

.candidate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.candidate-row.selected {
  border-color: rgba(75, 217, 235, 0.3);
  background: rgba(75, 217, 235, 0.08);
  color: var(--brand-cyan);
}

.candidate-row.checking {
  animation: glow-pulse-border 1.5s infinite ease-in-out;
}

.stream-output-wrapper {
  margin-top: 0.8rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.stream-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(253, 252, 248, 0.4);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.4rem;
}

.stream-text {
  color: #ffffff;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Typing cursor blink */
.stream-text::after {
  content: "▋";
  animation: blink 0.8s infinite step-end;
  color: var(--brand-cyan);
  margin-left: 2px;
}

/* --- FEATURE 2: UNIFIED CREDIT CALCULATOR --- */
.calculator-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 247, 241, 0.98) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-panel);
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.slider-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.94rem;
}

.slider-label .label-badge {
  padding: 0.25rem 0.6rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
}

.slider-val-bubble {
  font-family: "Geist Mono", monospace;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--brand-blue);
  background: rgba(77, 102, 242, 0.05);
  border: 1px solid rgba(77, 102, 242, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
}

/* Beautiful custom slider track */
.slider-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-soft);
  border-radius: 999px;
  outline: none;
  transition: background var(--transition-fast);
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--surface-dark-soft);
  border: 2px solid var(--bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--brand-blue);
}

/* Calculator Summary Box styling */
.calculator-summary-box {
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 1.2rem;
}

.summary-cost-value {
  margin-bottom: 1.5rem;
}

.summary-cost-value strong {
  font-family: "Geist Mono", monospace;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--surface-dark);
  line-height: 1;
}

.summary-cost-value span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.summary-details {
  display: grid;
  gap: 0.8rem;
  border-top: 1px solid var(--border-strong);
  padding-top: 1.2rem;
  margin-bottom: 1.8rem;
}

.summary-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.summary-detail-row strong {
  color: var(--text);
  font-family: "Geist Mono", monospace;
}

.summary-comparison {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  line-height: 1.45;
}

.comparison-highlight {
  color: var(--brand-blue);
  font-weight: 700;
}

/* --- FEATURE 3: LIVE SEARCHABLE MODEL CATALOG --- */
.catalog-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.catalog-search-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 380px;
}

.catalog-search-input {
  width: 100%;
  padding: 0.72rem 1rem 0.72rem 2.6rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.catalog-search-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 4px 12px rgba(77, 102, 242, 0.05);
}

.catalog-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--text-soft);
  pointer-events: none;
}

.catalog-tab-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-chip {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--text-soft);
}

.filter-chip.active {
  background-color: var(--surface-dark-soft);
  color: var(--text-inverse);
  border-color: var(--surface-dark-soft);
}

/* Responsive Custom Catalog Matrix table */
.catalog-table-wrapper {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
  margin-bottom: 2rem;
}

.catalog-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.catalog-table th, .catalog-table td {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
}

.catalog-table th {
  background: var(--surface-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-soft);
}

.model-name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.model-icon-circle {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  shrink-0: 0;
}

.model-icon-circle img {
  width: 1.25rem;
  height: 1.25rem;
}

.model-info-block {
  display: flex;
  flex-direction: column;
}

.model-title-text {
  font-weight: 600;
  color: var(--text);
}

.model-provider-badge {
  font-size: 0.7rem;
  color: var(--text-soft);
}

.latency-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  font-size: 0.76rem;
  font-weight: 600;
}

.latency-rating-badge.latency-fast {
  background: rgba(39, 201, 63, 0.08);
  border: 1px solid rgba(39, 201, 63, 0.15);
  color: #1b8a2a;
}

.latency-rating-badge.latency-moderate {
  background: rgba(255, 189, 46, 0.08);
  border: 1px solid rgba(255, 189, 46, 0.15);
  color: #b07e13;
}

.price-code-font {
  font-family: "Geist Mono", monospace;
  font-weight: 550;
  color: var(--text);
}

.catalog-no-results {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-soft);
}

/* --- FEATURE 4: ECOSYSTEM SHOWCASE --- */
.ecosystem-panel {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2.2rem;
  align-items: start;
}

.ecosystem-nav-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.ecosystem-nav-btn {
  width: 100%;
  padding: 1.1rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
}

.ecosystem-nav-btn:hover {
  border-color: var(--text-soft);
  transform: translateX(3px);
}

.ecosystem-nav-btn.active {
  background: var(--surface-dark-soft);
  border-color: var(--surface-dark);
  color: var(--text-inverse);
  box-shadow: var(--shadow-panel);
}

.ecosystem-nav-label-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ecosystem-nav-domain {
  font-size: 0.74rem;
  color: var(--brand-blue);
  font-weight: 700;
  text-transform: lowercase;
}

.ecosystem-nav-btn.active .ecosystem-nav-domain {
  color: var(--brand-cyan);
}

.ecosystem-nav-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.ecosystem-nav-btn.active .ecosystem-nav-title {
  color: var(--text-inverse);
}

.ecosystem-nav-arrow {
  font-weight: bold;
  opacity: 0.3;
  transition: transform var(--transition-fast);
}

.ecosystem-nav-btn.active .ecosystem-nav-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* Ecosystem Interactive Display Screen mockup */
.ecosystem-display-screen {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 247, 241, 0.98) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-panel);
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.ecosystem-screen-content {
  display: none;
  opacity: 0;
  animation: fade-in 0.4s forwards ease-out;
  height: 100%;
}

.ecosystem-screen-content.active {
  display: flex;
  flex-direction: column;
}

.ecosystem-screen-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 0.6rem;
}

.ecosystem-screen-content h3 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.ecosystem-screen-content p {
  margin-bottom: 1.8rem;
  max-width: var(--copy-measure);
}

/* Inside screen interface widgets */
.screen-mock-widget {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  margin-top: auto;
  border-left: 4px solid var(--brand-blue);
}

.developers-widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.api-key-code-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-xs);
  font-family: "Geist Mono", monospace;
  font-size: 0.82rem;
}

.undrfted-video-canvas {
  width: 100%;
  aspect-ratio: 1.8;
  background: var(--surface-dark-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.6);
}

.undrfted-play-btn {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--surface);
  color: var(--surface-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 10;
  transition: transform var(--transition-fast);
}

.undrfted-play-btn:hover {
  transform: scale(1.1);
}

/* Status light row */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.status-node-card {
  padding: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.status-led {
  width: 0.6rem;
  height: 0.6rem;
  background-color: #27c93f;
  border-radius: 50%;
  box-shadow: 0 0 8px #27c93f;
}

/* --- ORG BRANDING CORNER GRID --- */
.org-lockup-section {
  background: var(--surface-dark);
  color: var(--text-inverse);
  border-radius: var(--radius-lg);
  padding: 4.5rem;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}

.org-lockup-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(75, 217, 235, 0.08), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(77, 102, 242, 0.06), transparent 35%);
  pointer-events: none;
}

.org-lockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.org-lockup-copy .eyebrow {
  color: rgba(253, 252, 248, 0.45);
}

.org-lockup-copy h2 {
  color: var(--text-inverse);
  margin-bottom: 1.2rem;
}

.org-lockup-copy p {
  color: rgba(253, 252, 248, 0.72);
  margin-bottom: 2rem;
  font-size: 1.12rem;
}

.org-badge-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.helio-brand-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-inverse);
}

.helio-brand-badge .badge-icon {
  width: 0.6rem;
  height: 0.6rem;
  background-color: var(--brand-cyan);
  border-radius: 50%;
}

.org-lockup-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.org-visual-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.org-visual-cell strong {
  display: block;
  font-size: 2.2rem;
  font-family: "Geist Mono", monospace;
  color: #fff;
  margin-bottom: 0.2rem;
}

.org-visual-cell span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(253, 252, 248, 0.45);
}

/* --- FOOTER --- */
.site-footer {
  padding: 5rem 0 3rem;
  border-top: 1px solid var(--border);
  background-color: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-intro p {
  font-size: 0.95rem;
}

.footer-column h3 {
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 1.2rem;
}

.footer-column ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.footer-column a {
  font-size: 0.94rem;
  color: var(--text-muted);
}

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

.footer-meta {
  border-top: 1px solid var(--border-strong);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.86rem;
  color: var(--text-soft);
}

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

.footer-links-row a:hover {
  color: var(--text);
}

/* --- CUSTOM KEYFRAME ANIMATIONS --- */
@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); filter: blur(0px); }
  50% { opacity: 1; transform: scale(1.15); filter: blur(1px); }
}

@keyframes glow-pulse-border {
  0%, 100% { border-color: rgba(255, 255, 255, 0.05); }
  50% { border-color: rgba(75, 217, 235, 0.4); }
}

@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes blink {
  from, to { color: transparent; }
  50% { color: var(--brand-cyan); }
}

/* --- MOBILE RESPONSIVENESS AND COLLAPSIBLE ADAPTATION --- */
@media (max-width: 1024px) {
  .hero-grid, .playground-wrapper, .ecosystem-panel, .org-lockup-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .playground-controls {
    padding-right: 0;
  }
  
  .hero-visual {
    order: -1;
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-intro {
    grid-column: span 2;
  }
  
  .calculator-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-intro {
    grid-column: span 1;
  }
  
  .org-lockup-section {
    padding: 2.2rem;
  }
  
  .org-lockup-visual {
    grid-template-columns: 1fr;
  }
}

/* Collapsible Mobile Navigation Drawer menu when active */
.mobile-nav-drawer {
  position: fixed;
  top: 4.8rem;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg);
  z-index: 99;
  padding: 2.5rem var(--page-gutter);
  display: none;
  flex-direction: column;
  gap: 2rem;
  border-top: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow-y: auto;
}

.mobile-nav-drawer.active {
  display: flex;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
