/* ==========================================================================
   Keldra — design tokens
   ========================================================================== */
:root {
  /* surfaces — cool palette */
  --bg:           #F7F8F9;
  --bg-alt:       #EDEFF1;
  --bg-card:      #FFFFFF;
  --bg-dark:      #0A1414;
  --bg-soft:      #F2F4F5;

  /* ink */
  --ink:          #0F1414;
  --ink-on-dark:  #F4F6F7;
  --muted:        #5B666B;
  --muted-strong: #3D4549;
  --muted-on-dark:#94A0A3;

  /* rules */
  --rule:         #E2E5E8;
  --rule-strong:  #CCD2D6;
  --rule-on-dark: #1E2828;

  /* brand */
  --teal:         #0B4A48;
  --teal-hover:   #0E5E5A;
  --teal-soft:    #E5EEEC;
  --teal-line:    #C9DCD9;

  /* status */
  --pulse:        #2D8F70;

  /* layout */
  --max:          1180px;
  --max-narrow:   780px;

  /* shadow */
  --shadow-card:
    0 1px 2px rgba(10, 20, 20, 0.04),
    0 8px 24px -6px rgba(10, 20, 20, 0.08),
    0 24px 48px -16px rgba(10, 20, 20, 0.06);
  --shadow-card-hover:
    0 1px 2px rgba(10, 20, 20, 0.04),
    0 12px 32px -8px rgba(10, 20, 20, 0.10),
    0 32px 64px -16px rgba(10, 20, 20, 0.08);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "ss01", "cv11", "cv02";
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@supports (font-variation-settings: normal) {
  body {
    font-family: "Inter var", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }
}

a { color: inherit; }
img { display: block; max-width: 100%; }
p { margin: 0 0 1em 0; }

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em 0;
  line-height: 1.1;
}

::selection { background: var(--teal); color: #fff; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
.container.narrow { max-width: var(--max-narrow); }
.container.center  { text-align: center; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 248, 249, 0.82);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark {
  display: block;
  color: var(--teal);
}
.logo-word {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.logo-light .logo-word { color: var(--ink-on-dark); }
.logo-light .logo-mark { color: var(--teal-line); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav > a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 120ms ease;
}
.site-nav > a:not(.btn):hover { color: var(--ink); }

@media (max-width: 700px) {
  .site-nav { gap: 14px; }
  .site-nav > a:not(.btn) { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 1px 2px rgba(10,20,20,0.10), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-primary:hover {
  background: var(--teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px rgba(11, 74, 72, 0.45), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-sm { padding: 8px 16px; font-size: 13.5px; }

.btn-text {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 140ms ease, color 140ms ease;
}
.btn-text:hover { color: var(--teal); border-bottom-color: var(--teal); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 96px 0 120px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(820px 480px at 90% 10%, rgba(11, 74, 72, 0.08), transparent 70%),
    radial-gradient(700px 460px at 6% 95%, rgba(11, 74, 72, 0.04), transparent 70%),
    linear-gradient(180deg, #F9FAFB 0%, var(--bg) 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(15,20,20,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.55), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.55), transparent 70%);
  opacity: 0.55;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.hero-copy { max-width: 100%; }

.eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 22px 0;
}

.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(11, 74, 72, 0.12);
}

.hero h1 {
  font-size: 62px;
  letter-spacing: -0.034em;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.02;
  text-wrap: balance;
}

.hero h1 > span { display: block; }

.hero .lede {
  font-size: 18.5px;
  color: var(--muted-strong);
  max-width: 52ch;
  margin-bottom: 36px;
  line-height: 1.55;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 1000px) {
  .hero { padding: 72px 0 80px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero h1 { font-size: 44px; }
  .hero h1 > span { display: inline; }
  .hero .lede { font-size: 17px; }
}

/* ==========================================================================
   Route card (hero visual)
   ========================================================================== */
.route-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
}

.route-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
}
.route-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.route-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px 0;
}

.route-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.route-row .flag {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex: 0 0 36px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
}
.route-row-text { flex: 1 1 auto; min-width: 0; }
.route-country {
  font-size: 14.5px;
  font-weight: 600;
  margin: 0 0 2px 0;
  color: var(--ink);
}
.route-meta {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}
.route-amount {
  font-size: 14.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.route-currency {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-strong);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 5px 11px;
  border-radius: 999px;
}

.route-divider {
  position: relative;
  margin: 18px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
}
.route-divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-line) 30%, var(--teal-line) 70%, transparent);
}
.route-divider-label {
  position: relative;
  background: var(--bg-card);
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--teal-line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.route-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.route-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--rule);
}
.route-list li:last-child { border-bottom: 0; }
.route-list .flag {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex: 0 0 28px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
}
.route-country-sm {
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.route-currency {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid var(--teal-line);
  padding: 3px 8px;
  border-radius: 6px;
}

@media (max-width: 1000px) {
  .route-card { margin: 0 auto; }
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section { padding: 112px 0; position: relative; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section h2,
.section-h2 {
  font-size: 40px;
  letter-spacing: -0.026em;
  font-weight: 500;
  margin-bottom: 20px;
  max-width: 22ch;
  line-height: 1.05;
  text-wrap: balance;
}

.section-body {
  color: var(--muted-strong);
  font-size: 17px;
  max-width: 60ch;
  line-height: 1.55;
}
.section-body-wide { max-width: 64ch; margin-bottom: 56px; }

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section h2, .section-h2 { font-size: 30px; }
}

/* ==========================================================================
   Coverage cards
   ========================================================================== */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.country-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.country-card:hover {
  border-color: var(--teal-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.country-card .flag-lg {
  width: 44px; height: 44px;
  border-radius: 50%;
  margin-bottom: 18px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
}
.country-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 4px 0;
  color: var(--ink);
}
.country-meta {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 12px 0;
}
.country-rails {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.country-card-soon {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--rule-strong);
  border-style: dashed;
}
.country-card-soon .country-meta { color: var(--muted); }
.country-card-soon h3 { color: var(--muted-strong); }
.country-card-soon .flag-lg { opacity: 0.7; }

.country-card-live {
  border-color: var(--teal-line);
  background: var(--bg-card);
}
.country-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.flag-stack {
  display: flex;
  margin-bottom: 18px;
}
.flag-stack-item {
  width: 36px; height: 36px;
  border-radius: 50%;
  margin-right: -10px;
  border: 2px solid var(--bg-alt);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
}

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

/* ==========================================================================
   Steps (how it works)
   ========================================================================== */
.steps {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px 24px;
  position: relative;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  opacity: 0.85;
}
.step:hover {
  transform: translateY(-2px);
  border-color: var(--teal-line);
  box-shadow: var(--shadow-card);
}
.step-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}
.step h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px 0;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.step p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .steps { grid-template-columns: 1fr; } }

/* ==========================================================================
   About (founder + operating model)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.founder-card,
.ops-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.founder-card:hover,
.ops-card:hover {
  border-color: var(--teal-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.founder-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.founder-avatar {
  display: block;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
}
.founder-id { min-width: 0; }
.founder-name {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 2px 0;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.founder-role {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.founder-bio {
  font-size: 15px;
  color: var(--muted-strong);
  margin: 0 0 20px 0;
  line-height: 1.6;
}
.founder-link { margin: 0; }
.founder-link a {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 140ms ease;
}
.founder-link a:hover { border-bottom-color: var(--teal); }

.ops-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 12px 0;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.ops-lede {
  font-size: 15px;
  color: var(--muted-strong);
  margin: 0 0 20px 0;
  line-height: 1.6;
}
.ops-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ops-list li {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.ops-list li:last-child { padding-bottom: 0; }
.ops-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}
.ops-detail {
  display: block;
  font-size: 14.5px;
  color: var(--muted-strong);
  line-height: 1.55;
}

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

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: 120px 0 144px 0; text-align: center; }
.contact .section-eyebrow { display: inline-flex; }
.contact h2 {
  font-size: 52px;
  letter-spacing: -0.03em;
  margin: 0 auto 20px auto;
  max-width: 22ch;
}
.contact .section-body {
  margin: 0 auto 36px auto;
}
.contact-email {
  display: inline-block;
  margin: 0;
}
.contact-email a {
  display: inline-block;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--bg-card);
  transition: border-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
  box-shadow: 0 1px 2px rgba(10,20,20,0.04);
}
.contact-email a:hover {
  color: var(--teal);
  border-color: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px rgba(11, 74, 72, 0.30);
}

.contact-partners {
  margin: 20px 0 0 0;
  font-size: 14px;
  color: var(--muted);
}
.contact-partners a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 140ms ease;
}
.contact-partners a:hover { border-bottom-color: var(--teal); }

@media (max-width: 720px) { .contact h2 { font-size: 36px; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  padding: 56px 0 56px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-meta-block { text-align: right; }
.footer-meta {
  font-size: 13px;
  color: var(--muted-on-dark);
  margin: 0 0 4px 0;
}
.site-footer a {
  color: var(--muted-on-dark);
  text-decoration: none;
  transition: color 120ms ease;
}
.site-footer a:hover { color: var(--ink-on-dark); }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-meta-block { text-align: left; }
}
