/**
 * HAS Main Stylesheet — Layout, Navigation, Footer, Floating Contact Rail & Typography
 * Brand: HAS (HEX Automation Services)
 * Tagline: AUTOMATE • OPTIMIZE • GROW
 */

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

html {
  font-family: var(--has-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--has-text-primary);
  background-color: var(--has-bg-base);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--has-bg-base);
}

/* Background Canvas Layer */
#has-canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--has-purple-amethyst);
  outline-offset: 3px;
}

/* Accessible Skip Link */
.has-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--has-gold-signature);
  color: #000;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--has-radius-sm);
  z-index: 10000;
  transition: top var(--has-transition-fast);
  text-decoration: none;
}

.has-skip-link:focus {
  top: 16px;
  outline: 2px solid #fff;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--has-font-display);
  color: var(--has-text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  color: var(--has-text-secondary);
  line-height: 1.7;
}

a {
  color: var(--has-purple-light);
  text-decoration: none;
  transition: color var(--has-transition-fast);
}

a:hover {
  color: var(--has-gold-signature);
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Layout Containers */
.has-container {
  width: 100%;
  max-width: var(--has-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--has-space-6);
  padding-right: var(--has-space-6);
  position: relative;
  z-index: 1;
}

.has-main-content {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------------------
 * Header & Navigation
 * ------------------------------------------------------------------------- */
.has-navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--has-header-height);
  background: var(--has-bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--has-border-subtle);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background-color var(--has-transition-base), border-color var(--has-transition-base);
}

.has-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.has-brand-link {
  display: flex;
  align-items: center;
  gap: var(--has-space-3);
  text-decoration: none;
}

.has-brand-logo {
  height: 50px;
  width: auto;
  transition: transform var(--has-transition-fast);
}

.has-brand-link:hover .has-brand-logo {
  transform: scale(1.03);
}

.has-nav-menu {
  display: flex;
  align-items: center;
  gap: var(--has-space-6);
  list-style: none;
}

.has-nav-link {
  color: var(--has-text-secondary);
  font-size: var(--has-text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: var(--has-space-2) var(--has-space-1);
  position: relative;
  transition: color var(--has-transition-fast);
}

.has-nav-link:hover,
.has-nav-link.active {
  color: var(--has-text-primary);
}

.has-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--has-purple-amethyst), var(--has-gold));
  border-radius: var(--has-radius-full);
}

.has-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--has-space-3);
}

.has-portal-link {
  font-size: var(--has-text-xs);
  font-family: var(--has-font-mono);
  color: var(--has-text-muted);
  border: 1px solid var(--has-border-subtle);
  padding: 0.4rem 0.8rem;
  border-radius: var(--has-radius-sm);
  transition: all var(--has-transition-fast);
}

.has-portal-link:hover {
  color: var(--has-gold-signature);
  border-color: var(--has-border-gold);
}

.has-mobile-toggle {
  display: none;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--has-border-medium);
  border-radius: var(--has-radius-md);
  color: var(--has-text-primary);
  padding: var(--has-space-2) var(--has-space-3);
  cursor: pointer;
  transition: all var(--has-transition-fast);
}

.has-mobile-toggle:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--has-purple-amethyst);
}

/* -------------------------------------------------------------------------
 * Section Headers & Utility Typography
 * ------------------------------------------------------------------------- */
.has-section {
  padding-top: var(--has-space-20);
  padding-bottom: var(--has-space-20);
  position: relative;
}

.has-section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto var(--has-space-16) auto;
}

.has-section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--has-space-2);
  font-family: var(--has-font-mono);
  font-size: var(--has-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--has-gold-signature);
  background: var(--has-gold-muted);
  border: 1px solid var(--has-border-gold);
  padding: var(--has-space-1) var(--has-space-4);
  border-radius: var(--has-radius-full);
  margin-bottom: var(--has-space-4);
}

.has-section-title {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  font-weight: 800;
  margin-bottom: var(--has-space-4);
  letter-spacing: -0.03em;
}

.has-section-subtitle {
  font-size: var(--has-text-lg);
  color: var(--has-text-secondary);
  line-height: 1.65;
}

.has-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--has-purple-light) 50%, var(--has-gold-signature) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.has-gradient-text-gold {
  background: linear-gradient(135deg, #ffffff 0%, var(--has-gold-signature) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* -------------------------------------------------------------------------
 * Floating Contact Rail
 * ------------------------------------------------------------------------- */
.has-contact-rail {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}

.has-rail-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--has-bg-elevated);
  border: 1px solid var(--has-border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--has-text-secondary);
  box-shadow: var(--has-shadow-md);
  transition: all var(--has-transition-fast);
  position: relative;
  text-decoration: none;
}

.has-rail-btn:hover {
  color: var(--has-white);
  transform: translateY(-3px) scale(1.08);
  box-shadow: var(--has-shadow-glow);
  border-color: var(--has-purple-amethyst);
}

.has-rail-btn.whatsapp:hover {
  border-color: #25d366;
  color: #25d366;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

.has-rail-btn.discord:hover {
  border-color: #5865f2;
  color: #5865f2;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

.has-rail-btn.email:hover {
  border-color: var(--has-purple-light);
  color: var(--has-purple-light);
  box-shadow: 0 0 20px rgba(144, 92, 246, 0.4);
}

.has-rail-btn.project:hover {
  border-color: var(--has-gold-signature);
  color: var(--has-gold-signature);
  box-shadow: 0 0 20px rgba(242, 193, 78, 0.45);
}

.has-rail-tooltip {
  position: absolute;
  left: 58px;
  background: var(--has-bg-card);
  border: 1px solid var(--has-border-medium);
  color: var(--has-text-primary);
  font-size: var(--has-text-xs);
  font-family: var(--has-font-mono);
  padding: 6px 12px;
  border-radius: var(--has-radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition: all var(--has-transition-fast);
  box-shadow: var(--has-shadow-sm);
}

.has-rail-btn:hover .has-rail-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* -------------------------------------------------------------------------
 * 6-Step Visual Timeline Process
 * ------------------------------------------------------------------------- */
.has-timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--has-space-6);
  position: relative;
}

.has-timeline-card {
  background: var(--has-bg-card);
  border: 1px solid var(--has-border-subtle);
  border-radius: var(--has-radius-lg);
  padding: var(--has-space-6);
  transition: transform var(--has-transition-base), border-color var(--has-transition-base), box-shadow var(--has-transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

.has-timeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--has-border-accent);
  box-shadow: var(--has-shadow-glow);
}

.has-timeline-node-header {
  display: flex;
  align-items: center;
  gap: var(--has-space-4);
  margin-bottom: var(--has-space-4);
}

.has-hex-node {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--has-indigo-midnight), var(--has-onyx-card));
  border: 1.5px solid var(--has-gold-signature);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--has-font-mono);
  font-weight: 800;
  font-size: var(--has-text-sm);
  color: var(--has-gold-signature);
  box-shadow: 0 0 16px rgba(242, 193, 78, 0.25);
  transition: all var(--has-transition-fast);
}

.has-timeline-card:hover .has-hex-node {
  background: var(--has-purple-amethyst);
  color: var(--has-white);
  border-color: var(--has-gold-signature);
  box-shadow: 0 0 20px rgba(107, 48, 217, 0.5);
  transform: scale(1.05);
}

.has-timeline-step-title {
  font-family: var(--has-font-display);
  font-size: var(--has-text-lg);
  font-weight: 700;
  color: var(--has-text-primary);
}

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

/* -------------------------------------------------------------------------
 * Payment Structure Section
 * ------------------------------------------------------------------------- */
.has-payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--has-space-6);
  margin-top: var(--has-space-8);
}

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

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

.has-payment-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(242, 193, 78, 0.15);
  color: var(--has-gold-signature);
  font-family: var(--has-font-mono);
  font-size: var(--has-text-xs);
  font-weight: 700;
  margin-bottom: var(--has-space-3);
}

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

.has-payment-card-desc {
  font-size: var(--has-text-sm);
  color: var(--has-text-secondary);
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------- */
.has-footer {
  background: var(--has-bg-surface);
  border-top: 1px solid var(--has-border-subtle);
  padding-top: var(--has-space-16);
  padding-bottom: var(--has-space-12);
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.has-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1.5fr;
  gap: var(--has-space-8);
  margin-bottom: var(--has-space-12);
}

.has-footer-brand-logo {
  height: 48px;
  width: auto;
  margin-bottom: var(--has-space-3);
}

.has-footer-brand p {
  font-size: var(--has-text-sm);
  max-width: 320px;
  line-height: 1.65;
  color: var(--has-text-secondary);
}

.has-footer-heading {
  font-family: var(--has-font-mono);
  font-size: var(--has-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--has-gold-signature);
  margin-bottom: var(--has-space-4);
}

.has-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--has-space-3);
}

.has-footer-links a {
  color: var(--has-text-secondary);
  font-size: var(--has-text-sm);
  transition: color var(--has-transition-fast);
}

.has-footer-links a:hover {
  color: var(--has-purple-light);
}

.has-footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--has-space-3);
}

.has-footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--has-space-3);
  font-size: var(--has-text-sm);
  color: var(--has-text-secondary);
}

.has-footer-contact-item a {
  color: var(--has-text-secondary);
  transition: color var(--has-transition-fast);
}

.has-footer-contact-item a:hover {
  color: var(--has-gold-signature);
}

.has-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--has-space-8);
  border-top: 1px solid var(--has-border-subtle);
  font-size: var(--has-text-xs);
  color: var(--has-text-muted);
  flex-wrap: wrap;
  gap: var(--has-space-4);
}

.has-footer-meta {
  display: flex;
  gap: var(--has-space-6);
}

