/* ═══════════════════════════════════════════════════════
   COMPONENTS — reusable UI elements
   ═══════════════════════════════════════════════════════ */

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-xs);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  font-family: inherit;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #0A0800;
  box-shadow: 0 4px 24px rgba(201, 151, 58, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(201, 151, 58, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.btn-gold-outline:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

/* ─── Icon Box (shared across cards) ────────────────── */
/* Base icon container — extended per use case via modifier sizes */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  flex-shrink: 0;
}

/* ─── Feature Card ───────────────────────────────────── */
.feature-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-dim) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  position: relative;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Step Card (How It Works) ───────────────────────── */
.step-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.step-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
}

.step-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 2px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 22px;
  position: relative;
  z-index: 1;
}

.step-num-label {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #0A0800;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Use Case Card ──────────────────────────────────── */
.case-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

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

.case-top {
  padding: 32px 28px 24px;
  background: linear-gradient(135deg, var(--card2), var(--card));
}

.case-icon  { font-size: 40px; margin-bottom: 16px; }
.case-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.case-sub   { font-size: 13px; color: var(--text-muted); }

.case-bottom {
  padding: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
}

/* ─── Role Card (Who Uses) ───────────────────────────── */
.role-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  transition: var(--transition);
}

.role-card:hover { border-color: var(--gold-border); }

.role-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.role-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.role-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ─── Why Card (Business Value) ──────────────────────── */
.why-card {
  padding: 32px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  display: flex;
  gap: 20px;
  transition: var(--transition);
}

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

.why-num {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-pale), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
  min-width: 48px;
}

.why-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.why-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ─── Industry Badge ─────────────────────────────────── */
.industry-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  cursor: default;
}

.industry-badge:hover {
  border-color: var(--gold-border);
  color: var(--gold);
  background: var(--card2);
}

.ind-icon { font-size: 18px; }

/* ─── Tech Stack Item ────────────────────────────────── */
.tech-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.tech-item:hover { border-color: var(--gold-border); }

.tech-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.tech-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.tech-desc { font-size: 12px; color: var(--text-muted); }

/* ─── Architecture Card ──────────────────────────────── */
.arch-card {
  background: var(--card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.arch-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.arch-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.arch-flow {
  display: flex;
  flex-direction: column;
}

.arch-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.arch-node:last-child { border-bottom: none; }

.arch-node-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-xs);
  background: var(--bg2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.arch-node-label { font-size: 13px; font-weight: 600; }
.arch-node-sub   { font-size: 11px; color: var(--text-muted); }

.arch-connector {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 0;
  margin-left: 18px;
}

.arch-connector-line {
  width: 1px;
  height: 14px;
  background: var(--gold-border);
}

.arch-connector-label {
  font-size: 10px;
  color: var(--text-dim);
  margin-left: 50px;
}

/* ─── Dashboard / Solution Visual ────────────────────── */
.solution-visual {
  background: var(--card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.solution-visual::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

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

.dash-title { font-size: 14px; font-weight: 700; }

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-green 1.5s infinite;
}

.dash-alerts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg2);
  font-size: 13px;
}

.alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.alert-red   { background: var(--danger); }
.alert-amber { background: var(--gold); }
.alert-green { background: var(--success); }

.alert-text { flex: 1; color: var(--text-muted); }
.alert-time { font-size: 11px; color: var(--text-dim); }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.dash-stat {
  background: var(--bg2);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.ds-num   { font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.ds-label { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

.dash-status {
  margin-top: 24px;
  padding: 16px;
  background: var(--bg2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--gold-border);
}

.dash-status-label {
  color: var(--gold);
  font-weight: 700;
}

/* ─── Contact Form ───────────────────────────────────── */
.contact-form {
  background: var(--card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 14px 16px;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--card2);
  box-shadow: 0 0 0 3px rgba(201, 151, 58, 0.12);
}

.form-group select {
  appearance: none;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #0A0800;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 151, 58, 0.45);
}

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 16px;
}

.form-success {
  display: none;
  margin-top: 20px;
  padding: 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-sm);
  text-align: center;
  color: #4ade80;
  font-size: 14px;
  font-weight: 600;
}

.form-success.visible { display: block; }
