/* =========================================================================
   Shipowise — Creators of the Future
   Bright, engineered, enterprise. One confident cobalt accent, a warm spark.
   ========================================================================= */

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---- Tokens ------------------------------------------------------------ */
:root {
  /* Neutrals — tinted toward the brand hue (~260) for cohesion */
  --bg:          oklch(98.8% 0.006 260);
  --bg-sunk:     oklch(97.2% 0.008 260);
  --surface:     oklch(99.6% 0.004 260);
  --ink:         oklch(24% 0.035 264);
  --ink-soft:    oklch(38% 0.028 264);
  --muted:       oklch(52% 0.022 264);
  --faint:       oklch(64% 0.018 264);
  --hairline:    oklch(90.5% 0.012 264);
  --hairline-2:  oklch(93.5% 0.009 264);

  /* Brand — cobalt primary, amber spark (used sparingly) */
  --brand:       oklch(52% 0.185 262);
  --brand-press: oklch(45% 0.185 262);
  --brand-tint:  oklch(95% 0.03 262);
  --brand-ring:  oklch(52% 0.185 262 / 0.30);
  --spark:       oklch(74% 0.155 66);

  /* States */
  --ok:          oklch(58% 0.14 155);
  --ok-tint:     oklch(95% 0.04 155);
  --err:         oklch(58% 0.18 26);
  --err-tint:    oklch(96% 0.03 26);

  /* Spacing (4pt, semantic) */
  --space-2xs: 4px;  --space-xs: 8px;  --space-sm: 12px; --space-md: 16px;
  --space-lg: 24px;  --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px;
  --space-4xl: 96px;

  --shell: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px oklch(24% 0.04 264 / 0.05),
               0 1px 1px oklch(24% 0.04 264 / 0.04);
  --shadow-md: 0 18px 40px -24px oklch(30% 0.06 264 / 0.28),
               0 4px 12px -8px oklch(30% 0.06 264 / 0.14);
  --shadow-lg: 0 40px 80px -40px oklch(30% 0.08 264 / 0.34);

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Base -------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 1.0625rem;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; letter-spacing: -0.02em; font-weight: 700; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .idx { color: var(--brand); font-variant-numeric: tabular-nums; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 0 4px oklch(74% 0.155 66 / 0.16); }

.lede { max-width: 62ch; color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.24rem); line-height: 1.55; }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  --_bg: var(--brand); --_fg: white;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding-inline: 22px; border: 0; border-radius: 999px;
  background: var(--_bg); color: var(--_fg);
  font-weight: 600; font-size: 0.98rem; cursor: pointer;
  transition: transform .18s var(--ease-out), box-shadow .25s var(--ease-out), background .18s ease;
  box-shadow: 0 8px 20px -10px var(--brand-ring);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px var(--brand-ring); }
.btn:active { transform: translateY(0); background: var(--brand-press); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.btn .arw { transition: transform .2s var(--ease-out); }
.btn:hover .arw { transform: translateX(3px); }

.btn--ghost {
  --_bg: transparent; --_fg: var(--ink);
  border: 1px solid var(--hairline); box-shadow: none; background: var(--surface);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); box-shadow: 0 8px 20px -14px var(--brand-ring); }
.btn--sm { height: 40px; padding-inline: 16px; font-size: 0.92rem; }
.btn--wide { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--brand); }
.link-arrow svg { transition: transform .2s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- Nav --------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav[data-scrolled="true"] { border-bottom-color: var(--hairline); background: color-mix(in oklab, var(--bg) 90%, transparent); }
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); }
.nav__links a { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); transition: color .15s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 14px; }

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.03em; color: var(--ink); }

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(56px, 9vw, 104px) clamp(56px, 8vw, 96px); overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--hairline-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline-2) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 72% 20%, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 72% 20%, black 0%, transparent 72%);
  opacity: 0.9;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__copy { max-width: 640px; }
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.2rem); font-weight: 800;
  letter-spacing: -0.035em; margin-top: 20px;
}
.hero h1 .future { color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 .future::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.14em;
  background: var(--spark); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  animation: underline 0.9s var(--ease-out) 0.7s forwards;
}
.hero__lede { margin-top: 22px; }
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__trust { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--muted); font-size: 0.9rem; }
.hero__trust b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .tick { color: var(--ok); }

/* Hero visual — distribution network */
.hero__visual { position: relative; }
.netcard {
  position: relative; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 22px;
  overflow: hidden;
}
.netcard__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.netcard__title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; }
.netcard__status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.netcard__status .live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 oklch(58% 0.14 155 / 0.5); animation: pulse 2.4s infinite; }
.netcard svg { width: 100%; height: auto; }

/* ---- Section frame ----------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--sunk { background: var(--bg-sunk); border-block: 1px solid var(--hairline); }
.section__head { max-width: 720px; }
.section__head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-top: 16px; }
.section__head p { margin-top: 16px; }

/* ---- Capabilities ------------------------------------------------------ */
.pillars { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.pillar { padding: 6px clamp(20px, 2.4vw, 34px) 6px 0; position: relative; }
.pillar + .pillar { padding-left: clamp(20px, 2.4vw, 34px); border-left: 1px solid var(--hairline); }
.pillar__idx { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.pillar__icon { width: 40px; height: 40px; margin: 16px 0 18px; color: var(--brand); }
.pillar h3 { font-size: 1.32rem; letter-spacing: -0.02em; }
.pillar p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }

/* ---- How it works ------------------------------------------------------ */
.steps { margin-top: clamp(36px, 5vw, 52px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); position: relative; }
.step__n { counter-increment: step; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: white; background: var(--brand); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.step__n::before { content: counter(step); }
.step h3 { font-size: 1.12rem; margin-top: 18px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 0.96rem; }

/* ---- Partners ---------------------------------------------------------- */
.partners__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.partners__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px;
  border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface);
  font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
}
.partners__badge .ms-badge { width: 16px; height: 16px; }
.logos {
  margin-top: clamp(30px, 4vw, 44px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.logo {
  display: flex; align-items: center; justify-content: center;
  height: 96px; padding-inline: 20px; border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.logo__img { width: auto; object-fit: contain; height: 24px; max-width: 100%; }
.logo__img--wide { height: 23px; }   /* Microsoft / Adobe wordmark lockups */
.logo__img--tall { height: 34px; }   /* Cisco bridge + wordmark is squarer */
.partners__note { margin-top: 20px; font-size: 0.86rem; color: var(--faint); max-width: 70ch; }

/* ---- CTA band ---------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--ink); color: white; border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 68px); box-shadow: var(--shadow-lg);
}
.cta__grid {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image:
    linear-gradient(to right, oklch(100% 0 0 / 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(100% 0 0 / 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(90% 120% at 85% 0%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(90% 120% at 85% 0%, black, transparent 70%);
}
.cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: white; max-width: 16ch; }
.cta p { margin-top: 14px; color: oklch(88% 0.02 264); max-width: 46ch; }
.cta .btn--ghost { background: oklch(100% 0 0 / 0.06); border-color: oklch(100% 0 0 / 0.2); color: white; }
.cta .btn--ghost:hover { background: oklch(100% 0 0 / 0.12); border-color: white; color: white; }

/* ---- Footer ------------------------------------------------------------ */
.footer { padding-block: clamp(48px, 6vw, 72px) 40px; border-top: 1px solid var(--hairline); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer__blurb { margin-top: 16px; color: var(--muted); font-size: 0.95rem; max-width: 42ch; }
.footer__col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); font-family: var(--font-body); font-weight: 700; }
.footer__col a { display: block; margin-top: 12px; color: var(--ink-soft); font-size: 0.96rem; transition: color .15s ease; }
.footer__col a:hover { color: var(--brand); }
.footer__bar { margin-top: clamp(40px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 0.86rem; }

/* ---- Reveal animations ------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); }
[data-reveal].in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].in { transition-delay: var(--d, 0ms); }

@keyframes underline { to { transform: scaleX(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 oklch(58% 0.14 155 / 0.5); } 70% { box-shadow: 0 0 0 8px oklch(58% 0.14 155 / 0); } 100% { box-shadow: 0 0 0 0 oklch(58% 0.14 155 / 0); } }
.dash { stroke-dasharray: 4 6; animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.signal { animation: travel 3s linear infinite; }
.signal.s2 { animation-delay: -1s; }
.signal.s3 { animation-delay: -2s; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: 2; max-width: 460px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 26px; margin-top: 26px; }
  .steps { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brandcol { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
}
@media (max-width: 520px) {
  .logos { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .future::after { transform: scaleX(1); }
}
