:root {
  --bg: #ffffff;
  --soft: #f6f9ff;
  --blue-soft: #eef5ff;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5eaf2;
  --success: #15803d;
  --success-bg: #ecfdf3;
  --pending: #a16207;
  --pending-bg: #fff8e6;
  --radius: 14px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

body.loading {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}


/* LOADER */

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #ffffff;
  transition:
    opacity .45s ease,
    visibility .45s ease;
}

.site-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  width: 190px;
  text-align: center;
}

.loader-mark {
  height: 28px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  margin-bottom: 14px;
}

.loader-mark span {
  width: 5px;
  background: var(--blue);
  border-radius: 4px;
  animation: loaderBars .9s ease-in-out infinite;
}

.loader-mark span:nth-child(1) {
  height: 12px;
}

.loader-mark span:nth-child(2) {
  height: 24px;
  animation-delay: .12s;
}

.loader-mark span:nth-child(3) {
  height: 17px;
  animation-delay: .24s;
}

.loader-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

.loader-line {
  width: 100%;
  height: 2px;
  background: var(--blue-soft);
  overflow: hidden;
  margin-top: 16px;
}

.loader-line span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--blue);
  animation: loaderLine 1s ease-in-out infinite;
}

@keyframes loaderBars {
  0%, 100% {
    transform: scaleY(.65);
  }

  50% {
    transform: scaleY(1);
  }
}

@keyframes loaderLine {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(270%);
  }
}


/* NAV */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .05em;
  margin-right: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.desktop-nav a,
.nav-login {
  font-size: 14px;
  color: #4b5563;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}


/* BUTTON */

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid var(--blue);
  border-radius: 9px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
}

.button-small {
  min-height: 37px;
  padding-inline: 15px;
}

.button-secondary {
  background: #ffffff;
  color: var(--blue);
}


/* HERO */

.hero {
  padding: 88px 0 80px;
}

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

.eyebrow {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  margin-bottom: 14px;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: -.035em;
}

.rotating-wrap {
  display: inline-block;
  min-width: 190px;
  color: var(--blue);
}

#rotating-text {
  display: inline-block;
  transition:
    opacity .22s ease,
    transform .22s ease;
}

#rotating-text.hide {
  opacity: 0;
  transform: translateY(7px);
}

.hero-description {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-preview {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  background: #ffffff;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.preview-header strong {
  display: block;
  font-size: 16px;
  margin-top: 2px;
}

.preview-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
}

.system-status {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 11px;
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.stat-card span,
.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.stat-card strong {
  display: block;
  font-size: 21px;
  margin: 4px 0 1px;
}

.transaction-preview {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.transaction-head,
.transaction-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
}

.transaction-head {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

.transaction-row + .transaction-row {
  border-top: 1px solid var(--border);
}

.transaction-row strong,
.transaction-row small {
  display: block;
}

.transaction-row strong {
  font-size: 12px;
}

.transaction-row small {
  color: var(--muted);
  font-size: 11px;
}

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

.badge.success {
  color: var(--success);
  background: var(--success-bg);
}

.badge.pending {
  color: var(--pending);
  background: var(--pending-bg);
}


/* SECTION */

.section {
  padding: 82px 0;
}

.section-soft {
  background: var(--soft);
}

.section-heading {
  max-width: 620px;
  margin-bottom: 35px;
}

.section-heading.center {
  text-align: center;
  margin-inline: auto;
}

.section-heading h2,
.developer-grid h2,
.cta h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.section-heading p,
.section-text {
  color: var(--muted);
  margin-top: 12px;
}

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

.metrics div {
  border-left: 1px solid var(--border);
  padding-left: 18px;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: 17px;
}

.metrics span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.feature-card {
  min-height: 200px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-number {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.feature-card h3,
.flow-step h3,
.security-grid h3 {
  margin: 26px 0 8px;
  font-size: 16px;
}

.feature-card p,
.flow-step p,
.security-grid p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

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

.flow-step {
  padding: 20px;
  border-top: 2px solid var(--blue);
  background: #ffffff;
}

.flow-step span {
  color: var(--blue);
  font-size: 11px;
}

.developer-grid {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 70px;
  align-items: center;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.code-card {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #111827;
  color: #e5e7eb;
}

.code-card pre {
  margin: 0;
  padding: 24px;
  font-size: 13px;
  line-height: 1.8;
}

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

.security-grid article {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 20px;
}

.security-grid h3 {
  margin-top: 0;
}

.integration-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.integration-list span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 15px;
  color: #4b5563;
  font-size: 12px;
}

.faq-container {
  max-width: 820px;
}

details {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 17px;
}

details + details {
  margin-top: 9px;
}

summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 14px;
}

details p {
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 15px;
  margin: 0;
}

.cta {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}


/* FOOTER */

.footer {
  padding: 55px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(5, 1fr);
  gap: 34px;
}

.footer-grid strong {
  display: block;
  font-size: 13px;
  margin-bottom: 13px;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0;
}

.footer-brand p {
  max-width: 240px;
  color: var(--muted);
  font-size: 12px;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--border);
  margin-top: 44px;
  padding-top: 25px;
}

.footer-contact strong,
.footer-contact span {
  display: block;
}

.footer-contact strong {
  font-size: 13px;
}

.footer-contact span {
  color: var(--muted);
  font-size: 11px;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-links a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #4b5563;
  font-size: 10px;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}


/* MOBILE */

@media (max-width: 900px) {

  .desktop-nav {
    display: none;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-grid,
  .developer-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .metrics,
  .flow-grid,
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

}

@media (max-width: 600px) {

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .navbar .brand {
    font-size: 12px;
  }

  .nav-login {
    display: none;
  }

  .hero {
    padding: 48px 0 55px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .rotating-wrap {
    min-width: auto;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .nav-actions .button {
    width: auto;
  }

  .metrics,
  .feature-grid,
  .flow-grid,
  .security-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .feature-card {
    min-height: auto;
  }

  .footer-contact,
  .footer-bottom,
  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

}


/* AUTHENTICATION */

.auth-page {
  min-height: 100vh;
  background: #f7f9fc;
}

.auth-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.auth-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-back {
  color: var(--muted);
  font-size: 13px;
}

.auth-shell {
  min-height: calc(100vh - 69px);
  display: grid;
  place-items: center;
  padding: 45px 20px;
}

.auth-card {
  width: min(100%, 440px);
  padding: 34px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.auth-title {
  margin-bottom: 25px;
}

.auth-title h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.auth-title p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-error {
  padding: 12px 14px;
  margin-bottom: 17px;
  border: 1px solid #fecaca;
  background: #fff7f7;
  color: #b42318;
  border-radius: 9px;
  font-size: 12px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label > span {
  font-size: 12px;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #d8dee8;
  border-radius: 9px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--blue);
}

.auth-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  margin-top: 3px;
}

.auth-switch {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.auth-switch a {
  color: var(--blue);
  font-weight: 600;
}


/* USER DASHBOARD */

.dashboard-page {
  min-height: 100vh;
  background: #f7f9fc;
}

.dash-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.dash-topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dash-user div {
  text-align: right;
}

.dash-user strong,
.dash-user span {
  display: block;
}

.dash-user strong {
  font-size: 12px;
}

.dash-user span {
  color: var(--muted);
  font-size: 10px;
}

.dash-logout {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  color: #4b5563;
}

.dash-main {
  padding: 50px 0 80px;
}

.dash-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}

.dash-heading h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -.025em;
}

.dash-heading p {
  color: var(--muted);
  margin: 7px 0 0;
  font-size: 13px;
}

.account-status {
  padding: 6px 11px;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.dash-stats article {
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.dash-stats span,
.dash-stats small {
  display: block;
  color: var(--muted);
}

.dash-stats span {
  font-size: 11px;
}

.dash-stats strong {
  display: block;
  margin: 7px 0 2px;
  font-size: 24px;
}

.dash-stats small {
  font-size: 10px;
}

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

.dash-panel {
  padding: 23px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 13px;
}

.dash-panel-head {
  margin-bottom: 17px;
}

.dash-label {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.dash-panel h2 {
  margin: 3px 0 0;
  font-size: 17px;
}

.account-row {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.account-row span {
  color: var(--muted);
  font-size: 11px;
}

.account-row strong {
  max-width: 65%;
  text-align: right;
  overflow-wrap: anywhere;
  font-size: 11px;
}

.quick-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.quick-action strong,
.quick-action div span {
  display: block;
}

.quick-action strong {
  font-size: 12px;
}

.quick-action div span {
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}


@media (max-width: 800px) {
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .auth-card {
    padding: 25px 20px;
  }

  .dash-user div {
    display: none;
  }

  .dash-main {
    padding-top: 35px;
  }

  .dash-heading h1 {
    font-size: 22px;
  }

  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-stats article {
    padding: 16px;
  }

  .dash-stats strong {
    font-size: 21px;
  }

  .dash-panel {
    padding: 18px;
  }
}


/* PAYMENT METHODS */

.payment-add-button {
  white-space: nowrap;
}

.payment-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.payment-summary article {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.payment-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.payment-summary strong {
  display: block;
  margin-top: 7px;
  font-size: 24px;
}

.payment-list {
  display: grid;
  gap: 14px;
}

.payment-empty,
.payment-card,
.api-key-created {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.payment-empty h2 {
  margin: 6px 0;
  font-size: 20px;
}

.payment-empty p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.payment-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.payment-card h2 {
  margin: 5px 0 3px;
  font-size: 17px;
}

.payment-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.payment-id {
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.method-status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.method-status.active {
  background: #eafff4;
  color: #078b56;
}

.method-status.inactive {
  background: #f1f3f6;
  color: #737b87;
}

.payment-info-row {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
}

.payment-info-row span {
  color: var(--muted);
  font-size: 11px;
}

.payment-info-row strong {
  max-width: 65%;
  text-align: right;
  overflow-wrap: anywhere;
  font-size: 10px;
}

.method-toggle {
  width: 100%;
  min-height: 40px;
  margin-top: 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
}

.api-key-created {
  margin-bottom: 16px;
  border-color: #a7d8ff;
}

.api-key-created h2 {
  margin: 6px 0;
  font-size: 19px;
}

.api-key-created p {
  color: var(--muted);
  font-size: 11px;
}

.api-key-box {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.api-key-box code {
  flex: 1;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
  font-size: 10px;
}

.api-key-box button {
  border: 0;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
}

.payment-create-shell {
  padding: 45px 20px 80px;
}

.payment-create-card {
  width: min(100%, 620px);
  margin: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 30px;
}

.payment-create-card h1 {
  margin: 6px 0 0;
  font-size: 25px;
}

.payment-create-desc {
  margin: 8px 0 25px;
  color: var(--muted);
  font-size: 12px;
}

.auth-form select,
.auth-form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d8dee8;
  border-radius: 9px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  outline: none;
}

.auth-form select {
  height: 46px;
}

.auth-form textarea {
  resize: vertical;
  line-height: 1.5;
}

.auth-form select:focus,
.auth-form textarea:focus {
  border-color: var(--blue);
}

.field-help {
  display: block;
  margin-top: -7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}


@media (max-width: 520px) {

  .payment-create-card {
    padding: 22px 18px;
  }

  .payment-info-row {
    display: block;
  }

  .payment-info-row strong {
    display: block;
    max-width: 100%;
    text-align: left;
    margin-top: 5px;
  }

  .api-key-box {
    display: block;
  }

  .api-key-box button {
    width: 100%;
    min-height: 40px;
    margin-top: 8px;
  }

}
