/* ── Reset & base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0b;
  --bg-elevated: #141416;
  --bg-card: #1a1a1e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #f7931a;
  --accent-hover: #ffaa33;
  --accent-glow: rgba(247, 147, 26, 0.25);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1120px;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ── Typography ── */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h1, h2, h3 {
  line-height: 1.15;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.02em;
}

h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-header p:last-child {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0b;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 32px var(--accent-glow);
}

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

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: #0a0a0b;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--accent-glow), transparent),
    radial-gradient(circle at 80% 60%, rgba(247, 147, 26, 0.06), transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  padding-block: 4rem 6rem;
}

.btcpay-logo {
  display: block;
  flex-shrink: 0;
}

.btcpay-logo--section {
  width: 1.5rem;
  height: auto;
}

.btcpay-logo--footer {
  width: 1rem;
  height: auto;
}

.section-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.section-brand .eyebrow {
  margin-bottom: 0;
}

.hero-lead {
  max-width: 520px;
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stats strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.hero-stats span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Sections ── */
.section {
  padding-block: 6rem;
}

.services {
  background: var(--bg-elevated);
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(247, 147, 26, 0.3);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ── Integrations ── */
.integrations {
  background: var(--bg);
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  max-width: 960px;
  margin-inline: auto;
}

.integration-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.integration-grid li:hover {
  border-color: rgba(247, 147, 26, 0.35);
  background: var(--bg-elevated);
}

.integration-grid .integration-custom {
  border-color: rgba(247, 147, 26, 0.4);
  color: var(--accent);
}

.integration-note {
  max-width: 560px;
  margin: 2rem auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.integration-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.integration-note a:hover {
  color: var(--accent-hover);
}

/* ── Benefits ── */
.benefits {
  background: var(--bg-elevated);
}

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

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.benefit-card:hover {
  border-color: rgba(247, 147, 26, 0.3);
  transform: translateY(-2px);
}

.benefit-card-featured {
  border-color: rgba(247, 147, 26, 0.45);
  background: linear-gradient(145deg, rgba(247, 147, 26, 0.08), var(--bg-card));
}

.benefit-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ── Steps ── */
.step-list {
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #0a0a0b;
  font-weight: 700;
  border-radius: 50%;
  font-size: 0.9375rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ── Why ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 147, 26, 0.15);
  color: var(--accent);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.testimonial {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-left: 3px solid var(--accent);
}

.testimonial p {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Contact ── */
.contact {
  background: var(--bg-elevated);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-copy p {
  color: var(--text-muted);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}

.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-row select option {
  background: var(--bg-card);
  color: var(--text);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #52525b;
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 0;
  margin-bottom: 0;
  font-size: 0.875rem;
}

.form-status.error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.contact-form.submitted .form-row,
.contact-form.submitted .btn,
.contact-form.submitted .form-note,
.contact-form.submitted .form-status {
  display: none;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.contact-form.submitted .form-success {
  display: block;
}

.form-success h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-muted);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-powered {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-powered a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-powered a:hover {
  color: var(--text);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.875rem 0.5rem;
  }

  .nav-links .btn {
    margin-top: 0.5rem;
    width: 100%;
  }

  .nav-toggle.open span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle.open span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .why-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .hero-stats {
    gap: 1.5rem;
  }
}
