/* GruzExchange — shared stylesheet. No build step: plain CSS, mobile-first. */

:root {
  --teal-deep: #0E3B3E;
  --teal-mid: #12998A;
  --cyan-accent: #16E0C2;
  --slate-ink: #0A1420;
  --slate-700: #28394A;
  --slate-500: #5A6B7A;
  --slate-200: #D9E2E6;
  --slate-100: #EEF3F4;
  --bg: #FFFFFF;
  --bg-soft: #F7FAFA;
  --card-bg: #FFFFFF;
  --border: #E2E9EA;
  --text: var(--slate-ink);
  --text-soft: var(--slate-500);
  --nav-bg: #FFFFFF;
  --footer-bg: var(--slate-ink);
  --footer-text: #C9D6D6;
  --shadow: 0 8px 24px rgba(10, 20, 32, 0.07);
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--teal-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--teal-mid);
  outline-offset: 2px;
  border-radius: 4px;
}
.hero :focus-visible,
footer.site-footer :focus-visible {
  outline-color: var(--cyan-accent);
}
body { overflow-x: hidden; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand-link { display: flex; align-items: center; gap: 8px; }
.brand-link img { height: 30px; width: auto; }

.nav-right { display: flex; align-items: center; }

nav.main-nav {
  display: none;
  align-items: center;
}
nav.main-nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  margin-left: 28px;
}
nav.main-nav a:first-child { margin-left: 0; }
nav.main-nav a:hover { color: var(--teal-mid); text-decoration: none; }

.nav-cta {
  display: none;
  margin-left: 18px;
}
.nav-cta > a { margin-left: 10px; }
.nav-cta > a:first-child { margin-left: 0; }
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal-deep);
  color: #fff;
}
.btn-primary:hover { background: #0a2e30; text-decoration: none; }
.btn-accent {
  background: var(--cyan-accent);
  color: var(--slate-ink);
}
.btn-accent:hover { background: #10c7ab; text-decoration: none; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--teal-mid); color: var(--teal-mid); text-decoration: none; }
.btn-sm { padding: 8px 14px; font-size: 14px; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* Language selector — native <details>/<summary>, zero JS required */
.lang-switch {
  display: none;
  position: relative;
  margin-left: 18px;
}
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { border-color: var(--teal-mid); color: var(--teal-mid); }
.lang-switch[open] summary { border-color: var(--teal-mid); color: var(--teal-mid); }
.lang-switch-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: flex;
  flex-direction: column;
  z-index: 60;
}
.lang-switch-menu a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.lang-switch-menu a:hover { background: var(--slate-100); text-decoration: none; }
.lang-switch-menu a[aria-current="true"] { color: var(--teal-mid); font-weight: 700; }

.mobile-lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 4px 4px;
  border-top: 1px solid var(--slate-100);
  margin-top: 6px;
}
.mobile-lang-switch a {
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.mobile-lang-switch a[aria-current="true"] {
  border-color: var(--teal-mid);
  color: var(--teal-mid);
  background: var(--slate-100);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 20px 18px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 4px;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--slate-100);
}
.mobile-menu .mobile-cta { display: flex; gap: 10px; padding-top: 12px; }

@media (min-width: 880px) {
  nav.main-nav { display: flex; }
  .nav-cta { display: flex; }
  .lang-switch { display: block; }
  .mobile-lang-switch { display: none; }
  .menu-toggle { display: none; }
  /* Force-hide regardless of a stale .open class left over from a narrower
     viewport — otherwise resizing past this breakpoint with the mobile menu
     open leaves it visible underneath the now-visible desktop nav. */
  .mobile-menu.open { display: none; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--slate-ink) 0%, #122E33 55%, var(--teal-deep) 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.hero .eyebrow {
  color: var(--cyan-accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 820px;
}
.hero p.lead {
  font-size: 18px;
  color: #CFEFEC;
  max-width: 680px;
  margin: 0 0 28px;
}
.hero .cta-row { display: flex; flex-wrap: wrap; margin: -5px; }
.hero .cta-row > * { margin: 5px; }

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hero-grid > * + * { margin-top: 36px; }

/* Conceptual flow diagram — HTML/CSS only, explicitly not a product screenshot */
.flow-diagram {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 22px 20px 20px;
}
.flow-diagram .flow-caption {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9FD8CF;
  margin-bottom: 16px;
  display: block;
}
.flow-steps { position: relative; }
.flow-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-bottom: 22px;
}
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: -6px;
  width: 2px;
  background: rgba(255,255,255,0.18);
}
.flow-step:last-child::before { display: none; }
.flow-step .flow-dot {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-right: 18px;
  border-radius: 50%;
  background: rgba(22,224,194,0.14);
  border: 1.5px solid var(--cyan-accent);
  color: var(--cyan-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.flow-step.flow-final .flow-dot {
  background: var(--cyan-accent);
  color: var(--slate-ink);
}
.flow-step h3 {
  margin: 4px 0 2px;
  font-size: 15px;
  color: #fff;
}
.flow-step p {
  margin: 0;
  font-size: 13px;
  color: #AFC9C5;
}

@media (min-width: 720px) {
  .hero h1 { font-size: 46px; }
  .hero p.lead { font-size: 20px; }
}

@media (min-width: 960px) {
  .hero-grid {
    flex-direction: row;
    align-items: center;
  }
  .hero-grid > * + * { margin-top: 0; margin-left: 28px; }
  .hero-grid > :first-child { flex: 1 1 0; min-width: 0; }
  .hero-grid > :last-child { flex: 0 0 420px; }
}

/* Generic sections */
section { padding: 56px 0; }
section.alt { background: var(--bg-soft); }
h2.section-title {
  font-size: 26px;
  margin: 0 0 10px;
  color: var(--slate-ink);
}
p.section-sub {
  color: var(--text-soft);
  font-size: 16px;
  max-width: 680px;
  margin: 0 0 36px;
}
@media (min-width: 720px) {
  h2.section-title { font-size: 32px; }
}

/* Flexbox grid (not CSS Grid) — deliberate choice for maximum rendering-engine
   compatibility; verified working with calc()-based flex-basis. */
.grid {
  display: flex;
  flex-wrap: wrap;
}
.grid > * {
  flex: 1 1 100%;
  margin-top: 20px;
}
.grid > *:first-child { margin-top: 0; }
@media (min-width: 640px) {
  .grid.cols-2 > * { flex: 1 1 calc(50% - 10px); margin-top: 0; }
  .grid.cols-2 > *:nth-child(2n) { margin-left: 20px; }
  .grid.cols-2 > *:nth-child(n+3) { margin-top: 20px; }
}
@media (min-width: 880px) {
  .grid.cols-3 > * { flex: 1 1 calc(33.333% - 14px); margin-top: 0; margin-left: 20px; }
  .grid.cols-3 > *:nth-child(3n+1) { margin-left: 0; }
  .grid.cols-3 > *:nth-child(n+4) { margin-top: 20px; }
  .grid.cols-4 > * { flex: 1 1 calc(25% - 15px); margin-top: 0; margin-left: 20px; }
  .grid.cols-4 > *:nth-child(4n+1) { margin-left: 0; }
  .grid.cols-4 > *:nth-child(n+5) { margin-top: 20px; }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--text-soft); font-size: 15px; }
.card .icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--slate-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--teal-mid);
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #FFF3E0;
  color: #9A5B00;
  border: 1px solid #F3DCB4;
}
.badge.pilot { background: #E7F7F3; color: #0E6B5B; border-color: #BFE8DE; }
.badge.dev { background: #EEF1FF; color: #40419E; border-color: #D6DAFB; }

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.split > * { flex: 1 1 100%; margin-top: 32px; }
.split > *:first-child { margin-top: 0; }
@media (min-width: 880px) {
  .split > * { flex: 1 1 calc(50% - 16px); margin-top: 0; }
  .split > *:last-child { margin-left: 32px; }
}

.module-row {
  display: flex;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.module-row:last-child { border-bottom: none; }
.module-row .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan-accent);
  margin-top: 7px; margin-right: 16px; flex-shrink: 0;
}

/* CTA band */
.cta-band {
  background: var(--teal-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
}
.cta-band h2 { color: #fff; margin: 0 0 10px; }
.cta-band p { color: #CFEFEC; margin: 0 0 24px; }
.cta-band .cta-row { display: flex; flex-wrap: wrap; justify-content: center; margin: -5px; }
.cta-band .cta-row > * { margin: 5px; }

/* Footer */
footer.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 36px 0 22px;
  margin-top: 28px;
}
footer.site-footer .footer-grid {
  display: flex;
  flex-wrap: wrap;
}
footer.site-footer .footer-grid > * { flex: 1 1 100%; margin-top: 24px; }
footer.site-footer .footer-grid > *:first-child { margin-top: 0; }
@media (min-width: 720px) {
  footer.site-footer .footer-grid > * { flex: 1 1 calc(25% - 12px); margin-top: 0; margin-left: 24px; }
  footer.site-footer .footer-grid > *:first-child { flex: 2 1 calc(50% - 24px); margin-left: 0; }
}
footer.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 10px; }
footer.site-footer p { margin: 0 0 8px; line-height: 1.3; }
footer.site-footer a { color: var(--footer-text); font-size: 14px; }
footer.site-footer a:hover { color: var(--cyan-accent); }
footer.site-footer .legal-row {
  border-top: 1px solid #1C3338;
  margin-top: 20px;
  padding-top: 16px;
  font-size: 13px;
  color: #7C9190;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
}

.note-box {
  border: 1px dashed var(--border);
  background: var(--slate-100);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-soft);
}
.note-box strong { color: var(--text); }

.table-like { width: 100%; border-collapse: collapse; }
.table-like th, .table-like td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.table-like th { color: var(--text-soft); font-weight: 600; }

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 8px;
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1420;
    --bg-soft: #0F1C27;
    --card-bg: #101D28;
    --border: #1E2E38;
    --text: #EAF2F2;
    --text-soft: #9FB4B3;
    --nav-bg: #0B1420;
    --slate-100: #15232D;
  }
  .badge { background: #2A2210; color: #E8B966; border-color: #4A3B19; }
  .badge.pilot { background: #0E261F; color: #5EE8D6; border-color: #1E4A3C; }
  .badge.dev { background: #1A1E35; color: #A9ADF0; border-color: #2B2F55; }
}

/* Georgian has no safe uppercase: text-transform yields Mtavruli glyphs that many fonts lack */
*:lang(ka) { text-transform: none !important; }
.eyebrow:lang(ka), .badge:lang(ka) { letter-spacing: 0.01em; }

/* .mobile-menu a (0,1,1) was overriding .btn-primary colour: CTA text was dark on dark */
.mobile-menu .mobile-cta a.btn { padding: 11px 20px; border-bottom: 1px solid transparent; }
.mobile-menu .mobile-cta a.btn-primary { color: #fff; }

/* Telegram channel directory */
.tg-controls { display: flex; flex-direction: column; margin-bottom: 20px; }
.tg-search {
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--card-bg);
  margin-bottom: 14px;
}
.tg-filters { display: flex; flex-wrap: wrap; }
.tg-filter {
  font-family: inherit;
  padding: 8px 14px;
  margin: 0 8px 8px 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.tg-filter:hover { border-color: var(--teal-mid); color: var(--teal-mid); }
.tg-filter.active { border-color: var(--teal-mid); color: #fff; background: var(--teal-mid); }

.tg-grid { display: flex; flex-wrap: wrap; margin: -7px; }
.tg-card {
  display: block;
  flex: 1 1 100%;
  margin: 7px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text);
}
.tg-card:hover { border-color: var(--teal-mid); text-decoration: none; }
.tg-card:hover .tg-card-cta { text-decoration: underline; }
@media (min-width: 640px) { .tg-card { flex: 1 1 calc(50% - 14px); } }
@media (min-width: 960px) { .tg-card { flex: 1 1 calc(33.333% - 14px); } }
.tg-card-head { display: flex; align-items: flex-start; justify-content: space-between; }
.tg-card-head h3 { margin: 0; font-size: 16px; padding-right: 8px; }
.tg-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--teal-mid);
  white-space: nowrap;
}
.tg-card-sub { margin: 8px 0 0; font-size: 13px; color: var(--text-soft); line-height: 1.45; }
.tg-card-cta { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--teal-mid); }
.tg-no-results { padding: 24px; text-align: center; color: var(--text-soft); }
