/* Hushhh Static Web Styles — Aligned with lib/config/theme.dart */
:root {
  --bg-primary: #0A0E17;
  --bg-secondary: #111827;
  --bg-card: rgba(20, 27, 45, 0.85);
  --bg-card-hover: rgba(30, 40, 65, 0.92);
  --bg-glass: rgba(255, 255, 255, 0.04);

  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-accent: #67E8F9;

  --cyan: #67E8F9;
  --blue: #4A9EFF;
  --purple: #A855F7;
  --pink: #EC4899;
  --orange: #F97316;
  --amber: #FBBF24;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(103, 232, 249, 0.30);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  font-family: 'Assistant', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Language Visibility Rules (Default EN visible with zero JS) */
html:not([data-active-lang="he"]) [data-lang="he"],
html[data-active-lang="he"] [data-lang="en"] {
  display: none !important;
}

.flex-lang {
  display: flex;
}

.grid-lang {
  display: grid;
}

/* Fixed Ambient Geo-Acoustic Background */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(103, 232, 249, 0.13) 0%, rgba(74, 158, 255, 0.06) 30%, transparent 60%),
    radial-gradient(circle at 82% 75%, rgba(168, 85, 247, 0.14) 0%, rgba(236, 72, 153, 0.07) 34%, transparent 65%),
    var(--bg-primary);
}

.radar-ring {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(103, 232, 249, 0.07);
}

.radar-ring.r1 {
  width: 460px;
  height: 460px;
}

.radar-ring.r2 {
  width: 780px;
  height: 780px;
  top: -40px;
  border-color: rgba(74, 158, 255, 0.05);
}

.radar-ring.r3 {
  width: 1120px;
  height: 1120px;
  top: -210px;
  border-color: rgba(168, 85, 247, 0.04);
}

/* Sticky Top Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 23, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1020px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-lockup {
  height: 56px;
  width: auto;
  display: block;
  margin-inline-start: -10px;
  filter: drop-shadow(0 2px 10px rgba(103, 232, 249, 0.15));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  margin-inline-start: auto;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--cyan);
  background: rgba(103, 232, 249, 0.10);
  border-color: var(--border-accent);
}

/* EN | HE Pill Toggle (Matching TutorialPopup) */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  direction: ltr;
  flex-shrink: 0;
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.56);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  color: var(--cyan);
  background: rgba(103, 232, 249, 0.14);
}

.lang-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.22);
  margin: 0 2px;
}

/* Sticky App Download Sub-Bar */
.store-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(13, 19, 34, 0.72);
}

.store-bar-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.store-apple {
  color: #FFFFFF;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.22), rgba(168, 85, 247, 0.22));
  border: 1px solid rgba(103, 232, 249, 0.45);
  box-shadow: 0 0 16px rgba(103, 232, 249, 0.14);
}

.store-apple:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
  box-shadow: 0 4px 20px rgba(103, 232, 249, 0.26);
}

.store-google {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: default;
  user-select: none;
}

.store-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.soon-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--amber);
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

/* Main Content Container */
.page-main {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 42px 24px 64px;
}

/* Hero Section (index.html) */
.hero {
  text-align: center;
  padding: 20px 12px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.hero-icon-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.28) 0%, rgba(168, 85, 247, 0.14) 55%, transparent 75%);
  filter: blur(18px);
}

.hero-icon {
  position: relative;
  z-index: 1;
  height: 128px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
}

.hero-wordmark-crop {
  height: 62px;
  width: 248px;
  overflow: hidden;
  margin-bottom: 16px;
}

.hero-wordmark-img {
  width: 248px;
  height: auto;
  display: block;
  margin-top: -48px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(20, 27, 45, 0.8);
  border: 1px solid var(--border-accent);
  box-shadow: 0 0 24px rgba(103, 232, 249, 0.14);
  margin-bottom: 20px;
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.badge-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.4px;
}

.hero-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #FFFFFF 15%, #E2E8F0 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 660px;
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--pink));
  box-shadow: 0 6px 22px rgba(74, 158, 255, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(168, 85, 247, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

/* Section Headers */
.section-heading {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--purple));
}

/* Numbered Vertical Step Timeline (4 Steps) */
.steps-timeline {
  list-style: none;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 48px;
}

.steps-timeline::before {
  content: '';
  position: absolute;
  inset-inline-start: 8px;
  top: 36px;
  bottom: 36px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue), var(--purple), var(--pink));
  opacity: 0.45;
  z-index: 1;
}

.step-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step-dot {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #0D1322;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 14px rgba(103, 232, 249, 0.55);
  margin-top: 28px;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tutorial-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-item .tutorial-card {
  flex: 1;
}

.tutorial-card h3 {
  font-size: 21px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
}

.tutorial-card p {
  font-size: 15px;
  color: var(--text-secondary);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  position: relative;
  padding-inline-start: 18px;
  font-size: 15px;
  color: rgba(241, 245, 249, 0.88);
}

.feature-list li::before {
  content: '•';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: var(--cyan);
  font-weight: 900;
}

.note-muted {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* Quick Legal & Support Cards Grid */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 22px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.quick-link-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.quick-link-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--cyan);
}

.quick-link-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Legal Document Pages (privacy.html, terms.html, child-safety.html) */
.doc-header {
  margin-bottom: 28px;
}

.doc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.doc-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #FFFFFF 25%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.doc-meta {
  font-size: 14.5px;
  color: var(--text-secondary);
}

.doc-meta a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-meta a:hover {
  color: #FFFFFF;
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.doc-section {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border-subtle);
}

.doc-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.doc-section h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 10px;
}

.doc-section p {
  font-size: 15.5px;
  color: rgba(241, 245, 249, 0.86);
  margin-bottom: 10px;
}

.doc-section p:last-child {
  margin-bottom: 0;
}

.doc-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.doc-section li {
  position: relative;
  padding-inline-start: 18px;
  font-size: 15.5px;
  color: rgba(241, 245, 249, 0.86);
}

.doc-section li::before {
  content: '•';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: var(--cyan);
  font-weight: 900;
}

.doc-section a,
.callout-box a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-section a:hover,
.callout-box a:hover {
  color: #FFFFFF;
}

.callout-box {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 18px;
  background: rgba(103, 232, 249, 0.08);
  border: 1px solid var(--border-accent);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.callout-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.callout-text {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 14, 23, 0.88);
  padding: 28px 24px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--cyan);
}

/* Responsive Adjustments */
@media (max-width: 760px) {
  .nav-inner {
    height: 58px;
    padding: 0 14px;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .brand-lockup {
    height: 48px;
    margin-inline-start: -8px;
  }

  .lang-toggle {
    padding: 3px;
  }

  .lang-btn {
    padding: 4px 8px;
    font-size: 11.5px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4.5px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    flex-shrink: 0;
  }

  .menu-bar {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-primary);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-header.menu-open .menu-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .site-header.menu-open .menu-bar:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .menu-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .nav-links {
    display: none;
    margin-inline-start: 0;
  }

  .site-header.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px 16px 16px;
    background: rgba(10, 14, 23, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-accent);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  }

  .site-header.menu-open .nav-link {
    display: block;
    padding: 11px 14px;
    font-size: 15px;
    border-radius: 12px;
  }

  .page-main {
    padding: 24px 16px 44px;
  }

  .hero {
    padding: 12px 4px 32px;
  }

  .steps-timeline::before {
    inset-inline-start: 6px;
    top: 30px;
    bottom: 30px;
  }

  .step-item {
    gap: 14px;
  }

  .step-dot {
    width: 14px;
    height: 14px;
    border-width: 2.5px;
    margin-top: 24px;
  }

  .quick-links-grid {
    grid-template-columns: 1fr;
  }

  .doc-card {
    padding: 22px 18px;
  }

  .store-bar-inner {
    padding: 6px 12px;
    gap: 8px;
  }

  .store-btn {
    padding: 5px 11px;
    font-size: 12px;
    gap: 6px;
  }

  .soon-badge {
    padding: 2px 7px;
    font-size: 10.5px;
  }
}

@media (max-width: 480px) {
  .store-prefix {
    display: none;
  }
}
