@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans-SemiBold.ttf'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans-Bold.ttf'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans-ExtraBold.ttf'); font-weight: 800; font-display: swap; }

/* Ocean Breeze, as everywhere else in PalmPay. */
:root {
  --twilight: #03045e;
  --navy: #023e8a;
  --brand: #0077b6;
  --surf: #00b4d8;
  --frost: #90e0ef;
  --cyan: #caf0f8;
  --bg: #f3f8fc;
  --surface: #ffffff;
  --surface-alt: #ebf6fb;
  --line: #dce8f1;
  --ink: #07123a;
  --muted: #4b5b7a;
  --faint: #8592ac;
  --shadow: 0 1px 2px rgba(3, 4, 94, .05), 0 10px 30px rgba(3, 4, 94, .07);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060b2a;
    --surface: #0d1540;
    --surface-alt: #0a1135;
    --line: #1c2a63;
    --ink: #e8f4fb;
    --muted: #a9bad6;
    --faint: #6f80a3;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Jakarta', system-ui, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; max-width: 22ch; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.faint { color: var(--faint); }

/* Nav */
.nav { position: absolute; inset: 0 0 auto; z-index: 2; color: #fff; }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; }
.brand img { border-radius: 8px; }
.brand.small { font-size: 15px; }
.brand.small img { border-radius: 6px; }
.nav-links { display: flex; gap: 28px; font-weight: 600; font-size: 15px; }
.nav-links a { text-decoration: none; opacity: .85; }
.nav-links a:hover { opacity: 1; }

/* Hero */
.hero {
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(0, 180, 216, .35), transparent 60%),
    linear-gradient(135deg, var(--twilight) 0%, var(--navy) 55%, var(--brand) 100%);
  padding: 140px 0 96px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 76px); font-weight: 800; margin: 18px 0 18px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--cyan); max-width: 34ch; }
.pill {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(144, 224, 239, .16); color: var(--frost);
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.pill-dark { background: var(--surface-alt); color: var(--brand); margin-top: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block; padding: 14px 22px; border-radius: 12px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--twilight); }
.btn-ghost { border: 1.5px solid rgba(202, 240, 248, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* Terminal mock-up */
.device {
  justify-self: center; width: min(320px, 100%);
  padding: 14px; border-radius: 34px;
  background: linear-gradient(160deg, #1b2a6b, #070d3a);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.screen {
  border-radius: 24px; padding: 22px 20px 26px; text-align: center;
  background: linear-gradient(170deg, var(--navy), var(--twilight));
  box-shadow: inset 0 0 0 1px rgba(144, 224, 239, .12);
}
.screen-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--frost); font-weight: 600; }
.amount { font-size: 38px; font-weight: 800; margin: 22px 0 18px; }
.amount small { display: block; font-size: 12px; font-weight: 600; color: var(--frost); letter-spacing: .08em; text-transform: uppercase; }
.palm-ring {
  position: relative; width: 150px; height: 150px; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle, rgba(0, 180, 216, .28), rgba(0, 180, 216, .05) 70%);
  box-shadow: inset 0 0 0 2px rgba(144, 224, 239, .45);
}
.palm-ring::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid var(--surf); opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
.palm-ring svg { width: 78px; height: 78px; }
.hint { margin-top: 20px; font-size: 13px; color: var(--cyan); }
@keyframes pulse {
  0% { transform: scale(.9); opacity: .8; }
  100% { transform: scale(1.25); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .palm-ring::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--surface-alt); }
.sub { color: var(--muted); font-size: 18px; margin-top: 12px; max-width: 52ch; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li, .card, .merch-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px; box-shadow: var(--shadow);
}
.steps p, .card p, .merch-card p { color: var(--muted); margin-top: 8px; }
.num {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px;
  border-radius: 12px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--surf));
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card h3::before {
  content: ""; display: block; width: 28px; height: 4px; border-radius: 2px;
  background: var(--surf); margin-bottom: 16px;
}

.merch { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.merch-card h3 { font-size: 22px; font-weight: 800; }

.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

/* Narrow screens */
@media (max-width: 860px) {
  .hero { padding: 112px 0 72px; }
  .hero-grid, .merch { grid-template-columns: 1fr; }
  .steps, .cards { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .nav-links { display: none; }
  .wrap { padding: 0 16px; }
}
