/* Marketing site — "Kanal" and "Integrasi" sections. */
:root { --wa: #25d366; --cloud: #0e9f6e; --tg: #229ed9; }

/* ── Channel cards ────────────────────────────────── */
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; perspective: 1200px; }
.channel { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; transform-style: preserve-3d; overflow: hidden; transition: box-shadow .2s; }
.channel::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.channel:hover { box-shadow: 0 24px 60px rgba(11, 26, 19, .12); }
.ch-wa { --c: var(--wa); } .ch-cloud { --c: var(--cloud); } .ch-tg { --c: var(--tg); }
.ch-head { display: flex; gap: 14px; align-items: center; transform: translateZ(30px); }
.ch-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; color: #fff; background: var(--c); box-shadow: 0 10px 24px color-mix(in srgb, var(--c) 40%, transparent); flex: none; }
.ch-head small { color: var(--ink-3); font-weight: 600; font-size: 13px; }
.channel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; color: var(--ink-2); flex: 1; transform: translateZ(16px); }
.channel li { display: flex; gap: 10px; } .channel li i { color: var(--c); margin-top: 5px; font-size: 12px; }
.ch-fit { padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 13.5px; color: var(--ink-2); }
.ch-fit b { display: block; color: var(--ink); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.ch-note { font-size: 12.5px; color: var(--ink-3); }

/* ── Comparison table ─────────────────────────────── */
.compare-wrap { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 13px; color: var(--ink-3); font-weight: 700; background: var(--bg); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 28%; }
.compare td { color: var(--ink-2); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .ok { color: var(--brand); margin-right: 6px; } .compare .off { color: #c3cdc7; }

/* ── Integration (night) ──────────────────────────── */
.integrate .split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.points li { display: flex; gap: 14px; color: var(--on-night-2); font-size: 14.5px; }
.points i { color: var(--accent); margin-top: 4px; width: 18px; text-align: center; }
.points b { color: var(--on-night); display: block; }
.code-win { border-radius: var(--radius-lg); background: #03100a; border: 1px solid var(--night-line); box-shadow: var(--shadow-lg); overflow: hidden; }
.code-tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--night-line); background: rgba(255, 255, 255, .03); flex-wrap: wrap; }
.code-tabs button { font: 700 13px var(--font); color: var(--on-night-2); background: none; border: 0; padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.code-tabs button.on { background: rgba(52, 211, 153, .14); color: var(--accent); }
.code-win pre { display: none; margin: 0; padding: 20px 22px; overflow-x: auto; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #c9f2dd; }
.code-win pre.on { display: block; }
.code-res { display: flex; gap: 10px; align-items: center; padding: 12px 22px; border-top: 1px solid var(--night-line); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--on-night-2); overflow-x: auto; white-space: nowrap; }
.ok-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); flex: none; }

/* ── Delivery flow ────────────────────────────────── */
.flow { margin-top: 64px; display: grid; grid-template-columns: 170px minmax(40px, 1fr) 190px minmax(40px, 1fr) 160px; grid-template-rows: auto auto; align-items: center; row-gap: 26px; }
.node { position: relative; z-index: 1; border-radius: 16px; padding: 14px 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); color: var(--on-night); display: grid; gap: 2px; }
.node i { font-size: 18px; color: var(--accent); margin-bottom: 4px; }
.node b { font-size: 14.5px; } .node small { color: var(--on-night-2); font-size: 12px; }
.node.hub { background: linear-gradient(160deg, rgba(52, 211, 153, .18), rgba(52, 211, 153, .04)); border-color: rgba(52, 211, 153, .45); min-height: 196px; align-content: center; }
.fan, .outs { display: grid; grid-template-rows: repeat(3, 56px); gap: 14px; align-items: center; }
.node.out { height: 56px; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; padding: 0 16px; }
.node.out i { margin: 0; }
.o-wa i { color: var(--wa); } .o-cloud i { color: var(--accent); } .o-tg i { color: var(--tg); }
.track { position: relative; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 6px, transparent 6px 12px); }
.track .lbl { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap; font: 600 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--on-night-2); }
.pkt { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: flow-x 2.4s linear infinite; }
.pkt.p2 { animation-delay: .8s; } .pkt.p3 { animation-delay: 1.6s; }
.t-wa .pkt { background: var(--wa); box-shadow: 0 0 12px var(--wa); }
.t-tg .pkt { background: var(--tg); box-shadow: 0 0 12px var(--tg); }
.t-wa .pkt.p1 { animation-delay: .3s; } .t-tg .pkt.p1 { animation-delay: 1.1s; }
.track.back { grid-column: 1 / -1; margin: 22px 0 0; }
.track.back .pkt { animation-name: flow-x-back; background: #fbbf24; box-shadow: 0 0 12px #fbbf24; }
.track.back .lbl { bottom: auto; top: 12px; }
.track.back .lbl i { color: #fbbf24; margin-right: 6px; }
@keyframes flow-x { from { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: calc(100% - 10px); opacity: 0; } }
@keyframes flow-x-back { from { left: calc(100% - 10px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pkt { animation: none; opacity: 0; } }

@media (max-width: 1024px) {
  .channels { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin: 0 auto; }
  .integrate .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: 0; justify-items: center; }
  .flow .node.src, .flow .node.hub { width: 100%; max-width: 360px; min-height: 0; }
  .track.t-in { width: 2px; height: 44px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .22) 0 6px, transparent 6px 12px); }
  .track.t-in .pkt { left: -4px; animation-name: flow-y; }
  .track.t-in .lbl { left: 14px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .fan { display: none; }
  .outs { margin-top: 16px; grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .node.out { padding: 0 8px; gap: 6px; justify-content: center; } .node.out b { font-size: 12px; white-space: nowrap; }
  .track.back { width: 100%; margin-top: 30px; }
  .track.back .lbl { white-space: normal; text-align: center; width: 100%; }
}
@keyframes flow-y { from { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 10px); opacity: 0; } }
