/* ============================================================
   SF TRADE INTERNATIONAL — "Signal & Structure" design system
   ============================================================ */

:root {
  /* Palette — derived from brand logo colors, softened for readability */
  --void:        #141C27;   /* primary background — soft slate navy, not near-black */
  --void-alt:    #1A2430;   /* alt section background */
  --panel:       #212D3B;   /* card surface */
  --panel-hi:    #283644;   /* elevated card surface */
  --hairline:    rgba(234, 243, 246, 0.12);
  --hairline-hi: rgba(234, 243, 246, 0.20);

  --signal-teal:   #3DD9C4;
  --signal-teal-dim: rgba(61, 217, 196, 0.16);
  --brand-teal:    #289DA6;
  --circuit-green: #8FDB57;
  --circuit-green-dim: rgba(143, 219, 87, 0.16);
  --brand-navy:    #2A4A70;

  --text-hi:     #F6FAFB;
  --text-mid:    #CBD8E1;
  --text-muted:  #93A5B4;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --max-w: 1180px;

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

  --grad-brand: linear-gradient(135deg, var(--signal-teal), var(--circuit-green));
}

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

body {
  margin: 0;
  background: var(--void);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Blueprint grid texture — signature ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(61, 217, 196, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 217, 196, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 40%, transparent 90%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-hi);
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.15; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-mid); }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.mono {
  font-family: var(--font-mono);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-teal);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal-teal);
  box-shadow: 0 0 5px 0px rgba(61, 217, 196, 0.5);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal-teal);
  border: 1px solid rgba(61, 217, 196, 0.35);
  background: rgba(61, 217, 196, 0.08);
  padding: 9px 20px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.eyebrow-pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal-teal);
  box-shadow: 0 0 5px 0px rgba(61, 217, 196, 0.6);
}

/* ---------------- Navigation ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 13, 20, 0.78);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 26px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-hi);
  letter-spacing: 0.01em;
}
.brand-text span { color: var(--signal-teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-mid);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text-hi); }
.nav-links a.active {
  color: var(--signal-teal);
  background: rgba(61, 217, 196, 0.1);
  border-radius: 999px;
  padding: 8px 16px;
}
.nav-links a:not(.active):not(.nav-cta) { padding: 8px 16px; }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--signal-teal);
  color: var(--signal-teal);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--signal-teal);
  color: var(--void);
  box-shadow: 0 0 12px rgba(61, 217, 196, 0.25);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text-hi);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-links { 
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--void-alt);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 20px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--hairline); }
  .nav-cta { margin-top: 10px; }
  .nav-toggle { display: flex; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--grad-brand);
  color: #0A1420;
  font-weight: 700;
}
.btn-primary:hover {
  box-shadow: 0 0 20px rgba(61, 217, 196, 0.35);
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: rgba(246, 250, 251, 0.4);
  color: var(--text-hi);
  background: rgba(255,255,255,0.03);
}
.btn-ghost:hover { border-color: var(--signal-teal); color: var(--signal-teal); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------------- Sections ---------------- */
section { position: relative; z-index: 1; padding: 92px 0; }
.section-alt { background: var(--void-alt); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head p { font-size: 1.05rem; }

/* ---------------- Hero ---------------- */
.hero {
  padding: 76px 0 40px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lede { font-size: 1.12rem; color: var(--text-mid); max-width: 520px; margin-bottom: 34px; }
.page-hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--hairline);
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lede { max-width: 620px; font-size: 1.05rem; }

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

/* ---------------- Stat strip ---------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stat {
  padding: 30px 20px;
  text-align: center;
  border-right: 1px solid var(--hairline);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  color: var(--signal-teal);
  font-weight: 800;
  display: block;
}
.stat .label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}
@media (max-width: 760px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
}

/* ---------------- Cards ---------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--hairline-hi); transform: translateY(-2px); }

.spec-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--signal-teal);
  background: var(--signal-teal-dim);
  border: 1px solid rgba(61, 217, 196, 0.28);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.pillar-card {
  background: linear-gradient(160deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--hairline-hi);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.pillar-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.pillar-card ul { margin: 18px 0 0; padding: 0; list-style: none; }
.pillar-card li {
  padding: 9px 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.95rem;
  color: var(--text-mid);
  display: flex;
  gap: 10px;
}
.pillar-card li::before {
  content: "▸";
  color: var(--signal-teal);
}

/* ---------------- Node list (why choose us) ---------------- */
.node-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
@media (max-width: 760px) { .node-list { grid-template-columns: 1fr; } }
.node-item { display: flex; gap: 18px; }
.node-dot {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(61, 217, 196, 0.3);
  background: var(--signal-teal-dim);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  color: var(--signal-teal);
  font-size: 0.85rem;
  margin-top: 2px;
}
.node-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.node-item p { font-size: 0.93rem; margin-bottom: 0; }

/* ---------------- Table ---------------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.data-table th, .data-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-teal);
  font-weight: 500;
  background: var(--panel);
}
.data-table td { color: var(--text-mid); }
.data-table tr:last-child td { border-bottom: none; }
.data-table .num-cell { font-family: var(--font-mono); color: var(--text-hi); }
.table-wrap {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.table-wrap.total-row td, .table-wrap .total td {
  background: var(--signal-teal-dim);
  color: var(--text-hi);
  font-weight: 600;
}

/* ---------------- Leadership ---------------- */
.leader-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
}
.leader-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--signal-teal), var(--brand-navy));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--void);
  font-size: 1.3rem;
}
.leader-card h3 { margin-bottom: 2px; }
.leader-title { color: var(--signal-teal); font-size: 0.85rem; font-family: var(--font-mono); margin-bottom: 14px; }
.leader-contact { font-size: 0.85rem; color: var(--text-muted); }
.leader-contact div { margin-top: 4px; }

/* ---------------- Chips / partner wall ---------------- */
.chip-wall { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-mid);
  border: 1px solid var(--hairline-hi);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--panel);
}
.chip.chip-hi {
  border-color: rgba(61, 217, 196, 0.35);
  color: var(--signal-teal);
  background: var(--signal-teal-dim);
}

/* ---------------- Credentials ---------------- */
.cred-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.cred-name { color: var(--text-hi); font-weight: 600; font-size: 0.95rem; }
.cred-meta { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); }
.cred-num { font-family: var(--font-mono); color: var(--signal-teal); }

/* ---------------- CTA banner ---------------- */
.cta-banner {
  border: 1px solid rgba(61, 217, 196, 0.28);
  background: radial-gradient(circle at 20% 20%, rgba(61, 217, 196, 0.08), transparent 60%), var(--panel);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { margin-bottom: 8px; }
.cta-banner p { margin-bottom: 0; }

/* ---------------- Footer ---------------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 32px;
  background: var(--void-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-links a, .footer-contact div {
  display: block;
  color: var(--text-mid);
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.footer-links a:hover { color: var(--signal-teal); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ---------------- Full-bleed photo hero ---------------- */
.hero-photo {
  position: relative;
  padding: 130px 0 150px;
  background-size: cover;
  background-position: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,28,39,0.55) 0%, rgba(20,28,39,0.88) 65%, var(--void) 100%),
    linear-gradient(rgba(61, 217, 196, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 217, 196, 0.045) 1px, transparent 1px);
  background-size: cover, 56px 56px, 56px 56px;
  z-index: -1;
}
.hero-photo h1 { max-width: 780px; }
.hero-photo .lede { max-width: 620px; font-size: 1.12rem; }

.hero-photo.page {
  padding: 90px 0 110px;
}
.hero-photo.page h1 { max-width: 700px; margin-bottom: 14px; }

.wave-divider {
  position: relative;
  margin-top: -6px;
  line-height: 0;
  z-index: 2;
}
.wave-divider svg { width: 100%; height: auto; display: block; }

/* ---------------- Checklist ---------------- */
.check-list { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.check-item { display: flex; align-items: flex-start; gap: 14px; }
.check-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--signal-teal-dim);
  border: 1px solid rgba(61, 217, 196, 0.4);
  color: var(--signal-teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  margin-top: 2px;
}
.check-item span.label { color: var(--text-mid); font-size: 0.98rem; padding-top: 2px; }

/* ---------------- Floating stat card ---------------- */
.img-float-wrap { position: relative; }
.stat-float {
  position: absolute;
  bottom: -22px;
  right: -18px;
  background: var(--panel-hi);
  border: 1px solid rgba(61, 217, 196, 0.35);
  border-radius: var(--radius-md);
  padding: 18px 26px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  z-index: 3;
}
.stat-float .num { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--text-hi); display: block; }
.stat-float .label { font-size: 0.78rem; color: var(--signal-teal); font-weight: 600; }
@media (max-width: 620px) {
  .stat-float { right: 10px; bottom: -18px; padding: 14px 20px; }
}


.img-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 340px;
  border: 1px solid var(--hairline-hi);
}
.img-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,13,20,0.15) 0%, rgba(7,13,20,0.92) 100%);
}
.img-banner .caption {
  position: absolute; left: 28px; bottom: 22px; right: 28px; z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--text-hi);
}
.img-banner .caption span { color: var(--signal-teal); }

.img-side {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline-hi);
  height: 100%;
  min-height: 320px;
}
.img-side img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bg-photo-section {
  position: relative;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.bg-photo-section::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,13,20,0.94), rgba(7,13,20,0.88));
  z-index: -1;
}

/* ---------------- Utilities ---------------- */
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--signal-teal);
  outline-offset: 2px;
}
