/* ==========================================================================
   PROENGINEERING.IN - Components & Interactive UI Styles
   Enterprise Edition (Arup / AECOM / WSP Authority + Modern Tech UX)
   ========================================================================== */

/* 1. HERO SECTION */
.hero-section {
  padding: 6.5rem 0 4.5rem;
  position: relative;
}

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

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--primary);
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.12;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-title span.accent {
  background: linear-gradient(135deg, var(--primary) 0%, #0066FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.2rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* 2. RESTRAINED CREDIBILITY STRIP (Section 6) */
.credibility-strip {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.75rem 0;
  margin-bottom: 3rem;
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.credibility-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  border-left: 2px solid var(--border-cyan);
}

.cred-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.cred-text h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.cred-text span {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
}

/* Hero Engineering Terminal */
.hero-visual {
  position: relative;
}

.tech-terminal {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(0, 229, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.tech-terminal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-blue), var(--accent-indigo));
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

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

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
}

.terminal-dot:nth-child(1) { background: #FF5F56; }
.terminal-dot:nth-child(2) { background: #FFBD2E; }
.terminal-dot:nth-child(3) { background: #27C93F; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-highlight);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.code-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  padding-bottom: 0.4rem;
}

.code-key { color: var(--text-muted); }
.code-val { color: var(--primary); font-weight: 700; }
.code-val.green { color: var(--accent-green); }
.code-val.cyan { color: var(--primary); }

/* 3. ENGINEERING CAPABILITIES GRID (Section 7) */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.capability-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

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

.capability-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.capability-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.capability-subtitle {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.capability-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.capability-deliverables {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-highlight);
}

.capability-deliverables span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.capability-deliverables span::before {
  content: "•";
  color: var(--primary);
}

/* 4. AI + ENGINEERING SECTION & FLOW DIAGRAM (Section 8) */
.ai-flow-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 3.5rem;
}

.ai-flow-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
  position: relative;
}

.flow-step-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  text-align: center;
  flex: 1;
  min-width: 140px;
  position: relative;
  transition: all var(--transition-fast);
}

.flow-step-box:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.flow-step-box .step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.3rem;
}

.flow-step-box .step-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.flow-arrow {
  color: var(--text-dim);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.ai-principle-banner {
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-highlight);
}

.ai-principle-banner strong {
  color: var(--primary);
}

/* 5. CASE STUDY DEEP DIVE (Sections 11 & 12) */
.case-study-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.case-study-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
}

.case-study-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.case-study-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.cs-block strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--font-mono);
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
}

.cs-block p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.cs-block.outcome p {
  color: var(--accent-green);
  font-weight: 600;
}

/* 6. TECHNICAL STANDARDS SECTION (Section 10) */
.standards-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

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

.standards-table th {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.standards-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-highlight);
}

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

.standard-code-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

/* 7. ABOUT AMARESH DAS & TIMELINE (Sections 17 & 18) */
.about-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: start;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.profile-name {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.profile-role {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.profile-badge {
  background: rgba(0, 229, 255, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
}

.timeline-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  border-left: 2px solid var(--border-cyan);
  padding-left: 1.75rem;
  margin-left: 0.5rem;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.35rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  background: var(--bg-primary);
  border: 2px solid var(--primary);
  border-radius: 50%;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.timeline-org {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

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

/* 8. DUAL-PATH LEAD GENERATION (Section 19) */
.dual-path-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
}

.lead-box-engineering, .lead-box-tools {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.lead-box-engineering {
  border-top: 3px solid var(--primary);
}

.lead-box-tools {
  border-top: 3px solid var(--accent-blue);
  background: linear-gradient(135deg, rgba(13, 21, 39, 0.8) 0%, rgba(18, 30, 54, 0.8) 100%);
}

.path-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.5rem;
}

/* 9. PROENGINEERING AI ASSISTANT WIDGET (Section 28) */
.pro-ai-launcher {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 229, 255, 0.25);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.pro-ai-launcher:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(0, 229, 255, 0.4);
  border-color: var(--primary);
}

.ai-launcher-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
}

.ai-launcher-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.3px;
}

.ai-online-pulse {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
}

/* AI Assistant Drawer Panel */
.pro-ai-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 420px;
  max-width: 90vw;
  height: 580px;
  max-height: 80vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 45px rgba(0, 229, 255, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
}

.pro-ai-panel.open {
  display: flex;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.ai-panel-header {
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-avatar {
  width: 34px;
  height: 34px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--border-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-panel-title-wrap h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.ai-status-subtitle {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.ai-panel-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.ai-panel-close:hover {
  color: var(--primary);
}

.ai-notice-banner {
  background: rgba(245, 158, 11, 0.08);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding: 0.6rem 1rem;
  font-size: 0.72rem;
  color: #FCD34D;
  line-height: 1.35;
}

.ai-messages-area {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-msg {
  max-width: 88%;
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
}

.ai-msg.bot {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-highlight);
  align-self: flex-start;
}

.ai-msg.user {
  background: var(--accent-blue);
  color: #FFFFFF;
  align-self: flex-end;
}

.ai-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.ai-chip {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border-cyan);
  color: var(--primary);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ai-chip:hover {
  background: rgba(0, 229, 255, 0.15);
}

.ai-input-form {
  padding: 0.85rem 1.25rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.5rem;
}

.ai-text-input {
  flex-grow: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.85rem;
  color: var(--text-main);
  font-size: 0.88rem;
}

.ai-text-input:focus {
  border-color: var(--primary);
  outline: none;
}

.ai-send-btn {
  background: var(--primary);
  color: #050811;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Retain Core Product & Calculator Components */
.category-filter-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.cat-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cat-pill:hover { color: var(--text-main); border-color: var(--border-cyan); }
.cat-pill.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.products-grid, .ebooks-grid, .articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.product-card-top {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.product-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.badge-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-weight: 700;
  font-family: var(--font-mono);
}

.badge-tag {
  font-size: 0.72rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  cursor: pointer;
}

.product-title:hover { color: var(--primary); }

.product-standards {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.standard-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-card-body {
  padding: 1.25rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  margin-bottom: 1.25rem;
}

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

.product-card-footer {
  padding: 1rem 1.5rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price-box {
  display: flex;
  flex-direction: column;
}

.price-label { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; }
.price-val { font-size: 1.45rem; font-weight: 800; color: var(--text-main); font-family: var(--font-mono); }

.card-actions { display: flex; gap: 0.5rem; }

/* Calculators Interface */
.calculators-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.calc-tabs {
  display: flex;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.calc-tab-btn {
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.calc-tab-btn:hover { color: var(--text-main); }
.calc-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(0, 229, 255, 0.05);
}

.calc-content-area { padding: 2rem; }
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.form-group-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: span 2; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text-highlight); display: flex; justify-content: space-between; }
.form-label span.unit { color: var(--text-dim); font-family: var(--font-mono); font-weight: 400; }

.form-input, .form-select, .form-textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  outline: none;
}

.calc-results-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.results-header h4 { font-size: 1rem; color: var(--text-main); display: flex; align-items: center; gap: 0.5rem; }
.calc-standard-tag { font-family: var(--font-mono); font-size: 0.72rem; background: rgba(0, 229, 255, 0.1); color: var(--primary); padding: 0.2rem 0.5rem; border-radius: var(--radius-sm); }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.result-item { background: rgba(7, 11, 20, 0.6); border: 1px solid var(--border-subtle); padding: 0.85rem; border-radius: var(--radius-md); }
.result-item.highlight { border-color: var(--border-cyan); background: rgba(0, 229, 255, 0.05); }
.result-item.full { grid-column: span 2; }
.result-label { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; margin-bottom: 0.25rem; }
.result-val { font-size: 1.25rem; font-weight: 800; color: var(--text-main); font-family: var(--font-mono); }
.result-val.cyan { color: var(--primary); }
.result-val.green { color: var(--accent-green); }
.result-val.amber { color: var(--accent-amber); }

.calc-note-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.78rem;
  color: #FCD34D;
  margin-top: auto;
  line-height: 1.4;
}

/* Modals & Dialogs */
dialog.custom-modal {
  margin: auto;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  color: var(--text-main);
  max-width: 850px;
  width: 90vw;
  max-height: 90vh;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 229, 255, 0.2);
  padding: 0;
  overflow: hidden;
}

dialog.custom-modal::backdrop {
  background: rgba(5, 8, 17, 0.85);
  backdrop-filter: blur(8px);
}

.modal-header {
  padding: 1.5rem 2rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-header h3 { font-size: 1.4rem; font-weight: 800; color: var(--text-main); max-width: 90%; }
.modal-close-btn { background: transparent; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.modal-close-btn:hover { color: var(--primary); }
.modal-body { padding: 2rem; overflow-y: auto; max-height: calc(90vh - 160px); }
.modal-footer { padding: 1.25rem 2rem; background: var(--bg-surface); border-top: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; }

.modal-tabs { display: flex; gap: 1rem; border-bottom: 1px solid var(--border-subtle); margin-bottom: 1.5rem; }
.modal-tab-btn { background: transparent; border: none; color: var(--text-muted); font-size: 0.9rem; font-weight: 600; padding: 0.5rem 0.25rem; cursor: pointer; border-bottom: 2px solid transparent; }
.modal-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Cart Drawer */
.cart-items-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.cart-item-info h5 { font-size: 0.95rem; font-weight: 700; }
.cart-item-info span { font-size: 0.78rem; color: var(--text-dim); font-family: var(--font-mono); }
.cart-item-price { font-weight: 800; font-family: var(--font-mono); }
.cart-item-remove { background: transparent; border: none; color: var(--accent-red); cursor: pointer; font-size: 0.85rem; padding: 0.2rem 0.5rem; }

/* Toast */
.toast-container { position: fixed; bottom: 2rem; left: 2rem; z-index: 1000; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast { background: var(--bg-secondary); border: 1px solid var(--border-cyan); color: var(--text-main); padding: 0.85rem 1.25rem; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-size: 0.88rem; display: flex; align-items: center; gap: 0.6rem; pointer-events: auto; animation: slideIn 0.2s ease-out; }

@keyframes slideIn { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ==========================================================================
   8. STORE MULTI-FACET FILTERING & 6-DIMENSION CONTROLS (Prompt 2)
   ========================================================================== */
.store-filter-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.store-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.store-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.store-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: border-color var(--transition-fast);
}

.store-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.store-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.store-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.filter-item-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.filter-control-select {
  width: 100%;
  padding: 0.55rem 0.85rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.82rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-control-select:focus {
  outline: none;
  border-color: var(--primary);
}

.store-filter-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.store-stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 0.82rem;
}

.btn-reset-filters {
  background: transparent;
  border: 1px dashed var(--border-subtle);
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-reset-filters:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* ==========================================================================
   9. PRODUCT BUNDLES SHOWCASE (Prompt 2 Marketplace)
   ========================================================================== */
.bundles-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.bundles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.bundle-card {
  background: linear-gradient(145deg, rgba(13, 21, 39, 0.95), rgba(7, 11, 20, 0.98));
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-medium), border-color var(--transition-medium);
}

.bundle-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 14px 40px rgba(0, 229, 255, 0.15);
}

.bundle-savings-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.bundle-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  padding-right: 4rem;
}

.bundle-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.bundle-included-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.bundle-included-item {
  font-size: 0.82rem;
  color: var(--text-highlight);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bundle-pricing-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bundle-original-price {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: line-through;
  font-family: var(--font-mono);
}

.bundle-current-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent-green);
  font-family: var(--font-mono);
}

/* ==========================================================================
   10. CROSS-SELLING PATHWAY (Prompt 2: Calculator -> Checklist -> Template -> E-book -> Bundle)
   ========================================================================== */
.cross-sell-flow {
  background: rgba(0, 102, 255, 0.04);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.cross-sell-header {
  font-size: 0.78rem;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cross-sell-chain {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.cross-sell-step {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.cross-sell-step.active {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.cross-sell-arrow {
  color: var(--text-dim);
}

.cross-sell-rec-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-top: 0.85rem;
}

/* ==========================================================================
   11. STRUCTURED TECHNICAL CASE STUDY (Prompt 3: 12-Section Architecture)
   ========================================================================== */
.cs-filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cs-filter-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cs-filter-chip:hover,
.cs-filter-chip.active {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.cs-confidential-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #FCD34D;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.cs-meta-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cs-meta-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

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

.cs-sec-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.cs-sec-box.full {
  grid-column: span 2;
}

.cs-sec-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--font-mono);
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.cs-sec-content {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.cs-sec-box.outcome {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}

.cs-sec-box.outcome .cs-sec-label {
  color: var(--accent-green);
}

.cs-sec-box.outcome .cs-sec-content {
  color: var(--text-main);
  font-weight: 500;
}

.cs-footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 1rem;
}

/* ==========================================================================
   12. AI ENGINEERING VISUAL PIPELINE & CHARTER (Prompt 4)
   ========================================================================== */
.charter-banner {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(0, 229, 255, 0.08));
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.charter-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

.charter-quote {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.charter-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.7;
}

.pipeline-flow-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 3.5rem;
  position: relative;
}

.pipeline-node-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.pipeline-node-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.12);
}

.pipeline-node-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.pipeline-node-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.pipeline-node-subtitle {
  font-size: 0.78rem;
  color: var(--primary);
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}

.pipeline-node-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* AI Prompt Workbench Simulation */
.workbench-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.workbench-presets {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.workbench-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-highlight);
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.workbench-btn.active,
.workbench-btn:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.workbench-screen {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.workbench-prompt-row {
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border-subtle);
}

.workbench-output-row {
  color: var(--text-muted);
  line-height: 1.7;
}

.workbench-verification-strip {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.verif-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--accent-green);
}
