/* TechSpot Trading LLC — header, footer, nav, section layout */

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

/* ---------- Header ---------- */
/* A floating capsule that sits over the page, so the hero globe runs edge to
   edge behind it. Height and padding mirror the reference: 12px gutter,
   64px bar, 32px radius, hairline border over a blurred translucent bg. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 16px 0;
  pointer-events: none;
}

.site-header__capsule {
  max-width: var(--container-wide);
  margin: 0 auto;
  border-radius: 32px;
  border: 1px solid oklch(100% 0 0 / 0.1);
  background: oklch(13.5% 0 0 / 0.7);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 4px 20px oklch(0% 0 0 / 0.2);
  pointer-events: auto;
  transition: background 0.4s ease, box-shadow 0.5s ease, border-color 0.4s ease;
}

.site-header.is-scrolled .site-header__capsule {
  background: oklch(13.5% 0 0 / 0.9);
  border-color: oklch(100% 0 0 / 0.14);
  box-shadow: 0 8px 30px oklch(0% 0 0 / 0.38);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
  padding: 0 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand__mark {
  height: 28px;
  width: auto;
  flex: none;
}

.brand__wordmark {
  height: 17px;
  width: auto;
}

/* Stacked full logo for the footer. */
.brand--stacked {
  margin-bottom: 18px;
}

.brand--stacked .brand__logo {
  height: 96px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Mono, uppercase, wide-tracked — reads as a row of labels, not links. */
.main-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(95.5% 0.006 255 / 0.5);
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: var(--fg);
  background: oklch(100% 0 0 / 0.06);
}

.main-nav a[aria-current='page'] {
  color: var(--fg);
  background: oklch(100% 0 0 / 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* WhatsApp "message us" pill: green badge + mono label, fills on hover. */
.wa-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px 0 6px;
  border-radius: 999px;
  border: 1px solid oklch(100% 0 0 / 0.15);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fg);
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.14s ease;
}

.wa-pill:hover {
  background: var(--fg);
  border-color: transparent;
  color: var(--bg);
  transform: scale(1.02);
}

.wa-pill:active {
  transform: scale(0.98);
}

.wa-pill__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  flex: none;
}

.wa-pill--block {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 22px;
  padding: 0 20px;
  font-size: 13px;
}

/* EN / RU language switch: a segmented pill in the same family as the
   WhatsApp pill. The pressed button fills white; the other stays quiet. */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 36px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid oklch(100% 0 0 / 0.15);
}

.lang-toggle button {
  height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: oklch(95.5% 0.006 255 / 0.6);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-toggle button:hover {
  color: var(--fg);
}

.lang-toggle button[aria-pressed='true'] {
  background: var(--fg);
  color: var(--bg);
  cursor: default;
}

.lang-toggle--block {
  display: flex;
  width: 100%;
  height: 44px;
  margin-top: 18px;
  padding: 4px;
}

.lang-toggle--block button {
  flex: 1;
  height: 100%;
  font-size: 12px;
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid oklch(100% 0 0 / 0.15);
  background: transparent;
  color: var(--fg);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover {
  background: var(--fg);
  color: var(--bg);
}

/* Mobile panel hangs below the capsule, matching its radius and blur. */
.mobile-nav {
  display: none;
  position: fixed;
  top: 88px;
  left: 16px;
  right: 16px;
  max-height: calc(100svh - 104px);
  z-index: 99;
  overflow-y: auto;
  padding: 8px 22px 26px;
  border-radius: 28px;
  border: 1px solid oklch(100% 0 0 / 0.1);
  background: oklch(13.5% 0 0 / 0.96);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 16px 40px oklch(0% 0 0 / 0.45);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 2px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(95.5% 0.006 255 / 0.72);
}

.mobile-nav a[aria-current='page'] {
  color: var(--fg);
}

.mobile-nav .wa-pill {
  justify-content: center; /* beats the space-between on .mobile-nav a */
  border-bottom: 1px solid oklch(100% 0 0 / 0.15);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 560px) {
  .site-header { padding: 10px 12px 0; }
  .site-header__bar { height: 58px; padding: 0 14px; }
  .site-header__capsule { border-radius: 26px; }
  .site-header .wa-pill__label { display: none; }
  .site-header .wa-pill { padding: 0 5px; }
  .lang-toggle button { padding: 0 9px; }
  .mobile-nav { top: 78px; left: 12px; right: 12px; }
}

@media (min-width: 1081px) {
  .mobile-nav { display: none !important; }
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}

.section--tight {
  padding: 64px 0;
}

.section--surface {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head--center {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent-border);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--muted-2);
}

.footer-bottom a {
  color: var(--muted-2);
}

.footer-bottom a:hover {
  color: var(--accent);
}

.footer-legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Floating WhatsApp ---------- */
.float-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: oklch(72% 0.17 150);
  color: oklch(12% 0 0);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -10px oklch(0% 0 0 / 0.6);
  transition: transform 0.2s ease;
}

.float-whatsapp:hover {
  transform: translateY(-3px) scale(1.04);
}

@media (max-width: 640px) {
  .float-whatsapp {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

.breadcrumb-bar {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.breadcrumb-bar ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
}

.breadcrumb-bar a:hover {
  color: var(--accent);
}

.breadcrumb-bar li[aria-current] {
  color: var(--muted);
}
