/* =============================================================================
   INSIGHT CARGO SOLUTIONS — Coming Soon
   styles.css  (compiled from styles.scss)
   Mobile-first | Dark/Light mode | xs/sm(480)/md(768)/lg(1024)/xl(1280)
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;600;700&family=Barlow:wght@300;400;500&display=swap');

/* ─── Theme Tokens ───────────────────────────────────────────────────────────── */
:root {
  /* Dark (default) */
  --bg:           #162D33;
  --bg-mid:       #0f1f24;
  --bg-surface:   #1c3540;
  --orange:       #E8631A;
  --orange-dim:   rgba(232,99,26,0.15);
  --orange-glow:  rgba(232,99,26,0.06);
  --text:         #F2F0EC;
  --muted:        rgba(242,240,236,0.42);
  --line:         rgba(242,240,236,0.09);
  --line-solid:   #1e3d47;
  --toggle-bg:    rgba(242,240,236,0.08);
  --shadow:       rgba(0,0,0,0.4);
  --header-bg:    rgba(22,45,51,0.6);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --ease-expo:    cubic-bezier(0.16, 1, 0.3, 1);
  --pad:          2.5rem;
}
@media (min-width: 768px)  { :root { --pad: 5rem; } }
@media (min-width: 1024px) { :root { --pad: 10rem;   } }

[data-theme="light"] {
  --bg:           #F5F3EF;
  --bg-mid:       #EAE7E1;
  --bg-surface:   #FFFFFF;
  --orange:       #D4530D;
  --orange-dim:   rgba(212,83,13,0.1);
  --orange-glow:  rgba(212,83,13,0.04);
  --text:         #162D33;
  --muted:        rgba(22,45,51,0.5);
  --line:         rgba(22,45,51,0.1);
  --line-solid:   rgba(22,45,51,0.1);
  --toggle-bg:    rgba(22,45,51,0.07);
  --shadow:       rgba(22,45,51,0.12);
  --header-bg:    rgba(245,243,239,0.85);
}

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

html {
  font-size: 16px; scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg); color: var(--text);
  font-family: var(--font-body); font-weight: 300;
  font-size: 1rem; line-height: 1.6;
  min-height: 100dvh; overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}
@media (hover: hover) and (pointer: fine) { body { cursor: none; } }

a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { button { cursor: none; } }

/* ─── Focus styles (accessibility) ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ─── Custom Cursor ──────────────────────────────────────────────────────────── */
#cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  #cursor {
    display: block; position: fixed; top: 0; left: 0;
    z-index: 9999; pointer-events: none; mix-blend-mode: difference;
  }
}
#cursor .dot {
  width: 9px; height: 9px; background: var(--text);
  border-radius: 50%; transform: translate(-50%,-50%);
}
#cursor .ring {
  position: absolute; top: 0; left: 0; width: 36px; height: 36px;
  border: 1.5px solid rgba(242,240,236,0.65); border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width 0.35s var(--ease-expo), height 0.35s var(--ease-expo), transform 0.3s var(--ease-expo);
}
#cursor.is-hovering .ring { width: 54px; height: 54px; }

/* Ripple effect */
.cursor-ripple {
  position: fixed; width: 28px; height: 28px; pointer-events: none;
  border: 1.5px solid var(--orange); border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: cursorRipple 1.6s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

@keyframes cursorRipple {
  0% {
    width: 28px;
    height: 28px;
    opacity: 0.8;
  }
  100% {
    width: 140px;
    height: 140px;
    opacity: 0;
  }
}

/* Click ripple effect — water-like expansion from click points */
.click-ripple {
  position: fixed; width: 28px; height: 28px; pointer-events: none;
  border: 1.5px solid var(--orange); border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: clickRipple 1.6s cubic-bezier(0.4, 0, 0.6, 1) forwards;
  z-index: 9998;
}

@keyframes clickRipple {
  0% {
    width: 28px;
    height: 28px;
    opacity: 0.8;
  }
  100% {
    width: 140px;
    height: 140px;
    opacity: 0;
  }
}

/* ─── Background ─────────────────────────────────────────────────────────────── */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  transition: opacity 0.4s ease;
}
.bg-canvas svg { width: 100%; height: 100%; opacity: 0.1; transform: translateY(60px); }
[data-theme="light"] .bg-canvas svg { opacity: 0.25; }

.route-path { stroke-dasharray:1; stroke-dashoffset:1; animation: drawRoute 4s var(--ease-expo) forwards; }
.route-path:nth-child(2) { animation-delay:.4s;  animation-duration:5s;   }
.route-path:nth-child(3) { animation-delay:.9s;  animation-duration:4.5s; }
.route-path:nth-child(4) { animation-delay:1.3s; animation-duration:6s;   }
.route-path:nth-child(5) { animation-delay:.6s;  animation-duration:5.5s; }
.route-path:nth-child(6) { animation-delay:1.6s; animation-duration:4s;   }
.route-path:nth-child(7) { animation-delay:.8s;  animation-duration:7s;   }
.route-path:nth-child(8) { animation-delay:1.1s; animation-duration:8s;   }

[data-theme="light"] .route-path { stroke: rgba(22, 45, 51, 0.75) !important; }

.route-node { animation: nodePulse 3s ease-in-out infinite; }
.route-node:nth-child(1)  { animation-delay:0s;   }
.route-node:nth-child(2)  { animation-delay:.5s;  }
.route-node:nth-child(3)  { animation-delay:1s;   }
.route-node:nth-child(4)  { animation-delay:1.5s; }
.route-node:nth-child(5)  { animation-delay:2s;   }
.route-node:nth-child(6)  { animation-delay:.8s;  }
.route-node:nth-child(7)  { animation-delay:1.3s; }
.route-node:nth-child(8)  { animation-delay:.3s;  }
.route-node:nth-child(9)  { animation-delay:1.8s; }
.route-node:nth-child(10) { animation-delay:2.2s; }

[data-theme="light"] .route-node { fill: rgba(212, 83, 13, 1) !important; stroke: rgba(212, 83, 13, 1) !important; }

.bg-noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
}

.accent-bar {
  position: fixed; left: 0; top: 22%; bottom: 22%;
  width: 3px; background: var(--orange); z-index: 3;
  opacity: 0; animation: fadeIn 0.6s 2.2s var(--ease-expo) forwards;
}
@media (max-width: 767px) { .accent-bar { display: none; } }

/* ─── Page Shell ─────────────────────────────────────────────────────────────── */
#app {
  position: relative; z-index: 2; min-height: 100dvh;
  display: grid; grid-template-rows: auto auto auto 1fr auto auto;
}

/* ─── HEADER ─────────────────────────────────────────────────────────────────── */
header {
  padding: 1.1rem var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease, border-color 0.4s ease;
  opacity: 0; animation: fadeDown 1s 0.2s var(--ease-expo) forwards;
}

/* Logo zone */
.logo-zone { display: flex; align-items: center; height: 80px; min-width: 130px; }
@media (min-width: 768px) { .logo-zone { height: 80px; min-width: 160px; } }

.logo-link {
  display: flex; align-items: center; height: 100%; cursor: pointer;
  transition: opacity 0.3s ease;
}
.logo-link:hover { opacity: 0.85; }

.logo-zone img {
  height: 100%; width: auto; object-fit: contain;
}

/* Logo images — theme-aware visibility */
.logo-dark-mode { display: block; }
.logo-light-mode { display: none; }

[data-theme="light"] .logo-dark-mode { display: none; }
[data-theme="light"] .logo-light-mode { display: block; }

/* Header right */
.header-right { display: flex; align-items: center; gap: 1rem; }

/* ─── Theme Toggle ───────────────────────────────────────────────────────────── */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--toggle-bg); border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.theme-toggle:hover { border-color: rgba(232,99,26,0.5); transform: scale(1.05); }
.theme-toggle:active { transform: scale(0.95); }

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute; width: 18px; height: 18px;
  color: var(--text); transition: transform 0.4s var(--ease-expo), opacity 0.3s ease;
}
/* Dark mode: show sun icon (click = go light) */
.theme-toggle .icon-sun  { opacity: 1; transform: translateY(0) rotate(0deg); }
.theme-toggle .icon-moon { opacity: 0; transform: translateY(12px) rotate(-30deg); }

/* Light mode: show moon icon (click = go dark) */
[data-theme="light"] .theme-toggle .icon-sun  { opacity: 0; transform: translateY(-12px) rotate(30deg); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 1; transform: translateY(0) rotate(0deg); }

/* ─── TICKER ─────────────────────────────────────────────────────────────────── */
.ticker {
  overflow: hidden; border-bottom: 1px solid var(--line);
  padding: 0.6rem 0; background: var(--orange-glow);
  transition: background 0.4s ease;
}
.ticker__inner { display: flex; white-space: nowrap; animation: ticker 34s linear infinite; }
.ticker__item {
  font-family: var(--font-display); font-weight: 400;
  font-size: 0.694rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); padding: 0 2rem; flex-shrink: 0; line-height: 1;
}
.ticker__dot { color: var(--orange); margin-right: 0.5rem; }

/* ─── HERO ───────────────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100dvh - 42px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 3.5rem var(--pad) 3rem; gap: 1.75rem;
}
@media (min-width: 768px)  { .hero { padding-top: 5rem;  gap: 2rem;   } }
@media (min-width: 1024px) { .hero { padding-top: 6rem;  gap: 2.5rem; } }

/* Eyebrow */
.eyebrow {
  display: flex; align-items: center; gap: 0.75rem; color: var(--orange);
  font-family: var(--font-display); font-weight: 400;
  font-size: 0.694rem; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1;
  opacity: 0; animation: fadeRight 0.8s 0.5s var(--ease-expo) forwards;
}
.eyebrow__line { width: 24px; height: 1px; background: var(--orange); flex-shrink: 0; }
@media (min-width: 768px) { .eyebrow__line { width: 36px; } }

/* H1 Headline */
.headline {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; line-height: 0.92; letter-spacing: -0.01em;
  font-size: clamp(2.8rem, 11vw, 8.5rem); max-width: 960px;
}
.headline .line { display: block; overflow: hidden; }
.headline .line span { display: block; transform: translateY(110%); animation: slideUp 1s var(--ease-expo) forwards; }
.headline .line:nth-child(1) span { animation-delay: 0.55s; }
.headline .line:nth-child(2) span { animation-delay: 0.70s; }
.headline .line:nth-child(3) span { animation-delay: 0.85s; }
.headline em { font-style: normal; -webkit-text-stroke: 1.5px var(--text); color: transparent; }

/* H2 Sub-headline */
.sub-headline {
  font-family: var(--font-body); font-weight: 300;
  font-size: clamp(1rem, 2.2vw, 1.2rem); line-height: 1.75;
  color: var(--muted); max-width: 520px;
  opacity: 0; animation: fadeUp 0.9s 1.1s var(--ease-expo) forwards;
}

/* ─── Social Icons row ──────────────────────────────────────────────────────── */
.social-row {
  display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem;
  opacity: 0; animation: fadeUp 0.9s 1.4s var(--ease-expo) forwards;
  flex-wrap: wrap;
}
.social-row__label {
  font-family: var(--font-display); font-weight: 400;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1;
  color: var(--muted); margin-right: 0.25rem;
}
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--line);
  color: var(--muted); transition: border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.social-icon svg { width: 16px; height: 16px; fill: currentColor; }
.social-icon:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* ─── Countdown ──────────────────────────────────────────────────────────────── */
.countdown-wrap { opacity: 0; animation: fadeUp 0.9s 1.55s var(--ease-expo) forwards; padding-top: 0.5rem; }
.countdown-label {
  font-family: var(--font-display); font-weight: 400;
  font-size: 0.694rem; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1;
  color: var(--muted); margin-bottom: 1rem; display: block;
}
.countdown { display: flex; align-items: flex-end; gap: 0.75rem; }
@media (min-width: 480px)  { .countdown { gap: 1.25rem; } }
@media (min-width: 768px)  { .countdown { gap: 2rem;    } }
@media (min-width: 1024px) { .countdown { gap: 2.5rem;  } }

.countdown__item { text-align: left; }
.countdown__num {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 7vw, 4rem); line-height: 1; color: var(--text);
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.countdown__num.flip { animation: flip 0.3s var(--ease-expo); }
.countdown__lbl {
  font-family: var(--font-display); font-weight: 400;
  font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-top: 0.35rem; display: block;
}
@media (min-width: 768px) { .countdown__lbl { font-size: 0.694rem; } }
.countdown__sep {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.2rem, 4vw, 2rem); color: var(--line);
  padding-bottom: 0.35rem; line-height: 1;
}

/* ─── Stats Strip ────────────────────────────────────────────────────────────── */
.stats-strip {
  display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line);
  opacity: 0; animation: fadeUp 0.9s 1.7s var(--ease-expo) forwards;
  transition: border-color 0.4s ease;
}
@media (min-width: 1024px) { .stats-strip { grid-template-columns: repeat(4,1fr); } }

.stat {
  padding: 1.25rem var(--pad);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden; transition: border-color 0.4s ease;
}
.stat:nth-child(2n)  { border-right: none; }
@media (min-width: 1024px) {
  .stat { border-bottom: none; }
  .stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat:last-child    { border-right: none; }
}
.stat::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--orange-dim) 0%, transparent 100%);
  transform: translateX(-100%); transition: transform 0.55s var(--ease-expo);
}
@media (hover: hover) and (pointer: fine) { .stat:hover::after { transform: translateX(0); } }
.stat__num {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 3.5vw, 1.728rem); color: var(--orange); line-height: 1;
}
.stat__desc {
  font-family: var(--font-display); font-weight: 400;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-top: 0.4rem;
}
@media (min-width: 768px) { .stat__desc { font-size: 0.694rem; } }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
footer {
  padding: 1.5rem var(--pad); border-top: 1px solid var(--line);
  opacity: 0; animation: fadeUp 0.9s 1.85s var(--ease-expo) forwards;
  transition: border-color 0.4s ease;
}

.footer-top {
  display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; gap: 0; }
}

.footer-social { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-social a {
  font-family: var(--font-display); font-weight: 400;
  font-size: 0.694rem; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1;
  color: var(--muted); padding: 0.3rem 0; transition: color 0.25s ease;
}
.footer-social a:hover { color: var(--orange); }

.footer-bottom {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding-top: 1rem; border-top: 1px solid var(--line);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: 0; }
}

.footer-copy,
.footer-heart {
  font-family: var(--font-display); font-weight: 400;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); line-height: 1;
}
.footer-heart span { color: var(--orange); }

.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--font-display); font-weight: 400;
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); padding: 0.3rem 0; transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--orange); }

/* ─── Keyframes ──────────────────────────────────────────────────────────────── */
@keyframes fadeDown  { from{opacity:0;transform:translateY(-18px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeUp    { from{opacity:0;transform:translateY(18px)}  to{opacity:1;transform:translateY(0)} }
@keyframes fadeRight { from{opacity:0;transform:translateX(-18px)} to{opacity:1;transform:translateX(0)} }
@keyframes slideUp   { from{transform:translateY(110%)}            to{transform:translateY(0)} }
@keyframes fadeIn    { to{opacity:1} }
@keyframes ticker    { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes drawRoute { from{stroke-dashoffset:1} to{stroke-dashoffset:0} }
@keyframes nodePulse { 0%,100%{opacity:.5} 50%{opacity:1} }
@keyframes navItemIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes flip      { 0%{transform:translateY(-6px);opacity:0} 100%{transform:translateY(0);opacity:1} }

/* ─── Reduced Motion ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Coming Soon Label ──────────────────────────────────────────────────────── */
.coming-soon-social { margin-bottom: -0.5rem; }

.coming-soon-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.44rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 0.9s 1.35s var(--ease-expo) forwards;
}

.coming-soon-label__line {
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 80px;
}

/* Coming Soon Social Icons */
.coming-soon-icons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.9s 1.45s var(--ease-expo) forwards;
}

.coming-soon-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--muted);
  color: var(--text);
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.coming-soon-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .coming-soon-icon:hover {
    background: var(--orange-dim);
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-3px);
  }
}

.coming-soon-icon:active { transform: scale(0.95); }

/* ─── Animated Ship Traveller ────────────────────────────────────────────────── */
/* The traveller circle is injected by JS as an SVG <circle id="ship-traveller"> */
#ship-traveller {
  /* dark mode: orange filled circle with a soft glow */
  filter: drop-shadow(0 0 4px rgba(232, 99, 26, 0.7));
}

[data-theme="light"] #ship-traveller {
  /* light mode: maximum visibility with strong glow */
  filter: drop-shadow(0 0 8px rgba(212, 83, 13, 1)) drop-shadow(0 0 4px rgba(212, 83, 13, 1));
}

/* Wake trail — small fading line behind the traveller */
#ship-wake {
  stroke: rgba(232, 99, 26, 0.35);
  stroke-width: 1.2;
  fill: none;
  stroke-linecap: round;
}

[data-theme="light"] #ship-wake {
  /* light mode: maximum visibility */
  stroke: rgba(212, 83, 13, 0.98);
  stroke-width: 2;
}
