/* ======================
   ShipGlobal Theme
   Typography: Syne (headings) + DM Sans (body)
   Palette: Midnight navy #0A1628 | Electric teal #00E5CC | Amber #F59E0B | Off-white #F0EEE8
   ====================== */

:root {
  --navy: #0A1628;
  --navy-mid: #0F1F38;
  --teal: #00E5CC;
  --teal-dim: rgba(0, 229, 204, 0.12);
  --amber: #F59E0B;
  --off-white: #F0EEE8;
  --text-muted: rgba(240, 238, 232, 0.5);
  --text-body: rgba(240, 238, 232, 0.85);
  --surface: #0F1F38;
  --border: rgba(0, 229, 204, 0.15);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ====================== NAVBAR ====================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--off-white);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--off-white); }

/* ====================== HERO ====================== */
.hero {
  padding: 80px 48px 60px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--off-white);
  margin-bottom: 24px;
}

.hero-lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 480px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin: 0 32px;
}

/* ====================== GLOBE VISUAL ====================== */
.hero-visual { display: flex; justify-content: center; align-items: center; }

.globe-visual {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.globe-outer {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px solid rgba(0, 229, 204, 0.25);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: globe-rotate 20s linear infinite;
}

@keyframes globe-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.globe-inner {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 204, 0.15);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-rings {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 204, 0.1);
}

.globe-rings::before {
  content: '';
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  border: 1px dashed rgba(0, 229, 204, 0.2);
}

.globe-rings::after {
  content: '';
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 204, 0.08);
}

.globe-nodes { position: absolute; width: 100%; height: 100%; }

.node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(0, 229, 204, 0.8);
  animation: node-pulse 3s ease-in-out infinite;
}

.node-1 { top: 15%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.node-2 { top: 40%; right: 8%; animation-delay: 0.5s; }
.node-3 { bottom: 20%; left: 15%; animation-delay: 1s; }
.node-4 { top: 65%; left: 10%; animation-delay: 1.5s; }
.node-5 { bottom: 35%; right: 20%; animation-delay: 2s; }
.node-6 { top: 25%; left: 25%; animation-delay: 0.8s; }

@keyframes node-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(0, 229, 204, 0.8); }
  50% { opacity: 0.5; box-shadow: 0 0 4px rgba(0, 229, 204, 0.4); }
}

.route {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  height: 1px;
  opacity: 0.4;
  animation: route-draw 4s ease-in-out infinite;
}

.route-1 { width: 80px; top: 25%; left: 20%; transform: rotate(-30deg); animation-delay: 0s; }
.route-2 { width: 100px; top: 55%; left: 30%; transform: rotate(20deg); animation-delay: 1.5s; }
.route-3 { width: 60px; top: 45%; left: 45%; transform: rotate(-10deg); animation-delay: 3s; }

@keyframes route-draw {
  0% { opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.6; }
  100% { opacity: 0; }
}

.globe-label {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ====================== SHARED SECTION STYLES ====================== */
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--off-white);
}

/* ====================== AUTOMATED SECTION ====================== */
.automated {
  padding: 100px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.automated .section-header h2 {
  text-align: left;
}

.automated .section-header {
  text-align: left;
  max-width: none;
  margin-bottom: 60px;
}

.automated-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.automated-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s;
}

.automated-card:hover { border-color: rgba(0, 229, 204, 0.35); }

.automated-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--off-white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.automated-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Conveyor visual */
.card-visual { margin-bottom: 24px; }

.conveyor-scene {
  height: 120px;
  background: var(--navy-mid);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.conveyor-belt {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 229, 204, 0.15) 0px,
    rgba(0, 229, 204, 0.15) 20px,
    transparent 20px,
    transparent 36px
  );
  animation: conveyor-move 1s linear infinite;
}

@keyframes conveyor-move {
  from { background-position: 0 0; }
  to { background-position: 36px 0; }
}

.package {
  width: 40px;
  height: 30px;
  background: var(--amber);
  border-radius: 4px;
  position: relative;
  z-index: 1;
  animation: package-move 2s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 50px;
}

.package-2 { animation-delay: 1s; margin-right: 0; }

@keyframes package-move {
  0% { transform: translateX(-30px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(260px); opacity: 0; }
}

.package-label {
  width: 20px;
  height: 2px;
  background: rgba(10, 22, 40, 0.4);
  border-radius: 1px;
}

.scanner-beam {
  position: absolute;
  top: 0;
  left: 55%;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--teal), transparent);
  opacity: 0.6;
  animation: scan-flicker 0.8s ease-in-out infinite;
}

@keyframes scan-flicker {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.2; }
}

.robotic-arm {
  position: absolute;
  top: 10px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arm-base {
  width: 20px;
  height: 30px;
  background: rgba(0, 229, 204, 0.2);
  border: 1px solid rgba(0, 229, 204, 0.4);
  border-radius: 3px;
}

.arm-joint {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: -4px;
  animation: arm-swing 1.5s ease-in-out infinite;
}

@keyframes arm-swing {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}

.arm-gripper {
  width: 20px;
  height: 6px;
  background: rgba(0, 229, 204, 0.5);
  border-radius: 2px;
  margin-top: -2px;
}

/* Rate matrix visual */
.rate-matrix {
  background: var(--navy-mid);
  border-radius: 10px;
  padding: 16px;
  position: relative;
  font-size: 12px;
}

.rate-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 0 4px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.rate-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 8px 4px;
  border-radius: 6px;
  transition: background 0.2s;
}

.rate-row.selected {
  background: var(--teal-dim);
  border: 1px solid rgba(0, 229, 204, 0.25);
}

.rate-row span { color: var(--text-body); }
.rate-row .price { font-weight: 600; color: var(--off-white); }
.rate-row .was {
  color: var(--amber);
  font-size: 10px;
  text-decoration: line-through;
  margin-left: 4px;
}

.best-badge {
  position: absolute;
  top: -8px;
  right: 16px;
  background: var(--teal);
  color: var(--navy);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* Duty display */
.duty-display {
  background: var(--navy-mid);
  border-radius: 10px;
  padding: 16px;
}

.duty-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-body);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.duty-row.highlight {
  background: var(--teal-dim);
  border-radius: 6px;
  padding: 8px 12px;
  margin: 8px 0;
  border: none;
}

.duty-row .teal { color: var(--teal); font-weight: 600; }

.duty-row.total {
  border: none;
  padding-top: 12px;
  font-weight: 700;
  font-size: 15px;
  color: var(--off-white);
}

.duty-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}

/* ====================== CATALOG ====================== */
.catalog { padding: 100px 48px; background: var(--navy); }

.catalog-header {
  max-width: 1200px;
  margin: 0 auto 56px;
}

.catalog-intro h2 { margin-bottom: 16px; }
.catalog-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 560px;
}

.category-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}

.category-card:hover {
  border-color: rgba(0, 229, 204, 0.35);
  transform: translateY(-4px);
}

.category-visual {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--off-white);
  margin-bottom: 8px;
  padding: 20px 24px 8px;
}

.category-card p {
  font-size: 13px;
  color: var(--text-muted);
  padding: 0 24px 24px;
  line-height: 1.6;
}

/* Electronics */
.category-electronics .category-visual { background: linear-gradient(135deg, #0F1F38, #0A1628); }

.circuit-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(0, 229, 204, 0.3) 24px, rgba(0, 229, 204, 0.3) 25px),
    repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(0, 229, 204, 0.3) 24px, rgba(0, 229, 204, 0.3) 25px);
}

.device-mock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-screen {
  width: 100px;
  height: 140px;
  background: var(--navy);
  border: 2px solid rgba(0, 229, 204, 0.3);
  border-radius: 12px;
  padding: 8px;
}

.screen-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widget {
  border-radius: 4px;
  background: rgba(0, 229, 204, 0.15);
}

.widget-1 { flex: 2; }
.widget-2 { flex: 1; background: rgba(245, 158, 11, 0.15); }
.widget-3 { flex: 1; }

/* Home */
.category-home .category-visual { background: linear-gradient(135deg, #0F1F38, #1a2a1a); }

.home-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shelf {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  position: absolute;
  bottom: 60px;
  left: 30%;
  transform: translateX(-50%);
}

.shelf-item {
  width: 28px;
  border-radius: 4px;
  background: var(--teal-dim);
  border: 1px solid rgba(0, 229, 204, 0.25);
}

.item-1 { height: 50px; }
.item-2 { height: 36px; background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.2); }
.item-3 { height: 44px; }

.globe-icon {
  width: 80px;
  height: 80px;
  opacity: 0.7;
}

/* Fashion */
.category-style .category-visual { background: linear-gradient(135deg, #0F1F38, #1a0f28); }

.style-visual {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.fabric-texture {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(0, 229, 204, 0.2),
    rgba(0, 229, 204, 0.05),
    rgba(245, 158, 11, 0.15),
    rgba(0, 229, 204, 0.05),
    rgba(0, 229, 204, 0.2)
  );
  animation: fabric-rotate 8s linear infinite;
}

@keyframes fabric-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.stitch-line {
  position: absolute;
  top: 50%;
  left: 20%;
  right: 20%;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 229, 204, 0.3) 0px,
    rgba(0, 229, 204, 0.3) 8px,
    transparent 8px,
    transparent 16px
  );
}

.tag-pill {
  background: var(--teal);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ====================== HOW IT WORKS ====================== */
.how-it-works {
  padding: 100px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.hiw-header {
  text-align: center;
  margin-bottom: 72px;
}

.hiw-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--off-white);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  position: relative;
  padding: 0 20px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 229, 204, 0.4);
  line-height: 1;
  margin-bottom: 20px;
}

.step-connector {
  position: absolute;
  top: 40px;
  right: -20px;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 229, 204, 0.3), transparent);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--off-white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ====================== MANIFESTO ====================== */
.manifesto {
  padding: 120px 48px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.4;
}

.manifesto-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--off-white);
  margin-bottom: 24px;
  font-style: italic;
}

.manifesto-attribution {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 48px;
}

.manifesto-vision {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.manifesto-vision h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.manifesto-vision p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
}

/* ====================== FOOTER ====================== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 48px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--off-white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--off-white); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--teal); text-decoration: none; }

/* ====================== RESPONSIVE ====================== */
@media (max-width: 900px) {
  .navbar { padding: 16px 24px; }
  .nav-links { gap: 20px; }
  .hero { padding: 48px 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .globe-visual { width: 200px; height: 200px; }
  .globe-outer { width: 180px; height: 180px; }
  .globe-inner { width: 140px; height: 140px; }
  .automated, .catalog, .how-it-works, .manifesto { padding: 60px 24px; }
  .automated-grid, .steps-row { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .category-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { gap: 32px; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
  .hero-headline { font-size: 36px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .stat-divider { display: none; }
}
