:root {
  --color-bg: #ffffff;
  --color-bg-subtle: #f8f9fa;
  --color-surface: #ffffff;
  --color-surface-hover: #f4f4f5;
  --color-border: #e4e4e7;
  --color-border-subtle: #f0f0f3;
  --color-border-hover: #d4d4d8;
  
  --color-text: #09090b;
  --color-text-muted: #52525b;
  --color-text-faint: #71717a;

  /* Infisical Signature Highlighter Colors */
  --color-volt: #dbf530;
  --color-volt-border: #c4e022;
  --color-volt-ink: #09090b;
  
  --color-cyan: #0284c7;
  --color-emerald: #10b981;
  --color-red: #ef4444;
  --color-yellow: #f59e0b;
  --color-blue: #2563eb;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
}

body.inf-body.light-theme {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

.text-accent { color: #09090b; }
.text-green { color: #059669; }
.text-red { color: var(--color-red); }
.text-yellow { color: #d97706; }

/* =========================================
   Infisical Architectural Framed Container
   ========================================= */
.inf-container {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
}

/* =========================================
   Infisical Top Navigation (Fixed 56px)
   ========================================= */
.inf-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.inf-nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 24px;
}

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

.inf-logo-img {
  width: 20px;
  height: 20px;
}

.inf-logo-text {
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.inf-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

@media (max-width: 768px) {
  .inf-nav-links { display: none; }
}

.inf-nav-item {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.inf-nav-item:hover {
  color: var(--color-text);
}

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

.inf-github-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  font-size: 0.78rem;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.18s ease;
}

.inf-github-pill:hover {
  border-color: var(--color-border-hover);
  background: #f4f4f5;
}

.stars-count {
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Infisical Buttons */
.inf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.inf-btn-primary {
  background: #09090b;
  color: #ffffff;
  border: 1px solid #09090b;
  font-weight: 600;
}

.inf-btn-primary:hover {
  background: #27272a;
  border-color: #27272a;
  transform: translateY(-1px);
}

.inf-btn-secondary {
  background: #ffffff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.inf-btn-secondary:hover {
  background: #f4f4f5;
  border-color: var(--color-border-hover);
}

.prompt {
  color: #71717a;
  font-weight: 600;
}

.copy-badge {
  font-size: 0.65rem;
  background: #e4e4e7;
  padding: 1px 5px;
  border-radius: 3px;
  color: #52525b;
  font-weight: 600;
}

/* =========================================
   Infisical Hero Section
   ========================================= */
.inf-hero {
  padding: 68px 36px 52px 36px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.inf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--color-text-faint);
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 16px;
}

.eyebrow-accent {
  width: 3px;
  height: 12px;
  background-color: var(--color-volt-ink);
  display: inline-block;
}

.inf-headline {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: #09090b;
  max-width: 980px;
}

/* The Signature Infisical Volt Highlighter Tag */
.inf-highlight {
  position: relative;
  display: inline-block;
  padding: 0 0.18em;
  margin: 0 0.04em;
  color: var(--color-volt-ink);
  white-space: nowrap;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.inf-highlight-bg {
  position: absolute;
  inset: 0;
  background: var(--color-volt);
  z-index: 0;
  border-radius: 3px;
}

.inf-highlight-text {
  position: relative;
  z-index: 1;
}

.inf-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-end;
}

@media (max-width: 800px) {
  .inf-hero-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.inf-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 540px;
}

.split-right {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 800px) {
  .split-right { justify-content: flex-start; }
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* =========================================
   Infisical Interactive Scanner / Workbench
   ========================================= */
.inf-scanner-frame {
  margin-top: 16px;
  width: 100%;
}

.inf-scanner-window {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.scanner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #f8f9fa;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.76rem;
}

.scanner-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
  animation: pulse-dot-anim 2s infinite ease-in-out;
}

@keyframes pulse-dot-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.scanner-title {
  color: #09090b;
  font-weight: 600;
}

.scanner-meta {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 900px) {
  .scanner-meta { display: none; }
}

.meta-divider {
  color: #d4d4d8;
}

.scanner-pill-live {
  font-size: 0.68rem;
  color: #09090b;
  background: var(--color-volt);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Scanner Preset Buttons */
.scanner-presets-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: #fcfcfd;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
}

.presets-caption {
  font-size: 0.7rem;
  color: var(--color-text-faint);
  letter-spacing: 0.05em;
  font-weight: 600;
  white-space: nowrap;
}

.preset-buttons-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scanner-preset-btn {
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.16s ease;
}

.scanner-preset-btn:hover {
  background: #f4f4f5;
  color: #09090b;
}

.scanner-preset-btn.active {
  background: var(--color-volt);
  border-color: var(--color-volt-border);
  color: #09090b;
  font-weight: 600;
}

/* Scanner Grid (2 Columns) */
.scanner-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  min-height: 400px;
}

@media (max-width: 880px) {
  .scanner-grid {
    grid-template-columns: 1fr;
  }
}

.scanner-stream-col {
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

@media (max-width: 880px) {
  .scanner-stream-col {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
}

.scanner-telemetry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 18px;
  background: #f8f9fa;
  border-bottom: 1px solid var(--color-border);
}

.telem-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.telem-lbl {
  font-size: 0.65rem;
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.telem-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #09090b;
}

/* Light-Themed Packet Waterfall Stream Pane */
.scanner-log {
  flex: 1;
  margin: 14px 18px;
  padding: 14px;
  height: 290px;
  overflow-y: hidden;
  font-size: 0.74rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  background: #f8f9fa;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.log-row {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  animation: fadeInLog 0.15s ease-out;
}

@keyframes fadeInLog {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.log-ts { color: #71717a; }
.log-proto { color: #0284c7; font-weight: 600; }
.log-msg { color: #18181b; }
.log-delayed {
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 500;
}
.log-dropped {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 500;
}
.log-pass {
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 500;
}

/* Controls Column */
.scanner-controls-col {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background: #fafafa;
}

.slider-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.slider-lbl {
  font-size: 0.68rem;
  color: var(--color-text-faint);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.slider-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #09090b;
}

.inf-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #e4e4e7;
  outline: none;
  cursor: pointer;
}

.inf-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #09090b;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s ease;
}

.inf-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #000000;
}

.inf-select {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.inf-select:focus {
  border-color: #09090b;
}

/* Light-Themed Generated Command Box */
.scanner-command-box {
  background: #f4f4f7;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.cmd-tag {
  font-size: 0.65rem;
  color: #71717a;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.cmd-copy-btn {
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: #09090b;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.cmd-copy-btn:hover {
  background: #f4f4f5;
  border-color: var(--color-border-hover);
}

.cmd-text {
  font-size: 0.76rem;
  color: #09090b;
  word-break: break-all;
  line-height: 1.4;
  user-select: all;
  font-weight: 600;
}

/* =========================================
   Infisical Architectural 3-Column Section
   ========================================= */
.inf-section {
  padding: 68px 36px;
  border-bottom: 1px solid var(--color-border);
}

.inf-section-header {
  margin-bottom: 36px;
}

.inf-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #09090b;
  line-height: 1.15;
}

.inf-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--color-border);
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (max-width: 860px) {
  .inf-grid-3 {
    grid-template-columns: 1fr;
  }
}

.inf-grid-col {
  padding: 34px 30px;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.inf-grid-col:last-child {
  border-right: none;
}

@media (max-width: 860px) {
  .inf-grid-col {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .inf-grid-col:last-child {
    border-bottom: none;
  }
}

.col-accent-bar {
  width: 24px;
  height: 3px;
  margin-bottom: 4px;
}

.col-eyebrow {
  font-size: 0.7rem;
  color: var(--color-text-faint);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.col-headline {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #09090b;
}

.col-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* =========================================
   Infisical Light Code Quickstart Frame
   ========================================= */
.inf-code-frame {
  background: #f8f9fa;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.code-frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #f1f2f5;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.72rem;
}

.code-frame-title {
  color: #52525b;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.code-copy-btn {
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: #09090b;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}

.code-copy-btn:hover {
  background: #f4f4f5;
  border-color: var(--color-border-hover);
}

.code-frame-body {
  padding: 22px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #09090b;
}

.tok-comment { color: #71717a; }
.tok-cmd { color: #09090b; font-weight: 700; }

/* =========================================
   Infisical Split CTA Banner
   ========================================= */
.inf-cta-section {
  padding: 68px 36px;
  border-bottom: 1px solid var(--color-border);
}

.inf-cta-box {
  background: #f8f9fa;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 44px 36px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 800px) {
  .inf-cta-box {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
  }
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #09090b;
  line-height: 1.2;
  margin-bottom: 10px;
}

.cta-desc {
  font-size: 0.94rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.cta-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .cta-right { justify-content: flex-start; }
}

/* =========================================
   Infisical Footer
   ========================================= */
.inf-footer {
  padding: 32px 36px;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.78rem;
  color: var(--color-text-faint);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #09090b;
  font-weight: 600;
}

.footer-logo {
  width: 16px;
  height: 16px;
}

.footer-legal a {
  color: #09090b;
  text-decoration: none;
  font-weight: 500;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #09090b;
}

.footer-links .sep {
  color: #d4d4d8;
}

/* Comprehensive Responsive Optimization for Phone & Tablet */
@media (max-width: 768px) {
  .inf-nav-inner {
    padding: 0 16px;
    gap: 12px;
  }
  .inf-hero {
    padding: 48px 20px 36px;
    gap: 28px;
  }
  .inf-section {
    padding: 48px 20px;
  }
  .inf-cta-section {
    padding: 48px 20px;
  }
  .inf-footer {
    padding: 28px 20px;
  }
}

@media (max-width: 640px) {
  #quick-copy-install {
    display: none;
  }
  .inf-nav-actions .inf-btn-primary {
    padding: 5px 10px;
    font-size: 0.76rem;
  }
  .inf-github-pill {
    padding: 4px 8px;
    font-size: 0.74rem;
  }
  .inf-headline {
    font-size: clamp(1.9rem, 8vw, 2.75rem);
    line-height: 1.1;
  }
  .inf-subtitle {
    font-size: 0.95rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-cta-group .inf-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
  }
  .scanner-bar {
    padding: 8px 12px;
  }
  .scanner-presets-bar {
    padding: 8px 12px;
  }
  .scanner-preset-btn {
    padding: 4px 9px;
    font-size: 0.7rem;
  }
  .scanner-telemetry {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px 14px;
  }
  .scanner-log {
    margin: 10px 12px;
    height: 220px;
    font-size: 0.7rem;
    padding: 10px;
  }
  .scanner-controls-col {
    padding: 16px 14px;
  }
  .inf-grid-col {
    padding: 24px 18px;
  }
  .code-frame-body {
    padding: 14px;
    font-size: 0.74rem;
    overflow-x: auto;
  }
  .inf-cta-box {
    padding: 24px 16px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
