/* TwistCoin presentation site - sunset palette (pastel red leaning orange) */

:root {
  --color-bg: #fffaf6;
  --color-bg-alt: #fdeee3;
  --color-surface: #ffffff;
  --color-text: #3a2a22;
  --color-text-muted: #8a6b5c;
  --color-border: #f2ddc9;

  --color-primary: #e2725b;
  --color-primary-dark: #c85a44;
  --color-accent: #f4a261;
  --color-accent-soft: #ffd9ba;

  --gradient-sunset: linear-gradient(135deg, #ffb26b 0%, #f4845f 45%, #e2607a 100%);
  --gradient-sunset-soft: linear-gradient(135deg, #ffe3c2 0%, #ffd0c0 50%, #f6c6d3 100%);

  --shadow-soft: 0 8px 30px rgba(194, 92, 68, 0.12);
  --shadow-lift: 0 14px 40px rgba(194, 92, 68, 0.18);

  --radius: 16px;
  --radius-lg: 24px;
  --max-width: 1080px;

  font-size: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #241712;
    --color-bg-alt: #2e1c16;
    --color-surface: #2c1b16;
    --color-text: #f7e9df;
    --color-text-muted: #cba392;
    --color-border: #472e24;

    --color-primary: #f0836a;
    --color-primary-dark: #ff9d81;
    --color-accent: #f6ac6f;
    --color-accent-soft: #4a2c1f;

    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 14px 40px rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

img, svg {
  max-width: 100%;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-text);
}

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

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--gradient-sunset);
  color: #fff8f2;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--color-text-muted);
}

.nav-links a:hover {
  color: var(--color-primary-dark);
}

.nav-toggle {
  display: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}

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

.btn-primary {
  background: var(--gradient-sunset);
  color: #fff8f2;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--color-border);
  color: var(--color-text);
  background: var(--color-surface);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero */

.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.hero .logo-badge {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  font-size: 2.8rem;
  margin: 0 auto 28px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero .btn-row {
  justify-content: center;
  margin-bottom: 20px;
}

/* Callout */

.callout {
  margin: 56px auto;
  max-width: 780px;
  background: var(--gradient-sunset-soft);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

@media (prefers-color-scheme: dark) {
  .callout {
    background: linear-gradient(135deg, #402519 0%, #3a2320 100%);
  }
}

.callout .q {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.callout .a {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0;
}

/* Sections */

section {
  padding: 56px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 44px;
}

.section-heading h2 {
  font-size: 2rem;
  margin: 0 0 12px;
  font-weight: 800;
}

.section-heading p {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* FAQ */

.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-primary);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .faq-body {
  margin-top: 14px;
  color: var(--color-text-muted);
}

.faq .faq-body code {
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* Cards (services grid) */

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

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-sunset);
  color: #fff8f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

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

.card .card-link {
  font-weight: 700;
  font-size: 0.9rem;
}

/* Stat strip */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin: 0 auto;
  max-width: 900px;
}

.stat {
  text-align: center;
}

.stat .value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.stat .label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Content page (node.html) */

.content-page {
  padding: 56px 0 80px;
}

.content-page section {
  padding: 0;
}

.content-page h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.content-page .lede {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.content-page h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient-sunset);
  color: #fff8f2;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}

pre {
  display: block;
  max-width: 100%;
  width: 100%;
  background: #2a1c17;
  color: #fbe4d6;
  padding: 18px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
  box-shadow: var(--shadow-soft);
}

pre code {
  background: none;
  padding: 0;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.note {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.95rem;
}

.content-page h3 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.method-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gradient-sunset-soft);
  color: var(--color-primary-dark);
}

.toc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0 44px;
}

.toc-title {
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 32px;
}

.toc li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.toc a {
  font-weight: 700;
}

@media (max-width: 640px) {
  .toc ol {
    columns: 1;
  }
}

/* Footer */

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

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  font-weight: 600;
}

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

/* Responsive */

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 44px 0 24px;
  }

  .callout {
    padding: 28px 24px;
  }

  .callout .a {
    font-size: 1.35rem;
  }

  section {
    padding: 40px 0;
  }
}
