/* Harmonized Trades site responsive styles (mobile-first) */

:root {
  --bg-top: #0b1320;
  --bg-bottom: #0e172a;
  --bg: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #4ff9a2;
  --card: #111827;
  --border: #1f2937;
  --max: 1200px;
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light dark;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  min-width: 320px;
}

.ht-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 72px 16px 24px;
}

/* Fixed top bar */
.ht-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  backdrop-filter: saturate(150%) blur(6px);
  background: linear-gradient(180deg, rgba(11, 19, 32, .92) 0%, rgba(14, 23, 42, .72) 100%);
  border-bottom: 1px solid var(--border);
  z-index: 50;
  min-height: 48px;
}
.ht-topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ht-brand { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  color: var(--text); 
  text-decoration: none; 
  font-weight: 600;
  flex-shrink: 0;
  min-width: 0;
}
.ht-brand-logo { 
  border-radius: 8px; 
  flex-shrink: 0;
}
.ht-brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ht-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ht-nav { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}
.ht-nav-link { 
  color: var(--muted); 
  text-decoration: none; 
  font-size: 14px; 
  white-space: nowrap;
}
.ht-login-btn {
  flex-shrink: 0;
}
.ht-cta { color: #0b1320; background: var(--accent); border-radius: 10px; padding: 10px 20px; text-decoration: none; font-weight: 700; font-size: 15px; }
.ht-cta-secondary { color: var(--accent); border: 1px solid var(--accent); border-radius: 10px; padding: 10px 20px; text-decoration: none; font-weight: 600; font-size: 15px; }
.ht-cta:hover { filter: brightness(0.95); box-shadow: 0 6px 18px rgba(79, 249, 162, .15); }
.ht-cta-secondary:hover { background: rgba(79, 249, 162, .08); }
.ht-cta.is-selected, .ht-cta:active { outline: 2px solid var(--accent); outline-offset: 2px; }
.ht-cta-secondary.is-selected, .ht-cta-secondary:active { background: rgba(79, 249, 162, .12); box-shadow: 0 0 0 1px var(--accent) inset; }

/* Mobile menu toggle (hamburger) */
.ht-menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.ht-menu-label {
  display: none;
  cursor: pointer;
  padding: 8px;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.ht-menu-icon {
  display: block;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu container */
.ht-mobile-menu {
  display: none;
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(11, 19, 32, .98) 0%, rgba(14, 23, 42, .95) 100%);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  flex-direction: column;
  gap: 12px;
  z-index: 49;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

@media (max-width: 599px) {
  .ht-menu-toggle:checked ~ .ht-nav .ht-mobile-menu {
    display: flex;
    max-height: 400px;
    padding: 16px;
    animation: ht-slideDown 0.3s ease-out;
  }
}

.ht-mobile-menu .ht-nav-link {
  padding: 10px 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ht-mobile-menu .ht-nav-link:hover {
  background-color: rgba(79, 249, 162, .1);
  color: var(--accent);
}

/* Mobile: Show hamburger menu, hide inline nav links */
@media (max-width: 599px) {
  .ht-menu-label {
    display: block;
  }
  .ht-mobile-menu {
    display: none;
  }
  .ht-nav {
    gap: 0;
  }
  .ht-brand-text {
    font-size: 14px;
  }
  .ht-login-btn {
    font-size: 13px;
    padding: 6px 10px;
  }
}

@keyframes ht-slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[id] {
  scroll-margin-top: 72px;
}

.ht-hero {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0 0;
}
.ht-hero-grid { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; }
.ht-hero-text { order: 2; }
.ht-hero-media { order: 1; display: flex; justify-content: center; }
.ht-hero-logo { width: 120px; height: 120px; border-radius: 20px; box-shadow: 0 0 40px rgba(79, 249, 162, .15); }
.ht-cta-row { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }

.ht-tour {
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}
.ht-tour-play,
.ht-tour iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 16px;
  background: #0b1320;
  overflow: hidden;
}
.ht-tour-play {
  position: relative;
  padding: 0;
  cursor: pointer;
}
.ht-tour-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ht-tour-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: rgba(11, 19, 32, 0.72);
  border: 2px solid var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.ht-tour-play-icon::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 21px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--accent);
}
.ht-tour-play:hover .ht-tour-play-icon,
.ht-tour-play:focus-visible .ht-tour-play-icon {
  background: rgba(11, 19, 32, 0.88);
}
.ht-tour-play:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.ht-logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
}

.ht-title {
  margin: 12px 0 10px;
  font-size: clamp(28px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--accent);
  text-shadow: 0 0 30px rgba(79, 249, 162, .3);
}

.ht-subtitle {
  margin: 0 auto;
  max-width: 720px;
  color: var(--text);
  font-size: clamp(18px, 3.5vw, 26px);
  font-weight: 600;
  line-height: 1.4;
}

.ht-subtitle-secondary {
  margin: 12px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(14px, 2.5vw, 17px);
  line-height: 1.5;
}

.ht-accuracy {
  margin: 16px auto 0;
  max-width: 640px;
  color: var(--accent);
  font-size: clamp(16px, 2.8vw, 20px);
  font-weight: 700;
  letter-spacing: .2px;
}

.ht-plan-lead {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.ht-webapp-lead {
  margin: 0 auto 20px;
  max-width: 640px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.ht-webapp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.ht-webapp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.ht-webapp-card .ht-h3 {
  margin-bottom: 8px;
  color: var(--accent);
}

.ht-webapp-shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 960px;
  margin: 20px auto 0;
}

.ht-webapp-shot {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.ht-webapp-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--border);
  background: #0b1320;
}

.ht-webapp-shot figcaption {
  padding: 14px 16px 16px;
}

.ht-webapp-shot .ht-h3 {
  margin-bottom: 6px;
}

.ht-webapp-cta {
  margin: 24px 0 0;
  text-align: center;
}

.ht-sync-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.ht-sync-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.ht-sync-card .ht-h3 {
  margin-bottom: 8px;
  color: var(--accent);
}

.ht-sync-body {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.ht-sync-security {
  max-width: 720px;
  margin: 18px auto 0;
  text-align: center;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.ht-section {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.ht-h2 {
  text-align: center;
  margin: 0 0 20px;
  font-size: clamp(22px, 5vw, 32px);
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 20px rgba(79, 249, 162, .15);
}

.ht-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ht-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.ht-card-accent {
  box-shadow: 0 0 0 1px var(--accent) inset, 0 6px 30px rgba(79, 249, 162, .08);
}

.ht-card:hover,
.ht-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset, 0 10px 40px rgba(79, 249, 162, .12);
  transform: translateY(-2px);
}

.ht-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.ht-h3 { margin: 0; font-size: 18px; }
.ht-price { color: var(--accent); font-weight: 700; }

.ht-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  color: var(--muted);
}

.ht-li {
  display: grid;
  grid-template-columns: 10px 1fr;
  align-items: start;
  gap: 8px;
  margin: 6px 0;
}

.ht-dot { width: 6px; height: 6px; border-radius: 6px; margin-top: 8px; background: var(--accent); display: inline-block; }

.ht-tiers {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ht-tier {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.ht-tier-accent {
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.ht-tier:hover,
.ht-tier:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset, 0 10px 40px rgba(79, 249, 162, .12);
  transform: translateY(-2px);
}

.ht-muted { color: var(--muted); font-size: 12px; }

.ht-footer {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.ht-disclaimer {
  max-width: 720px;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.ht-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Download badges */
.ht-download { margin-top: 8px; }
.ht-download-inner { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ht-store-link { display: inline-flex; }
.ht-store-badge { display: block; height: 46px; }

.ht-link { color: var(--muted); text-decoration: none; }
.ht-sep { opacity: .4; margin: 0 8px; }

/* Benefits section */
.ht-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}

.ht-benefit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.ht-benefit-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(79, 249, 162, .08);
  transform: translateY(-2px);
}

.ht-benefit-icon {
  font-size: 32px;
  margin-bottom: 10px;
  line-height: 1;
}

.ht-benefit-title {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--accent);
  font-weight: 600;
}

.ht-benefit-desc {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.ht-benefit-img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Tablets */
@media (min-width: 600px) {
  .ht-main { padding: 76px 24px 32px; gap: 48px; }
  .ht-topbar-inner { padding: 8px 16px; }
  .ht-menu-label { display: none !important; }
  .ht-mobile-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    padding: 0;
    max-height: none;
    gap: 10px;
  }
  .ht-menu-toggle:checked ~ .ht-nav .ht-mobile-menu {
    max-height: none;
    padding: 0;
    animation: none;
  }
  .ht-mobile-menu .ht-nav-link {
    padding: 0;
  }
  .ht-mobile-menu .ht-nav-link:hover {
    background-color: transparent;
  }
  .ht-nav { display: inline-flex; gap: 10px; }
  .ht-hero { padding: 24px 0 0; }
  .ht-hero-grid { grid-template-columns: 1.1fr .9fr; text-align: left; gap: 16px; }
  .ht-hero-text { order: 1; }
  .ht-hero-media { order: 2; justify-content: end; }
  .ht-hero-logo { width: 160px; height: 160px; }
  .ht-cta-row { justify-content: flex-start; }
  .ht-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .ht-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 960px; }

  .ht-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .ht-webapp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .ht-sync-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .ht-benefit-img {
    max-width: 200px;
  }
}

/* Desktops */
@media (min-width: 1024px) {
  .ht-main { padding: 80px 32px 40px; gap: 56px; }
  .ht-topbar-inner { padding: 8px; }
  .ht-hero { padding: 32px 0 0; }
  .ht-hero-logo { width: 180px; height: 180px; }
  .ht-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 960px; margin: 0 auto; }
  .ht-card { padding: 16px; }
  .ht-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 960px; }

  .ht-benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .ht-webapp-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .ht-sync-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .ht-sync-card-wide {
    grid-column: 1 / -1;
  }

  .ht-benefit-img {
    max-width: 220px;
  }
}


