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

:root {
  --c-primary: #0f766e;
  --c-primary-light: #14a89c;
  --c-primary-dark: #0c5f58;
  --c-primary-dim: rgba(15, 118, 110, 0.1);
  --c-primary-glow: rgba(15, 118, 110, 0.22);
  --c-secondary: #b99619;
  --c-secondary-light: #d4b03a;
  --c-secondary-dim: rgba(185, 150, 25, 0.12);
  --c-secondary-glow: rgba(185, 150, 25, 0.25);
  --c-bg: #f7faf9;
  --c-surface: #ffffff;
  --c-surface-2: #eef6f5;
  --c-surface-warm: #faf8f2;
  --c-border: rgba(15, 118, 110, 0.12);
  --c-border-strong: rgba(15, 118, 110, 0.22);
  --c-text: #1c3330;
  --c-text-on-primary: #ffffff;
  --c-muted: #5c7571;
  --c-subtle: #8fa8a4;
  --c-heading: #0f2926;
  --c-white: #ffffff;
  --f-display: 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'Inter', system-ui, sans-serif;
  --logo-url: url('public/pay-logo.webp');
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 76px;
  --shadow-sm: 0 2px 8px rgba(15, 41, 38, 0.06);
  --shadow-md: 0 12px 40px rgba(15, 41, 38, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 41, 38, 0.12);
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--c-primary);
  color: var(--c-white);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-surface-2); }
::-webkit-scrollbar-thumb {
  background: var(--c-primary);
  border-radius: 99px;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 3vw, 40px);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  transition: transform 0.3s var(--ease-spring), opacity 0.3s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.03);
  opacity: 0.92;
}

.brand-logo--footer {
  height: 34px;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--c-primary);
  background: var(--c-primary-dim);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--c-primary);
  color: var(--c-white);
  font-family: var(--f-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background 0.2s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--c-primary-glow);
  background: var(--c-primary-dark);
}

.nav-toggle { display: none; }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  background: transparent;
  border: none;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-heading);
  border-radius: 99px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── LAYOUT ─── */
.wrap {
  width: min(1320px, calc(100% - clamp(32px, 5vw, 72px)));
  margin: 0 auto;
}

.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.section-sub--center { margin-left: auto; margin-right: auto; text-align: center; }
.about-text--spaced { margin-top: 24px; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 56px) 0 72px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--c-primary-dark) 0%, var(--c-primary) 42%, #11877e 100%);
  color: var(--c-text-on-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(185, 150, 25, 0.12) 0%, transparent 35%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  width: min(720px, 90vw);
  height: min(720px, 90vw);
  top: -220px;
  right: -180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 62%);
  border-radius: 50%;
  animation: drift 20s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute;
  width: min(560px, 70vw);
  height: min(560px, 70vw);
  bottom: -200px;
  left: -140px;
  background: radial-gradient(circle, rgba(185, 150, 25, 0.18) 0%, transparent 68%);
  border-radius: 50%;
  animation: drift 16s ease-in-out infinite alternate-reverse;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 48px 112px;
  align-items: center;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-secondary-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) forwards 0.1s;
}

.hero .eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--c-secondary-light);
  border-radius: 2px;
}

.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--c-white);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) forwards 0.2s;
}

.hero h1 em {
  font-style: normal;
  color: var(--c-secondary-light);
}

.hero-sub {
  margin-top: 22px;
  font-size: 1.08rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  max-width: 500px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) forwards 0.32s;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) forwards 0.44s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--c-primary);
  color: var(--c-white);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background 0.2s;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px var(--c-primary-glow);
  background: var(--c-primary-dark);
}

.btn-primary:hover::after { transform: translateX(100%); }

.hero .btn-primary {
  background: var(--c-white);
  color: var(--c-primary-dark);
}

.hero .btn-primary:hover {
  background: #f0faf9;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.btn-primary.btn-secondary,
.btn-secondary {
  background: var(--c-secondary);
  color: var(--c-white);
}

.btn-primary.btn-secondary:hover,
.btn-secondary:hover {
  background: #a38315;
  box-shadow: 0 14px 36px var(--c-secondary-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1.5px solid var(--c-border-strong);
  background: var(--c-surface);
  color: var(--c-heading);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s, background 0.25s, color 0.25s;
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--c-primary);
  background: var(--c-primary-dim);
  color: var(--c-primary-dark);
}

.btn-ghost--light {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: var(--c-white);
}

.btn-ghost--light:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--c-white);
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) forwards 0.56s;
}

.stat-item { display: flex; flex-direction: column; gap: 4px; }

.hero .stat-num {
  font-family: var(--f-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -0.03em;
}

.hero .stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.68);
}

.hero .stat-accent { color: var(--c-secondary-light); }

/* Hero product image */
.hero-visual {
  position: relative;
  opacity: 0;
  animation: fadeScale 0.9s var(--ease-out) forwards 0.35s;
  justify-self: end;
  width: 100%;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 8% 5%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
  transform: scale(1.12);
  transform-origin: center right;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.28));
  transition: transform 0.45s var(--ease-spring);
}

.hero-visual:hover .hero-image {
  transform: translateY(-6px) scale(1.14);
}

/* Hero highlights bar — spans under copy + image */
.hero-highlights {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
  margin-top: 8px;
  padding: 8px 0 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.hero-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.hero-highlight-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--c-white);
}

.hero-highlight-icon svg {
  width: 22px;
  height: 22px;
}

.hero-highlight-title {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hero-highlight-desc {
  margin-top: 4px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

/* ─── DASHBOARD CARD ─── */
.dashboard-wrap {
  position: relative;
  opacity: 0;
  animation: fadeScale 0.9s var(--ease-out) forwards 0.3s;
}

.dashboard-glow {
  position: absolute;
  inset: -32px;
  background: radial-gradient(ellipse at center, rgba(15, 118, 110, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.dashboard {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.dashboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  height: 3px;
  width: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--c-primary), var(--c-secondary), transparent);
  border-radius: 0 0 4px 4px;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dash-dots { display: flex; gap: 6px; }

.dash-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dash-dots span:nth-child(1) { background: #ff5f57; }
.dash-dots span:nth-child(2) { background: #febc2e; }
.dash-dots span:nth-child(3) { background: #28c840; }

.dash-title {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--c-muted);
  letter-spacing: 0.06em;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--c-primary);
  font-weight: 500;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
  animation: pulse 1.8s ease-in-out infinite;
}

.dash-total-card {
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  color: var(--c-white);
}

.dash-total-card::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.dash-total-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  margin-bottom: 8px;
}

.dash-total-amount {
  font-family: var(--f-display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.dash-total-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}

.dash-total-sub strong { color: var(--c-secondary-light); }

.dash-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 14px;
  transition: border-color 0.25s, transform 0.25s var(--ease-spring);
}

.metric-card:hover {
  border-color: var(--c-border-strong);
  transform: translateY(-2px);
}

.metric-label {
  font-size: 0.7rem;
  color: var(--c-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.metric-value {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--c-heading);
  letter-spacing: -0.03em;
}

.metric-bar {
  height: 4px;
  background: rgba(15, 118, 110, 0.1);
  border-radius: 99px;
  margin-top: 10px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  border-radius: inherit;
  transform-origin: left;
  animation: barGrow 1.2s var(--ease-out) forwards 0.8s;
  transform: scaleX(0);
}

.bar-primary { background: var(--c-primary); width: 78%; }
.bar-secondary { background: var(--c-secondary); width: 56%; }

.dash-txns {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.txn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: 10px;
  transition: background 0.2s;
}

.txn-row:hover { background: var(--c-primary-dim); }

.txn-left { display: flex; align-items: center; gap: 12px; }

.txn-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.txn-icon.green { background: var(--c-primary-dim); }
.txn-icon.amber { background: var(--c-secondary-dim); }
.txn-icon.blue { background: rgba(59, 130, 246, 0.1); }

.txn-name { font-size: 0.82rem; font-weight: 600; color: var(--c-heading); }
.txn-sub { font-size: 0.7rem; color: var(--c-muted); }

.txn-badge {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
}

.badge-paid { background: var(--c-primary-dim); color: var(--c-primary-dark); }
.badge-sent { background: var(--c-secondary-dim); color: #8a6f10; }
.badge-processing { background: rgba(59, 130, 246, 0.1); color: #2563eb; }

/* ─── SECTIONS ─── */
section { padding: 96px 0; position: relative; overflow: hidden; }


.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-weight: 500;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--c-secondary);
  border-radius: 2px;
}

.section-h2 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--c-heading);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-h2 em {
  font-style: normal;
  color: var(--c-primary);
}

.section-sub {
  margin-top: 16px;
  font-size: 1.02rem;
  color: var(--c-muted);
  max-width: 560px;
  line-height: 1.75;
}

/* ─── ABOUT ─── */
.about {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  /* gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--c-border-strong);
  border-radius: 99px;
  background: var(--c-primary-dim); */
  font-size: 1.2rem;
  color: var(--c-primary-dark);
  font-weight: 600;
  margin-bottom: 22px;
}

.about-text {
  font-size: 1.05rem;
  color: var(--c-muted);
  line-height: 1.85;
}

.about-text strong {
  color: var(--c-heading);
  font-weight: 600;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
}

.about-image {
  display: block;
  width: 112%;
  max-width: none;
  height: auto;
  margin: 0;
  border: none;
  border-radius: 24px;
  filter: contrast(1.06) saturate(1.08);
  box-shadow:
    0 32px 72px rgba(15, 118, 110, 0.38),
    0 16px 40px rgba(15, 118, 110, 0.28),
    0 6px 16px rgba(15, 118, 110, 0.18);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s ease, filter 0.45s ease;
}

/* .about-visual:hover .about-image {
  transform: translateY(-6px) scale(1.02);
  filter: contrast(1.08) saturate(1.1);
  box-shadow:
    0 40px 88px rgba(15, 118, 110, 0.45),
    0 20px 48px rgba(15, 118, 110, 0.32),
    0 8px 20px rgba(15, 118, 110, 0.22);
} */

/* ─── FEATURES ─── */
.features { padding: 96px 0; }

.features-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 52px;
}

.features-head .section-sub { margin-top: 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.35s var(--ease-spring), border-color 0.35s, box-shadow 0.35s;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c-primary-dim), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  z-index: 0;
}

.feature-card::after {
  content: '';
  position: absolute;
  right: -8px;
  bottom: -12px;
  width: 88px;
  height: 88px;
  background-image: var(--logo-url);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-spring);
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--c-border-strong);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before { opacity: 1; }

.feature-card:hover::after {
  opacity: 0.09;
  transform: scale(1.08) rotate(-6deg);
}

.feature-num {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--c-subtle);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--c-primary-dim);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
  transition: transform 0.35s var(--ease-spring), background 0.35s;
}

.feature-card:hover .feature-icon {
  background: rgba(15, 118, 110, 0.18);
  transform: scale(1.08) rotate(-4deg);
}

.feature-title {
  font-family: var(--f-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--c-heading);
  margin-bottom: 10px;
  line-height: 1.35;
}

.feature-desc {
  font-size: 0.84rem;
  color: var(--c-muted);
  line-height: 1.65;
}

/* ─── WHY (primary band) ─── */
.why {
  background: linear-gradient(160deg, var(--c-primary-dark) 0%, var(--c-primary) 55%, #117a72 100%);
  color: var(--c-text-on-primary);
}

.why .section-label { color: var(--c-secondary-light); }
.why .section-label::before { background: var(--c-secondary-light); }
.why .section-h2 { color: var(--c-white); }
.why .section-h2 em { color: var(--c-secondary-light); }

.why-head {
  margin-bottom: 48px;
  max-width: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;  
}

.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 48px 64px;
  align-items: center;
}

.why-lead {
  margin-top: 18px;
  /* max-width: 640px; */
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.why-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px 28px;
  margin-top: 0;
}

@media (min-width: 1024px) {
  .why-list {
    grid-template-columns: 1fr 1fr;
  }
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  transition: transform 0.35s var(--ease-spring);
}

.why-item:hover {
  transform: translateX(4px);
  background: none;
}

.why-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--c-secondary-light);
  font-size: inherit;
}

.why-icon svg {
  width: 20px;
  height: 20px;
}

.why-title {
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.why-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  max-width: none;
}

.why-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-visual::before {
  content: '';
  position: absolute;
  width: 72%;
  height: 62%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 176, 58, 0.22) 0%, transparent 68%);
  pointer-events: none;
}

.why-image {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 340px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.35));
  transition: transform 0.45s var(--ease-spring);
}

.why-visual:hover .why-image {
  transform: translateY(-8px);
}

/* ─── HOW ─── */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
  position: relative;
}

.how-steps::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.66% + 40px);
  right: calc(16.66% + 40px);
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-border), var(--c-secondary));
  border-radius: 2px;
  z-index: 0;
}

.step-card {
  position: relative;
  z-index: 1;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-spring), border-color 0.35s, box-shadow 0.35s;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: var(--c-border-strong);
  box-shadow: var(--shadow-md);
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 22px;
}

.step-num.primary {
  background: var(--c-primary-dim);
  color: var(--c-primary);
  border: 1px solid var(--c-border-strong);
}

.step-num.secondary {
  background: var(--c-secondary-dim);
  color: var(--c-secondary);
  border: 1px solid rgba(185, 150, 25, 0.25);
}

.step-title {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-heading);
  margin-bottom: 12px;
}

.step-desc { font-size: 0.88rem; color: var(--c-muted); line-height: 1.65; }

/* ─── PARENTS ─── */
.parents {
  background: var(--c-surface-warm);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.parents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.parents-visual {
  position: relative;
  padding: 12px 0;
}

.parents-collage {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: min(480px, 72vw);
  margin: 0 auto;
}

.parents-collage::before {
  content: '';
  position: absolute;
  width: 72%;
  height: 72%;
  top: 50%;
  left: 38%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--c-primary-dim) 0%, transparent 68%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.parents-collage::after {
  content: '';
  position: absolute;
  width: 42%;
  height: 42%;
  bottom: 6%;
  right: 4%;
  background: radial-gradient(circle, var(--c-secondary-dim) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.parents-collage__cell {
  position: absolute;
  margin: 0;
  padding: 7px;
  background: var(--c-white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(15, 41, 38, 0.04),
    0 18px 48px rgba(15, 41, 38, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out),
    z-index 0s;
  will-change: transform;
}

.parents-collage__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.5s var(--ease-out);
}

.parents-collage__cell:hover {
  z-index: 10;
  box-shadow:
    0 8px 12px rgba(15, 41, 38, 0.06),
    0 28px 64px rgba(15, 41, 38, 0.18);
}

.parents-collage__cell:hover img {
  transform: scale(1.03);
}

/* Back layer — students */
.parents-collage__cell--kids {
  width: 68%;
  height: 78%;
  top: 6%;
  left: 0;
  z-index: 1;
  transform: rotate(-3deg);
}

.parents-collage__cell--kids:hover {
  transform: rotate(-1deg) scale(1.02);
}

/* Front-right — parent paying */
.parents-collage__cell--mum {
  width: 46%;
  height: 58%;
  top: 0;
  right: 0;
  z-index: 3;
  transform: rotate(5deg);
}

.parents-collage__cell--mum:hover {
  transform: rotate(2deg) scale(1.02);
}

/* Front-bottom — mobile payment */
.parents-collage__cell--pay {
  width: 56%;
  height: 38%;
  bottom: 2%;
  right: 6%;
  z-index: 2;
  transform: rotate(-4deg);
}

.parents-collage__cell--pay:hover {
  transform: rotate(-1.5deg) scale(1.02);
}

@media (max-width: 768px) {
  .parents-collage {
    height: min(400px, 88vw);
    max-width: 100%;
  }

  .parents-collage__cell {
    padding: 5px;
    border-radius: 12px;
  }

  .parents-collage__cell img {
    border-radius: 7px;
  }

  .parents-collage__cell--kids {
    width: 64%;
    height: 74%;
    transform: rotate(-2deg);
  }

  .parents-collage__cell--mum {
    width: 44%;
    height: 54%;
    transform: rotate(4deg);
  }

  .parents-collage__cell--pay {
    width: 54%;
    height: 36%;
    right: 2%;
    transform: rotate(-3deg);
  }
}

@media (max-width: 420px) {
  .parents-collage {
    height: 340px;
  }

  .parents-collage__cell--kids {
    width: 62%;
    height: 70%;
  }

  .parents-collage__cell--mum {
    width: 42%;
    height: 50%;
  }

  .parents-collage__cell--pay {
    width: 52%;
    height: 34%;
    bottom: 4%;
  }
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--c-muted);
  transition: color 0.2s;
}

.check-list li:hover { color: var(--c-heading); }

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--c-primary);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── TESTIMONIALS ─── */
.testimonials {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}

.t-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 44px;
}

.t-card {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), border-color 0.35s, box-shadow 0.35s;
}

.t-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-border-strong);
  box-shadow: var(--shadow-md);
}

.t-card::before {
  content: '"';
  position: absolute;
  right: 20px;
  top: -10px;
  font-family: var(--f-display);
  font-size: 7rem;
  font-weight: 900;
  color: rgba(15, 118, 110, 0.06);
  line-height: 1;
}

.t-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.t-stars span { color: var(--c-secondary); font-size: 0.9rem; }

.t-text {
  font-size: 0.95rem;
  color: var(--c-text);
  line-height: 1.75;
  position: relative;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
}

.t-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--c-white);
}

.t-avatar--primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
}

.t-avatar--secondary {
  background: linear-gradient(135deg, var(--c-secondary), var(--c-secondary-light));
}

.t-name { font-size: 0.85rem; font-weight: 600; color: var(--c-heading); }
.t-role { font-size: 0.72rem; color: var(--c-muted); }

/* ─── INTEGRATION ─── */
.integration {
  border-top: 1px solid var(--c-border);
}

.integration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.ecosystem {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eco-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  transition: transform 0.35s var(--ease-spring), border-color 0.35s, box-shadow 0.35s;
}

.eco-item:hover {
  transform: translateX(8px);
  border-color: var(--c-border-strong);
  box-shadow: var(--shadow-sm);
}

.eco-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-primary {
  background: var(--c-primary);
  box-shadow: 0 0 10px var(--c-primary-glow);
}

.dot-secondary {
  background: var(--c-secondary);
  box-shadow: 0 0 10px var(--c-secondary-glow);
}

.dot-blue {
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.35);
}

.eco-name {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-heading);
}

.eco-desc { font-size: 0.78rem; color: var(--c-muted); }

.eco-arrow {
  margin-left: auto;
  color: var(--c-subtle);
  font-size: 0.9rem;
  transition: transform 0.25s, color 0.25s;
}

.eco-item:hover .eco-arrow {
  transform: translateX(4px);
  color: var(--c-primary);
}

/* ─── CTA ─── */
.cta-section {
  padding: 80px 0;
  background: var(--c-surface-2);
}

.cta-box {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 50%, #0e6b64 100%);
  border-radius: 28px;
  padding: clamp(44px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--c-white);
  box-shadow: 0 24px 60px var(--c-primary-glow);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(185, 150, 25, 0.2);
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.cta-box .section-label { color: var(--c-secondary-light); justify-content: center; }
.cta-box .section-label::before { background: var(--c-secondary-light); }
.cta-box .section-h2 { color: var(--c-white); margin: 12px 0 18px; }
.cta-box .section-h2 em { color: var(--c-secondary-light); }
.cta-box .section-sub { color: rgba(255, 255, 255, 0.82); margin: 0 auto 32px; text-align: center; }

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--c-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 40px;
}

.footer .brand { color: var(--c-white); }
.footer .brand-mark { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px;
}

.footer-brand { margin-bottom: 18px; }

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  max-width: 300px;
}

.footer-h {
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
  color: var(--c-secondary-light);
  padding-left: 4px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--c-secondary-light);
}

.badge-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-secondary-light);
  animation: pulse 2s infinite;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScale {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes spinRing {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}

@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(24px, 18px); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }

  .nav-toggle:checked ~ .nav .nav-links {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 800;
  }

  .hero-grid,
  .about-grid,
  .parents-grid,
  .integration-grid { grid-template-columns: 1fr; gap: 48px; }

  .why-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-head { margin-bottom: 36px; }

  .why-image { width: min(100%, 280px); }

  .hero-copy { order: 1; }
  .hero-visual { order: 0; justify-self: center; }
  .hero-highlights { order: 2; }

  .hero-image {
    max-width: 640px;
    transform: scale(1.06);
    transform-origin: center center;
  }

  .hero-visual:hover .hero-image {
    transform: translateY(-6px) scale(1.08);
  }

  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 8px 0 0;
  }

  .about-visual { justify-content: center; }
  .about-image { width: 100%; max-width: 520px; }

  .features-head { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps::before { display: none; }
  .t-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-image { max-width: 100%; }
  .why-image { width: min(100%, 240px); }
}

.sr-anchor {
  position: absolute;
  top: -88px;
}

.how-intro {
  max-width: 600px;
  margin: 0 auto;
}

.testimonials-intro {
  max-width: 560px;
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
