/* Halaman publik mediacargo.id — lihat app/views/landings/show.html.erb. */
  :root {
    --navy: #0f1a31;
    --navy-2: #18264a;
    --yellow: #ffc72c;
    --yellow-soft: #fff6dc;
    --red: #da2128;
    --ink: #1d1f24;
    --muted: #5d6270;
    --line: #e6e3da;
    --paper: #fbfaf6;
    --medex-blue: #2a4ba0;
    --medex-orange: #f26522;
    --wrap: 1160px;
    --display: "Archivo", system-ui, sans-serif;
    --body: "Inter", system-ui, sans-serif;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.65; -webkit-font-smoothing: antialiased; }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
  .eyebrow { font: 700 .78rem/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
  h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
  h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; margin-top: 14px; }
  p { margin: 0; }
  .lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

  .btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; font: 700 1rem/1 var(--display); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
  .btn svg { width: 20px; height: 20px; flex: none; }
  .btn--wa { background: var(--yellow); color: var(--navy); box-shadow: 0 10px 24px -12px rgba(255, 199, 44, .9); }
  .btn--wa:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(255, 199, 44, 1); }
  .btn--ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
  .btn--ghost:hover { border-color: #fff; }
  .btn--sm { padding: 11px 18px; font-size: .92rem; }
  :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

  /* Header */
  .top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
  .brands { display: flex; align-items: center; gap: 14px; text-decoration: none; }
  .brands img { height: 38px; width: auto; }
  .brands .amp { font: 800 italic 1.3rem var(--display); color: var(--navy); }
  .nav { display: flex; align-items: center; gap: 28px; }
  .nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted); }
  .nav a:not(.btn):hover { color: var(--ink); }
  .nav .btn--wa { box-shadow: none; }

  /* Hero */
  .hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
  .hero__photo { position: absolute; inset: 0 0 0 auto; width: 62%; z-index: -2; }
  .hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
  .hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(15,26,49,.82) 22%, rgba(15,26,49,.25) 55%, rgba(15,26,49,0) 80%); }
  .hero::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -40px; width: 520px; height: 190px; background: linear-gradient(160deg, var(--yellow) 0 62%, var(--red) 62% 100%); transform: rotate(18deg); }
  .hero::after { content: ""; position: absolute; z-index: -1; left: -140px; bottom: -110px; width: 520px; height: 190px; background: linear-gradient(160deg, var(--yellow) 0 45%, var(--red) 45% 100%); transform: rotate(18deg); }
  .hero .wrap { min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: center; padding-top: 96px; padding-bottom: 120px; }
  .hero__kicker { font: 500 .85rem/1 var(--body); letter-spacing: .38em; text-transform: uppercase; color: rgba(255,255,255,.8); }
  .hero__kicker::after { content: ""; display: block; width: 64px; height: 4px; background: var(--yellow); margin-top: 22px; }
  .hero h1 { margin-top: 30px; font-size: clamp(2.9rem, 8vw, 6.2rem); font-weight: 900; font-style: italic; line-height: .95; text-transform: uppercase; color: var(--yellow); }
  .hero h1 > span { display: block; }
  .hero h1 .amp { color: #fff; }
  .hero h1 .medex { text-transform: none; font-style: normal; letter-spacing: -.03em; }
  .hero h1 .medex b { color: #4f7cff; font-weight: 900; }
  .hero h1 .medex i { color: var(--medex-orange); font-style: normal; }
  .hero__tag { margin-top: 30px; padding-left: 18px; border-left: 4px solid var(--yellow); max-width: 30rem; font-size: 1.12rem; color: rgba(255,255,255,.86); }
  .hero__tag strong { color: #fff; }
  .hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

  /* Stats */
  .stats { position: relative; z-index: 2; margin-top: -64px; }
  .stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 48px -28px rgba(15,26,49,.35); overflow: hidden; }
  .stat { padding: 30px 28px; text-align: center; }
  .stat + .stat { border-left: 1px solid var(--line); }
  .stat b { display: block; font: 900 italic clamp(2.4rem, 5vw, 3.4rem)/1 var(--display); color: var(--red); }
  .stat span { display: block; margin-top: 10px; color: var(--muted); font-size: .95rem; }

  section.block { padding: 110px 0; scroll-margin-top: 64px; }

  /* Story */
  .story { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: start; }
  .story .lead + .lead { margin-top: 18px; }
  .story strong { color: var(--ink); }
  .principle { background: var(--navy); color: #fff; border-radius: 18px; padding: 38px 34px; position: relative; overflow: hidden; }
  .principle::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(var(--yellow) 0 50%, var(--red) 50%); }
  .principle .eyebrow { color: var(--yellow); }
  .principle h3 { margin-top: 16px; font-size: 1.6rem; font-weight: 800; }
  .principle p { margin-top: 16px; color: rgba(255,255,255,.78); }

  /* Routes */
  .routes { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .routes__head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
  .routes__grid { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .route { border-radius: 18px; padding: 34px; border: 1.5px solid; display: flex; flex-direction: column; }
  .route--mc { background: var(--yellow-soft); border-color: var(--yellow); }
  .route--mx { background: #f3f5fb; border-color: #c9d3ee; }
  .route__logo { height: 64px; width: auto; align-self: flex-start; mix-blend-mode: multiply; }
  .route__line { margin: 34px 0 30px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
  .route__city { font: 800 1.35rem/1.1 var(--display); }
  .route__city small { display: block; font: 600 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
  .route__city:last-child { text-align: right; }
  .route__track { position: relative; height: 2px; background: repeating-linear-gradient(90deg, currentColor 0 8px, transparent 8px 14px); opacity: .55; }
  .route__track::after { content: ""; position: absolute; right: -2px; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: currentColor; transform: translateY(-50%); }
  .route--mc .route__track { color: var(--red); }
  .route--mx .route__track { color: var(--medex-orange); }
  .route__meta { margin-top: auto; display: flex; gap: 14px; align-items: baseline; padding-top: 22px; border-top: 1px solid rgba(0,0,0,.08); }
  .route__meta b { font: 800 1rem var(--display); white-space: nowrap; }
  .route--mc .route__meta b { color: var(--red); }
  .route--mx .route__meta b { color: var(--medex-blue); }
  .route__meta > span { color: var(--muted); font-size: .95rem; }
  .badge-new { display: inline-block; margin-left: 10px; padding: 4px 10px; border-radius: 999px; background: var(--medex-orange); color: #fff; font: 700 .7rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
  .routes__note { margin-top: 40px; display: flex; gap: 18px; align-items: flex-start; max-width: 760px; }
  .routes__note .eyebrow { flex: none; padding-top: 5px; }

  /* Commitment */
  .commit { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
  .commit__list { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
  .commit__list li { display: grid; grid-template-columns: 64px 1fr; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--yellow); border-radius: 12px; padding: 22px 24px 22px 18px; }
  .commit__list li:nth-child(even) { border-left-color: var(--red); }
  .commit__list b { font: 900 italic 1.6rem var(--display); color: var(--red); }
  .commit__list h3 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
  .commit__list p { color: var(--muted); margin-top: 4px; }

  /* Locations */
  .locs { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .loc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; }
  .loc__city { font: 700 .74rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
  .loc h3 { font-size: 1.25rem; font-weight: 800; }
  .loc p { color: var(--muted); font-size: .94rem; }
  .loc__tags { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
  .tag { padding: 4px 10px; border-radius: 999px; font: 700 .7rem/1.3 var(--body); letter-spacing: .04em; }
  .tag--mc { background: var(--yellow-soft); color: #9e1318; border: 1px solid #f5d77a; }
  .tag--mx { background: #eef1fa; color: var(--medex-blue); border: 1px solid #c9d3ee; }
  .loc a { color: var(--red); font-weight: 600; font-size: .9rem; text-decoration: none; }
  .loc a:hover { text-decoration: underline; }

  /* Closer */
  .closer { background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; text-align: center; }
  .closer::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -170px; width: 140%; height: 220px; transform: translateX(-50%) rotate(-3deg); background: linear-gradient(var(--yellow) 0 40%, var(--red) 40%); }
  .closer .wrap { padding-top: 110px; padding-bottom: 150px; }
  .closer__brands { font: 800 clamp(1.4rem, 3.4vw, 2.3rem)/1.1 var(--display); letter-spacing: .02em; }
  .closer__brands i { color: var(--yellow); font-style: normal; padding: 0 .4em; }
  .closer h2 { margin-top: 20px; font-size: clamp(2.4rem, 6vw, 4.4rem); font-style: italic; font-weight: 900; text-transform: uppercase; color: var(--yellow); }
  .closer p { margin-top: 16px; color: rgba(255,255,255,.78); font-size: 1.1rem; }
  .contacts { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .contacts__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
  .contact { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 14px; background: var(--yellow); color: var(--navy); text-decoration: none; text-align: left; box-shadow: 0 10px 24px -12px rgba(255, 199, 44, .9); transition: transform .2s, box-shadow .2s; }
  .contact:hover { transform: translateY(-2px); }
  .contact svg { width: 26px; height: 26px; flex: none; }
  .contact b { display: block; font: 700 1rem/1.2 var(--display); }
  .contact small { display: block; margin-top: 2px; font-size: .92rem; font-variant-numeric: tabular-nums; }
  .contact--mx { background: #fff; }

  footer { background: #0a1224; color: rgba(255,255,255,.6); font-size: .9rem; }
  footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; padding-bottom: 26px; }
  footer a { color: rgba(255,255,255,.85); text-decoration: none; }

  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }

  @media (max-width: 960px) {
    .nav a:not(.btn) { display: none; }
    .story, .commit, .routes__head { grid-template-columns: 1fr; gap: 36px; }
    .routes__grid { grid-template-columns: 1fr; }
    .locs { grid-template-columns: 1fr 1fr; }
    .hero__photo { width: 100%; }
    .hero__photo::after { background: linear-gradient(180deg, rgba(15,26,49,.55) 0%, rgba(15,26,49,.88) 60%, var(--navy) 100%); }
  }
  @media (max-width: 620px) {
    .wrap { padding: 0 16px; }
    .top .wrap { height: 64px; }
    .brands img { height: 28px; }
    .brands .amp { font-size: 1rem; }
    .nav .btn--wa span { display: none; }
    .nav .btn--wa { padding: 10px; }
    .hero::before { width: 300px; height: 120px; right: -110px; }
    .hero::after { width: 300px; height: 120px; left: -120px; bottom: -80px; }
    .stats__grid { grid-template-columns: 1fr; }
    .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
    .stat { padding: 22px; }
    section.block { padding: 76px 0; }
    .route { padding: 26px 22px; }
    .route__city { font-size: 1.1rem; }
    .routes__note { flex-direction: column; gap: 8px; }
    .principle { padding: 30px 26px; }
    .locs { grid-template-columns: 1fr; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn { transition: none; }
  }

/* Paragraf dari isian bebas: jarak judul ke paragraf pertama, lalu antarparagraf. */
.story__body { margin-top: 26px; }
.story__body .lead + .lead { margin-top: 18px; }
.principle p + p { margin-top: 12px; }
@media (max-width: 620px) {
  .stats__grid { grid-template-columns: 1fr !important; }
}
