/* ==========================================================
   Sheba ICX landing page
   ========================================================== */
:root {
  --icx: #17b24e;
  --icx-dark: #0f8f3c;
  --ink: #050505;
  --muted: #7d8794;
  --tint: #f5fbf7;
  --tint-2: #e3f8eb;
  --line: #d7f1e1;
  --dark: #081f19;
  --dark-2: #0c2a21;
  --mint: #b3f0c1;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html { scroll-behavior: smooth; }
section[id], .contact { scroll-margin-top: 84px; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--icx); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--font-mono); }
.text-icx { color: var(--icx); }
.text-muted-icx { color: var(--muted); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--icx);
  margin-bottom: .6rem;
}
.eyebrow-grey { color: var(--muted); }

.h-display { font-weight: 700; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 1rem; }
.h-xl { font-size: clamp(2.6rem, 6vw, 3.4rem); }
.h-md { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.h-sm { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }

.lead-muted { color: var(--muted); font-size: 1.1rem; line-height: 1.55; max-width: 34em; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 500; padding: .7rem 1.6rem; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn-lg { padding: .85rem 1.9rem; font-size: 1.05rem; }
.btn-icx { background: var(--icx); color: #fff; border: 1px solid var(--icx); }
.btn-icx:hover, .btn-icx:focus { background: var(--icx-dark); border-color: var(--icx-dark); color: #fff; }
.btn-icx-outline { background: transparent; color: var(--ink); border: 1px solid var(--icx); }
.btn-icx-outline:hover, .btn-icx-outline:focus { background: var(--icx); color: #fff; }
.btn-ink { background: #000; color: #fff; border: 1px solid #000; }
.btn-ink:hover, .btn-ink:focus { background: var(--icx-dark); border-color: var(--icx-dark); color: #fff; }
.btn:active { transform: translateY(1px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 8px 24px rgba(8,31,25,.05); }
.navbar { padding: .75rem 0; }
.navbar-toggler { border: 0; padding: 0; box-shadow: none !important; }
.navbar .nav-link { color: var(--ink); font-weight: 500; padding: .5rem 1rem; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--icx); }
@media (max-width: 991.98px) {
  .navbar-collapse { padding: 1rem 0 1.25rem; }
  .navbar .btn { width: 100%; }
}

/* ---------- Generic section ---------- */
.section { padding: 96px 0; }
.section.pt-0 { padding-top: 0; }
@media (max-width: 767.98px) { .section { padding: 64px 0; } }

.panel { border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.5rem, 4vw, 3.5rem); }
.panel-tint { background: var(--tint); }
.mt-lg-6 { margin-top: 5rem; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-title { font-size: clamp(2.8rem, 6.4vw, 3rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; margin-bottom: 1.5rem; }

.hero-visual { position: relative; max-width: 620px; margin-inline: auto; background: radial-gradient(closest-side, rgba(7,166,74,.07), rgba(7,166,74,0) 92%); }
.hero-map { width: 100%; height: auto; display: block; }
.orbit-line { fill: none; stroke: var(--icx); stroke-opacity: .55; stroke-width: 1; stroke-dasharray: 3 4; animation: fade-in 1.2s ease both; animation-delay: calc(var(--i) * 70ms); }
.orbit-dot { fill: var(--icx); animation: fade-in 1.2s ease both; animation-delay: calc(var(--i) * 70ms + 300ms); }
.pulse { transform-origin: 290.6px 215.9px; animation: pulse 2.8s ease-out infinite; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }

.orbit-dashes { fill: none; stroke: #17b24e; stroke-opacity: .5; stroke-width: 1; stroke-linecap: round; animation: fade-in 1.4s ease both; }
.orbit-dots { animation: fade-in 1.4s ease .3s both; }
.map-chip {
  position: absolute; display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border-radius: 999px; padding: .38rem .9rem;
  font-size: .72rem; font-weight: 600; color: #0b1f2a; white-space: nowrap; line-height: 1.5;
  box-shadow: 0 6px 20px rgba(8,31,25,.1);
}
.map-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--icx); }

.hero-strip {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 0;
  color: var(--muted); font-weight: 500; font-size: .95rem;
}
.hero-strip li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-strip li i { width: 9px; height: 9px; border-radius: 50%; background: var(--icx); }
.hero-strip .link { width: 38px; border-top: 1px dashed var(--icx); margin: 0 4px; }
@media (max-width: 767.98px) {
  .hero-strip { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; justify-items: start; }
  .hero-strip .link { display: none; }
  .map-chip { font-size: .66rem; padding: .3rem .6rem; }
}

/* ---------- About radar ---------- */
.radar { position: relative; max-width: 560px; margin-inline: auto; aspect-ratio: 520 / 380; display: grid; place-items: center; }
.radar-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(23,178,78,.14); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.radar-ring.r1 { width: 46%; aspect-ratio: 1; background: rgba(23,178,78,.05); }
.radar-ring.r2 { width: 72%; aspect-ratio: 1; }
.radar-ring.r3 { width: 98%; aspect-ratio: 1; }
.radar-svg { position: relative; width: 100%; height: auto; }
.radar-svg .dotted line { stroke: var(--icx); stroke-width: 2.2; stroke-dasharray: 1 6; stroke-linecap: round; }

.radar-label { position: absolute; max-width: 26%; font-size: clamp(.85rem, 1.5vw, 1.1rem); line-height: 1.2; color: #374151; }
.radar-label.tl { left: 18.3%; top: 11.8%; transform: translate(calc(-100% - 16px), -70%); text-align: right; }
.radar-label.tr { left: 81.7%; top: 11.8%; transform: translate(16px, -70%); }
.radar-label.bl { left: 18.3%; top: 80.3%; transform: translate(-75%, 18px); text-align: center; }
.radar-label.br { left: 81.7%; top: 80.3%; transform: translate(-45%, 18px); text-align: center; }

/* ---------- Higher capacity ---------- */
.servers { width: 100%; max-width: 540px; height: auto; display: block; margin-inline: auto; }

/* ---------- How traffic flows ---------- */
.flow-diagram { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 24px 0; }
.flow-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid rgba(23,178,78,.18); border-radius: 50%; pointer-events: none; }
.flow-ring.f1 { width: 280px; height: 280px; }
.flow-ring.f2 { width: 380px; height: 380px; }
.flow-ring.f3 { width: 480px; height: 480px; }
.flow-node {
  position: relative; z-index: 1; flex: 1 1 0; min-width: 0; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem .75rem;
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
}
.flow-node i { font-size: 1.7rem; color: #6b7280; margin-bottom: .35rem; }
.flow-node strong { font-weight: 500; font-size: 1.15rem; }
.flow-node small { color: var(--muted); font-size: .85rem; }
.flow-node.is-main { background: var(--icx); border-color: var(--icx); color: #fff; padding-block: 2rem; }
.flow-node.is-main i, .flow-node.is-main small { color: #fff; }
.flow-arrow { position: relative; z-index: 1; flex: 0 0 34px; height: 2px; background: var(--icx); }
.flow-arrow::before, .flow-arrow::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border: solid var(--icx); border-width: 0 0 2px 2px; }
.flow-arrow::before { left: 0; transform: translateY(-50%) rotate(45deg); }
.flow-arrow::after { right: 0; transform: translateY(-50%) rotate(-135deg); }
@media (max-width: 767.98px) {
  .flow-diagram { flex-direction: column; gap: 14px; }
  .flow-node { width: 100%; flex: none; }
  .flow-arrow { width: 2px; height: 30px; flex-basis: 30px; }
  .flow-arrow::before, .flow-arrow::after { left: 50%; right: auto; top: auto; }
  .flow-arrow::before { top: 0; transform: translateX(-50%) rotate(135deg); }
  .flow-arrow::after { bottom: 0; transform: translateX(-50%) rotate(-45deg); }
  .flow-ring { display: none; }
}

/* ---------- Services ---------- */
.service { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 2.4rem; }
.service h3 { font-size: 1.2rem; font-weight: 500; margin: .1rem 0 .35rem; }
.service p { color: var(--muted); font-size: 1.05rem; line-height: 1.45; margin: 0; max-width: 24em; }
.icon-badge { flex: 0 0 auto; width: 68px; height: 68px; border-radius: 50%; background: var(--tint-2); color: var(--icx); display: grid; place-items: center; font-size: 1.55rem; }
.icon-badge.sm { width: 46px; height: 46px; border-radius: 12px; font-size: 1.3rem; margin-bottom: 1.4rem; }

/* ---------- Network (dark) ---------- */
.network { background: var(--dark); color: #fff; padding: 96px 0 56px; position: relative; overflow: hidden; }
.network-title { font-size: clamp(2.8rem, 6vw, 3.1rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; margin-bottom: 2.2rem; }
.network-lead { color: #a7bdb4; font-size: 1.2rem; line-height: 1.75; margin-bottom: 2rem; }
.network-tag { display: flex; align-items: center; gap: 1rem; color: #e6f3ed; font-size: 1.1rem; margin: 0; }
.circle-arrow { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; border: 1px solid rgba(23,178,78,.45); display: grid; place-items: center; color: var(--mint); }

.net-map { width: 100%; height: auto; display: block; overflow: visible; }
.route { fill: none; stroke: #2fd36b; stroke-width: 2; stroke-linecap: round; }
.route-glow { fill: none; stroke: #2fd36b; stroke-width: 6; stroke-opacity: .35; filter: url(#blur); }
.route-dot { fill: #6df0a0; }
.city .halo { fill: none; stroke: #6df0a0; stroke-opacity: .5; stroke-width: 1.5; }
.city .core { fill: #6df0a0; }
.city .tag rect { fill: #d9dedd; }
.city .tag text { fill: #0b1f1a; font: 600 15px var(--font-sans); }
.city { cursor: pointer; transition: opacity .25s; opacity: .7; }
.city.is-active { opacity: 1; }
.city.is-active .halo { fill: rgba(109,240,160,.18); stroke-opacity: 1; stroke-width: 2.5; }
.city.is-active .core { fill: #b3f0c1; }
.city.is-active .tag rect { fill: #fff; }

.net-legend { display: flex; justify-content: center; gap: 2rem; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; color: #9bb6aa; margin-top: .25rem; }
.net-legend span { display: inline-flex; align-items: center; gap: .55rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6df0a0; }
.net-legend .line { width: 30px; border-top: 1px solid #6df0a0; }

.locations { margin-top: 3.5rem; }
.loc-head { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; color: #9bb6aa; margin-bottom: 1rem; }
.loc-card {
  width: 100%; display: flex; align-items: center; gap: 1.25rem; text-align: left;
  background: var(--dark-2); color: #fff; border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 1.5rem 1.5rem; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.loc-card:hover { border-color: rgba(109,240,160,.5); }
.loc-num { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; font-family: var(--font-mono); color: #a7bdb4; }
.loc-body { flex: 1; display: flex; flex-direction: column; }
.loc-body strong { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.loc-body small { color: #a7bdb4; font-size: 1rem; }
.loc-card > i { color: #a7bdb4; font-size: 1.15rem; transition: transform .25s; }
.loc-card:hover > i { transform: translate(2px, -2px); }
.loc-card.is-active { background: var(--mint); border-color: var(--mint); color: #0a3320; }
.loc-card.is-active .loc-num { border-color: rgba(10,51,32,.25); color: #0a3320; }
.loc-card.is-active .loc-body small, .loc-card.is-active > i { color: #2e6a49; }

.loc-caption { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #c3d6cd; margin-top: 1.6rem; padding-inline: .5rem; }
.loc-caption p, .loc-foot p { margin: 0; }
.loc-caption .mono { font-size: .8rem; color: #8aa597; letter-spacing: .04em; }
.loc-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 2.5rem; padding: 1.5rem .5rem 0; border-top: 1px solid rgba(255,255,255,.1); color: #a7bdb4; }
.loc-foot .mono { font-size: .8rem; letter-spacing: .06em; color: #c3d6cd; display: inline-flex; align-items: center; gap: .55rem; }

@media (max-width: 767.98px) {
  .network { padding-top: 72px; }
  .loc-body strong { font-size: 1.4rem; }
  .loc-card { padding: 1.1rem; }
  .loc-num { width: 46px; height: 46px; }
  .net-legend { gap: 1rem; font-size: .66rem; }
}

/* ---------- Feature cards ---------- */
.feature-card { height: 100%; border: 1px solid var(--line); border-radius: 24px; padding: 2rem; background: #fff; transition: border-color .25s, box-shadow .25s; }
.feature-card:hover { border-color: rgba(23,178,78,.5); box-shadow: 0 12px 32px rgba(8,31,25,.06); }
.feature-card h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 1.1rem; }
.feature-card ul { list-style: none; padding: 0; margin: 0; }
.feature-card li { position: relative; padding-left: 1.2rem; margin-bottom: .75rem; color: var(--muted); font-size: 1.02rem; line-height: 1.45; }
.feature-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--icx); }

.tech-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 2.2rem; margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid #ececec; font-size: 1.2rem; font-weight: 500; }
.tech-row .mono { font-size: .95rem; font-weight: 400; color: var(--muted); letter-spacing: .02em; }

/* ---------- Partners ---------- */
.partner { position: relative; aspect-ratio: 224 / 83; border: 1px solid #ebebeb; border-radius: 8px; display: grid; place-items: center; background: #fff; padding: .5rem; transition: border-color .25s, box-shadow .25s; }
.partner:hover { border-color: rgba(23,178,78,.5); box-shadow: 0 10px 26px rgba(8,31,25,.06); }
.partner img { position: absolute; inset: 0; margin: auto; max-width: 64%; max-height: 72%; width: auto; height: auto; object-fit: contain; }
.partner span { display: inline-flex; align-items: center; gap: .3rem; line-height: 1; }
.logo-gp { font-size: 1.3rem; font-weight: 300; letter-spacing: -.04em; color: #4a4a4a; }
.logo-robi { font-size: 2.6rem; font-weight: 700; color: #ed1c24; letter-spacing: -.04em; }
.logo-bl { font-size: 1.55rem; font-weight: 700; color: #1b1b1b; letter-spacing: -.03em; }
.logo-bl i { color: #f26a21; font-size: 1.5rem; }
.logo-cirkle { font-size: 2.6rem; font-weight: 600; color: #e31837; letter-spacing: -.05em; }
.logo-btcl { font-size: 2.1rem; font-weight: 800; font-style: italic; color: #0c7a2f; letter-spacing: -.03em; }

/* ---------- Careers + Contact ---------- */
.careers { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; background: var(--tint-2); border-radius: 24px; padding: 2.2rem 2.5rem; }
.careers-icon { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 2.2rem; color: var(--icx); }
.careers-text { flex: 1 1 280px; }

.contact { position: relative; margin-top: 4.5rem; padding: 4rem 0 3rem; border-top: 1px solid #ececec; }
.contact-block { border-left: 3px solid var(--icx); padding-left: .9rem; line-height: 1.45; }
.contact-block .label { font-size: .95rem; color: var(--muted); letter-spacing: .04em; margin-bottom: .6rem; }
.contact-block address, .contact-block p { font-style: normal; }
.contact-block a { text-decoration: none; }
.contact-block a:hover { color: var(--icx); }
.contact-deco { position: absolute; border: 1px solid #ececec; border-radius: 50%; right: -120px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.contact-deco.d1 { width: 460px; height: 460px; }
.contact-deco.d2 { width: 380px; height: 380px; right: -85px; }
.contact-deco.d3 { width: 300px; height: 300px; right: -45px; }
.contact-blob { position: absolute; right: -60px; top: 50%; width: 210px; height: 210px; border-radius: 50%; background: #9ee3b8; transform: translateY(-50%); opacity: .85; pointer-events: none; }
.contact .row { z-index: 1; }
@media (max-width: 991.98px) {
  .contact-deco, .contact-blob { display: none; }
  .contact { padding-top: 3rem; }
}
@media (max-width: 575.98px) {
  .careers { padding: 1.6rem; }
  .careers .btn { width: 100%; }
}

.site-footer { padding: 1.5rem 0 2rem; border-top: 1px solid #ececec; font-size: .9rem; color: #6b7280; }
.site-footer a { text-decoration: none; letter-spacing: .02em; }
.site-footer a:hover { color: var(--icx); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Partner name fallback (shown when no logo is uploaded) */
.partner { text-decoration: none; color: inherit; }
.partner-name { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; color: #1f2937; text-align: center; }
