/* ==============================================================================
   AURICPASS INTERACTIVE COMPONENTS & MODULES
   ============================================================================== */

/* ==============================================================================
   1. CINEMATIC HERO & HERO VISUALIZER
   ============================================================================== */

.hero-section {
  padding: 120px 0 80px 0;
  overflow: hidden;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.hero-tagline {
  margin-bottom: 24px;
}

.hero-title {
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-description {
  margin: 0 auto 36px auto;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-curl-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 18, 29, 0.85);
  border: 1px solid var(--border-glass);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-curl-box:hover {
  border-color: var(--gold-border);
  color: var(--text-main);
  background: rgba(28, 33, 52, 0.95);
}

.hero-curl-box .curl-prompt {
  color: var(--gold-light);
  user-select: none;
}

.hero-curl-box .copy-icon {
  margin-left: 8px;
  opacity: 0.6;
}

.hero-curl-box:hover .copy-icon {
  opacity: 1;
  color: var(--gold-light);
}

/* Trust Badges Bar */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold-primary);
}

/* ==============================================================================
   2. HERO DUAL-PANE GLASS TERMINAL VISUALIZER
   ============================================================================== */

.hero-terminal-container {
  margin-top: 56px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-border);
  background: rgba(12, 14, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.12);
  overflow: hidden;
}

.terminal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(19, 22, 36, 0.95);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-status-badge {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--emerald-dim);
  color: var(--emerald-primary);
  border: 1px solid var(--emerald-border);
}

.hero-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
  text-align: left;
}

.hero-dual-pane {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

.pane-left {
  background: rgba(10, 12, 20, 0.6);
  border-right: 1px solid var(--border-subtle);
}

.pane-right {
  background: rgba(15, 18, 30, 0.4);
}

.pane-label {
  display: inline-block;
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-weight: 700;
}

.label-agent {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.label-enclave {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.code-token-masked {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px dashed var(--gold-border);
  font-weight: 600;
}

.code-secret-hydrated {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-weight: 600;
}

.code-comment { color: var(--text-subtle); }
.code-keyword { color: #f472b6; }
.code-fn { color: #60a5fa; }
.code-string { color: #a3e635; }

/* ==============================================================================
   3. INTERACTIVE AI TOKEN SAVINGS CALCULATOR
   ============================================================================== */

.calc-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.slider-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.slider-val-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-light);
  background: var(--gold-dim);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-border);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #1e2438;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 12px var(--gold-primary);
  border: 2px solid #090a0f;
  cursor: pointer;
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Model Selector Pills */
.model-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.model-btn {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: #141726;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.model-btn:hover {
  border-color: var(--border-glass);
  color: var(--text-main);
}

.model-btn.active {
  background: var(--gold-dim);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

/* Calculator Output Dashboard Card */
.calc-dashboard {
  background: linear-gradient(145deg, rgba(21, 25, 41, 0.95), rgba(12, 14, 24, 0.95));
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.1);
  position: relative;
}

.calc-dashboard::after {
  content: "AURICPASS ROI GUARANTEE";
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  opacity: 0.7;
}

.calc-metric-row {
  margin-bottom: 24px;
}

.calc-metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.calc-big-number {
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
}

.token-progress-wrap {
  margin-top: 12px;
  background: #121522;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  position: relative;
}

.token-progress-bar {
  height: 100%;
  width: 92%;
  background: linear-gradient(90deg, #10b981, #d4af37);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.savings-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.stat-box {
  background: rgba(10, 12, 20, 0.5);
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.stat-box .stat-sub {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.stat-box .stat-val {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
  margin-top: 2px;
}

/* ==============================================================================
   4. TABBED LIVE TERMINAL SIMULATOR
   ============================================================================== */

.tabbed-terminal {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: #0b0d17;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.terminal-tabs-nav {
  display: flex;
  background: #111422;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.term-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.term-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.term-tab-btn.active {
  color: var(--gold-light);
  background: #0b0d17;
  border-bottom-color: var(--gold-primary);
}

.terminal-console-body {
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  min-height: 380px;
  max-height: 520px;
  overflow-y: auto;
  color: #e2e8f0;
}

.term-line {
  margin-bottom: 6px;
  opacity: 0;
  animation: termFadeIn 0.25s forwards ease-in;
}

@keyframes termFadeIn {
  to { opacity: 1; }
}

.term-prompt {
  color: var(--gold-light);
  user-select: none;
  margin-right: 8px;
}

.term-success { color: var(--emerald-primary); }
.term-warning { color: #fbbf24; }
.term-info { color: #38bdf8; }
.term-dim { color: var(--text-subtle); }

/* Interactive Terminal Live Prompt & Chips */
.term-input-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 4px;
}

.term-input-line .term-prompt {
  font-weight: 700;
  color: #f5c542;
  white-space: nowrap;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #f8fafc;
  caret-color: #f5c542;
  padding: 0;
  min-width: 120px;
}

.term-input::placeholder {
  color: #475569;
  font-style: italic;
}

.term-quick-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 24px;
  background: rgba(13, 16, 28, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.term-chip-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-right: 4px;
}

.term-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.term-chip:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
  color: #f5c542;
  transform: translateY(-1px);
}

.term-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #0d101c;
  border-top: 1px solid var(--border-subtle);
}

/* ==============================================================================
   5. 3-TIER COMMERCIAL VALUE LADDER & PRICING
   ============================================================================== */

.pricing-billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.toggle-btn-group {
  display: flex;
  background: #121524;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
}

.toggle-opt {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-opt.active {
  background: var(--gold-light);
  color: #090a0f;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

.save-badge {
  background: var(--emerald-dim);
  color: var(--emerald-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--emerald-border);
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.price-card.featured {
  background: linear-gradient(180deg, rgba(28, 33, 54, 0.8) 0%, rgba(15, 18, 28, 0.9) 100%);
  border-color: var(--gold-primary);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
}

.price-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #f5c542, #d4af37);
  color: #090a0f;
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.plan-tier-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-tier-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 48px;
  margin-bottom: 24px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.plan-price-amount {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
  line-height: 1;
}

.plan-price-period {
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  flex-grow: 1;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.925rem;
  color: #cbd5e1;
}

.plan-feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold-light);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Offline License Activation Box */
.license-demo-box {
  margin-top: 48px;
  background: rgba(15, 18, 29, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
}

.license-demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.license-input-group {
  display: flex;
  gap: 12px;
}

.license-input {
  flex-grow: 1;
  background: #090a0f;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.license-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.license-result-pill {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-top: 16px;
}

.license-result-pill.valid {
  display: flex;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-border);
  color: #34d399;
}

.license-result-pill.invalid {
  display: flex;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* ==============================================================================
   6. COMPETITIVE MATRIX TABLE
   ============================================================================== */

.matrix-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-glass);
}

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

.matrix-table th, .matrix-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-table th {
  background: rgba(15, 18, 30, 0.95);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
}

.matrix-table th.col-highlight,
.matrix-table td.col-highlight {
  background: rgba(212, 175, 55, 0.05);
  border-left: 1px solid var(--gold-border);
  border-right: 1px solid var(--gold-border);
}

.matrix-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.matrix-table tr:hover td.col-highlight {
  background: rgba(212, 175, 55, 0.08);
}

.check-yes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
  font-weight: 600;
}

.check-no {
  color: var(--text-dim);
}

/* ==============================================================================
   7. 4-LAYER TOPOLOGY ARCHITECTURE CARDS
   ============================================================================== */

.topo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.topo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  transition: all 0.3s ease;
}

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

.topo-layer-badge {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 12px;
}

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

.topo-card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ==============================================================================
   8. RESPONSIVE COMPONENT BEHAVIOR
   ============================================================================== */

@media (max-width: 992px) {
  .hero-dual-grid {
    grid-template-columns: 1fr;
  }
  .pane-left {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .calc-container {
    grid-template-columns: 1fr;
  }
  .pricing-cards-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .topo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .topo-grid {
    grid-template-columns: 1fr;
  }
  .savings-stats-grid {
    grid-template-columns: 1fr;
  }
  .terminal-tabs-nav {
    flex-wrap: nowrap;
  }
  .license-input-group {
    flex-direction: column;
  }
}
