/* intercanvi static site — shared stylesheet.
 *
 * Two layers, in order:
 *
 *   1. Generic — design tokens, base elements, nav, buttons, reveal
 *      animation. Every static page reuses these; never redefine them
 *      per page (see AGENTS.md, "Static site & shared styles").
 *   2. Page-specific — one clearly marked section per page, holding
 *      only what that page alone needs.
 *
 * Editing this file? Bump the ?v= query on every <link> that references
 * it: nginx serves it with a 30-day immutable cache.
 */

/* ---------------------------------------------------------------------------
 * 1. Generic — shared by every static page
 * ------------------------------------------------------------------------- */

:root {
  --bg: #f4f1e8;
  --paper: #fffdf7;
  --ink: #172018;
  --muted: #687168;
  --line: #d9d8cc;
  --accent: #ed5a2e;
  --code-bg: #f1efe6;
  --water: #d9e8e8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -.02em;
  overflow-x: hidden;
}

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

/* Nav */

.nav { position: sticky; z-index: 20; top: 0; padding: 14px 20px 6px; }

.nav-inner {
  max-width: 1080px; height: 58px; margin: auto; padding: 0 10px 0 18px;
  border: 1px solid #dddcd2; background: rgba(255, 253, 247, .85);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 10px 30px rgba(23, 32, 24, .07);
}

.brand {
  font-size: 19px; font-weight: 800; letter-spacing: -.03em;
  display: flex; gap: 9px; align-items: center;
}

.dot {
  width: 11px; height: 11px; background: var(--accent);
  border-radius: 50%; animation: pulse 2s infinite;
}

@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(237, 90, 46, 0); } }

.nav-links {
  display: flex; gap: 24px; align-items: center;
  font-size: 14px; color: var(--muted);
}

.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink); color: #fff;
  padding: 10px 15px; border-radius: 11px; font-weight: 750;
}

.nav-cta:hover { color: #fff !important; }

/* Buttons */

.btn {
  padding: 14px 18px; border-radius: 14px;
  font-size: 15px; font-weight: 800;
  display: inline-flex; gap: 9px; align-items: center;
  transition: transform .22s ease;
}

.btn:hover { transform: translateY(-3px); }

.primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 24, .15);
}

.secondary { border: 1px solid var(--line); background: rgba(255, 253, 247, .6); }

/* Scroll reveal (paired with site.js) */

.js .reveal { opacity: 0; transform: translateY(30px); transition: .75s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* Generic responsive rules */

@media (max-width: 950px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

@media (max-width: 640px) {
  .nav { padding: 10px 12px 4px; }
  .nav-inner { height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------------
 * 2. Page-specific — landing page (/)
 * ------------------------------------------------------------------------- */

/* Hero */

.hero { padding: 64px 28px 60px; position: relative; }

.hero:after {
  content: ""; position: absolute;
  width: 650px; height: 650px; right: -240px; top: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 90, 46, .13), transparent 68%);
  animation: drift 10s ease-in-out infinite alternate;
}

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

.hero-copy { animation: rise .8s both; }

.eyebrow {
  color: var(--accent); font-size: 12px; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase; margin-bottom: 20px;
}

.eyebrow:before {
  content: ""; display: inline-block; width: 25px; height: 1px;
  background: var(--accent); vertical-align: middle; margin-right: 9px;
}

h1 {
  font-size: clamp(44px, 5.4vw, 72px); line-height: .92;
  letter-spacing: -.055em; margin: 0 0 26px; font-weight: 900;
}

h1 em { font-style: normal; color: var(--accent); }

.lead {
  max-width: 520px; font-size: 20px; line-height: 1.45;
  color: var(--muted); margin: 0 0 30px;
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.micro { margin-top: 18px; color: #8a887f; font-size: 13px; }

/* Hero map artwork */

.map-card {
  height: 600px; border-radius: 32px; overflow: hidden; position: relative;
  background: #dfe7e4; border: 1px solid rgba(255, 255, 255, .67);
  box-shadow: 0 28px 80px rgba(35, 42, 34, .13);
  animation: mapIn 1s .1s both;
}

.map-bg { position: absolute; inset: 0; background: linear-gradient(125deg, #e9eee9, #d6e2df); }

.sea {
  position: absolute; right: -15%; top: -10%; width: 48%; height: 120%;
  background: var(--water);
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%, 16% 72%, 7% 48%, 19% 29%);
  opacity: .95;
}

.terrain {
  position: absolute; inset: 0; opacity: .8;
  background:
    radial-gradient(ellipse at 8% 22%, #cbd9c5 0 12%, transparent 13%),
    radial-gradient(ellipse at 42% 4%, #cfdcc8 0 10%, transparent 11%),
    radial-gradient(ellipse at 73% 65%, #d2ddca 0 9%, transparent 10%);
}

.roads, .transit, .route { position: absolute; inset: -10%; width: 120%; height: 120%; }

.roads path { fill: none; stroke: #fff; stroke-width: 5; opacity: .8; }
.roads path:nth-child(2) { stroke-width: 3; }
.roads path:nth-child(3) { stroke: #c8d0cb; stroke-width: 8; opacity: .7; }

.transit path { fill: none; stroke: #557c69; stroke-width: 7; opacity: .7; }
.transit path:nth-child(2) { stroke: #527e98; stroke-width: 5; }

.route path {
  fill: none; stroke: var(--accent); stroke-width: 10;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 5px 8px rgba(237, 90, 46, .27));
  stroke-dasharray: 12 8;
  animation: dash 1.5s linear infinite;
}

.node {
  position: absolute; width: 20px; height: 20px;
  border: 5px solid white; border-radius: 50%; background: var(--ink);
  box-shadow: 0 3px 12px rgba(23, 32, 24, .27); z-index: 3;
}

.node.origin { left: 17%; top: 67%; }

.node.hub {
  left: 51%; top: 48%; background: var(--accent);
  width: 27px; height: 27px;
  animation: nodePulse 2s infinite;
}

.node.dest { left: 73%; top: 28%; }

.node-label {
  position: absolute; z-index: 4;
  background: rgba(255, 253, 247, .94); padding: 8px 11px; border-radius: 10px;
  font-size: 11px; font-weight: 800;
  box-shadow: 0 8px 22px rgba(23, 32, 24, .1);
}

.label-origin { left: 11%; top: 72%; }
.label-hub { left: 54%; top: 42%; }
.label-dest { left: 75%; top: 21%; }

.map-legend {
  position: absolute; right: 18px; bottom: 18px; z-index: 5;
  background: rgba(23, 32, 24, .93); color: #fff;
  padding: 11px 13px; border-radius: 13px; font-size: 11px; font-weight: 750;
  display: flex; gap: 12px; align-items: center;
}

.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Hero route card */

.route-card {
  position: absolute; z-index: 6; left: 20px; top: 20px; width: 282px;
  background: rgba(255, 253, 247, .94);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .67); border-radius: 20px; padding: 17px;
  box-shadow: 0 18px 45px rgba(23, 32, 24, .13);
  animation: cardIn .7s .45s both;
}

.small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: #85867f; }

.route-title { font-size: 18px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }

.time { display: flex; align-items: end; gap: 12px; margin: 12px 0 10px; }
.time strong { font-size: 35px; line-height: 1; letter-spacing: -.05em; }
.time span { font-size: 12px; color: var(--muted); }

.meta { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 12px; }

.badge { background: #f1e8df; color: #a64325; padding: 6px 9px; border-radius: 999px; font-weight: 800; }

.hr { height: 1px; background: var(--line); margin: 14px 0; }

.legs { display: grid; gap: 10px; }

.leg { display: flex; gap: 10px; align-items: center; font-size: 13px; }

.icon {
  width: 29px; height: 29px; border-radius: 9px; background: #edf0ea;
  display: grid; place-items: center; font-size: 13px;
}

.leg b { font-size: 12px; }

/* Sections */

.section { padding: 110px 28px; }
.alt { background: #edebe2; }
.inner { max-width: 1080px; margin: auto; }

.kicker {
  font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 800; color: #8b8a83; margin-bottom: 14px;
}

h2 {
  font-size: clamp(38px, 4.8vw, 62px); line-height: .97;
  letter-spacing: -.05em; margin: 0 0 22px; font-weight: 900;
}

.copy { font-size: 19px; line-height: 1.52; color: var(--muted); max-width: 650px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }

.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: 23px;
  padding: 25px; min-height: 240px; position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.feature:after {
  content: ""; position: absolute;
  width: 110px; height: 110px; border-radius: 50%; right: -45px; top: -45px;
  background: rgba(237, 90, 46, .05);
}

.feature:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(35, 42, 34, .08); }

.num { font-size: 12px; font-weight: 800; color: #a29f96; }

.feature h3 { font-size: 24px; line-height: 1.06; margin: 56px 0 10px; letter-spacing: -.04em; }
.feature p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }

.quote {
  margin-top: 62px; padding: 46px; border-radius: 30px;
  background: var(--ink); color: #fff;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 35px;
  position: relative; overflow: hidden;
}

.quote:after {
  content: ""; position: absolute; right: -70px; top: -150px;
  width: 360px; height: 360px; border: 1px solid rgba(237, 90, 46, .4); border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .02), 0 0 0 140px rgba(255, 255, 255, .01);
}

.quote h3 {
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1.02;
  letter-spacing: -.05em; margin: 0; position: relative; z-index: 1;
}

.quote p {
  color: #bdbdb5; line-height: 1.55; font-size: 15px; max-width: 420px;
  margin: 0; position: relative; z-index: 1;
}

/* Steps */

.steps { display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; align-items: start; }

.step {
  padding: 22px 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 48px 1fr; gap: 16px;
  transition: padding .25s;
}

.step:first-child { border-top: 1px solid var(--line); }
.step:hover { padding-left: 10px; }

.stepno { font-size: 13px; font-weight: 800; color: var(--accent); }

.step h4 { font-size: 19px; margin: 0 0 6px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Mini map */

.mini {
  height: 410px; border-radius: 25px; background: #dfe7e4;
  position: relative; overflow: hidden; border: 1px solid var(--line);
}

.mini:before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 70%, #c9d9c4 0 17%, transparent 18%),
    radial-gradient(circle at 75% 25%, #cfdcc8 0 15%, transparent 16%);
}

.mini-line {
  position: absolute; height: 6px; border-radius: 9px; background: #557c69;
  left: 15%; right: 14%; top: 52%; transform: rotate(-18deg);
}

.mini-line.orange {
  height: 9px; background: var(--accent);
  left: 35%; right: 17%; top: 47%;
  animation: routePulse 2.2s infinite;
}

.mini-dot {
  position: absolute; width: 17px; height: 17px;
  border: 4px solid white; background: var(--ink); border-radius: 50%;
  box-shadow: 0 2px 8px rgba(23, 32, 24, .27);
}

.mini-dot.a { left: 18%; top: 68%; }

.mini-dot.c {
  left: 51%; top: 49%; background: var(--accent);
  animation: nodePulse 2s infinite;
}

.mini-dot.b { right: 14%; top: 27%; }

.mini-tag {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(255, 253, 247, .94); border-radius: 12px; padding: 10px 13px;
  font-size: 11px; font-weight: 800; color: var(--ink);
  box-shadow: 0 8px 22px rgba(23, 32, 24, .1);
}

/* CTA + footer */

.cta { padding: 100px 28px 90px; }

.cta-box {
  max-width: 1080px; margin: auto; padding: 56px; border-radius: 30px;
  background: var(--paper); border: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}

.cta-box:after {
  content: ""; position: absolute; right: -90px; bottom: -150px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(237, 90, 46, .09);
}

.cta-box h2 { position: relative; z-index: 1; }
.cta-box .btn { position: relative; z-index: 1; }

.footer { padding: 24px 28px 38px; color: #89877f; font-size: 12px; }

.footer-in {
  max-width: 1080px; margin: auto; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}

.footer a:hover { color: var(--ink); }

/* Landing keyframes */

@keyframes rise { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: none; } }
@keyframes mapIn { from { opacity: 0; transform: scale(.97) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: none; } }
@keyframes drift { to { transform: translate(-45px, 35px); } }
@keyframes dash { to { stroke-dashoffset: -40; } }
@keyframes nodePulse {
  0%, 100% { box-shadow: 0 3px 12px rgba(23, 32, 24, .27), 0 0 0 0 rgba(237, 90, 46, .33); }
  50% { box-shadow: 0 3px 12px rgba(23, 32, 24, .27), 0 0 0 12px rgba(237, 90, 46, 0); }
}
@keyframes routePulse { 50% { filter: drop-shadow(0 0 8px rgba(237, 90, 46, .4)); } }

/* Landing responsive rules */

@media (max-width: 950px) {
  .hero-grid, .steps, .quote { grid-template-columns: 1fr; }
  .map-card { height: 540px; }
  .cards { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .cta-box { display: block; }
  .cta-box .btn { margin-top: 20px; }
}

@media (max-width: 640px) {
  .hero { padding: 36px 16px 40px; }
  .section { padding: 60px 16px; }
  .cta { padding: 60px 16px; }
  .map-card { height: 500px; border-radius: 24px; }
  .route-card { left: 12px; top: 12px; width: 258px; }
  .quote { padding: 30px; border-radius: 24px; }
  .cta-box { padding: 34px; border-radius: 24px; }
  .footer { padding: 24px 16px 32px; }
}
