:root {
  color-scheme: light;
  --hp-bg: #F5F7FA;
  --hp-surface: #FFFFFF;
  --hp-text: #0F172A;
  --hp-muted: #64748B;
  --hp-primary: #1E3A8A;
  --hp-accent: #0F766E;
  --hp-border: #E2E8F0;
}

.hackpay-site * {
  box-sizing: border-box;
}

.hackpay-site {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 85% 8%, rgba(36, 198, 168, 0.12), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0, var(--hp-bg) 42rem);
  color: var(--hp-text);
}

.hackpay-site .skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: var(--hp-text);
  color: #fff;
  transform: translateY(-150%);
}

.hackpay-site .skip-link:focus { transform: translateY(0); }

.hackpay-site header,
.hackpay-site main,
.hackpay-site footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hackpay-site .header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hackpay-site .goals-access {
  padding: 0.65rem 0.8rem;
  color: var(--hp-primary);
  font-weight: 700;
  text-decoration: none;
}

.hackpay-site header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.hackpay-site .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.hackpay-site .brand-logo {
  display: block;
  width: 168px;
  height: auto;
}

.hackpay-site .client-area,
.hackpay-site .hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border-radius: 8px;
  background: var(--hp-primary);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hackpay-site .client-area:hover,
.hackpay-site .hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30, 58, 138, 0.2); }
.hackpay-site a:focus-visible { outline: 3px solid rgba(36, 198, 168, 0.45); outline-offset: 3px; }

.hackpay-site .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hackpay-site .hero-cta-secondary {
  border: 1px solid var(--hp-border);
  background: var(--hp-surface);
  color: var(--hp-primary);
}

.hackpay-site .hero {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  min-height: 660px;
  padding: 5.5rem 0 5rem;
}

.hackpay-site .eyebrow,
.hackpay-site .panel-label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--hp-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hackpay-site .eyebrow-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #24c6a8;
  box-shadow: 0 0 0 5px rgba(36, 198, 168, 0.12);
}

.hackpay-site h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hackpay-site h1 span { color: var(--hp-primary); }
.hackpay-site .hero-lead { max-width: 640px; font-size: clamp(1.05rem, 1.8vw, 1.2rem); }

.hackpay-site p {
  color: var(--hp-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hackpay-site .panel {
  border: 1px solid var(--hp-border);
  border-radius: 22px;
  background: var(--hp-surface);
  padding: 1.5rem;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.14);
}

.hackpay-site .operation-preview { position: relative; overflow: hidden; }
.hackpay-site .operation-preview::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--hp-primary), #24c6a8); }
.hackpay-site .preview-header, .hackpay-site .preview-metrics { display: flex; justify-content: space-between; gap: 1rem; }
.hackpay-site .preview-header { align-items: center; padding-bottom: 1.2rem; }
.hackpay-site .preview-header .panel-label { margin-bottom: 0.25rem; }
.hackpay-site .live-status { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--hp-accent); font-size: 0.75rem; font-weight: 700; }
.hackpay-site .live-status i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #24c6a8; box-shadow: 0 0 0 4px rgba(36, 198, 168, 0.13); }
.hackpay-site .preview-metric { flex: 1; padding: 1rem; border-radius: 12px; background: #f4f7fb; }
.hackpay-site .preview-metric.accent { background: #e9faf6; }
.hackpay-site .preview-metric span, .hackpay-site .preview-metric small { display: block; color: var(--hp-muted); font-size: 0.72rem; }
.hackpay-site .preview-metric strong { display: block; margin: 0.35rem 0; font-size: 0.92rem; }

.hackpay-site .modules {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hackpay-site .module {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--hp-border);
  border-radius: 8px;
  color: var(--hp-muted);
}

.hackpay-site .module-icon { display: grid; flex: 0 0 2rem; width: 2rem; height: 2rem; place-items: center; border-radius: 8px; background: #edf2f8; color: var(--hp-primary); font-size: 0.68rem; font-weight: 800; }
.hackpay-site .module > strong { margin-right: auto; }
.hackpay-site .preview-link { display: flex; justify-content: space-between; margin-top: 1rem; padding: 0.85rem 0.2rem 0.1rem; color: var(--hp-primary); font-weight: 800; text-decoration: none; }
.hackpay-site .trust-list { display: flex; flex-wrap: wrap; gap: 0.65rem 1.25rem; margin: 1.5rem 0 0; padding: 0; color: var(--hp-muted); font-size: 0.85rem; list-style: none; }
.hackpay-site .trust-list li::before { content: "✓"; margin-right: 0.4rem; color: var(--hp-accent); font-weight: 900; }

.hackpay-site .module strong {
  color: var(--hp-text);
}

.hackpay-site .module-link {
  background: #F8FAFC;
  color: var(--hp-muted);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hackpay-site .module-link:hover,
.hackpay-site .module-link:focus-visible {
  border-color: rgba(30, 58, 138, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.hackpay-site .benefits {
  padding: 3.5rem 0 5rem;
}

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

.hackpay-site h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
}

.hackpay-site .benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.hackpay-site .benefit-card {
  padding: 1.5rem;
  border: 1px solid var(--hp-border);
  border-radius: 14px;
  background: var(--hp-surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hackpay-site .benefit-card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08); }

.hackpay-site .benefit-card > span {
  color: var(--hp-accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.hackpay-site .benefit-card h3 {
  margin: 1rem 0 0.5rem;
}

.hackpay-site .benefit-card p {
  margin: 0;
  font-size: 0.95rem;
}

.hackpay-site .benefit-card strong { display: block; margin-top: 1.15rem; color: var(--hp-primary); font-size: 0.85rem; }

.hackpay-site .goals-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #071b36, var(--hp-primary));
  color: #fff;
}

.hackpay-site .goals-highlight::after { content: ""; position: absolute; right: -6rem; bottom: -9rem; width: 20rem; height: 20rem; border: 1px solid rgba(94, 234, 212, 0.24); border-radius: 50%; box-shadow: 0 0 0 3rem rgba(94, 234, 212, 0.05), 0 0 0 6rem rgba(94, 234, 212, 0.035); pointer-events: none; }
.hackpay-site .goals-highlight > * { position: relative; z-index: 1; }

.hackpay-site .goals-highlight p {
  max-width: 680px;
  margin-bottom: 0;
  color: #dbeafe;
}

.hackpay-site .eyebrow-light {
  color: #5eead4;
}

.hackpay-site .goals-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0 1.15rem;
  border-radius: 9px;
  background: #fff;
  color: var(--hp-primary);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.hackpay-site footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--hp-border);
}

.hackpay-site footer span { font-weight: 800; }
.hackpay-site footer p { margin: 0; font-size: 0.9rem; }
.hackpay-site footer img { width: 118px; height: auto; }
.hackpay-site .footer-links { display: flex; gap: 1rem; }
.hackpay-site .footer-links a { color: var(--hp-primary); font-size: 0.88rem; font-weight: 700; text-decoration: none; }

@media (max-width: 760px) {
  .hackpay-site {
    overflow-x: hidden;
  }

  .hackpay-site header,
  .hackpay-site main,
  .hackpay-site footer {
    width: min(346px, calc(100vw - 32px));
    max-width: min(346px, calc(100vw - 32px));
    margin-left: 16px;
    margin-right: 16px;
  }

  .hackpay-site header {
    align-items: stretch;
    flex-direction: column;
  }

  .hackpay-site .header-actions { width: 100%; }
  .hackpay-site .header-actions > * { flex: 1; }

  .hackpay-site .client-area {
    width: 100%;
  }

  .hackpay-site .hero-actions,
  .hackpay-site .hero-cta {
    width: 100%;
  }

  .hackpay-site .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 2rem 0;
  }

  .hackpay-site .preview-metrics { flex-direction: column; }
  .hackpay-site .module { align-items: flex-start; flex-wrap: wrap; }
  .hackpay-site .module > span:last-child { width: calc(100% - 3rem); margin-left: 3rem; }

  .hackpay-site .benefit-grid,
  .hackpay-site .goals-highlight { grid-template-columns: 1fr; }

  .hackpay-site .goals-cta { white-space: normal; text-align: center; }
  .hackpay-site footer { align-items: flex-start; flex-direction: column; }

  .hackpay-site h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.35rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .hackpay-site p,
  .hackpay-site .panel,
  .hackpay-site .module {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}
