/* ============================================
   ApiChecker.ai — Design System & Styles
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(31, 41, 55, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  --accent-primary: #00d4ff;
  --accent-secondary: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --accent-gradient-reverse: linear-gradient(135deg, #7c3aed 0%, #00d4ff 100%);
  --accent-glow: 0 0 30px rgba(0, 212, 255, 0.3);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #00d4ff;

  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 212, 255, 0.3);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-gap: 120px;
  --container-max: 1200px;
  --container-padding: 24px;

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Background gradient mesh */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 10%, rgba(0, 212, 255, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 50%, rgba(124, 58, 237, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 90%, rgba(0, 212, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #33ddff;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 1;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 14, 26, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.nav-logo .domain {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9rem;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 8px 20px;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-full);
  color: var(--bg-primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--accent-glow);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
  position: relative;
}

.hero-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 48px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.35);
  color: var(--bg-primary);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

/* --- Shared Section Styles --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 500;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Generator Section --- */
.generator-section {
  padding: 80px 0 var(--section-gap);
}

.generator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.generator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0.5;
}

/* Generator Steps */
.gen-step {
  margin-bottom: 36px;
}

.gen-step.hidden {
  display: none;
}

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

.gen-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--bg-primary);
  flex-shrink: 0;
}

.gen-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.gen-step-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: auto;
}

.gen-step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.optional-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

/* Security Callout — prominent, impossible to miss */
.security-callout {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(0, 212, 255, 0.06) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
}

.security-callout-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.security-callout-content {
  flex: 1;
}

.security-callout-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--success);
  margin-bottom: 6px;
}

.security-callout-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.security-callout-text strong {
  color: var(--text-primary);
}

/* Trust Banner */
.trust-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.trust-banner .trust-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.trust-banner strong {
  color: var(--success);
}

/* Script Container */
.script-container {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.script-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-subtle);
}

.script-tabs {
  display: flex;
  gap: 4px;
}

.script-tab {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.script-tab:hover {
  color: var(--text-secondary);
}

.script-tab.active {
  background: var(--bg-glass-hover);
  border-color: var(--border-accent);
  color: var(--accent-primary);
}

.copy-btn {
  padding: 6px 16px;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--bg-primary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--accent-glow);
}

.script-code {
  margin: 0;
  padding: 20px;
  background: #0d1117;
  color: #c9d1d9;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  overflow-x: auto;
  max-height: 420px;
  overflow-y: auto;
  white-space: pre;
  tab-size: 2;
}

.script-code::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.script-code::-webkit-scrollbar-track {
  background: transparent;
}

.script-code::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* Script Instructions */
.script-instructions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.instruction-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex: 1;
  min-width: 200px;
}

.instruction-item code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  color: var(--accent-primary);
}

.instruction-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Output Input */
.output-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.output-input {
  width: 100%;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition-base);
  box-sizing: border-box;
}

.output-input:focus {
  border-color: var(--accent-primary);
}

.visualize-btn {
  align-self: flex-end;
  padding: 12px 28px !important;
}

/* Checker Card */
.checker-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.checker-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0.5;
}

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

.input-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-label-hint {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--success);
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.8;
}

.api-key-input-wrapper {
  position: relative;
  display: flex;
  gap: 12px;
}

.api-key-input {
  flex: 1;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
}

.api-key-input::placeholder {
  color: var(--text-muted);
}

.api-key-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Toggle visibility button */
.toggle-visibility {
  position: absolute;
  right: 130px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 8px;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
  z-index: 2;
}

.toggle-visibility:hover {
  opacity: 1;
}

.check-btn {
  padding: 16px 32px;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: var(--bg-primary);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--accent-glow);
}

.check-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Vendor Detection */
.vendor-detected {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease;
}

.vendor-detected.visible {
  display: flex;
}

.vendor-detected .vendor-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  color: var(--bg-primary);
}

.vendor-detected .vendor-info {
  flex: 1;
}

.vendor-detected .vendor-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.vendor-detected .vendor-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.vendor-detected .vendor-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Manual vendor selector */
.vendor-selector {
  margin-bottom: 24px;
}

.vendor-selector-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vendor-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vendor-pill {
  padding: 10px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 10px;
}

.vendor-pill:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-accent);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.vendor-pill.active {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.15);
}

.vendor-pill .pill-logo {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vendor-pill .pill-logo svg {
  width: 100%;
  height: 100%;
}

/* --- Results Panel --- */
.results-panel {
  display: none;
  margin-top: 32px;
  animation: fadeInUp 0.5s ease;
}

.results-panel.visible {
  display: block;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.results-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.results-summary {
  display: flex;
  gap: 16px;
}

.summary-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.summary-stat.granted {
  color: var(--success);
}

.summary-stat.denied {
  color: var(--danger);
}

.summary-stat.limited {
  color: var(--warning);
}

/* Endpoint Categories */
.endpoint-category {
  margin-bottom: 20px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  cursor: pointer;
  user-select: none;
}

.category-header .category-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.category-header .category-name {
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1;
}

.category-header .category-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.category-header .chevron {
  transition: transform var(--transition-fast);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.category-header.expanded .chevron {
  transform: rotate(90deg);
}

/* Endpoint Items */
.endpoint-list {
  display: none;
  padding-left: 38px;
}

.endpoint-list.expanded {
  display: block;
  animation: fadeIn 0.3s ease;
}

.endpoint-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  transition: background var(--transition-fast);
}

.endpoint-item:hover {
  background: var(--bg-glass);
}

.endpoint-status {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.endpoint-status.granted {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.endpoint-status.denied {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.endpoint-status.limited {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.endpoint-method {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  min-width: 52px;
  text-align: center;
}

.endpoint-method.get {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.endpoint-method.post {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
}

.endpoint-method.put {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.endpoint-method.delete {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.endpoint-method.patch {
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-secondary);
}

.endpoint-path {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  flex: 1;
}

.endpoint-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- How It Works --- */
.how-it-works {
  padding: var(--section-gap) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.step-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--bg-primary);
  margin: 0 auto 24px;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

/* Connector lines between steps */
.steps-grid .step-card:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--text-muted);
  z-index: 2;
}

/* --- Vendors Section --- */
.vendors-section {
  padding: var(--section-gap) 0;
}

.vendors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.vendor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
}

.vendor-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.vendor-card-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
}

.vendor-card-logo svg {
  width: 100%;
  height: 100%;
}

.vendor-card-info {
  flex: 1;
  min-width: 0;
}

.vendor-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.vendor-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vendor-card-badge {
  padding: 4px 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Security Section --- */
.security-section {
  padding: var(--section-gap) 0;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
}

.security-card:hover {
  border-color: var(--border-accent);
}

.security-card .security-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.security-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.security-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* --- Footer --- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--section-gap);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

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

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

/* --- Scanning Animation --- */
.scanning-overlay {
  display: none;
  position: relative;
  padding: 40px;
  text-align: center;
}

.scanning-overlay.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

.scanner-ring {
  width: 80px;
  height: 80px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.scanning-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.scanning-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.scanning-progress {
  width: 300px;
  height: 4px;
  background: var(--bg-glass);
  border-radius: 2px;
  margin: 20px auto 0;
  overflow: hidden;
}

.scanning-progress-bar {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}

/* Activity Log */
.activity-log {
  margin-top: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: left;
}

.activity-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-subtle);
}

.activity-log-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.activity-log-body {
  max-height: 140px;
  overflow-y: auto;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.15);
}

.activity-log-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 16px;
  animation: fadeIn 0.2s ease;
}

.log-arrow {
  color: var(--accent-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.log-method {
  font-weight: 700;
  min-width: 36px;
}

.log-method.get {
  color: var(--success);
}

.log-method.post {
  color: var(--accent-primary);
}

.log-url {
  color: var(--text-secondary);
  word-break: break-all;
}

.log-result {
  flex-shrink: 0;
  margin-left: auto;
  font-weight: 600;
}

.log-result.ok {
  color: var(--success);
}

.log-result.denied {
  color: var(--danger);
}

.log-result.limited {
  color: var(--warning);
}

/* --- Animations --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --section-gap: 80px;
    --container-padding: 20px;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  /* Generator card */
  .generator-card {
    padding: 24px 18px;
  }

  .security-callout {
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }

  .security-callout-icon {
    font-size: 1.6rem;
  }

  .gen-step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .gen-step-hint {
    margin-left: 0;
  }

  /* Script container */
  .script-header {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .script-tabs {
    width: 100%;
  }

  .script-tab {
    flex: 1;
    text-align: center;
  }

  .copy-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
  }

  .script-code {
    font-size: 0.7rem;
    max-height: 300px;
  }

  .script-instructions {
    flex-direction: column;
  }

  .instruction-item {
    min-width: unset;
  }

  /* Vendor pills */
  .vendor-pills {
    gap: 8px;
  }

  .vendor-pill {
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .vendor-pill .pill-logo {
    width: 16px;
    height: 16px;
  }

  /* Steps grid */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .steps-grid .step-card::after {
    display: none;
  }

  /* Vendor grid */
  .vendors-grid {
    grid-template-columns: 1fr;
  }

  .vendor-card-badge {
    display: none;
  }

  /* Security grid */
  .security-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  /* Results */
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .endpoint-item {
    flex-wrap: wrap;
  }

  .endpoint-path {
    order: 3;
    flex-basis: 100%;
    padding-left: 36px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .generator-card {
    padding: 18px 14px;
  }

  .security-callout-title {
    font-size: 1rem;
  }

  .trust-banner {
    font-size: 0.75rem;
  }

  .vendor-pill {
    padding: 7px 12px;
    font-size: 0.72rem;
    gap: 6px;
  }
}