/* ============================================================
   HARTS DIGITAL HUB — style.css
   Black & white theme | Syne + DM Mono
   ============================================================ */

:root {
  --bg:       #000;
  --surface:  #111;
  --card-bg:  #141414;
  --border:   #222;
  --text:     #fff;
  --muted:    #666;
  --radius:   1rem;
  --shadow:   0 4px 24px 0 rgba(0,0,0,0.4);
}

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

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

body {
  font-family: 'DM Mono', monospace;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Accessibility ────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: #000;
  padding: 0.7em 1.5em;
  border-radius: 999px;
  font-weight: 700;
  z-index: 9999;
  font-family: 'Syne', sans-serif;
  transition: left 0.2s;
}
.skip-link:focus { left: 16px; outline: 2px solid #fff; }
main:focus { outline: none; }

/* ── Navigation ───────────────────────────────────────────── */
.main-nav {
  width: 100%;
  background: #000;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1500;
}
.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-link {
  display: block;
  color: var(--muted);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1rem 1.25rem;
  transition: color 0.18s;
}
.nav-link:hover,
.nav-link:focus {
  color: #fff;
  outline: none;
}
.nav-link-cta {
  color: #fff;
  border: 1px solid #fff;
  border-radius: 999px;
  margin-left: 1rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.88rem;
  transition: background 0.18s, color 0.18s;
}
.nav-link-cta:hover,
.nav-link-cta:focus {
  background: #fff;
  color: #000;
}
@media (max-width: 700px) {
  .nav-list { gap: 0; flex-wrap: wrap; justify-content: center; padding: 0.25rem 0; }
  .nav-link { font-size: 0.78rem; padding: 0.65rem 0.65rem; }
  .nav-link-cta { margin-left: 0.5rem; }
}

/* ── Section Base ─────────────────────────────────────────── */
.section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 0 24px;
}
@media (max-width: 600px) {
  .section { padding: 48px 16px 0 16px; }
}

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3rem;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -2px;
}
.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 600px) {
  .stats-bar { gap: 2rem; }
  .stat-number { font-size: 2.2rem; }
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.testimonials-row::-webkit-scrollbar { display: none; }

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 300px;
  max-width: 340px;
  flex: 0 0 auto;
  padding: 2rem 1.5rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-quote {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #ccc;
  flex: 1;
}
.testimonial-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.testimonial-city {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 2px 10px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}
@media (max-width: 600px) {
  .testimonial-card { min-width: 80vw; }
}

/* ── Free Audit Banner ────────────────────────────────────── */
.free-audit-section { padding-top: 72px; }

.free-audit-banner {
  background: #fff;
  color: #000;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
}
.free-audit-headline {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.free-audit-sub {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.free-audit-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  max-width: 440px;
  margin: 0 auto 1rem auto;
  flex-wrap: wrap;
}
.free-audit-form input {
  flex: 1 1 220px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid #000;
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  color: #000;
  background: #fff;
  outline: none;
  transition: box-shadow 0.2s;
}
.free-audit-form input:focus {
  box-shadow: 0 0 0 3px rgba(0,0,0,0.15);
}
.audit-btn {
  background: #000;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  border: 1.5px solid #000;
  border-radius: 999px;
  padding: 0.8rem 1.75rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  outline: none;
  white-space: nowrap;
}
.audit-btn:hover,
.audit-btn:focus {
  background: #fff;
  color: #000;
  transform: scale(1.03);
}
.free-audit-success {
  font-family: 'DM Mono', monospace;
  color: #000;
  background: #f0f0f0;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  margin: 0 auto;
  display: inline-block;
}
@media (max-width: 600px) {
  .free-audit-headline { font-size: 1.5rem; }
  .free-audit-banner { padding: 2rem 1rem; }
}

/* ── Pricing Section ──────────────────────────────────────── */
.pricing-section { padding-top: 72px; }

.pricing-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.pricing-title-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.pricing-title {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* Language toggle */
.pricing-lang-switch { display: flex; gap: 0.35rem; }
.lang-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  outline: none;
}
.lang-btn[aria-pressed="true"],
.lang-btn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.lang-btn:hover { border-color: #fff; color: #fff; }

/* Cards row */
.pricing-cards-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: stretch;
}

/* Default card — white border on black */
.pricing-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  min-width: 280px;
  max-width: 340px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  outline: none;
  transition: border-color 0.2s, transform 0.2s;
  margin-bottom: 1.5rem;
  position: relative;
}
.pricing-card:hover,
.pricing-card:focus {
  border-color: #fff;
  transform: translateY(-4px);
}

/* GROWTH — inverted: white card, black text */
.pricing-card-popular {
  background: #fff;
  border: 2px solid #fff;
  transform: translateY(-8px);
  z-index: 2;
}
.pricing-card-popular:hover,
.pricing-card-popular:focus {
  transform: translateY(-12px);
}
.pricing-card-popular .pricing-card-name,
.pricing-card-popular .pricing-card-price,
.pricing-card-popular .pricing-card-setup,
.pricing-card-popular .pricing-card-month,
.pricing-card-popular .pricing-card-features li {
  color: #000 !important;
}
.pricing-card-popular .pricing-card-setup,
.pricing-card-popular .pricing-card-month {
  color: #555 !important;
}
.pricing-card-popular .checkmark::before {
  background-image: url('data:image/svg+xml;utf8,<svg fill="none" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="10" fill="%23000"/><path d="M6 10.5l2.5 2.5 5-5" stroke="white" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}
.pricing-card-popular .pricing-cta {
  background: #000;
  color: #fff;
  border: 1.5px solid #000;
}
.pricing-card-popular .pricing-cta:hover,
.pricing-card-popular .pricing-cta:focus {
  background: #fff;
  color: #000;
  border-color: #000;
}
.pricing-card-popular .pricing-wa-link {
  color: #000;
}
.pricing-card-popular .pricing-wa-link:hover,
.pricing-card-popular .pricing-wa-link:focus {
  background: #000;
  color: #fff;
}

/* Card inner */
.pricing-card-inner {
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pricing-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.pricing-card-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.pricing-badge {
  font-family: 'DM Mono', monospace;
  background: #000;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid #000;
  padding: 0.2em 0.9em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pricing-card-popular .pricing-badge {
  background: #000;
  color: #fff;
  border-color: #000;
}
.pricing-card-fees {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}
.pricing-card-setup {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-family: 'DM Mono', monospace;
  font-size: 2rem;
  font-weight: 500;
  color: #fff;
}
.pricing-card-month {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
}

/* Features list */
.pricing-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex: 1;
}
.pricing-card-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 0.65rem;
  line-height: 1.4;
}
.pricing-card-popular .pricing-card-features li { color: #333; }

/* Checkmark icon */
.checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.checkmark::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg fill="none" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="10" fill="%23fff"/><path d="M6 10.5l2.5 2.5 5-5" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
}

/* CTA buttons */
.pricing-cta {
  display: block;
  width: 100%;
  background: #fff;
  color: #000;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  border: 1.5px solid #fff;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 0.75rem;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  outline: none;
  text-align: center;
}
.pricing-cta:hover,
.pricing-cta:focus {
  background: transparent;
  color: #fff;
  transform: scale(1.02);
}

/* WhatsApp link */
.pricing-wa-link {
  display: block;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.88rem;
  text-align: center;
  text-decoration: none;
  padding: 0.5em 0;
  border-radius: 999px;
  transition: color 0.18s, background 0.18s;
}
.pricing-wa-link:hover,
.pricing-wa-link:focus {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .pricing-cards-row { flex-direction: column; align-items: center; }
  .pricing-card,
  .pricing-card-popular {
    min-width: 90vw;
    max-width: 98vw;
    transform: none !important;
    margin-bottom: 1.5rem;
  }
}

/* ── Pricing Modal ────────────────────────────────────────── */
.pricing-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.pricing-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.pricing-modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 96vw;
  position: relative;
  outline: none;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.28s cubic-bezier(.4,1.5,.6,1) both;
}
@keyframes modalIn {
  0%   { transform: translateY(32px) scale(0.97); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #999;
  cursor: pointer;
  transition: color 0.18s;
  line-height: 1;
}
.modal-close:hover,
.modal-close:focus { color: #000; }
.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1.5rem;
  text-align: center;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.modal-field label {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.modal-field input[type="text"],
.modal-field input[type="tel"] {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1.5px solid #ddd;
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  color: #000;
  background: #fafafa;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.modal-field input:focus {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
.modal-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.25rem;
}
.modal-payments label {
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  color: #000;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.modal-payments input[type="radio"] { margin-right: 0.35em; accent-color: #000; }
.modal-send {
  background: #000;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  border: 1.5px solid #000;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  outline: none;
}
.modal-send:hover,
.modal-send:focus {
  background: #fff;
  color: #000;
  transform: scale(1.02);
}
.modal-error {
  color: #c00;
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  min-height: 1em;
}
.modal-success {
  background: #f5f5f5;
  color: #000;
  border-radius: var(--radius);
  padding: 1.25rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 1rem;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .pricing-modal { padding: 1.5rem 1rem; }
}

/* ── MTN MoMo Modal ───────────────────────────────────────── */
.momo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.momo-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.momo-modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 96vw;
  position: relative;
  animation: modalIn 0.28s cubic-bezier(.4,1.5,.6,1) both;
}
.momo-modal .modal-title { color: #000; }
.momo-instructions {
  font-family: 'DM Mono', monospace;
  font-size: 0.95rem;
  color: #000;
  line-height: 1.7;
}
.momo-instructions ol { padding-left: 1.2em; margin-bottom: 1rem; }
.momo-instructions li { margin-bottom: 0.5rem; }
.momo-note {
  background: #f5f5f5;
  color: #000;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* ── FAQ Section ──────────────────────────────────────────── */
.faq-section { padding-top: 72px; }
.faq-title {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
  text-align: center;
}
.faq-accordion {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  padding: 1.25rem 0;
  cursor: pointer;
  text-align: left;
  outline: none;
  transition: color 0.18s;
}
.faq-question:hover,
.faq-question:focus { color: #ccc; }

.faq-q-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: transform 0.22s, border-color 0.18s;
  position: relative;
}
.faq-q-icon::before {
  content: '+';
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  color: #fff;
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
}
.faq-question[aria-expanded="true"] .faq-q-icon {
  border-color: #fff;
  transform: rotate(45deg);
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  font-family: 'DM Mono', monospace;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 2.25rem;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
  padding-bottom: 0;
}
.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 300px;
  opacity: 1;
  padding-bottom: 1.25rem;
}
@media (max-width: 700px) {
  .faq-accordion { max-width: 100%; }
  .faq-answer { padding-left: 1.5rem; }
}

/* ── Floating WhatsApp Button ─────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
}
.wa-float.visible {
  opacity: 1;
  pointer-events: auto;
}
.wa-float:hover { transform: scale(1.08); }
.wa-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #000;
  animation: pulse-dot 1.4s infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
@media (max-width: 600px) {
  .wa-float { bottom: 20px; right: 20px; }
}

/* ============================================================
   REFINED GEMINI-STYLE — RICH BLACK & WHITE (luxury multi-shade dark)
   ============================================================ */

body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: 'DM Mono', monospace;
}

/* Sophisticated thin top bar */
.gemini-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 24px;
  background: #000;
  border-bottom: 1px solid #1f1f1f;
  height: 54px;
  box-sizing: border-box;
  z-index: 20;
}

.topbar-left .gemini-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.015em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-link {
  color: #777;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 5px 11px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.topbar-link:hover {
  color: #fff;
  background: #161616;
}

.lang-toggle {
  display: flex;
  background: #0f0f0f;
  border: 1px solid #222;
  border-radius: 999px;
  padding: 1px;
}

.lang-btn {
  background: transparent;
  color: #777;
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.68rem;
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  transition: all 0.15s;
}
.lang-btn[aria-pressed="true"] {
  background: #222;
  color: #fff;
}

.wa-btn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  transition: all 0.15s;
}
.wa-btn:hover {
  background: #f0f0f0;
}

/* Ultra-minimal chat container */
.gemini-chat {
  height: 100vh;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #000;
  position: relative;
  padding: 0 20px;
}

/* Only the message on first load — clean and centered */
.chat-welcome {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.welcome-inner h1 {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* The chat bar, nicely positioned below the message for the first interaction (before chat history) */
.gemini-chat:not(.chatting) .input-container {
  margin-bottom: 20vh; /* positions the input bar in a beautiful, prominent spot on first load */
}

/* Make the chat bar prominent on first load */
.gemini-chat:not(.chatting) .gemini-input {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

/* Messages area — only visible after first message is sent */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0 12px;
  display: none !important;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
  background: #000;
  align-items: stretch;
}

/* When the user sends the first message: beautiful full chat that fits the screen */
.gemini-chat.chatting .chat-welcome { display: none; }

.gemini-chat.chatting .chat-messages {
  display: flex !important;
  flex: 1;
  min-height: 0; /* critical for flexbox + scrolling to work */
  overflow-y: auto;
  padding: 20px 0 10px;
  flex-direction: column;
  gap: 14px;
  background: #000;
}

/* Chat bar docked beautifully at the bottom */
.gemini-chat.chatting .input-container {
  margin-bottom: 0;
  padding: 8px 0 14px;
  background: #000;
  border-top: 1px solid #222;
  flex-shrink: 0;
}

/* The pill in chat mode */
.gemini-chat.chatting .gemini-input {
  background: #1a1a1a;
  border: 1px solid #333;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Ensure the container fills the viewport nicely in chat mode */
.gemini-chat.chatting {
  height: 100vh;
  padding-left: 16px;
  padding-right: 16px;
}

/* ── Chat layout ──────────────────────────────────────────── */
.gemini-chat {
  height: 100dvh; /* dvh fixes mobile keyboard pushing layout */
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
  background: #000;
  display: flex;
  flex-direction: column;
}

/* Welcome screen */
.chat-welcome {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 6vh;
}
.welcome-inner h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Input position before first message */
.gemini-chat:not(.chatting) .input-container {
  margin-bottom: 18vh;
}

/* Input pill */
.gemini-input {
  display: flex;
  align-items: center;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 5px 5px 5px 18px;
  max-width: 100%;
  margin: 0 auto;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.gemini-input:focus-within {
  border-color: #444;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}

#chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 0.88rem;
  padding: 10px 6px;
  line-height: 1.4;
}
#chat-input::placeholder { color: #444; font-size: 0.82rem; }

.send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.send-btn:hover { background: #e8e8e8; }
.send-btn:active { transform: scale(0.9); }

/* Active chat layout */
.gemini-chat.chatting .chat-welcome { display: none; }
.gemini-chat.chatting .chat-messages {
  display: flex !important;
  flex: 1;
  overflow-y: auto;
  padding: 16px 0 8px;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}
.gemini-chat.chatting .input-container {
  margin-bottom: 0;
  padding: 8px 0 max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid #1a1a1a;
}

/* ── Message bubbles ──────────────────────────────────────── */
.chat-msg {
  display: flex;
  width: 100%;
  align-items: flex-end;
  gap: 8px;
}
.chat-msg.bot  { flex-direction: row; justify-content: flex-start; }
.chat-msg.user { flex-direction: row; justify-content: flex-end; }

.chat-msg .chat-content-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}
.chat-msg.user .chat-content-wrapper { align-items: flex-end; }

.chat-bubble {
  background: #141414;
  border: 1px solid #242424;
  border-radius: 18px 18px 18px 4px;
  padding: 10px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 0.84rem;
  line-height: 1.62;
  color: #ddd;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-msg.user .chat-bubble {
  background: #f2f2f2;
  border-color: #e2e2e2;
  color: #111;
  border-radius: 18px 18px 4px 18px;
  font-size: 0.84rem;
}

/* Avatars */
.chat-msg.bot .avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  color: #aaa;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  margin-bottom: 2px;
}
.chat-msg.user .avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #222;
  border: 1px solid #333;
  color: #888;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
  margin-bottom: 2px;
}

/* Timestamp — very subtle */
.chat-time {
  font-size: 0.6rem;
  color: #444;
  margin-top: 3px;
  padding: 0 4px;
}

/* Typing indicator */
.chat-bubble.typing {
  padding: 12px 16px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.chat-bubble.typing span {
  width: 5px; height: 5px;
  background: #444;
  border-radius: 50%;
  animation: typing 1.1s infinite ease-in-out;
}
.chat-bubble.typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-bubble.typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing {
  0%, 80%, 100% { transform: scale(0.65); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* Scrollbar */
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: #222; border-radius: 2px; }

/* Mobile */
@media (max-width: 480px) {
  .gemini-chat { padding: 0 12px; }
  .chat-bubble { font-size: 0.82rem; padding: 9px 12px; }
  .chat-msg .chat-content-wrapper { max-width: 85%; }
  .gemini-chat:not(.chatting) .input-container { margin-bottom: 12vh; }
}

/* ── Identity top bar ─────────────────────────────────────── */
.harts-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: #000;
  border-bottom: 1px solid #1a1a1a;
  padding: 0 1.5rem;
  height: 48px;
  display: flex;
  align-items: center;
}
.harts-topbar-inner {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.harts-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.harts-tagline {
  font-size: 0.72rem;
  color: #444;
  font-family: 'DM Mono', monospace;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.harts-training-link {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border: 1px solid #333;
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  white-space: nowrap;
  transition: border-color 0.18s, background 0.18s;
  flex-shrink: 0;
}
.harts-training-link:hover { border-color: #fff; background: #111; }

/* Push chat below topbar */
.gemini-chat { padding-top: 48px; }

/* ── Quick-reply chips ────────────────────────────────────── */
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.chat-chip {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #888;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.chat-chip:hover {
  border-color: #fff;
  color: #fff;
  background: #111;
}
@media (max-width: 480px) {
  .harts-tagline { display: none; }
  .chat-chip { font-size: 0.72rem; padding: 0.4rem 0.85rem; }
}

/* Main chat landing container */
.chat-landing {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
}

.chat-header {
  text-align: center;
  margin-bottom: 1rem;
}
.chat-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: #fff;
}
.chat-header p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* Glance cards and flexible notes removed to keep the chat interface as simple as possible */

/* The actual chat window */
.chat-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  height: 560px;
  max-height: 70vh;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #0a0a0a;
  scroll-behavior: smooth;
}

/* Old duplicate message styles removed — cleaned for consistent user replies format in the refined B&W Gemini interface */

/* Typing indicator */
.chat-bubble.typing {
  display: flex;
  gap: 4px;
  padding: 0.7rem 1rem;
}
.chat-bubble.typing span {
  width: 5px;
  height: 5px;
  background: #888;
  border-radius: 50%;
  animation: chat-typing 1.2s infinite ease-in-out;
}
.chat-bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-bubble.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-typing {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Quick suggestion chips removed to keep the chat interface as simple as possible */

/* Composer */
.chat-composer {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
#chat-input {
  flex: 1;
  background: #0f0f0f;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 0.95rem;
  padding: 0.7rem 1.1rem;
  outline: none;
  transition: border-color 0.18s;
}
#chat-input:focus {
  border-color: #fff;
}
.chat-send-btn {
  background: #fff;
  color: #000;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 0 1.4rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.chat-send-btn:hover {
  background: #ddd;
}

.chat-footer-note {
  padding: 0.6rem 1rem 0.9rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  border-top: 1px solid #222;
}

/* (Trust bar removed for simpler chat-focused interface) */

/* Responsive */
@media (max-width: 700px) {
  .chat-container { height: 520px; max-height: 65vh; }
  .chat-header h1 { font-size: 1.65rem; }
  .nav-actions { gap: 0.35rem; flex-wrap: wrap; }
  .nav-human-btn { font-size: 0.7rem; padding: 0.35rem 0.7rem; }
}

/* Small note when language changes inside chat */
.chat-note {
  align-self: center;
  background: #222;
  color: #888;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin: 0.5rem 0;
}

/* ============================================================
   SERVICES PAGE (services.html)
   Browsable services + pricing + portfolio. Reuses tokens,
   .section, .pricing-*, .testimonial-*, .stats-bar above.
   ============================================================ */

/* ── Services hero ────────────────────────────────────────── */
.sv-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 24px 32px;
  text-align: center;
}
.sv-hero-eyebrow {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.5rem;
}
.sv-hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1.05;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 1.1rem;
}
.sv-hero-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #aaa;
  max-width: 620px;
  margin: 0 auto 2rem;
}
.sv-hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}
.sv-btn-primary,
.sv-btn-ghost {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s, border-color 0.18s;
  display: inline-block;
}
.sv-btn-primary {
  background: #fff;
  color: #000;
  border: 1.5px solid #fff;
}
.sv-btn-primary:hover,
.sv-btn-primary:focus { background: transparent; color: #fff; transform: scale(1.03); }
.sv-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid var(--border);
}
.sv-btn-ghost:hover,
.sv-btn-ghost:focus { border-color: #fff; }

/* ── Section heading helper ───────────────────────────────── */
.sv-section-head { text-align: center; margin-bottom: 2.75rem; }
.sv-section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 0.6rem;
}
.sv-section-sub {
  font-size: 1rem;
  color: #999;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ── Services grid ────────────────────────────────────────── */
.sv-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.sv-service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.sv-service-card:hover { border-color: #fff; transform: translateY(-4px); }
.sv-service-icon {
  font-size: 1.6rem;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.1rem;
}
.sv-service-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.sv-service-desc {
  font-size: 0.92rem;
  color: #999;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.sv-service-list {
  list-style: none; padding: 0; margin: 0;
}
.sv-service-list li {
  font-size: 0.86rem;
  color: #bbb;
  padding: 0.28rem 0 0.28rem 1.1rem;
  position: relative;
}
.sv-service-list li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--muted);
}

/* ── Portfolio / Our Work ─────────────────────────────────── */
.sv-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.sv-work-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.sv-work-card:hover { border-color: #fff; transform: translateY(-4px); }
/* Thumb: drop a real screenshot in as background-image later */
.sv-work-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1c1c1c 0%, #0d0d0d 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #2f2f2f;
  border-bottom: 1px solid var(--border);
}
.sv-work-body { padding: 1.25rem 1.35rem 1.5rem; }
.sv-work-cat {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sv-work-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin: 0.35rem 0 0.5rem;
}
.sv-work-result {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.5;
}
.sv-work-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1.75rem;
  font-family: 'DM Mono', monospace;
}

/* ── Process strip ────────────────────────────────────────── */
.sv-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.sv-step { text-align: center; }
.sv-step-num {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  width: 42px; height: 42px;
  margin: 0 auto 0.9rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
}
.sv-step-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.sv-step-desc { font-size: 0.85rem; color: #999; line-height: 1.5; }

/* ── Final CTA band ───────────────────────────────────────── */
.sv-cta {
  max-width: 1200px;
  margin: 88px auto 0;
  padding: 0 24px;
}
.sv-cta-inner {
  background: #fff;
  color: #000;
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
  text-align: center;
}
.sv-cta-inner h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  color: #000;
  margin-bottom: 0.7rem;
  letter-spacing: -1px;
}
.sv-cta-inner p { color: #444; font-size: 1.05rem; margin-bottom: 1.75rem; }
.sv-cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.sv-cta-inner .sv-btn-primary { background: #000; color: #fff; border-color: #000; }
.sv-cta-inner .sv-btn-primary:hover { background: transparent; color: #000; }
.sv-cta-inner .sv-btn-ghost { color: #000; border-color: #bbb; }
.sv-cta-inner .sv-btn-ghost:hover { border-color: #000; }

/* ── Shared page footer ───────────────────────────────────── */
.site-footer {
  max-width: 1200px;
  margin: 72px auto 0;
  padding: 2.5rem 24px 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer a { color: #aaa; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* ── Services page responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .sv-services-grid,
  .sv-work-grid { grid-template-columns: repeat(2, 1fr); }
  .sv-process-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.25rem; }
}
@media (max-width: 600px) {
  .sv-hero-title { font-size: 2.2rem; }
  .sv-hero { padding-top: 72px; }
  .sv-services-grid,
  .sv-work-grid { grid-template-columns: 1fr; }
  .sv-process-grid { grid-template-columns: 1fr; }
  .sv-section-title { font-size: 1.7rem; }
  .sv-cta-inner { padding: 2.5rem 1.25rem; }
  .sv-cta-inner h2 { font-size: 1.6rem; }
}
