/* KAADXPAY SDN. BHD. website — design system v1 (dark "ink" + aurora accents) */
:root {
  --ink: #070a18;
  --ink-2: #0c1230;
  --ink-3: #121a3f;
  --paper: #f5f7fc;
  --white: #ffffff;
  --text: #0e1630;
  --muted: #566181;
  --on-dark: #e8ecff;
  --on-dark-muted: #9aa6cc;
  --line-dark: rgba(255, 255, 255, 0.09);
  --line-light: #e3e8f4;
  --c1: #22d3ee;
  --c2: #6d5cff;
  --c3: #c084fc;
  --ok: #34d399;
  --grad: linear-gradient(110deg, var(--c1) 0%, var(--c2) 52%, var(--c3) 100%);
  --radius: 18px;
  --shadow: 0 18px 50px -24px rgba(16, 24, 64, 0.35);
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 10px 30px -12px rgba(109, 92, 255, 0.8); }
.btn-primary:hover { box-shadow: 0 14px 36px -12px rgba(109, 92, 255, 0.95); }
.btn-ghost { color: var(--on-dark); border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-light { color: var(--ink); background: #fff; box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.5); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 10, 24, 0.78); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--line-dark); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.brand-word { font-weight: 800; letter-spacing: 0.14em; font-size: 17px; }
.nav-links { display: flex; align-items: center; gap: 30px; color: var(--on-dark-muted); font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-cta { margin-left: 6px; }
.nav-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-dark); border-radius: 10px; background: transparent; padding: 0; cursor: pointer; }
.nav-burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: #fff; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); padding: 150px 0 40px; }
.hero-sm { padding: 140px 0 80px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow.g1 { width: 620px; height: 620px; background: radial-gradient(circle, rgba(109, 92, 255, 0.75), transparent 65%); top: -180px; right: -120px; animation: drift 18s ease-in-out infinite alternate; }
.glow.g2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(34, 211, 238, 0.45), transparent 65%); bottom: -220px; left: -140px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%); }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-60px, 40px, 0); } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; min-height: 520px; }
.hero-copy h1 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 800; color: #fff; margin: 18px 0 20px; }
.hero-copy.narrow { max-width: 720px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #cfd6ff; background: rgba(109, 92, 255, 0.14); border: 1px solid rgba(109, 92, 255, 0.35); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--on-dark-muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 13.5px; color: #8f9bc4; }
.hero-note svg { color: var(--ok); flex: none; }

.hero-visual { position: relative; height: 470px; }
#routeCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.glass { background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.pay-card { position: absolute; left: 6%; bottom: 4%; width: min(330px, 78%); padding: 20px 20px 18px; border-radius: 20px; color: #fff; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.pc-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #b9c2e8; }
.pc-label { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; color: #fff; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); }
.pc-amount { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 14px; }
.pc-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12.5px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); color: #d6dcff; background: rgba(255, 255, 255, 0.05); }
.chip.active { border-color: transparent; background: var(--grad); color: #fff; font-weight: 600; }
.pc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; }
.pc-route { display: inline-flex; align-items: center; gap: 8px; color: #b9c2e8; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
.pc-paid { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 700; }
.tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(52, 211, 153, 0.16); font-style: normal; font-size: 12px; }

.methods { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding: 22px 26px; border-radius: 16px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.03); }
.methods p { font-size: 14px; color: var(--on-dark-muted); }
.methods ul { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; }
.methods li { position: relative; padding-left: 16px; font-weight: 600; font-size: 14.5px; color: #fff; }
.methods li::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 2px; background: var(--grad); }

/* ---------- sections ---------- */
.section { position: relative; padding: 110px 0; }
.section.light { background: var(--paper); }
.section.light.alt { background: #fff; }
.section.dark { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.section-glow { position: absolute; width: 900px; height: 900px; left: 50%; top: -520px; transform: translateX(-50%); background: radial-gradient(circle, rgba(109, 92, 255, 0.28), transparent 60%); pointer-events: none; }
.sec-head { position: relative; max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec-head.left { margin: 0; text-align: left; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.sec-head h2, .section h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.sec-head p { margin-top: 16px; font-size: 17.5px; color: var(--muted); }
.dark .sec-head p, .dark p { color: var(--on-dark-muted); }
.dark h2, .dark h3 { color: #fff; }
.body-lg { font-size: 17px; color: var(--muted); margin-top: 18px; }

/* ---------- cards ---------- */
.cards { position: relative; display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; padding: 28px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-light); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -26px rgba(16, 24, 64, 0.45); border-color: #cfd6f3; }
.card h3 { font-size: 19px; font-weight: 700; margin: 18px 0 10px; }
.card p { font-size: 15px; color: var(--muted); }
.card.glass { background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); border-color: var(--line-dark); box-shadow: none; }
.card.glass:hover { border-color: rgba(109, 92, 255, 0.5); }
.ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(34, 211, 238, 0.14), rgba(109, 92, 255, 0.16)); border: 1px solid rgba(109, 92, 255, 0.25); }
.ic svg, .fi svg { width: 24px; height: 24px; fill: none; stroke: var(--c2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dark .ic svg { stroke: #a99dff; }
.mail { display: inline-block; margin-top: 16px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.addr { margin-top: 14px; color: #fff !important; font-weight: 600; font-size: 14.5px; }

/* ---------- steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 31px; height: 2px; background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.55), rgba(109, 92, 255, 0.6), rgba(192, 132, 252, 0.55), transparent); }
.step { position: relative; padding: 0 6px; }
.num { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; font-weight: 800; font-size: 18px; color: #fff; background: var(--ink-2); border: 1px solid rgba(109, 92, 255, 0.45); box-shadow: 0 0 0 6px var(--ink), 0 10px 30px -10px rgba(109, 92, 255, 0.7); }
.step h3 { font-size: 19px; margin: 22px 0 10px; }
.step p { font-size: 15px; }

/* ---------- split / features ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.features { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.features li { display: flex; gap: 18px; padding: 22px 22px; border-radius: 16px; border: 1px solid var(--line-light); background: var(--paper); transition: border-color .2s ease, transform .2s ease; }
.features li:hover { border-color: #cfd6f3; transform: translateX(4px); }
.fi { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-light); }
.features h3 { font-size: 17px; margin-bottom: 6px; }
.features p { font-size: 15px; color: var(--muted); }

/* ---------- company ---------- */
.company-strip { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding: 48px; border-radius: 26px; background: #fff; border: 1px solid var(--line-light); box-shadow: var(--shadow); }
.cs-copy p { margin-top: 16px; color: var(--muted); font-size: 16.5px; }
.link { display: inline-flex; gap: 6px; margin-top: 20px; font-weight: 700; color: var(--c2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; margin: 0; }
.facts div { padding: 16px 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line-light); }
.facts div:last-child { grid-column: 1 / -1; }
.facts dt { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7a85a6; }
.facts dd { margin: 6px 0 0; font-weight: 700; font-size: 15.5px; color: var(--text); }
.facts.stacked { grid-template-columns: 1fr; gap: 12px; }
.details h3 { font-size: 20px; margin: 0 0 18px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding: 96px 0; background: var(--grad); color: #fff; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent); }
.cta-inner { position: relative; text-align: center; }
.cta-inner h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; }
.cta-inner p { max-width: 620px; margin: 16px auto 30px; font-size: 18px; color: rgba(255, 255, 255, 0.88); }

/* ---------- footer ---------- */
.footer { background: #05070f; color: var(--on-dark-muted); padding: 64px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line-dark); }
.footer-brand p { margin-top: 14px; max-width: 340px; font-size: 14.5px; }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14.5px; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-legal { padding-top: 24px; font-size: 13px; display: grid; gap: 6px; }
.footer-legal strong { color: #fff; }

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

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px; background: rgba(7, 10, 24, 0.97); border-bottom: 1px solid var(--line-dark); transform: translateY(-120%); transition: transform .3s ease; }
  .nav-links.open { transform: none; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-dark); color: #dfe4ff; }
  .nav-cta { margin: 16px 0 0; justify-content: center; }
  .nav-burger { display: block; }
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { height: 400px; }
  .grid-3, .split, .company-strip { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .company-strip { padding: 30px; gap: 30px; }
  .methods { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { width: min(1180px, 100% - 32px); }
  .grid-4, .steps, .facts { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero-visual { height: auto; }
  #routeCanvas { position: relative; height: 240px; }
  .pay-card { position: relative; left: 0; bottom: auto; width: 100%; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
