/* ==========================================================
   LEGATO COMMERCE CLOUD — Home Page
   Design system: light mint / deep teal / gold
   ========================================================== */

:root {
  --mint: #EAF5F5;
  --mint-deep: #DFEFF0;
  --white: #FFFFFF;

  --teal-900: #0F3A47;
  --teal-800: #124A5B;
  --teal-700: #15596E;
  --teal: #1D7991;
  --teal-600: #2E8AA2;
  --teal-100: #D3EBEE;

  --gold: #F5B84B;
  --gold-deep: #DC962D;
  --gold-light: #FBD787;
  --orange: #F59C2D;
  --blue: #31597C;
  --teal-bright: #1CA6AF;

  --ink: #10303B;
  --muted: #5E7C86;

  --shadow-sm: 0 6px 18px rgba(16, 48, 59, 0.08);
  --shadow-md: 0 18px 40px rgba(16, 48, 59, 0.12);
  --shadow-lg: 0 30px 70px rgba(16, 48, 59, 0.16);
  --shadow-teal: 0 18px 40px rgba(29, 121, 145, 0.22);

  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --font-head: "Plus Jakarta Sans", "Manrope", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

section { position: relative; }

/* ---------- Text helpers ---------- */
.text-accent { color: var(--teal); }
.text-gold { color: var(--gold-deep); }

.eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-100);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  max-width: 640px;
  margin-inline: auto;
}

.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-mint { background: var(--mint); }
.section-white { background: var(--white); }

.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
}
.badge-teal { background: var(--teal); color: var(--white); }
.badge-gold { background: var(--gold); color: var(--teal-900); }
.badge-orange { background: var(--orange); color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 32px;
  border-radius: var(--radius-pill);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  will-change: transform;
}
.btn-lg { padding: 18px 42px; font-size: 1.05rem; }
.btn-sm { padding: 10px 22px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 45%, var(--gold-deep));
  color: var(--teal-900);
  box-shadow: 0 14px 30px rgba(220, 150, 45, 0.35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(220, 150, 45, 0.45); }

.btn-teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-teal);
}
.btn-teal:hover { background: var(--teal-700); transform: translateY(-3px); }

.btn-orange {
  background: linear-gradient(135deg, #F7B553, var(--orange));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(245, 156, 45, 0.35);
}
.btn-orange:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(245, 156, 45, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-ghost:hover { background: var(--teal); color: var(--white); }

.btn-link {
  background: none;
  color: var(--teal);
  padding: 8px 4px;
  font-size: 0.95rem;
  border-bottom: 2px dashed var(--teal);
  border-radius: 0;
}
.btn-link:hover { color: var(--teal-700); border-bottom-style: solid; }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(29, 121, 145, 0.12);
  box-shadow: 0 10px 30px rgba(16, 48, 59, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.brand-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}
.nav-link {
  position: relative;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 2px;
  transition: color .25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 3px;
  border-radius: 3px;
  background: var(--gold-deep);
  transition: width .3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--teal); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  border-radius: 3px;
  background: var(--teal);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  background: var(--white);
  padding: calc(var(--header-h) + 64px) 0 40px;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}
.hero-blob-a {
  width: 460px; height: 460px;
  background: radial-gradient(circle, #CFE9EC, transparent 70%);
  top: -140px; right: -80px;
}
.hero-blob-b {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #FBE3B6, transparent 70%);
  bottom: -160px; left: -120px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

.hero-copy h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 22px 0 18px;
  color: var(--ink);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  color: var(--muted);
  max-width: 480px;
}
.hero-sub .text-gold { font-weight: 800; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid rgba(29, 121, 145, 0.18);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1.1;
}
.hero-stat span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero visual: dashboard mock */
.hero-visual { position: relative; }

.dash-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(29, 121, 145, 0.12);
  overflow: hidden;
  transform: rotate(-1.5deg);
}
.dash-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: #F4FAFA;
  border-bottom: 1px solid rgba(29, 121, 145, 0.1);
}
.dash-dot { width: 11px; height: 11px; border-radius: 50%; background: #DFE9EA; }
.dash-dot:nth-child(1) { background: #F3A8A0; }
.dash-dot:nth-child(2) { background: #F5C47B; }
.dash-dot:nth-child(3) { background: #8CD0B4; }
.dash-url {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--white);
  border: 1px solid rgba(29, 121, 145, 0.15);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
}

.dash-body { display: flex; min-height: 340px; }
.dash-side {
  width: 56px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 14px;
  background: #F4FAFA;
  border-right: 1px solid rgba(29, 121, 145, 0.08);
}
.side-item {
  width: 100%; height: 8px;
  border-radius: 4px;
  background: #DFEBEC;
}
.side-item.active { background: var(--teal); height: 12px; }

.dash-main { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; }
.dash-label { display: block; font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1rem; }
.dash-sub { font-size: 0.75rem; color: var(--muted); }
.dash-chip {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--teal);
  background: var(--teal-100);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  animation: pulseChip 2s infinite;
}
@keyframes pulseChip {
  0%, 100% { box-shadow: 0 0 0 0 rgba(29, 121, 145, 0.35); }
  50% { box-shadow: 0 0 0 7px rgba(29, 121, 145, 0); }
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 150px;
  padding: 14px;
  background: var(--mint);
  border-radius: 16px;
}
.chart-col {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  border-radius: 8px;
}
.chart-bar {
  width: 100%;
  height: var(--h);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--teal-600), var(--teal));
  transition: height .8s ease;
}
.chart-col:nth-child(even) .chart-bar { background: linear-gradient(180deg, var(--gold-light), var(--gold-deep)); }

.dash-tasks { display: flex; flex-direction: column; gap: 10px; }
.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F8FCFC;
  border: 1px solid rgba(29, 121, 145, 0.08);
  padding: 10px 14px;
  border-radius: 12px;
}
.task-check {
  width: 18px; height: 18px;
  border-radius: 6px;
  border: 2px solid #C9DEE0;
  flex-shrink: 0;
}
.task-check.done { background: var(--teal); border-color: var(--teal); position: relative; }
.task-check.done::after {
  content: "";
  position: absolute; inset: 0;
  margin: auto;
  width: 8px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.task-line { height: 9px; border-radius: 5px; background: #DDEBEC; flex: 1; }
.task-line.short { flex: 0 0 40%; }
.task-pct { font-size: 0.75rem; font-weight: 800; color: var(--teal); }

/* Floating cards */
.float-card {
  position: absolute;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(29, 121, 145, 0.1);
  padding: 16px 20px;
  animation: floatY 5s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float-card-price {
  bottom: -28px; left: -26px;
  z-index: 2;
}
.float-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.float-price-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.float-old { font-size: 0.95rem; color: var(--muted); text-decoration: line-through; }
.float-new { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--teal); }
.float-badge {
  position: absolute;
  top: -12px; right: -12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: var(--teal-900);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.float-card-gain {
  top: -22px; right: -18px;
  text-align: right;
  animation-delay: 1.2s;
}
.float-stat { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--gold-deep); line-height: 1; }

.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; z-index: 1; }

/* ==========================================================
   SECTIONS
   ========================================================== */
.product-head { text-align: center; margin-bottom: clamp(40px, 6vw, 70px); }
.product-head .badge { margin-bottom: 18px; }
.product-head .section-title { margin-bottom: 16px; }
.product-head .section-sub { margin-top: 0; }

/* ---------- Product showcase (Digital Dokan) ---------- */
.showcase {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
}

.browser-frame {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(29, 121, 145, 0.12);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  background: #F4FAFA;
  border-bottom: 1px solid rgba(29, 121, 145, 0.1);
}
.browser-dot { width: 12px; height: 12px; border-radius: 50%; background: #E3ECED; }
.browser-dot:nth-child(1) { background: #F3A8A0; }
.browser-dot:nth-child(2) { background: #F5C47B; }
.browser-dot:nth-child(3) { background: #8CD0B4; }
.browser-url {
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--white);
  border: 1px solid rgba(29, 121, 145, 0.15);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}
.browser-frame img { width: 100%; height: auto; }

.price-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(29, 121, 145, 0.1);
  padding: 34px 30px;
  text-align: center;
}
.price-card .badge { margin-bottom: 16px; }
.price-name { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.price-line { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 14px 0 4px; }
.price-old { font-size: 1.15rem; color: var(--muted); text-decoration: line-through; }
.price-arrow { color: var(--gold-deep); font-weight: 800; }
.price-new { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--teal); letter-spacing: -0.02em; }
.price-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.price-feats { margin: 18px 0 24px; display: grid; gap: 10px; text-align: left; }
.price-feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.price-feats li::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  flex-shrink: 0;
}

/* ---------- What we do ---------- */
.what-we-do { text-align: center; }
.what-copy .section-title { margin-top: 18px; }
.what-text {
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
}
.what-text strong { color: var(--teal); }

.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 30px);
  margin-top: 54px;
}
.what-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(29, 121, 145, 0.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.what-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.what-card h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: var(--ink); margin: 20px 0 10px; }
.what-card p { color: var(--muted); font-size: 0.95rem; }

.what-icon {
  display: inline-flex;
  width: 58px; height: 58px;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  background: var(--teal-100);
  position: relative;
}
.what-card:nth-child(2) .what-icon { background: #FBE9C8; }
.what-card:nth-child(3) .what-icon { background: #FBDCC8; }

.what-icon[data-icon="gear"]::before {
  content: "";
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 5px solid var(--teal);
}
.what-card:nth-child(2) .what-icon[data-icon="chart"]::before {
  content: "";
  width: 26px; height: 26px;
  background:
    linear-gradient(180deg, transparent 0 45%, var(--gold-deep) 45% 100%),
    linear-gradient(90deg, transparent 0 30%, var(--gold-deep) 30% 38%, transparent 38%),
    linear-gradient(180deg, transparent 0 20%, var(--gold-deep) 20% 40%, transparent 40% 55%, var(--gold-deep) 55% 75%, transparent 75%);
}
.what-card:nth-child(3) .what-icon[data-icon="rocket"]::before {
  content: "";
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 20px solid var(--orange);
  margin-top: -4px;
}

/* ---------- Brands ---------- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
}
.brand-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(29, 121, 145, 0.08);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: block;
}
.brand-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(29, 121, 145, 0.22); }
.brand-icon {
  width: 96px; height: 96px;
  border-radius: 24px;
  object-fit: cover;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-sm);
}
.brand-icon-b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7B4FD1, #3B82F6);
  color: #fff;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
}
.brand-card h3 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.brand-card p { color: var(--muted); font-size: 0.92rem; margin: 10px 0 16px; }
.brand-more { font-family: var(--font-head); font-weight: 800; font-size: 0.9rem; color: var(--teal); }
.brand-card:hover .brand-more { color: var(--gold-deep); }

/* ---------- Feature strip ---------- */
.feature-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid rgba(29, 121, 145, 0.1);
  border-radius: var(--radius-pill);
  padding: 14px 26px;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-pill:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.fp-icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--teal-100);
  position: relative;
}
.feature-pill:nth-child(even) .fp-icon { background: #FBE9C8; }
.feature-pill:nth-child(3n) .fp-icon { background: #FBDCC8; }

.fp-icon[data-icon="tasks"]::before {
  content: "";
  position: absolute; left: 7px; top: 7px;
  width: 12px; height: 12px;
  border: 2px solid var(--teal);
  border-radius: 4px;
}
.fp-icon[data-icon="board"]::before {
  content: "";
  position: absolute; left: 8px; top: 7px;
  width: 10px; height: 13px;
  background: var(--gold-deep);
  border-radius: 3px;
}
.fp-icon[data-icon="dash"]::before {
  content: "";
  position: absolute; left: 6px; top: 8px;
  width: 6px; height: 11px;
  background: var(--teal);
  border-radius: 2px;
  box-shadow: 9px 0 0 -1px var(--teal), 0 0 0 2px transparent;
}
.fp-icon[data-icon="chat"]::before {
  content: "";
  position: absolute; left: 6px; top: 6px;
  width: 14px; height: 11px;
  background: var(--orange);
  border-radius: 4px;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 60% 70%, 40% 100%, 45% 70%, 0 70%);
}
.fp-icon[data-icon="goal"]::before {
  content: "";
  position: absolute; left: 8px; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--teal);
}
.fp-icon[data-icon="docs"]::before {
  content: "";
  position: absolute; left: 8px; top: 6px;
  width: 10px; height: 13px;
  border: 2px solid var(--gold-deep);
  border-radius: 3px;
}

/* ---------- Split (DokanDao / Legato Pay) ---------- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}
.split-copy .section-title { margin: 18px 0 16px; }
.split-copy .section-sub { margin: 0; text-align: left; }

.feature-list { margin: 26px 0 30px; display: grid; gap: 15px; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
}
.fl-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--teal);
  position: relative;
  flex-shrink: 0;
}
.fl-icon::after {
  content: "";
  position: absolute; inset: 0;
  margin: auto;
  width: 11px; height: 6px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.pay-grid .fl-icon { background: var(--orange); }

.split-visual .browser-frame { transform: rotate(1.5deg); }

/* ---------- Boost banner ---------- */
.boost-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(120deg, var(--teal-900), var(--teal) 65%, var(--teal-600));
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 60px) clamp(28px, 5vw, 70px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.boost-banner::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 75, 0.35), transparent 70%);
  top: -120px; right: 80px;
}
.boost-title { font-family: var(--font-head); font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; color: #fff; line-height: 1.2; margin-top: 14px; }
.boost-sub { color: #C6E3E9; max-width: 560px; margin-top: 10px; }
.boost-copy { position: relative; z-index: 1; }
.boost-banner .btn { position: relative; z-index: 1; flex-shrink: 0; }

/* ---------- Mall ---------- */
.mall-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: -20px 0 44px;
}
.mall-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid rgba(29, 121, 145, 0.12);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--teal);
  box-shadow: var(--shadow-sm);
}
.mc-icon { width: 20px; height: 20px; border-radius: 6px; background: var(--teal-100); position: relative; }
.mc-icon[data-icon="search"]::before {
  content: "";
  position: absolute; left: 5px; top: 5px;
  width: 8px; height: 8px;
  border: 2px solid var(--teal);
  border-radius: 50%;
}
.mc-icon[data-icon="search"]::after {
  content: "";
  position: absolute; right: 4px; bottom: 4px;
  width: 5px; height: 2px;
  background: var(--teal);
  transform: rotate(45deg);
  transform-origin: left;
}
.mc-icon[data-icon="scale"]::before {
  content: "";
  position: absolute; left: 7px; top: 4px;
  width: 2px; height: 12px;
  background: var(--gold-deep);
}
.mc-icon[data-icon="scale"]::after {
  content: "";
  position: absolute; left: 3px; top: 9px;
  width: 10px; height: 7px;
  border: 2px solid var(--gold-deep);
  border-top: none;
}
.mc-icon[data-icon="cart"]::before {
  content: "";
  position: absolute; left: 5px; top: 6px;
  width: 10px; height: 8px;
  border: 2px solid var(--orange);
  border-radius: 2px 2px 6px 6px;
}
.mc-icon[data-icon="cart"]::after {
  content: "";
  position: absolute; left: 9px; top: 3px;
  width: 4px; height: 5px;
  border-left: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  border-radius: 0 0 0 4px;
}

.mall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
}
.mall-cat {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .3s ease, box-shadow .3s ease;
}
.mall-cat:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.cat-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.85);
  color: var(--teal-900);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.mall-cat h3 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.cat-price { color: rgba(255, 255, 255, 0.9); font-weight: 700; margin-top: 4px; }
.cat-cta { display: inline-block; margin-top: 16px; font-weight: 800; font-size: 0.92rem; color: #fff; border-bottom: 2px dashed rgba(255,255,255,0.8); padding-bottom: 2px; }

.cat-fashion { background: linear-gradient(160deg, #2E8AA2, #124A5B 70%); }
.cat-shoe { background: linear-gradient(160deg, #F5B84B, #DC962D 70%); }
.cat-sun { background: linear-gradient(160deg, #31597C, #0F3A47 70%); }
.cat-fashion::after, .cat-shoe::after, .cat-sun::after {
  content: "";
  position: absolute;
  width: 200px; height: 200px;
  border: 30px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  top: -60px; right: -60px;
}

/* ---------- Legato Pay terminal ---------- */
.pay-terminal {
  background: linear-gradient(160deg, #fff, #F4FAFA);
  border: 1px solid rgba(29, 121, 145, 0.12);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}
.pay-terminal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.pay-brand { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.pay-chip {
  width: 44px; height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #E8C987, #C99B4A);
  position: relative;
}
.pay-chip::after {
  content: "";
  position: absolute; inset: 4px;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 3px;
}
.pay-amount { background: var(--white); border: 1px solid rgba(29,121,145,0.1); border-radius: 16px; padding: 18px 20px; margin-bottom: 20px; }
.pay-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.pay-total { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--teal); line-height: 1.2; }
.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
.pay-method {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--white);
  border: 1px solid rgba(29, 121, 145, 0.12);
  border-radius: 12px;
  padding: 13px 8px;
  color: var(--teal);
  transition: transform .25s ease, border-color .25s ease;
}
.pay-method:hover { transform: translateY(-3px); border-color: var(--teal); }
.pay-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.88rem;
  color: #2E9E6B;
  background: #EAF8F1;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
}
.pay-pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2E9E6B;
  animation: pulseChip 1.8s infinite;
}

/* ---------- Partners ---------- */
.partners-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.5vw, 28px); max-width: 980px; margin-inline: auto; }
.partner-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(29, 121, 145, 0.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.partner-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px; height: 74px;
  border-radius: 18px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.p-cab { background: linear-gradient(135deg, #1D7991, #124A5B); color: #fff; }
.p-ecab { background: linear-gradient(135deg, #F5B84B, #DC962D); color: #fff; }
.partner-card h3 { font-family: var(--font-head); font-size: 1.12rem; font-weight: 800; color: var(--ink); }
.partner-card p { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--teal-900), var(--teal) 60%, var(--teal-600));
  border-radius: var(--radius-lg);
  text-align: center;
  padding: clamp(50px, 7vw, 90px) clamp(28px, 6vw, 70px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 75, 0.3), transparent 70%);
  top: -180px; right: -120px;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  bottom: -170px; left: -110px;
}
.cta-title {
  position: relative; z-index: 1;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 780px;
  margin-inline: auto;
}
.cta-text {
  position: relative; z-index: 1;
  color: #C6E3E9;
  max-width: 600px;
  margin: 20px auto 36px;
  font-size: 1.05rem;
}
.cta-band .btn { position: relative; z-index: 1; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { background: var(--white); border-top: 1px solid rgba(29, 121, 145, 0.12); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(30px, 4vw, 60px);
  padding: clamp(50px, 7vw, 80px) 0 50px;
}
.footer-brand .brand { margin-bottom: 20px; }
.footer-about { color: var(--muted); font-size: 0.95rem; max-width: 300px; margin-top: 18px; }
.socials { display: flex; gap: 12px; margin-top: 24px; }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--teal);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.social:hover { background: var(--teal); color: #fff; transform: translateY(-3px); }

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 20px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col ul a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color .25s ease, padding-left .25s ease;
}
.footer-col ul a:hover { color: var(--teal); padding-left: 5px; }
.footer-col address { font-style: normal; color: var(--muted); font-weight: 600; font-size: 0.95rem; line-height: 1.7; }
.footer-mail { display: inline-block; color: var(--teal); font-weight: 700; margin: 16px 0 20px; }
.footer-mail:hover { color: var(--gold-deep); }

.footer-bottom { border-top: 1px solid rgba(29, 121, 145, 0.12); padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { color: var(--muted); font-size: 0.88rem; font-weight: 600; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 900;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-teal);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--teal-700); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .dash-chip, .pay-pulse { animation: none; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .what-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-sub, .hero-actions, .hero-stats { margin-inline: auto; }
  .hero-stats { justify-content: center; }
  .hero-visual { max-width: 560px; margin: 40px auto 0; }
  .showcase { grid-template-columns: 1fr; }
  .price-card { max-width: 420px; margin-inline: auto; }
  .split-grid { grid-template-columns: 1fr; }
  .split-visual { order: 1; }
  .split-copy { order: 2; text-align: center; }
  .split-copy .section-sub, .split-copy .feature-list { text-align: left; }
  .split-copy .btn { margin-inline: auto; }
  .pay-grid .split-copy { order: 1; }
  .pay-grid .split-visual { order: 2; }
  .boost-banner { flex-direction: column; text-align: center; }
  .boost-copy { text-align: center; }
  .boost-sub { margin-inline: auto; }
  .partners-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    box-shadow: 0 30px 50px rgba(16, 48, 59, 0.15);
    padding: 10px 6% 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .nav-links.open { max-height: 420px; padding-top: 14px; padding-bottom: 24px; }
  .nav-link { padding: 13px 8px; border-bottom: 1px solid rgba(29, 121, 145, 0.08); font-size: 1.05rem; }
  .nav-link:last-child { border-bottom: none; }
  .nav-link::after { display: none; }

  .brands-grid, .what-grid, .mall-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .float-card-price { left: -6px; bottom: -22px; }
  .float-card-gain { right: -6px; top: -18px; }
  .chart { height: 120px; }
  .dash-body { min-height: 260px; }
  .pay-methods { grid-template-columns: repeat(2, 1fr); }
  .to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
  .btn-lg { width: 100%; }
  .feature-pill { width: 100%; justify-content: center; }
}
