:root {
  /* Light Space Palette — Crisp Daylight Observatory */
  --bg-primary: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --accent: #4F46E5;
  --accent-soft: rgba(79, 70, 229, 0.08);
  --accent-cyan: #0EA5E9;
  --border-light: rgba(148, 163, 184, 0.22);
  --border-hover: rgba(79, 70, 229, 0.4);
  --shadow-soft: 0 12px 36px -8px rgba(15, 23, 42, 0.05), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-glow: 0 20px 50px -12px rgba(79, 70, 229, 0.14);
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Geometric Latitude Grid Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, black 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 35%, transparent 85%);
  pointer-events: none;
  z-index: -2;
}

/* Interactive Starlight / Particle Canvas */
#space-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Soft Atmospheric Nebula Glows (Light Theme) */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

.glow-top {
  width: 650px;
  height: 450px;
  top: -180px;
  right: 5%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, rgba(14, 165, 233, 0.08) 55%, transparent 75%);
}

.glow-center {
  width: 600px;
  height: 600px;
  top: 40%;
  left: -200px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, rgba(129, 140, 248, 0.05) 60%, transparent 80%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography & Tags */
.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.mono-sm {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(248, 250, 252, 0.78);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.22);
}

.brand-logo-sm {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: block;
}

.core-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand-accent {
  font-weight: 400;
  color: var(--accent);
  margin-left: 2px;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.nav-active {
  color: var(--accent);
}

/* =========================================================================
   ORBITAL STUDIO TOOLS PAGE (tools.html) — Premium Bento Deck & Console
   ========================================================================= */
.tools-hero {
  padding: 36px 0 84px;
}

.seo-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.seo-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.18s ease;
}

.seo-breadcrumb a:hover {
  color: var(--accent);
}

.seo-breadcrumb #breadcrumb-current {
  color: var(--accent);
  font-weight: 600;
}

.tools-hero-head {
  text-align: center;
  margin-bottom: 32px;
}

.tools-dynamic-h1 {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  margin-bottom: 14px;
}

.tools-dynamic-sub {
  margin: 0 auto 26px;
  max-width: 720px;
}

/* Category Filter Pills */
.tools-filter-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.tools-cat-pills {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid var(--border-light);
  padding: 6px;
  border-radius: 999px;
}

.cat-pill {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  color: var(--text-primary);
}

.cat-pill.active {
  background: #FFFFFF;
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
}

/* 12-Tool Bento Grid */
.tools-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.bento-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-sans);
  overflow: hidden;
}

.bento-tool-card.hidden-card {
  display: none;
}

.bento-tool-card:hover {
  transform: translateY(-3px);
  background: #FFFFFF;
  border-color: rgba(79, 70, 229, 0.38);
  box-shadow: 0 14px 32px -10px rgba(15, 23, 42, 0.08);
}

.bento-tool-card.active {
  background: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 16px 40px -12px rgba(79, 70, 229, 0.24), 0 0 0 1px var(--accent);
}

.bento-card-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.bento-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease;
}

.bento-tool-card:hover .bento-icon-wrap {
  transform: scale(1.06);
}

.tone-indigo {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(99, 102, 241, 0.06));
  color: #4F46E5;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.tone-cyan {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(56, 189, 248, 0.06));
  color: #0284C7;
  border: 1px solid rgba(14, 165, 233, 0.22);
}

.tone-teal {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(45, 212, 191, 0.06));
  color: #0F766E;
  border: 1px solid rgba(20, 184, 166, 0.22);
}

.tone-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(52, 211, 153, 0.06));
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.bento-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 3px 8px;
  border-radius: 999px;
}

.bento-tool-card.active .bento-badge {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(79, 70, 229, 0.25);
}

.bento-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.bento-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Active Workspace Console */
.tool-workspace {
  background: #FFFFFF;
  border: 1px solid rgba(79, 70, 229, 0.22);
  border-radius: 26px;
  padding: 38px;
  box-shadow: 0 24px 60px -16px rgba(15, 23, 42, 0.08), 0 4px 16px -4px rgba(79, 70, 229, 0.05);
  position: relative;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-light);
}

.workspace-title-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.workspace-active-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, #4F46E5 0%, #0EA5E9 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 24px -6px rgba(79, 70, 229, 0.45);
}

.workspace-header h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 3px 0 5px;
}

.workspace-header p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  max-width: 620px;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  color: #059669;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 7px 14px;
  border-radius: 999px;
}

.tool-options-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.option-group {
  flex: 1;
  min-width: 220px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px 18px;
}

.option-group.hidden {
  display: none;
}

.option-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.option-group select,
.option-group input[type="range"],
.opt-text-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  accent-color: var(--accent);
}

.option-group select,
.opt-text-input {
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--text-primary);
  outline: none;
}

.opt-text-input:focus,
.option-group select:focus {
  border-color: var(--accent);
}

/* Orbital Dropzone */
.dropzone {
  display: block;
  border: 2px dashed rgba(79, 70, 229, 0.35);
  background: radial-gradient(circle at 50% 50%, rgba(238, 242, 255, 0.65) 0%, rgba(248, 250, 252, 0.8) 100%);
  border-radius: 20px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.24s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: radial-gradient(circle at 50% 50%, rgba(224, 231, 255, 0.75) 0%, rgba(240, 249, 255, 0.9) 100%);
  transform: scale(1.005);
}

.file-input-hidden {
  display: none;
}

.dropzone-orbit-ring {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px dashed rgba(79, 70, 229, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
}

.dropzone-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid rgba(79, 70, 229, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.22);
}

.dropzone h3 {
  font-family: var(--font-display);
  font-size: 1.24rem;
  margin-bottom: 6px;
}

.dropzone p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.dropzone-browse-pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: #FFFFFF;
  border: 1px solid rgba(79, 70, 229, 0.28);
  padding: 7px 18px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.selected-files {
  margin-top: 22px;
}

.selected-files.hidden,
.tool-progress.hidden,
.tool-results.hidden {
  display: none;
}

.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.btn-text-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

.file-queue-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.file-queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 14px;
}

.file-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.file-ext-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 6px;
}

.file-item-name {
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.file-remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.tool-progress {
  margin-top: 22px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  transition: width 0.2s ease;
}

.tool-results {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.results-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px 24px;
}

.results-banner h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 4px 0;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.results-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.preview-item-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
}

.preview-item-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: var(--bg-primary);
  display: block;
}

.preview-item-meta {
  padding: 10px 12px;
  font-size: 0.76rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-dl-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

/* On-Page SEO Guide & Direct Tool Directory */
.seo-guide-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: flex-start;
}

.seo-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.seo-step-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 18px 20px;
}

.seo-step-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 10px;
  border-radius: 8px;
  flex-shrink: 0;
}

.seo-step-card h4 {
  font-family: var(--font-display);
  font-size: 1.04rem;
  margin-bottom: 4px;
}

.seo-step-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.seo-directory-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.seo-directory-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 6px 0 4px;
}

.seo-tool-links {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.seo-tool-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg-primary);
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.seo-tool-links a::after {
  content: "→";
  font-family: var(--font-mono);
  color: var(--accent);
}

.seo-tool-links a:hover,
.seo-tool-links a.active-seo-link {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(79, 70, 229, 0.25);
  font-weight: 600;
}

@media (max-width: 980px) {
  .tools-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .seo-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .tools-bento-grid {
    grid-template-columns: 1fr;
  }
  .tool-workspace {
    padding: 24px 18px;
  }
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border-light);
  padding: 5px 12px;
  border-radius: 999px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1px solid transparent;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 8px 18px;
}

.btn-lg {
  font-size: 0.95rem;
  padding: 13px 26px;
}

.btn-full {
  width: 100%;
  padding: 13px 24px;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--text-primary);
  color: #FFFFFF;
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.35);
}

.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 10px 24px -6px rgba(79, 70, 229, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn-ghost:hover {
  border-color: var(--text-primary);
  background: #FFFFFF;
}

/* Hero Section */
.hero {
  padding: 84px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.6vw, 3.85rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.gradient-text {
  background: linear-gradient(135deg, #4F46E5 0%, #0EA5E9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 34px;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.metric-sep {
  width: 1px;
  height: 36px;
  background: var(--border-light);
}

/* Light-Space Orrery Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.orrery {
  position: relative;
  width: 440px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orrery-backdrop {
  position: absolute;
  width: 340px;
  height: 340px;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.92;
  box-shadow: 0 24px 60px -12px rgba(79, 70, 229, 0.18);
  mask-image: radial-gradient(circle, black 58%, transparent 74%);
  -webkit-mask-image: radial-gradient(circle, black 58%, transparent 74%);
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(100, 116, 139, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-outer {
  width: 390px;
  height: 390px;
  animation: orbitSpin 46s linear infinite;
}

.ring-middle {
  width: 270px;
  height: 270px;
  border-style: solid;
  border-color: rgba(79, 70, 229, 0.18);
  animation: orbitSpinReverse 32s linear infinite;
}

.ring-inner {
  width: 160px;
  height: 160px;
  animation: orbitSpin 22s linear infinite;
}

.orbit-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Counter-rotate labels so text stays upright */
.ring-outer .orbit-node {
  animation: orbitSpinReverse 46s linear infinite;
}
.ring-middle .orbit-node {
  animation: orbitSpin 32s linear infinite;
}
.ring-inner .orbit-node {
  animation: orbitSpinReverse 22s linear infinite;
}

.node-google { top: -14px; left: 50%; transform: translateX(-50%); }
.node-meta { bottom: -14px; left: 50%; transform: translateX(-50%); }
.node-web { top: 50%; left: -36px; transform: translateY(-50%); }
.node-mobile { top: 50%; right: -36px; transform: translateY(-50%); }
.node-api { top: -14px; left: 50%; transform: translateX(-50%); }

.node-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.node-google .node-dot,
.node-meta .node-dot {
  background: var(--accent-cyan);
}

.core-sphere {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #E0E7FF 55%, #C7D2FE 100%);
  border: 1px solid rgba(79, 70, 229, 0.25);
  box-shadow: 0 0 40px rgba(79, 70, 229, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.core-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-soft);
  z-index: 3;
}

.card-top-right {
  top: 10px;
  right: -10px;
}

.card-bottom-left {
  bottom: 18px;
  left: -16px;
}

.card-mono {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  display: block;
}

.card-stat {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2px 0;
}

.trend-up {
  color: #10B981;
  font-size: 0.95rem;
}

.badge-ok {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 99px;
  vertical-align: middle;
}

.card-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.5) 0%, rgba(255, 255, 255, 0.6) 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 10px 0 14px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
}

/* Filter Tabs */
.service-filters {
  display: inline-flex;
  gap: 8px;
  background: var(--bg-secondary);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  margin-bottom: 36px;
}

.filter-btn {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: #FFFFFF;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  background: #FFFFFF;
}

.service-card.hidden {
  display: none;
}

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

.service-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  flex-grow: 1;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Split Synergy + Simulator Section */
.split-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.feature-rows {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.feature-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-bullet {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 10px;
  border-radius: 8px;
  flex-shrink: 0;
}

.feature-row h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.feature-row p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Telemetry Simulator Card */
.telemetry-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-soft);
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.telemetry-header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-top: 4px;
}

.live-indicator {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 99px;
}

.sim-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.sim-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.sim-pill {
  padding: 10px 8px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
  color: var(--text-secondary);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sim-pill.active {
  background: var(--text-primary);
  color: #FFFFFF;
  border-color: var(--text-primary);
}

.slider-group {
  margin-bottom: 24px;
}

.slider-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.slider-top strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

#velocity-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.slider-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.sim-output {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.output-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px;
}

.output-box.full-width {
  grid-column: span 2;
}

.output-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.output-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

/* Process Trajectory */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.timeline-step {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 99px;
}

.step-line {
  flex-grow: 1;
  height: 1px;
  background: var(--border-light);
}

.timeline-step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline-step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Case Studies / Telemetry */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

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

.case-thumb {
  width: 100%;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.case-card:hover .case-thumb img {
  transform: scale(1.04);
}

.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.case-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: 99px;
}

.case-card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.case-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex-grow: 1;
}

.case-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.case-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
}

.case-stats span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Endless Running Panda Mini-Game */
.arcade-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 26px;
  padding: 36px;
  box-shadow: var(--shadow-soft);
}

.arcade-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
}

.arcade-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  margin: 6px 0 6px;
}

.arcade-sub {
  font-size: 0.94rem;
  color: var(--text-secondary);
  max-width: 580px;
}

.arcade-scoreboard {
  display: flex;
  gap: 12px;
}

.score-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 18px;
  min-width: 110px;
  text-align: right;
}

.score-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.score-box strong {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent);
}

.game-stage-wrap {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: linear-gradient(180deg, #F1F5F9 0%, #FFFFFF 75%, #E2E8F0 100%);
}

#panda-canvas {
  display: block;
  width: 100%;
  height: 260px;
  cursor: pointer;
  touch-action: manipulation;
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.84);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  transition: opacity 0.2s ease;
}

.game-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.game-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.game-overlay p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: 16px;
}

.arcade-controls-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Tech Constellation Bar */
.tech-constellation {
  padding-bottom: 24px;
}

.constellation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 12px 24px;
  overflow-x: auto;
  white-space: nowrap;
}

.constellation-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.constellation-items {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.constellation-items .dot {
  color: var(--accent-cyan);
}

/* FAQ Accordion */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.93rem;
  color: var(--text-secondary);
}

/* Contact / Launch Section */
.launch-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow-soft);
}

.contact-details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item a,
.contact-item span {
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}

.launch-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: #FFFFFF;
}

.checkbox-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-check {
  cursor: pointer;
}

.pill-check input {
  display: none;
}

.pill-check span {
  display: inline-block;
  font-size: 0.8rem;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
  color: var(--text-secondary);
  transition: all 0.18s ease;
}

.pill-check input:checked + span {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 500;
}

.form-feedback {
  font-size: 0.85rem;
  color: #10B981;
  font-weight: 500;
  min-height: 20px;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-copy {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .hero-grid,
  .split-panel,
  .launch-wrapper {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .main-nav,
  .status-pill {
    display: none;
  }
}

@media (max-width: 640px) {
  .services-grid,
  .case-grid,
  .timeline-grid,
  .form-row,
  .sim-pills {
    grid-template-columns: 1fr;
  }

  .orrery {
    width: 310px;
    height: 310px;
  }

  .ring-outer { width: 290px; height: 290px; }
  .ring-middle { width: 200px; height: 200px; }
  .ring-inner { width: 120px; height: 120px; }

  .launch-wrapper {
    padding: 28px 20px;
  }
}
