/**
 * HAS Components Stylesheet — Cards, Buttons, Hero, Forms, Showcase, Solutions & Pricing
 * Brand: HAS (HEX Automation Services)
 * Tagline: AUTOMATE • OPTIMIZE • GROW
 */

/* -------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------- */
.has-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--has-space-2);
  font-family: var(--has-font-sans);
  font-size: var(--has-text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--has-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--has-transition-base);
  white-space: nowrap;
  user-select: none;
}

.has-btn-primary {
  background: linear-gradient(135deg, var(--has-purple-amethyst) 0%, var(--has-indigo) 100%);
  color: var(--has-white-pure);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 4px 18px var(--has-purple-glow);
}

.has-btn-primary:hover {
  background: linear-gradient(135deg, var(--has-purple-light) 0%, var(--has-purple-amethyst) 100%);
  color: var(--has-white-pure);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.55);
  transform: translateY(-2px);
  border-color: var(--has-gold-signature);
}

.has-btn-gold {
  background: linear-gradient(135deg, var(--has-gold-signature) 0%, var(--has-gold) 100%);
  color: var(--has-onyx);
  font-weight: 700;
  border-color: var(--has-gold-light);
  box-shadow: 0 4px 18px var(--has-gold-glow);
}

.has-btn-gold:hover {
  background: linear-gradient(135deg, var(--has-gold-light) 0%, var(--has-gold-signature) 100%);
  color: var(--has-onyx);
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.55);
  transform: translateY(-2px);
}

.has-btn-secondary {
  background: var(--has-bg-card);
  color: var(--has-text-primary);
  border-color: var(--has-border-medium);
}

.has-btn-secondary:hover {
  background: var(--has-bg-elevated);
  border-color: var(--has-purple-amethyst);
  color: var(--has-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.has-btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--has-text-xs);
}

.has-btn-lg {
  padding: 0.95rem 2rem;
  font-size: var(--has-text-base);
}

.has-btn-icon {
  width: 1.15em;
  height: 1.15em;
}

/* -------------------------------------------------------------------------
 * Hero Component & Trust Indicators
 * ------------------------------------------------------------------------- */
.has-hero {
  padding-top: calc(var(--has-space-12) + var(--has-header-height));
  padding-bottom: var(--has-space-16);
  min-height: 86vh;
  display: flex;
  align-items: center;
  position: relative;
}

.has-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--has-space-12);
  align-items: center;
}

.has-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--has-space-2);
  padding: 0.4rem 1rem;
  border-radius: var(--has-radius-full);
  background: var(--has-purple-muted);
  border: 1px solid var(--has-border-accent);
  font-family: var(--has-font-mono);
  font-size: var(--has-text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--has-purple-light);
  margin-bottom: var(--has-space-6);
}

.has-hero-badge .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--has-gold-signature);
  box-shadow: 0 0 10px var(--has-gold);
  animation: pulse-dot 2s infinite;
}

.has-hero-title {
  font-size: clamp(2.4rem, 4.8vw, 4.1rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: var(--has-space-6);
  letter-spacing: -0.04em;
}

.has-hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--has-text-secondary);
  line-height: 1.68;
  margin-bottom: var(--has-space-8);
  max-width: 620px;
}

.has-hero-actions {
  display: flex;
  gap: var(--has-space-4);
  margin-bottom: var(--has-space-10);
  flex-wrap: wrap;
}

.has-trust-badges {
  display: flex;
  gap: var(--has-space-6);
  padding-top: var(--has-space-6);
  border-top: 1px solid var(--has-border-subtle);
  flex-wrap: wrap;
}

.has-trust-item {
  display: flex;
  align-items: center;
  gap: var(--has-space-2);
  font-size: var(--has-text-xs);
  font-family: var(--has-font-mono);
  color: var(--has-text-muted);
}

.has-trust-item svg {
  color: var(--has-gold-signature);
  width: 16px;
  height: 16px;
}

/* -------------------------------------------------------------------------
 * Hero Visual: Futuristic Vector Orbital Planet & Circuit Environment
 * ------------------------------------------------------------------------- */
.has-hero-visual {
  display: flex;
  flex-direction: column;
  gap: var(--has-space-6);
  position: relative;
}

.has-orbital-env {
  position: relative;
  width: 100%;
  height: 340px;
  background: var(--has-bg-card);
  border: 1px solid var(--has-border-medium);
  border-radius: var(--has-radius-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--has-shadow-lg), 0 0 50px var(--has-purple-muted);
}

.has-orbital-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Hero Terminal / Telemetry Preview */
.has-terminal-window {
  background: var(--has-bg-surface);
  border: 1px solid var(--has-border-medium);
  border-radius: var(--has-radius-lg);
  box-shadow: var(--has-shadow-md);
  overflow: hidden;
  position: relative;
}

.has-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--has-space-2) var(--has-space-4);
  background: #090c13;
  border-bottom: 1px solid var(--has-border-subtle);
}

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

.has-terminal-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a3447;
}

.has-terminal-dots span:nth-child(1) { background: #f43f5e; }
.has-terminal-dots span:nth-child(2) { background: #f59e0b; }
.has-terminal-dots span:nth-child(3) { background: #10b981; }

.has-terminal-title {
  font-family: var(--has-font-mono);
  font-size: var(--has-text-xs);
  color: var(--has-text-muted);
}

.has-terminal-body {
  padding: var(--has-space-4) var(--has-space-5);
  font-family: var(--has-font-mono);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--has-text-secondary);
}

.has-terminal-line {
  margin-bottom: var(--has-space-1);
}

.has-terminal-line .t-prompt { color: var(--has-purple-light); }
.has-terminal-line .t-cmd { color: #fff; font-weight: 600; }
.has-terminal-line .t-success { color: #34d399; }
.has-terminal-line .t-accent { color: var(--has-gold-signature); }
.has-terminal-line .t-dim { color: var(--has-text-muted); }

/* -------------------------------------------------------------------------
 * Service Cards Grid
 * ------------------------------------------------------------------------- */
.has-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--has-space-8);
}

.has-service-card {
  background: var(--has-bg-surface);
  border: 1px solid var(--has-border-subtle);
  border-radius: var(--has-radius-lg);
  padding: var(--has-space-8);
  display: flex;
  flex-direction: column;
  transition: all var(--has-transition-base);
  position: relative;
  overflow: hidden;
}

.has-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--has-purple-amethyst), var(--has-gold));
  opacity: 0;
  transition: opacity var(--has-transition-base);
}

.has-service-card:hover {
  transform: translateY(-4px);
  border-color: var(--has-border-accent);
  box-shadow: var(--has-shadow-lg), 0 0 35px var(--has-purple-muted);
}

.has-service-card:hover::before {
  opacity: 1;
}

.has-service-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--has-radius-md);
  background: var(--has-purple-muted);
  border: 1px solid var(--has-border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--has-gold-signature);
  margin-bottom: var(--has-space-4);
  transition: transform var(--has-transition-fast);
}

.has-service-card:hover .has-service-icon-wrap {
  transform: scale(1.08);
  border-color: var(--has-gold-signature);
}

.has-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--has-space-3);
}

.has-card-code {
  font-family: var(--has-font-mono);
  font-size: var(--has-text-xs);
  color: var(--has-gold-signature);
  background: var(--has-gold-muted);
  padding: 0.2rem 0.6rem;
  border-radius: var(--has-radius-sm);
  border: 1px solid var(--has-border-gold);
}

.has-card-badge {
  font-size: 11px;
  color: var(--has-purple-light);
  font-family: var(--has-font-mono);
  font-weight: 600;
}

.has-card-title {
  font-size: var(--has-text-xl);
  font-weight: 700;
  margin-bottom: var(--has-space-3);
  line-height: 1.3;
}

.has-card-desc {
  font-size: var(--has-text-sm);
  color: var(--has-text-secondary);
  margin-bottom: var(--has-space-6);
  line-height: 1.65;
  flex-grow: 1;
}

.has-card-features {
  list-style: none;
  margin-bottom: var(--has-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--has-space-2);
}

.has-card-features li {
  font-size: var(--has-text-xs);
  color: var(--has-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--has-space-2);
}

.has-card-features li::before {
  content: '▹';
  color: var(--has-gold-signature);
  font-weight: bold;
}

.has-card-footer {
  border-top: 1px solid var(--has-border-subtle);
  padding-top: var(--has-space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.has-card-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.has-price-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--has-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.has-price-amount {
  font-family: var(--has-font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--has-gold-signature);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.has-price-caption {
  font-size: 12px;
  color: var(--has-text-secondary);
  font-family: var(--has-font-sans);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.has-price-value {
  font-family: var(--has-font-mono);
  font-size: var(--has-text-base);
  font-weight: 700;
  color: var(--has-text-primary);
}

/* -------------------------------------------------------------------------
 * Solutions Section (Problem -> Solution Breakdown)
 * ------------------------------------------------------------------------- */
.has-solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--has-space-6);
}

.has-solution-card {
  background: var(--has-bg-surface);
  border: 1px solid var(--has-border-subtle);
  border-radius: var(--has-radius-lg);
  padding: var(--has-space-6);
  transition: all var(--has-transition-base);
  display: flex;
  flex-direction: column;
}

.has-solution-card:hover {
  border-color: var(--has-border-accent);
  transform: translateY(-3px);
  box-shadow: var(--has-shadow-md);
}

.has-solution-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--has-radius-md);
  background: var(--has-gold-muted);
  border: 1px solid var(--has-border-gold);
  color: var(--has-gold-signature);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--has-space-4);
}

.has-solution-title {
  font-size: var(--has-text-base);
  font-weight: 700;
  margin-bottom: var(--has-space-2);
}

.has-solution-desc {
  font-size: var(--has-text-xs);
  color: var(--has-text-secondary);
  line-height: 1.65;
}

/* -------------------------------------------------------------------------
 * Why HAS Benefits
 * ------------------------------------------------------------------------- */
.has-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--has-space-6);
}

.has-benefit-card {
  background: var(--has-bg-surface);
  border: 1px solid var(--has-border-subtle);
  border-radius: var(--has-radius-lg);
  padding: var(--has-space-8);
  transition: all var(--has-transition-base);
}

.has-benefit-card:hover {
  border-color: var(--has-border-accent);
  background: var(--has-bg-card);
  transform: translateY(-3px);
}

.has-benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--has-radius-md);
  background: var(--has-purple-muted);
  border: 1px solid var(--has-border-medium);
  color: var(--has-purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--has-space-4);
}

.has-benefit-title {
  font-size: var(--has-text-lg);
  font-weight: 700;
  margin-bottom: var(--has-space-2);
}

.has-benefit-desc {
  font-size: var(--has-text-sm);
  color: var(--has-text-secondary);
  line-height: 1.65;
}

/* -------------------------------------------------------------------------
 * 4-Step Process Roadmap (How It Works)
 * ------------------------------------------------------------------------- */
.has-process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--has-space-6);
  position: relative;
}

.has-step-card {
  background: var(--has-bg-surface);
  border: 1px solid var(--has-border-subtle);
  border-radius: var(--has-radius-lg);
  padding: var(--has-space-8);
  position: relative;
  transition: all var(--has-transition-base);
}

.has-step-card:hover {
  border-color: var(--has-border-accent);
  background: var(--has-bg-card);
  transform: translateY(-4px);
  box-shadow: var(--has-shadow-md);
}

.has-step-num {
  font-family: var(--has-font-mono);
  font-size: var(--has-text-3xl);
  font-weight: 900;
  color: var(--has-gold-signature);
  margin-bottom: var(--has-space-3);
  letter-spacing: -0.04em;
}

.has-step-title {
  font-size: var(--has-text-lg);
  font-weight: 700;
  margin-bottom: var(--has-space-2);
}

.has-step-desc {
  font-size: var(--has-text-sm);
  color: var(--has-text-secondary);
  line-height: 1.65;
}

/* -------------------------------------------------------------------------
 * Portfolio & Case Studies
 * ------------------------------------------------------------------------- */
.has-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--has-space-8);
}

.has-portfolio-card {
  background: var(--has-bg-surface);
  border: 1px solid var(--has-border-subtle);
  border-radius: var(--has-radius-lg);
  padding: var(--has-space-8);
  display: flex;
  flex-direction: column;
  transition: all var(--has-transition-base);
}

.has-portfolio-card:hover {
  border-color: var(--has-border-accent);
  transform: translateY(-3px);
  box-shadow: var(--has-shadow-md);
}

.has-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--has-space-1);
  font-family: var(--has-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--has-radius-full);
}

.has-pill-internal {
  background: var(--has-purple-muted);
  color: var(--has-purple-light);
  border: 1px solid var(--has-border-accent);
}

.has-pill-demo {
  background: var(--has-gold-muted);
  color: var(--has-gold-signature);
  border: 1px solid var(--has-border-gold);
}

.has-pill-coming {
  background: rgba(100, 116, 139, 0.15);
  color: var(--has-text-secondary);
  border: 1px solid var(--has-border-medium);
}

.has-portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--has-space-2);
  margin-top: auto;
  padding-top: var(--has-space-6);
}

.has-tech-tag {
  font-family: var(--has-font-mono);
  font-size: 0.72rem;
  color: var(--has-text-secondary);
  background: var(--has-bg-card);
  padding: 0.25rem 0.6rem;
  border-radius: var(--has-radius-sm);
  border: 1px solid var(--has-border-subtle);
}

/* -------------------------------------------------------------------------
 * Pricing Section & Quote Calculator Architecture
 * ------------------------------------------------------------------------- */
.has-pricing-box {
  background: var(--has-bg-card);
  border: 1px solid var(--has-border-medium);
  border-radius: var(--has-radius-xl);
  padding: var(--has-space-10);
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--has-shadow-lg);
  position: relative;
  overflow: hidden;
}

.has-pricing-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--has-purple-amethyst), var(--has-gold), var(--has-purple-amethyst));
}

.has-pricing-highlight {
  font-family: var(--has-font-mono);
  font-size: var(--has-text-2xl);
  color: var(--has-gold-signature);
  font-weight: 800;
  margin: var(--has-space-4) 0;
}

/* -------------------------------------------------------------------------
 * Contact / Intake Form
 * ------------------------------------------------------------------------- */
.has-form-container {
  background: var(--has-bg-surface);
  border: 1px solid var(--has-border-subtle);
  border-radius: var(--has-radius-xl);
  padding: var(--has-space-10);
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--has-shadow-lg);
}

.has-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--has-space-6);
}

.has-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--has-space-2);
}

.has-form-group.full-width {
  grid-column: 1 / -1;
}

.has-form-label {
  font-size: var(--has-text-xs);
  font-weight: 600;
  color: var(--has-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.has-form-label .required {
  color: var(--has-gold-signature);
}

.has-form-control {
  background: var(--has-bg-card);
  border: 1px solid var(--has-border-medium);
  border-radius: var(--has-radius-md);
  padding: 0.85rem 1rem;
  color: var(--has-text-primary);
  font-family: var(--has-font-sans);
  font-size: var(--has-text-sm);
  transition: all var(--has-transition-fast);
}

.has-form-control:focus {
  outline: none;
  border-color: var(--has-purple-amethyst);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
  background: var(--has-bg-elevated);
}

.has-form-control::placeholder {
  color: var(--has-text-muted);
}

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

.has-form-alert {
  padding: var(--has-space-4) var(--has-space-6);
  border-radius: var(--has-radius-md);
  font-size: var(--has-text-sm);
  margin-bottom: var(--has-space-6);
  display: none;
}

.has-form-alert.success {
  display: block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--has-emerald);
  color: #34d399;
}

.has-form-alert.error {
  display: block;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid var(--has-rose);
  color: #fb7185;
}

/* -------------------------------------------------------------------------
 * Floating AI Assistant Launcher
 * ------------------------------------------------------------------------- */
.has-ai-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
}

.has-ai-launcher-btn {
  display: flex;
  align-items: center;
  gap: var(--has-space-3);
  background: var(--has-bg-surface);
  border: 1px solid var(--has-border-medium);
  padding: 0.75rem 1.25rem;
  border-radius: var(--has-radius-full);
  color: var(--has-text-primary);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7), 0 0 25px var(--has-purple-muted);
  cursor: pointer;
  transition: all var(--has-transition-base);
  font-family: var(--has-font-sans);
  font-size: var(--has-text-xs);
  font-weight: 600;
}

.has-ai-launcher-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.8), 0 0 35px var(--has-purple-glow);
  border-color: var(--has-purple-amethyst);
  background: var(--has-bg-elevated);
}

.has-ai-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--has-gold-signature);
  box-shadow: 0 0 8px var(--has-gold);
}

/* -------------------------------------------------------------------------
 * Generic Card Base (used by pricing cards, inline grids)
 * ------------------------------------------------------------------------- */
.has-card {
  background: var(--has-bg-card);
  border: 1px solid var(--has-border-subtle);
  border-radius: var(--has-radius-lg);
  display: flex;
  flex-direction: column;
  transition: all var(--has-transition-base);
  position: relative;
  overflow: hidden;
}

.has-card:hover {
  border-color: var(--has-border-accent);
  transform: translateY(-3px);
  box-shadow: var(--has-shadow-md), 0 0 28px var(--has-purple-muted);
}

/* Pricing-specific grid layout */
.has-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--has-space-6);
}
