/* Grine Pay website. Same brand as the merchant portal: Poppins for headings,
   Inter for text, Grine Violet and the brand gradient. Fonts are self-hosted. */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: italic; font-display: swap; src: url("/fonts/poppins-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root {
  --violet: #8a3cf8;
  --violet-ink: #6a1fe4;
  --lilac: #c56afb;
  --violet-50: #f5f0ff;
  --violet-100: #ebdfff;
  --night: #07080d;
  --night-2: #101118;
  --night-3: #1a1b23;
  --text: #0d0e16;
  --text-2: #4a4b57;
  --text-3: #6b6c76;
  --line: #e7e7ee;
  --bg: #ffffff;
  --tint: #f7f6fb;
  --grad: linear-gradient(135deg, #c56afb 0%, #8a3cf8 50%, #6a1fe4 100%);
  --radius: 16px;
  --shadow: 0 1px 2px rgb(24 12 56 / 0.04), 0 8px 24px rgb(24 12 56 / 0.06);
  --display: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: var(--violet-ink); }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 48px; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px;
  font-family: var(--display); font-weight: 600; font-size: 14.5px;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-lg { height: 50px; padding: 0 24px; font-size: 15.5px; border-radius: 12px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgb(138 60 248 / 0.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgb(138 60 248 / 0.34); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: #d5d5df; }
.btn-light { background: #fff; color: var(--violet-ink); }
.btn-outline-light { color: #fff; border-color: rgb(255 255 255 / 0.45); }
.btn-outline-light:hover { background: rgb(255 255 255 / 0.1); }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; flex: none; }
.logo-divider { width: 2px; height: 30px; border-radius: 1px; background: var(--grad); transform: skewX(-8deg); }
.logo-text { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.wordmark { font-family: var(--display); font-weight: 700; font-style: italic; font-size: 21px; letter-spacing: -0.01em; }
.wordmark span { color: var(--violet); }
.tagline { font-family: "Montserrat", var(--body); font-weight: 600; font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2); }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a, .link-login { color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.main-nav a:hover, .link-login:hover { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: 20px; }
.mobile-menu { display: none; margin-left: auto; position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-content: center; gap: 4px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 1px; }
.mobile-panel { position: absolute; right: 0; top: 52px; width: min(280px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 10px; display: grid; gap: 2px; }
.mobile-panel a { padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; }
.mobile-panel a:hover { background: var(--tint); }
.mobile-panel .btn { margin-top: 6px; color: #fff; }

/* ---------- Shared section parts ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.overline { font-family: "Montserrat", var(--body); font-weight: 600; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; }
.overline-light { color: var(--lilac); }
h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; font-weight: 700; max-width: 760px; }
.sub { margin-top: 16px; max-width: 680px; color: var(--text-2); font-size: 17px; }
.note { margin-top: 24px; font-size: 13.5px; color: var(--text-3); max-width: 760px; }
.num { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--violet); letter-spacing: 0.04em; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 96px;
  background:
    radial-gradient(800px 520px at 88% -8%, rgb(197 106 251 / 0.18), transparent 70%),
    radial-gradient(640px 420px at -4% 100%, rgb(106 31 228 / 0.07), transparent 70%),
    #fff;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 72px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.3vw, 58px); line-height: 1.07; font-weight: 700; letter-spacing: -0.035em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 22px; font-size: 18px; color: var(--text-2); max-width: 600px; }
.cta-row { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 30px 0 0; color: var(--text-2); font-size: 14px; font-weight: 500; }
.chips li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--violet); }
.dot-card { background: var(--night-3); }
.dot-eur { background: #1f4fd1; }
.dot-usdc { background: #2775ca; }
.dot-usdt { background: #26a17b; }

/* Portal mock */
.mock { margin: 0; }
.mock-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px;
  box-shadow: 0 2px 6px rgb(24 12 56 / 0.05), 0 30px 70px rgb(24 12 56 / 0.14);
}
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mock-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.mock-live { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #15803d; background: #e8f7ee; padding: 3px 8px; border-radius: 6px; }
.mock-over { font-family: "Montserrat", var(--body); font-weight: 600; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.mock-title { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 2px 0 14px; letter-spacing: -0.02em; }
.mock-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.flag { width: 34px; height: 34px; border-radius: 10px; background: var(--violet-50); color: var(--violet-ink); display: grid; place-items: center; font-weight: 700; }
.flag-usdt { background: #e6f5ef; color: #1a7f5f; }
.mock-acc { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.mock-acc b { font-size: 14px; font-weight: 600; }
.mock-acc small { font-size: 12px; color: var(--text-3); }
.mock-amt { font-family: var(--display); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mock-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mock-split div { background: var(--tint); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.mock-split small { font-size: 12px; color: var(--text-3); }
.mock-split b { font-family: var(--display); font-size: 20px; }
.mock-btn { margin-top: 14px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 14.5px; }
.mock figcaption { margin-top: 12px; text-align: center; font-size: 12px; color: var(--text-3); }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-grid > div { padding: 26px 24px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.trust-grid > div:first-child { border-left: 0; padding-left: 0; }
.trust b { font-family: var(--display); font-weight: 600; font-size: 15px; }
.trust span { font-size: 13.5px; color: var(--text-3); }

/* ---------- Industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.ind { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ind h3 { position: relative; padding-left: 18px; }
.ind h3::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); }
.ind p { margin-top: 8px; color: var(--text-2); font-size: 15px; }

/* ---------- Solutions ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.sol { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.sol h3 { margin-top: 14px; }
.sol p { margin-top: 8px; color: var(--text-2); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.steps li { position: relative; padding: 26px; border-radius: var(--radius); background: var(--tint); }
.step-n { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; margin-bottom: 16px; box-shadow: 0 6px 16px rgb(138 60 248 / 0.3); }
.steps p { margin-top: 8px; color: var(--text-2); font-size: 15px; }

/* ---------- Terms ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tier-high { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.tier-name { font-family: var(--display); font-weight: 600; font-size: 18px; margin-bottom: 16px; }
.tier dl { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 12px; column-gap: 16px; }
.tier dt { color: var(--text-3); font-size: 14.5px; }
.tier dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Portal ---------- */
.portal-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.feature-list li { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 2px solid var(--violet-100); }
.feature-list b { font-family: var(--display); font-weight: 600; font-size: 16px; }
.feature-list span { color: var(--text-2); font-size: 15px; }

/* ---------- Security (dark) ---------- */
.section-dark {
  background:
    radial-gradient(700px 420px at 100% 0%, rgb(138 60 248 / 0.22), transparent 70%),
    var(--night);
  color: #fff;
}
.section-dark .sub { color: #b8b5c8; }
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.sec-grid article { padding: 26px; border-radius: var(--radius); background: rgb(255 255 255 / 0.04); border: 1px solid rgb(255 255 255 / 0.09); }
.sec-grid .num { color: var(--lilac); }
.sec-grid h3 { margin-top: 12px; }
.sec-grid p { margin-top: 8px; color: #b8b5c8; font-size: 15px; }

/* ---------- Developers ---------- */
.dev-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--violet-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%236a1fe4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.code { margin: 0; background: var(--night); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgb(24 12 56 / 0.18); }
.code-head { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.code-head span { width: 10px; height: 10px; border-radius: 50%; background: #3a3b46; }
.code-head small { margin-left: 10px; color: #8e88a6; font-size: 12px; }
.code pre { margin: 0; padding: 20px; overflow-x: auto; color: #e9e7f3; font: 13.5px/1.65 ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace; }
.code .c { color: #8e88a6; }
.code .k { color: #c9a7ff; }
.code .s { color: #8fe3b8; }

/* ---------- Coverage ---------- */
.cov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.cov { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.cov-label { font-family: "Montserrat", var(--body); font-weight: 600; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.cov h3 { font-size: 24px; margin-top: 8px; }
.cov p:last-child { margin-top: 6px; color: var(--text-2); font-size: 15px; }

/* ---------- CTA ---------- */
.cta-band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center;
  padding: 56px; border-radius: 24px; color: #fff;
  background: radial-gradient(600px 300px at 100% 0%, rgb(255 255 255 / 0.18), transparent 70%), var(--grad);
}
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 12px; max-width: 560px; color: rgb(255 255 255 / 0.88); font-size: 17px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #b8b5c8; padding: 72px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-grid a { display: block; color: #d8d5e6; text-decoration: none; font-size: 14.5px; margin-bottom: 10px; }
.foot-grid a:hover { color: #fff; }
.foot-grid a.logo-light { display: inline-flex; color: #fff; margin-bottom: 16px; }
.logo-light .tagline { color: #8e88a6; }
.foot-claim { font-size: 14.5px; max-width: 300px; }
.foot-h { font-family: "Montserrat", var(--body); font-weight: 600; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #8e88a6; margin-bottom: 14px; }
.legal { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgb(255 255 255 / 0.08); display: grid; gap: 10px; font-size: 12.5px; line-height: 1.6; color: #8e88a6; max-width: 980px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { gap: 18px; }
  .main-nav a:nth-child(n + 6) { display: none; }
}
@media (max-width: 960px) {
  .wrap { padding: 0 24px; }
  .main-nav, .header-cta { display: none; }
  .mobile-menu { display: block; }
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-grid, .dev-grid, .portal-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .ind-grid, .sol-grid, .sec-grid, .tier-grid, .cov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid > div { border-left: 0; padding-left: 0; }
  .cta-band { grid-template-columns: minmax(0, 1fr); padding: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .header-row { height: 64px; }
  .ind-grid, .sol-grid, .sec-grid, .tier-grid, .cov-grid, .steps, .feature-list, .trust-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .trust-grid > div { padding: 16px 0; border-top: 1px solid var(--line); }
  .trust-grid > div:first-child { border-top: 0; }
  .lead, .sub { font-size: 16px; }
  .cta-band { padding: 28px 22px; }
  .cta-actions .btn { width: 100%; white-space: normal; }
  .mock-card { padding: 16px; }
  .mock-amt { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
