/* ==========================================================================
   HEXARISE DESIGN SYSTEM - RESPONSIVE VANILLA CSS
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-surface: #0a1421;
  --bg-surface-dim: #0a1421;
  --bg-surface-bright: #303a48;
  --bg-container-lowest: #050f1b;
  --bg-container-low: #121c29;
  --bg-container: #16202d;
  --bg-container-high: #212b38;
  --bg-container-highest: #2c3543;
  --bg-card-dark: #1e2329;
  --bg-elevated-dark: #2b3139;

  --primary-yellow: #fcd535;
  --primary-active: #f0b90b;
  --primary-light: #fff4d7;
  --primary-disabled: #3a3a1f;

  --text-on-surface: #d9e3f5;
  --text-variant: #d0c6ad;
  --text-muted: #848e9c;
  --text-ink: #181a20;

  --trading-up: #0ecb81;
  --trading-down: #f6465d;
  --accent-smart: #2dbdb6;

  --hairline-light: #eaecef;
  --outline: #999079;
  --border-dark: #2b3139;

  /* Typography Stacks */
  --font-editorial: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-number: 'IBM Plex Sans', monospace, sans-serif;

  /* Spacing Tokens */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: clamp(48px, 8vw, 80px);

  /* Border Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;
}

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

html {
  font-family: var(--font-editorial);
  background-color: var(--bg-surface);
  color: var(--text-on-surface);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary-yellow);
  color: var(--text-ink);
  padding: 10px 16px;
  z-index: 10000;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Material Icons styling */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Panel */
.glass-panel {
  background: rgba(22, 32, 45, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(234, 236, 239, 0.08);
}

/* Text Gradient */
.text-gradient-gold {
  background: linear-gradient(135deg, #ffe055 0%, #fcd535 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.95));
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes slideAccent {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-yellow);
  color: var(--text-ink);
  font-family: var(--font-editorial);
  font-weight: 600;
  font-size: 14px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(252, 213, 53, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-active);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(252, 213, 53, 0.35);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-yellow);
  font-family: var(--font-editorial);
  font-weight: 600;
  font-size: 14px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--primary-yellow);
  color: #ffffff;
  background: rgba(252, 213, 53, 0.05);
}

.btn-secondary:active {
  transform: scale(0.97);
}

/* Layout Wrapper */
.app-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  position: relative;
  z-index: 2;
}

/* Header Design */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease, border-bottom 0.3s ease;
}

.header.glass-panel {
  background: rgba(10, 20, 33, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 1001;
}

.brand-logo svg {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(252, 213, 53, 0.3));
}

.brand-title {
  font-family: var(--font-editorial);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.brand-title span {
  color: var(--primary-yellow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.nav-link {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-yellow);
  background: rgba(252, 213, 53, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Nav Cart Button */
.nav-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  color: var(--primary-yellow);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-cart-btn:hover {
  border-color: var(--primary-yellow);
  background: var(--bg-elevated-dark);
  transform: translateY(-1px);
}

.nav-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary-yellow);
  color: #0a1421;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Profile Dropdown Component */
.nav-profile-wrapper {
  position: relative;
  z-index: 9999;
}

.nav-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border-radius: var(--radius-full);
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-profile-btn:hover {
  border-color: var(--primary-yellow);
  background: var(--bg-elevated-dark);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #fcd535 0%, #e0b400 100%);
  color: #0a1421;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.dropdown-arrow {
  font-size: 18px;
  color: var(--text-variant);
  transition: transform 0.2s ease;
}

.nav-profile-wrapper.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Profile Dropdown Menu */
.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: #0a1421 !important;
  border: 1px solid rgba(252, 213, 53, 0.3);
  border-radius: var(--radius-xl);
  padding: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(252, 213, 53, 0.15);
  display: none;
  flex-direction: column;
  z-index: 99999;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-profile-wrapper.active .profile-dropdown-menu {
  display: flex;
}

.profile-menu-header {
  padding: 4px 8px 10px 8px;
}

.user-display-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
  text-transform: capitalize;
}

.user-display-email {
  font-size: 12px;
  color: var(--text-variant);
  word-break: break-all;
}

.menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.profile-menu-item:hover {
  background: rgba(252, 213, 53, 0.12);
  color: var(--primary-yellow);
}

.profile-menu-item.text-danger {
  color: #ff4d6d;
}

.profile-menu-item.text-danger:hover {
  background: rgba(255, 77, 109, 0.15);
  color: #ff6b87;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: var(--space-xxl);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 660px;
  text-align: left;
}

/* Hero Content Shadows & Glass Backdrop Overlay */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(10, 20, 33, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(252, 213, 53, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
  margin-bottom: var(--space-md);
}

.badge-tag span {
  color: var(--primary-yellow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.hero-headline {
  font-family: var(--font-editorial);
  font-size: clamp(32px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: var(--space-md);
  text-shadow: none;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.95));
}

.hero-headline .sub-text {
  font-weight: 400;
  font-style: italic;
  opacity: 0.95;
  text-shadow: none;
}

.hero-description {
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.65;
  color: #e2e8f0;
  max-width: 600px;
  margin-bottom: var(--space-xl);
  background: rgba(10, 20, 33, 0.72);
  padding: 20px 24px;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-shadow: none;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-bar-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(252, 213, 53, 0.15);
  overflow: hidden;
}

.hero-bar-inner {
  height: 100%;
  width: 33%;
  background: var(--primary-yellow);
  animation: slideAccent 3s infinite ease-in-out;
}

/* Feature Cards Section */
.section {
  padding: var(--space-section) 0;
  position: relative;
  z-index: 2;
}

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

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-variant);
  line-height: 1.6;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.card {
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 4vw, 32px);
  transition: all 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(252, 213, 53, 0.4);
  background-color: var(--bg-elevated-dark);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(252, 213, 53, 0.1);
  color: var(--primary-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: #ffffff;
}

.card-text {
  font-size: 14px;
  color: var(--text-variant);
  line-height: 1.6;
}

/* Contact Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 27, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-container);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(20px, 5vw, 32px);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #ffffff;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-on-surface);
  margin-bottom: var(--space-xxs);
}

.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #ffffff;
  font-family: var(--font-editorial);
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 2px rgba(252, 213, 53, 0.2);
}

/* Workflow Flow Section & Animated Lines/Dots */
.workflow-flow-section {
  position: relative;
}

.workflow-timeline-wrapper {
  position: relative;
}

/* Connecting Glowing Animated Line */
.flow-connecting-line {
  position: absolute;
  top: 76px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, 
    rgba(252, 213, 53, 0.2) 0%, 
    rgba(16, 185, 129, 0.2) 33%, 
    rgba(59, 130, 246, 0.2) 66%, 
    rgba(236, 72, 153, 0.2) 100%
  );
  border-radius: 9999px;
  z-index: 1;
}

.flow-glowing-pulse {
  position: absolute;
  top: -3px;
  left: 0;
  width: 90px;
  height: 9px;
  background: linear-gradient(90deg, rgba(252, 213, 53, 0) 0%, #fcd535 50%, rgba(252, 213, 53, 0) 100%);
  border-radius: 9999px;
  filter: drop-shadow(0 0 10px #fcd535);
  animation: flowPulseLine 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes flowPulseLine {
  0% {
    left: 0%;
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: 90%;
    opacity: 0.2;
  }
}

/* Pulsing Dots on Node Icons */
.pulsing-node-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-yellow);
  box-shadow: 0 0 12px var(--primary-yellow);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
}

.step-badge-number {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 1px;
}

.workflow-step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(252, 213, 53, 0.4) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(252, 213, 53, 0.1);
}

.step-mini-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-yellow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.step-mini-cta:hover {
  transform: translateX(4px);
}

@media (max-width: 992px) {
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .flow-connecting-line {
    display: none;
  }
}

@media (max-width: 640px) {
  .workflow-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .workflow-flow-section {
    padding: 40px 0 !important;
  }

  .workflow-step-card {
    padding: 20px 16px !important;
  }
}

/* Footer */
.footer {
  background: #fafafa;
  color: var(--text-ink);
  padding: var(--space-xxl) 0 var(--space-xl) 0;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  font-size: 14px;
  color: #44474b;
  margin-top: var(--space-sm);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--hairline-light);
  padding-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #554500;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-dark);
  color: #ffffff;
  padding: 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  z-index: 1002;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  border-color: var(--primary-yellow);
  color: var(--primary-yellow);
}

.mobile-nav-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 20, 33, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(252, 213, 53, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.mobile-nav-link span.material-symbols-outlined {
  color: var(--primary-yellow);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: rgba(252, 213, 53, 0.12);
  border-color: rgba(252, 213, 53, 0.3);
  color: var(--primary-yellow);
}

.mobile-nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.mobile-btn-full {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 14px;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .desktop-nav {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
  }

  .header .nav-actions .btn-primary {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 16px;
    height: 68px;
  }

  .hero-section {
    padding-top: 100px;
    min-height: auto;
  }

  .hero-headline {
    font-size: clamp(28px, 7vw, 42px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
  }
}
