:root {
  --bg: #0c1222;
  --surface: #141c2f;
  --border: #243047;
  --text: #e8edf7;
  --muted: #8b9ab5;
  --accent: #3d8bfd;
  --accent-dim: #2563eb;
  --success: #34d399;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.hero {
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--success);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-lead {
  margin: 0 auto 2rem;
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  box-shadow: 0 4px 24px rgba(61, 139, 253, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(61, 139, 253, 0.45);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
  text-decoration: none;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.features {
  padding: 2rem 0 4rem;
}

.features h2 {
  text-align: center;
  font-size: 1.35rem;
  margin: 0 0 2rem;
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.pricing-teaser {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.pricing-teaser h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.pricing-teaser p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

.footer-dev {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.9;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.merchants {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
}

.merchants h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

/* Forms (signup / login) */
.form-panel {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.form-panel h1 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
}

.form-lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form input {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-msg {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.9rem;
}

.form-msg.error {
  color: #f87171;
}

.form-msg.success {
  color: var(--success);
}

.form-footer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.account-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
}

.account-box pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 0.8rem;
  color: var(--muted);
}
