:root {
  --ink: #111318;
  --muted: #626976;
  --line: #dfe3ea;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --accent: #e11d48;
  --green: #0f766e;
}

* { box-sizing: border-box; }

body.platform-page {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
}

a { color: inherit; }

.platform-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(17, 19, 24, .08);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}

.platform-logo {
  display: flex;
  gap: 8px;
  align-items: baseline;
  text-decoration: none;
}

.platform-logo span {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.platform-logo strong {
  font-size: 14px;
  color: var(--muted);
}

.platform-topbar nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 800;
  font-size: 14px;
}

.platform-topbar nav a { text-decoration: none; }

.platform-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  min-height: calc(100vh - 66px);
  align-items: center;
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px) clamp(28px, 4vw, 48px);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 116px);
  line-height: .9;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: #313640;
  font-size: clamp(19px, 2.3vw, 28px);
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.application-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 900;
}

.primary-action,
.application-form button {
  border: 0;
  color: #fff;
  background: var(--ink);
}

.secondary-action {
  border: 1px solid var(--line);
  background: #fff;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-main-img,
.hero-float-img {
  position: absolute;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(15, 23, 42, .18);
}

.hero-main-img {
  inset: 52px 4% auto auto;
  width: min(720px, 92%);
  height: 420px;
}

.hero-float-img {
  width: 260px;
  height: 190px;
}

.float-one { left: 0; top: 0; }
.float-two { right: 0; bottom: 8px; }

.platform-strip,
.platform-section,
.merchant-section,
.platform-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.platform-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.platform-strip div {
  background: #fff;
  padding: 20px;
}

.platform-strip strong,
.platform-strip span {
  display: block;
}

.platform-strip span {
  margin-top: 6px;
  color: var(--muted);
}

.platform-section,
.merchant-section {
  padding: 72px 0;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.merchant-section h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p,
.merchant-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.feature-grid article {
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.feature-grid h3 { margin: 0 0 14px; font-size: 22px; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.45; }

.merchant-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.merchant-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  font-weight: 900;
}

.merchant-card img {
  width: 100%;
  height: 92px;
  object-fit: contain;
}

.application-section {
  border-top: 1px solid var(--line);
}

.application-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.application-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.application-form input,
.application-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
}

.form-wide,
.application-form button,
.form-result {
  grid-column: 1 / -1;
}

.form-result {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}

.form-result.success { color: var(--green); font-weight: 800; }
.form-result.error { color: var(--accent); font-weight: 800; }

.platform-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .platform-topbar { align-items: flex-start; gap: 14px; }
  .platform-topbar nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
  .platform-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 420px; }
  .hero-main-img { width: 92%; height: 300px; }
  .hero-float-img { width: 190px; height: 140px; }
  .platform-strip,
  .feature-grid,
  .merchant-section,
  .application-form { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .platform-topbar { position: static; }
  .platform-topbar nav { justify-content: flex-start; }
  .hero-copy h1 { font-size: 52px; }
  .hero-visual { min-height: 320px; }
  .hero-main-img { inset: 30px auto auto 0; width: 100%; height: 240px; }
  .float-one { display: none; }
  .float-two { width: 150px; height: 110px; }
  .platform-footer { flex-direction: column; }
}
