/* ==========================================================================
   InfoIsland.org - Tier-1 Tech Media & Editorial Design System (Light Edition)
   Inspired by The Verge, Wired, MIT Technology Review, Ars Technica & Stripe
   ========================================================================== */

:root {
  /* Surfaces & Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-elevated: #F1F5F9;
  --bg-input: #FFFFFF;
  --bg-subtle: #F1F5F9;

  /* Borders & Dividers */
  --border-subtle: #E2E8F0;
  --border-hover: #CBD5E1;
  --border-accent: #2563EB;
  --border-strong: #94A3B8;

  /* Typography */
  --text-primary: #0F172A;     /* Deep slate / charcoal */
  --text-secondary: #334155;   /* Neutral slate */
  --text-muted: #64748B;       /* Muted caption / meta */
  --text-light: #94A3B8;

  /* Editorial Accent Colors (No AI Purple!) */
  --accent-blue: #2563EB;       /* Tech Cobalt / Royal Blue */
  --accent-blue-hover: #1D4ED8;
  --accent-blue-light: #EFF6FF;
  --accent-blue-border: #BFDBFE;

  --accent-emerald: #059669;    /* Clean Verification Green */
  --accent-emerald-light: #ECFDF5;
  --accent-emerald-border: #A7F3D0;

  --accent-amber: #D97706;      /* Warning / Flag Amber */
  --accent-amber-light: #FFFBEB;
  --accent-amber-border: #FDE68A;

  --accent-sky: #0284C7;
  --accent-indigo: #4F46E5;

  /* Gradients - Clean Editorial Subtle */
  --gradient-blue: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 4px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 10px 20px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-elevated: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);

  /* Layout */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1240px;
  --reading-width: 780px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-blue-hover);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* --------------------------------------------------------------------------
   Header & Navigation (Light, Crisp & Minimalist)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-logo:hover {
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
}

.brand-text {
  font-weight: 800;
  color: var(--text-primary);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: color 0.15s ease;
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover {
  color: var(--accent-blue);
  text-decoration: none;
}

.nav-link.active {
  color: var(--accent-blue);
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #0F172A;
  color: #FFFFFF !important;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero Section (Generous Whitespace & Crisp Typography)
   -------------------------------------------------------------------------- */
.hero {
  padding: 5rem 0 4rem;
  background: #FFFFFF;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: #F1F5F9;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-title .gradient-text {
  color: var(--accent-blue);
  background: none;
  -webkit-text-fill-color: initial;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--accent-blue);
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-primary) !important;
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: var(--border-hover);
  color: var(--accent-blue) !important;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   Live Telemetry Strip (Clean Metric Cards)
   -------------------------------------------------------------------------- */
.telemetry-strip {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: #F8FAFC;
  padding: 1.75rem 0;
  margin-bottom: 4rem;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.telemetry-card {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--accent-blue);
}

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.telemetry-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.telemetry-sub {
  font-size: 0.78rem;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Section Headers & Cards (Clean Light Editorial)
   -------------------------------------------------------------------------- */
.section-header {
  margin-bottom: 2.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-title-wrap {
  max-width: 700px;
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.25;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 0.6rem;
  line-height: 1.65;
}

.section-link {
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-blue);
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
}

.card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: #EFF6FF;
  border: 1px solid var(--accent-blue-border);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-blue);
  width: fit-content;
  margin-bottom: 1.15rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.85rem;
}

.card-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.15rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   Article / Single Editorial Page (Spacious, Comfortable Reading Layout)
   -------------------------------------------------------------------------- */
.article-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.article-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.article-breadcrumbs a:hover {
  color: var(--accent-blue);
}

.article-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1.35rem;
  color: var(--text-primary);
}

.article-deck {
  font-size: 1.28rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 900px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border-subtle);
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #FFFFFF;
  font-size: 0.95rem;
}

.author-info strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.author-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Editorial Hero Banner */
.editorial-hero-banner, .article-hero-media {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 2.5rem 0 3.5rem;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.editorial-hero-banner img, .article-hero-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.article-hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.92) 100%);
  padding: 2rem 1.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #CBD5E1;
}

.article-hero-caption span:first-child {
  color: #38BDF8;
  font-weight: 700;
}

/* Article Body & Generous Spacing */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  padding: 3.5rem 0 5rem;
}

.article-body, .article-content {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.85;
  max-width: var(--reading-width);
}

.article-body h2, .article-content h2 {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 3.75rem 0 1.35rem;
  letter-spacing: -0.02em;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-body h3, .article-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.75rem 0 1rem;
}

.article-body p, .article-content p {
  margin-bottom: 1.85rem;
}

.article-body ul, .article-body ol, .article-content ul, .article-content ol {
  margin: 1.85rem 0;
  padding-left: 1.75rem;
}

.article-body li, .article-content li {
  margin-bottom: 0.75rem;
}

.article-body strong, .article-content strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Code Blocks (Sleek High-Contrast Terminal Box) */
pre {
  background: #0F172A !important;
  color: #F8FAFC !important;
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
  overflow-x: auto;
  margin: 2.25rem 0;
  border: 1px solid #1E293B;
  box-shadow: var(--shadow-sm);
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

p code, li code {
  background: #F1F5F9;
  color: #0F172A;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  font-weight: 500;
}

/* Table of Contents Container */
.toc-container, .widget {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-blue);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
}

.toc-title, .widget-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.toc-list {
  list-style: none;
  padding-left: 0 !important;
}

.toc-list li {
  margin-bottom: 0.6rem;
}

.toc-list a, .toc-link {
  font-size: 0.92rem;
  color: #475569;
  text-decoration: none;
  transition: color 0.15s ease;
}

.toc-list a:hover, .toc-link:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* Editorial Callouts & Provenance */
.callout {
  background: #EFF6FF;
  border: 1px solid var(--accent-blue-border);
  border-left: 4px solid var(--accent-blue);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.6rem;
  margin: 2.5rem 0;
  color: #1E3A8A;
}

.callout-title {
  font-weight: 700;
  color: #1E3A8A;
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.provenance-box {
  background: #F0FDF4;
  border: 1px solid var(--accent-emerald-border);
  border-left: 4px solid var(--accent-emerald);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  color: #14532D;
}

.provenance-header {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-emerald);
  font-weight: 700;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Tables (Proper Spacing, Formatting & Clean Professional Look)
   -------------------------------------------------------------------------- */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 2.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  background: #FFFFFF;
}

thead {
  background: #F8FAFC;
}

th {
  background: #F8FAFC;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
}

td {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  line-height: 1.6;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: #F8FAFC;
}

tbody tr:nth-child(even) {
  background: #FAFAFA;
}

/* Author Bio Card at Footer of Articles */
.author-bio-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 3.5rem 0 2rem;
}

/* FAQ Accordion Section */
.faq-accordion, .faq-section {
  margin: 3.5rem 0 2.5rem;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 1.15rem;
  padding: 1.35rem 1.6rem;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.faq-answer {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Sidebar Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-card, .widget {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-title, .widget-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.sidebar-list {
  list-style: none;
  font-size: 0.9rem;
}

.sidebar-list li {
  margin-bottom: 0.65rem;
  color: var(--text-secondary);
}

.sidebar-list a {
  color: var(--text-secondary);
  text-decoration: none;
}

.sidebar-list a:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Top-Tier Tech SaaS Tool UI (Light Theme - Linear / Stripe Style)
   -------------------------------------------------------------------------- */
.tool-container {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 3.5rem;
}

.tool-grid-saas {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
}

.preset-pills-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.preset-pill {
  background: #F1F5F9;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.preset-pill:hover {
  background: #E2E8F0;
  color: var(--text-primary);
}

.preset-pill.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

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

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.55rem;
}

.form-label-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-blue);
  font-weight: 700;
}

.form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #FFFFFF;
}

.form-range {
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

/* Dynamic Result Box */
.result-card {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-stat-group {
  margin-bottom: 1.5rem;
}

.result-stat-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.result-stat-val {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.result-stat-val span {
  font-size: 1.25rem;
  color: var(--accent-blue);
  font-weight: 700;
}

/* Stacked Memory Visual Bar */
.memory-bar-wrap {
  margin: 1.5rem 0 2rem;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.memory-bar-title {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.memory-bar-track {
  height: 26px;
  width: 100%;
  background: #E2E8F0;
  border-radius: 6px;
  display: flex;
  overflow: hidden;
  position: relative;
}

.memory-segment-weights {
  background: #4F46E5; /* Indigo */
  height: 100%;
  transition: width 0.3s ease;
}

.memory-segment-kv {
  background: #0284C7; /* Sky */
  height: 100%;
  transition: width 0.3s ease;
}

.memory-segment-cuda {
  background: #059669; /* Emerald */
  height: 100%;
  transition: width 0.3s ease;
}

.memory-legend {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* Hardware Output Cards */
.hw-matrix-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.hw-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.hw-card.compatible {
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
}

.hw-card.warning {
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
}

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

.hw-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.hw-badge-fit {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.hw-badge-warn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.hw-specs-row {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Site Footer (Authoritative Crisp Slate)
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: #0F172A;
  border-top: 1px solid #1E293B;
  padding: 5rem 0 2.5rem;
  color: #94A3B8;
  font-size: 0.92rem;
}

.site-footer a {
  color: #CBD5E1;
  text-decoration: none;
}

.site-footer a:hover {
  color: #38BDF8;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand .brand-text {
  color: #FFFFFF;
}

.footer-brand p {
  margin-top: 1rem;
  line-height: 1.65;
  max-width: 340px;
  color: #94A3B8;
}

.footer-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: #64748B;
}

.heritage-note {
  font-family: var(--font-mono);
  color: #94A3B8;
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin: 0 auto 2.2rem; }
  .hero-actions { justify-content: center; }
  .hero-visual { margin-top: 2rem; }
  .telemetry-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .tool-grid-saas { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.3rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .telemetry-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4.5rem;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
  }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}
