/* ============================================================
   PrimeAxis Trade — base styles
   Palette:
     --primary       : deep navy, anchors trust + logistics feel
     --primary-soft  : section dividers and subtle elevations
     --accent        : amber, for CTAs and accent strokes
     --bg-1 / bg-2   : page + alt section
============================================================ */

:root {
  --primary: #0a2540;
  --primary-light: #16345e;
  --primary-soft: #e7ecf3;
  --accent: #f59e0b;
  --accent-dark: #d97706;

  --bg-1: #ffffff;
  --bg-2: #f7f9fc;
  --bg-dark: #0a2540;

  --text-1: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --text-inv: #f8fafc;

  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 10px 24px -8px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 25px 50px -12px rgba(10, 37, 64, 0.18);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

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

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

/* ============================================================
   HEADER / NAV
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
  font-size: 18px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--accent);
  font-weight: 800;
  font-size: 20px;
}
.brand-mark.small {
  width: 28px;
  height: 28px;
  font-size: 16px;
}
.brand-name span { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-2);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--primary); background: rgba(10,37,64,0.05); }
.nav-links a.active { color: var(--primary); }
.nav-links .nav-cta {
  background: var(--primary);
  color: white;
  padding: 10px 18px;
  margin-left: 8px;
}
.nav-links .nav-cta:hover { background: var(--primary-light); color: white; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  display: block;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}
.btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}
.btn-lg { padding: 18px 32px; font-size: 16px; border-radius: 14px; }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  color: white;
  background: var(--primary);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(245, 158, 11, 0.18), transparent 70%),
    radial-gradient(50% 60% at 15% 90%, rgba(56, 189, 248, 0.12), transparent 70%),
    linear-gradient(135deg, #0a2540 0%, #102e54 55%, #143a6b 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at center, black, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at center, black, transparent 85%);
}
.hero-inner {
  padding: 96px 24px 120px;
  max-width: 1100px;
  text-align: left;
}
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: 28px;
}
.hero-headline {
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
}
.hero-headline .accent { color: var(--accent); }
.hero-lede {
  max-width: 720px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 36px;
}
.hero-lede strong { color: white; font-weight: 600; }
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 64px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 720px;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stats strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.hero-stats span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   SECTIONS
============================================================ */
.section {
  padding: 96px 0;
  background: var(--bg-1);
}
.section-alt { background: var(--bg-2); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.section-tag.light { color: var(--accent); }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--primary);
}
.section-lede {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   CARDS
============================================================ */
.cards {
  display: grid;
  gap: 22px;
}
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card-icon, .service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.card-icon svg, .service-icon svg { width: 28px; height: 28px; }
.card-icon.accent {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-dark);
}
.service-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--accent);
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
}

.card-feature {
  padding: 40px 36px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}
.card-feature h3 { font-size: 22px; }
.card-feature p { font-size: 15.5px; }

.card-service {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
}

/* ============================================================
   CONTACT
============================================================ */
.section-contact {
  background: linear-gradient(135deg, #0a2540 0%, #14375f 50%, #0a2540 100%);
  color: var(--text-inv);
  position: relative;
  overflow: hidden;
}
.section-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 30%, rgba(245, 158, 11, 0.16), transparent 60%),
    radial-gradient(circle at 15% 80%, rgba(245, 158, 11, 0.10), transparent 65%);
  pointer-events: none;
}
.contact-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact-text h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 16px;
  color: white;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.contact-text p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 16.5px;
  line-height: 1.65;
}
.contact-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.contact-email {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  letter-spacing: -0.01em;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 36px;
}
.footer-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: white;
  font-size: 18px;
}
.footer-tag {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-copy {
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   ANIMATIONS — fade-in-up on scroll
============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 840px) {
  .nav-links {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    background: white;
    padding: 12px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transform-origin: top right;
    transform: scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    gap: 4px;
  }
  .nav-links.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }
  .nav-links a {
    width: 100%;
    padding: 12px 16px;
  }
  .nav-links .nav-cta { margin-left: 0; margin-top: 4px; text-align: center; }
  .nav-toggle { display: flex; }

  .hero-inner { padding: 72px 24px 88px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }

  .card-feature { padding: 32px 28px; }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 40px 28px;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}
