/* ============================================================
   Share Talk Ltd — corporate site
   Palette from the Share Talk brand kit:
   blue #1499E6 · green #02CC87 · navy #081826/#0E2A42 · paper #F4F8FB
   Type: Poppins (display) · IBM Plex Sans (body) · IBM Plex Mono (data)
   ============================================================ */

:root {
  --navy-900: #060F1A;
  --navy-800: #081826;
  --navy-700: #0C2336;
  --navy-600: #0E2A42;
  --navy-500: #16405F;
  --blue: #1499E6;
  --blue-bright: #3FB4F5;
  --green: #02CC87;
  --paper: #F4F8FB;
  --paper-line: #D8E4EE;
  --ink: #0B1F33;
  --ink-soft: #3D5670;
  --text-on-dark: #E8F1F8;
  --muted-on-dark: #9FB8CC;
  --line-on-dark: rgba(159, 184, 204, 0.18);

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --container: 1180px;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(6, 15, 26, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--navy-800);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: var(--navy-900);
  padding: 10px 18px; font-weight: 600; z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */

h1, h2, h3, .display {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--green);
}
.on-light .eyebrow { color: #018A5C; }
.on-light .eyebrow::before { background: #018A5C; }

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 700;
  max-width: 21em;
}
.section-lede {
  margin-top: 16px;
  font-size: 1.125rem;
  max-width: 38em;
}
.on-dark .section-lede { color: var(--muted-on-dark); }
.on-light .section-lede { color: var(--ink-soft); }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-solid {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(20, 153, 230, 0.35);
}
.btn-solid:hover { background: var(--blue-bright); }

.btn-green {
  background: var(--green);
  color: var(--navy-900);
  box-shadow: 0 8px 24px rgba(2, 204, 135, 0.3);
}
.btn-green:hover { background: #1FE49F; }

.btn-ghost {
  border: 1px solid var(--line-on-dark);
  color: var(--text-on-dark);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-bright); }

.btn-sm { padding: 10px 20px; font-size: 0.9375rem; }

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-on-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
}
.brand img { width: 150px; height: auto; }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-menu a:not(.btn) {
  display: block;
  padding: 10px 14px;
  color: var(--muted-on-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 6px;
  transition: color 0.15s ease;
}
.nav-menu a:not(.btn):hover { color: #fff; }
.nav-menu a.is-active { color: #fff; }
.nav-menu a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--green);
  margin-top: 2px;
}
.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-on-dark);
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-on-dark);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(20, 153, 230, 0.16), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-on-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-on-dark) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 75%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 75%, transparent);
}

.hero-chart {
  position: absolute;
  right: -4%;
  bottom: 0;
  width: 62%;
  height: 82%;
  pointer-events: none;
}
.hero-chart .chart-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(2, 204, 135, 0.55));
}
.hero-chart .chart-fill {
  fill: url(#chartFade);
  opacity: 0;
  animation: chartFillIn 1.2s ease 1.9s forwards;
}
.chart-draw {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: chartDraw 2.4s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}
@keyframes chartDraw { to { stroke-dashoffset: 0; } }
@keyframes chartFillIn { to { opacity: 1; } }

.hero-inner {
  position: relative;
  padding: 110px 0 130px;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  font-weight: 800;
  color: #fff;
}
.hero h1 .accent { color: var(--green); }

.hero-lede {
  margin-top: 24px;
  font-size: 1.1875rem;
  color: var(--muted-on-dark);
  max-width: 34em;
}
.hero-lede strong { color: var(--text-on-dark); }

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-markets {
  margin-top: 44px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--muted-on-dark);
}
.hero-markets span { color: var(--blue-bright); }

/* ------------------------------------------------------------
   Ticker tape — the signature strip
   ------------------------------------------------------------ */

.ticker {
  background: var(--navy-900);
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
  overflow: hidden;
  position: relative;
}
.ticker::before, .ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--navy-900), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--navy-900), transparent); }

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 42s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-group {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 34px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted-on-dark);
  border-right: 1px solid var(--line-on-dark);
}
.ticker-item .t-symbol { color: var(--blue-bright); letter-spacing: 0.08em; }
.ticker-item .t-value { color: #fff; font-weight: 500; }
.ticker-item .t-up { color: var(--green); }

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */

.section { padding: 96px 0; }

.on-dark {
  background: var(--navy-800);
  color: var(--text-on-dark);
}
.on-dark h2, .on-dark h3 { color: #fff; }

.on-darker { background: var(--navy-900); }

.on-light {
  background: var(--paper);
  color: var(--ink);
}

.section-head { margin-bottom: 56px; }
.section-head.centered { text-align: center; }
.section-head.centered .section-title,
.section-head.centered .section-lede { margin-left: auto; margin-right: auto; }
.section-head.centered .eyebrow::before { display: none; }

/* ------------------------------------------------------------
   Stats
   ------------------------------------------------------------ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: #fff;
  padding: 36px 30px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat-value .up {
  font-size: 1.1rem;
  color: var(--green);
}
.stat-label {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.stat-note {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   Cards
   ------------------------------------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--navy-600);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 153, 230, 0.5);
}
.card-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--green);
}
.card h3 {
  margin-top: 14px;
  font-size: 1.25rem;
  font-weight: 600;
}
.card p {
  margin-top: 12px;
  font-size: 0.9875rem;
  color: var(--muted-on-dark);
}
.card-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--blue-bright);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   Split layout (image + text)
   ------------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split-media figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted-on-dark);
}
.on-light .split-media figcaption { color: var(--ink-soft); }

.split-body h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
.split-body p { margin-top: 18px; }
.on-dark .split-body p { color: var(--muted-on-dark); }
.on-light .split-body p { color: var(--ink-soft); }

.check-list {
  margin-top: 22px;
  list-style: none;
  display: grid;
  gap: 12px;
}
.check-list li {
  padding-left: 30px;
  position: relative;
}
.check-list li::before {
  content: "▲";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.75rem;
  color: var(--green);
}
.on-dark .check-list li { color: var(--muted-on-dark); }
.on-dark .check-list li strong { color: var(--text-on-dark); }
.on-light .check-list li { color: var(--ink-soft); }
.on-light .check-list li strong { color: var(--ink); }

/* ------------------------------------------------------------
   Channels
   ------------------------------------------------------------ */

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.channel {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.channel:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(11, 31, 51, 0.12);
}
.channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.channel h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}
.channel-metric {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #018A5C;
  white-space: nowrap;
}
.channel p {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.channel .channel-go {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--blue);
}

/* ------------------------------------------------------------
   Service detail rows (services page)
   ------------------------------------------------------------ */

.service-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 44px 0;
  border-top: 1px solid var(--line-on-dark);
}
.service-row:last-child { border-bottom: 1px solid var(--line-on-dark); }

.service-code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--green);
  padding-top: 6px;
}
.service-body h3 { font-size: 1.4rem; font-weight: 600; }
.service-body p { margin-top: 12px; color: var(--muted-on-dark); max-width: 46em; }

/* ------------------------------------------------------------
   CTA band
   ------------------------------------------------------------ */

.cta-band {
  background:
    radial-gradient(900px 400px at 15% 120%, rgba(2, 204, 135, 0.14), transparent 60%),
    linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-top: 1px solid var(--line-on-dark);
  color: var(--text-on-dark);
  text-align: center;
}
.cta-band .section-title { margin: 0 auto; color: #fff; }
.cta-band .section-lede { margin-left: auto; margin-right: auto; }
.cta-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.cta-contact-line {
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted-on-dark);
}
.cta-contact-line a { color: var(--blue-bright); text-decoration: none; }
.cta-contact-line a:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   Page hero (inner pages)
   ------------------------------------------------------------ */

.page-hero {
  background:
    radial-gradient(900px 380px at 80% -20%, rgba(20, 153, 230, 0.15), transparent 60%),
    var(--navy-900);
  color: var(--text-on-dark);
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--line-on-dark);
}
.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 700;
  color: #fff;
  max-width: 18em;
}
.page-hero .section-lede { color: var(--muted-on-dark); }

/* ------------------------------------------------------------
   Contact page
   ------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}

.form-grid { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 153, 230, 0.18);
}
.field-hp { position: absolute; left: -9999px; }

.form-note { font-size: 0.875rem; color: var(--ink-soft); }

.alert {
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-weight: 500;
}
.alert-success { background: rgba(2, 204, 135, 0.14); border: 1px solid var(--green); color: #01654A; }
.alert-error { background: rgba(230, 80, 60, 0.1); border: 1px solid #E6503C; color: #9C2B1C; }

.contact-card {
  background: var(--navy-700);
  color: var(--text-on-dark);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.contact-card h2 { color: #fff; font-size: 1.3rem; font-weight: 600; }
.contact-card dl { margin-top: 22px; display: grid; gap: 18px; }
.contact-card dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.contact-card dd { margin-top: 4px; }
.contact-card dd a { color: var(--blue-bright); text-decoration: none; word-break: break-word; }
.contact-card dd a:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.site-footer {
  background: var(--navy-900);
  color: var(--muted-on-dark);
  padding: 72px 0 40px;
  border-top: 1px solid var(--line-on-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand img { width: 170px; }
.footer-brand p { margin-top: 18px; font-size: 0.9375rem; max-width: 26em; }
.footer-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--green);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}

.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a {
  color: var(--muted-on-dark);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--blue-bright); }
.footer-address { font-size: 0.9375rem; }

.footer-legal {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line-on-dark);
  display: grid;
  gap: 8px;
  font-size: 0.8125rem;
}

/* ------------------------------------------------------------
   Reveal on scroll
   ------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .hero-chart { width: 100%; opacity: 0.35; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero-inner { padding: 80px 0 96px; }
  .card-grid, .channel-grid, .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .brand-tag { display: none; }

  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid var(--line-on-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    gap: 2px;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a:not(.btn) { padding: 14px 8px; font-size: 1.0625rem; }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .chart-draw { animation: none; stroke-dashoffset: 0; }
  .hero-chart .chart-fill { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .channel { transition: none; }
}
