/* ── Custom overrides on top of Bootstrap 5.3 dark theme ──── */

/* Design tokens */
:root, [data-bs-theme="dark"] {
  --bs-body-bg:         #101010;
  --bs-body-color:      #f0f0f0;
  --bs-border-color:    #2e2e2e;
  --bs-primary:         #0075de;
  --bs-primary-rgb:     0, 117, 222;
  --bs-secondary-bg:    #1a1a1a;
  --bs-tertiary-bg:     #242424;
  --bs-link-color:      #0075de;
  --bs-link-hover-color:#005fba;
  --accent:             #0075de;
  --muted:              #666666;
}

/* Base */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  background: #101010;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ────────────────────────────────────────────────── */
header {
  background: #101010;
  border-color: #2e2e2e !important;
}

.app-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.wordmark {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.lang-btn {
  background: none;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.lang-btn:hover {
  color: #f0f0f0;
  border-color: #f0f0f0;
}

/* ── Nav tabs ─────────────────────────────────────────────── */
.nav-tabs {
  border-bottom: none;
}

.nav-tabs .nav-link {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 10px 0;
  background: transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-tabs .nav-link:hover {
  color: #f0f0f0;
  border-color: transparent;
}

.nav-tabs .nav-link.active {
  color: #f0f0f0;
  background: transparent;
  border-color: transparent transparent var(--accent);
}

/* ── Home hero ────────────────────────────────────────────── */
.home-icon {
  width: 88px;
  height: 88px;
}

.home-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.home-tagline {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 480px;
}

.home-desc {
  font-size: 0.95rem;
  max-width: 400px;
  line-height: 1.65;
}

/* ── App Store button ─────────────────────────────────────── */
.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #005fba;
  border-color: #005fba;
}

/* ── Screenshots — desktop ────────────────────────────────── */
.screenshot {
  height: 460px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 28px;
}

/* ── Screenshots — mobile carousel ───────────────────────── */
.screenshot-mobile {
  height: 60vh;
  width: auto;
  max-width: 90vw;
  object-fit: contain;
  display: inline-block;
  border-radius: 28px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  opacity: 0.6;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-indicators {
  position: static;
  margin: 12px 0 0;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--muted);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  opacity: 1;
}

.carousel-indicators .active {
  background-color: var(--accent);
}

/* ── Content panels ───────────────────────────────────────── */
.content-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  margin-top: 36px;
}

.section-label:first-child,
p.section-label:first-child {
  margin-top: 0;
}

p {
  max-width: 62ch;
  line-height: 1.7;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: #1a1a1a;
  border-color: #2e2e2e !important;
  border-radius: 16px;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: #101010;
  border-color: #2e2e2e !important;
}

.footer-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #444;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.footer-link:hover {
  color: #f0f0f0;
  text-decoration-color: #f0f0f0;
}

/* ── Tablet ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .screenshot { height: 340px; }
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 575px) {
  .home-title  { font-size: 2.2rem; }
  .home-tagline { font-size: 1rem; }
  .page-title  { font-size: 1.6rem; }
  .screenshot-mobile { height: 55vh; max-width: 85vw; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
