/* HueStack custom styles (no emoji, minimal + macOS feel) */

:root {
  --hs-bg: #0b1020;
  --hs-card: rgba(255, 255, 255, 0.06);
  --hs-border: rgba(255, 255, 255, 0.12);
  --hs-text: rgba(255, 255, 255, 0.92);
  --hs-muted: rgba(255, 255, 255, 0.68);
  --hs-accent-1: #7c3aed;
  --hs-accent-2: #06b6d4;
  --hs-accent-3: #f59e0b;
}

body {
  background: radial-gradient(1200px 800px at 20% -10%, rgba(124, 58, 237, 0.25), transparent 55%),
              radial-gradient(1000px 700px at 85% 10%, rgba(6, 182, 212, 0.20), transparent 50%),
              radial-gradient(900px 700px at 60% 95%, rgba(245, 158, 11, 0.12), transparent 45%),
              var(--hs-bg);
  color: var(--hs-text);
}

.header {
  background: rgba(11, 16, 32, 0.72) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
  backdrop-filter: blur(14px);
}

.nav-brand a,
.nav-brand a:visited,
.nav-brand a h1,
.header .nav h1 {
  color: var(--hs-text) !important;
}

.header .nav-menu .nav-link,
.header .nav-menu .nav-link:visited,
.header .nav-dropdown > .nav-link {
  color: rgba(255, 255, 255, 0.90) !important;
}

.header .nav-menu .nav-link:hover {
  color: rgba(255, 255, 255, 0.98) !important;
}

.header .nav-menu .nav-link.active {
  color: rgba(255, 255, 255, 0.98) !important;
}

.mobile-menu-toggle .hamburger-line,
.navbar .mobile-menu-toggle span {
  background: rgba(255, 255, 255, 0.85) !important;
}

.header .nav h1,
.nav-link,
.nav-link:visited {
  color: var(--hs-text);
}

.nav-dropdown .dropdown-content {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.nav-dropdown .dropdown-content a {
  color: rgba(255, 255, 255, 0.85);
}

.nav-dropdown .dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.footer.hs-footer {
  background: linear-gradient(
    180deg,
    rgba(11, 16, 32, 0.65) 0%,
    rgba(11, 16, 32, 0.92) 55%,
    rgba(11, 16, 32, 0.98) 100%
  ) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer.hs-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.footer.hs-footer .footer-links a {
  color: rgba(255, 255, 255, 0.86) !important;
}

.footer.hs-footer .footer-links a:hover {
  color: rgba(255, 255, 255, 0.98) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer.hs-footer .footer-bottom p {
  color: rgba(255, 255, 255, 0.70) !important;
}

.hs-hero {
  padding: 120px 0 70px;
}

.hs-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hs-app {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.hs-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hs-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hs-title {
  margin: 0 0 8px 0;
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hs-subtitle {
  margin: 0 0 14px 0;
  font-size: 1.1rem;
  color: var(--hs-muted);
}

.hs-description {
  margin: 0 0 18px 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  max-width: 62ch;
}

.hs-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}

.hs-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
}

.hs-btn-primary {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(6, 182, 212, 0.85));
  color: rgba(255, 255, 255, 0.95);
}

.hs-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.90);
}

.hs-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.80);
  font-size: 0.9rem;
}

.hs-visual {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.hs-swatch-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.hs-swatch {
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.hs-swatch.small {
  height: 38px;
}

.hs-section {
  padding: 70px 0;
}

.hs-section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
}

.hs-section-subtitle {
  margin: 0 0 26px 0;
  color: var(--hs-muted);
  max-width: 70ch;
  line-height: 1.7;
}

.hs-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hs-card {
  background: var(--hs-card);
  border: 1px solid var(--hs-border);
  border-radius: 16px;
  padding: 18px;
}

.hs-card h3 {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.hs-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.hs-card .hs-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 12px;
}

.hs-card svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.86);
}

.hs-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hs-info {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 18px;
}

.hs-info h3 {
  margin: 0 0 10px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.hs-info ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.8;
}

.hs-cta {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.20), rgba(6, 182, 212, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.hs-cta h2 {
  margin: 0 0 8px 0;
  font-size: 1.7rem;
  font-weight: 800;
}

.hs-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
  max-width: 70ch;
}

.hs-footer a {
  color: rgba(255, 255, 255, 0.88);
}

/* Fix: mobile menu background was white (from global styles.css),
   making links unreadable on HueStack dark theme. */
@media (max-width: 768px) {
  .header .nav-menu {
    background: rgba(11, 16, 32, 0.96) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45) !important;
  }
}

@media (max-width: 980px) {
  .hs-hero-grid {
    grid-template-columns: 1fr;
  }
  .hs-cards {
    grid-template-columns: 1fr;
  }
  .hs-info-grid {
    grid-template-columns: 1fr;
  }
  .hs-swatch-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .hs-title {
    font-size: 2.4rem;
  }
  .hs-hero {
    padding-top: 110px;
  }
}

