:root {
  --ink: #1a1714;
  --paper: #f5f0e8;
  --paper-dark: #ebe4d8;
  --paper-soft: #faf6ef;
  --accent: #c8432b;
  --accent-strong: #a92f1b;
  --gold: #b8963e;
  --sage: #5a7a5e;
  --blue: #3a5a8c;
  --muted: #8a8275;
  --border: #d4cdbf;
  --border-strong: #c4b9a4;
  --white: #fff;
  --shadow-soft: 0 10px 30px rgba(26, 23, 20, 0.08);
  --shadow-card: 0 18px 45px rgba(26, 23, 20, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(184, 150, 62, 0.12), transparent 40%),
    radial-gradient(circle at 100% 20%, rgba(58, 90, 140, 0.08), transparent 35%),
    linear-gradient(180deg, #f8f4ec 0%, #f4eee3 100%);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(26, 23, 20, 0.03) 0.8px, transparent 0.8px);
  background-size: 4px 4px;
  opacity: 0.15;
  z-index: -1;
}

body.page-home {
  background:
    radial-gradient(circle at 10% -10%, rgba(200, 67, 43, 0.14), transparent 36%),
    radial-gradient(circle at 90% 10%, rgba(184, 150, 62, 0.1), transparent 30%),
    linear-gradient(180deg, #f7f2e8 0%, #f2ece0 100%);
}

body.page-guide {
  background:
    radial-gradient(circle at 95% -5%, rgba(58, 90, 140, 0.12), transparent 35%),
    radial-gradient(circle at 10% 10%, rgba(90, 122, 94, 0.1), transparent 35%),
    linear-gradient(180deg, #f7f2e8 0%, #f2ece0 100%);
}

body.page-links,
body.page-tools,
body.page-contact {
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 67, 43, 0.1), transparent 35%),
    radial-gradient(circle at 0% 25%, rgba(184, 150, 62, 0.1), transparent 35%),
    linear-gradient(180deg, #f7f2e8 0%, #f2ece0 100%);
}

a {
  color: var(--accent);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(196, 185, 164, 0.65);
  backdrop-filter: blur(12px);
  background: rgba(247, 242, 232, 0.84);
  box-shadow: 0 8px 28px rgba(26, 23, 20, 0.06);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 36px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  filter: drop-shadow(0 5px 10px rgba(26, 23, 20, 0.14));
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.75);
  transition: all 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  border-color: var(--accent);
  background: rgba(200, 67, 43, 0.12);
  color: var(--accent);
  transform: translateY(-1px);
}

.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 68px clamp(24px, 6vw, 120px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 50%, rgba(200, 67, 43, 0.08) 0%, transparent 58%),
    radial-gradient(ellipse at 82% 30%, rgba(184, 150, 62, 0.09) 0%, transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.22));
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8963e' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.45;
}

.hero::after {
  content: '';
  position: absolute;
  width: min(45vw, 520px);
  height: min(45vw, 520px);
  border-radius: 50%;
  right: -10vw;
  top: -14vw;
  background: radial-gradient(circle, rgba(200, 67, 43, 0.22), rgba(200, 67, 43, 0));
  filter: blur(10px);
  opacity: 0.5;
}

.hero > * {
  position: relative;
}

.hero > *:not(.hero-actions) {
  animation: fade-up 0.68s ease both;
}

.hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(46px, 8vw, 108px);
  line-height: 0.98;
  font-weight: 400;
  max-width: 980px;
  letter-spacing: -0.02em;
}

.hero h1 em {
  color: var(--accent);
  font-style: italic;
}

.hero-sub {
  font-size: 19px;
  color: #5f584f;
  max-width: 700px;
  margin-top: 24px;
  font-weight: 350;
}

.hero-meta {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  flex-wrap: wrap;
}

.hero-meta span {
  text-transform: uppercase;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 14px rgba(26, 23, 20, 0.06);
}

.meta-item img {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fade-up 0.75s ease both;
  animation-delay: 0.08s;
}

.hero--compact {
  min-height: auto;
  padding: 100px clamp(24px, 6vw, 120px) 76px;
}

.btn {
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 12px 18px;
  transition: all 0.25s ease;
  display: inline-block;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 8px 20px rgba(26, 23, 20, 0.22);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 60px);
}

section {
  padding: 96px 0;
  border-top: 1px solid rgba(212, 205, 191, 0.75);
  position: relative;
}

main > section:nth-of-type(even):not(.hero) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
}

.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-num::after {
  content: '';
  flex: 1;
  max-width: 72px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.55;
}

h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 27px;
  font-weight: 400;
  margin-top: 44px;
  margin-bottom: 12px;
  color: var(--ink);
}

p {
  margin-bottom: 16px;
  color: #3b362f;
  font-weight: 350;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

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

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

.card {
  background: linear-gradient(180deg, #ffffff, #f8f5ee);
  border: 1px solid rgba(212, 205, 191, 0.9);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-strong);
}

.card h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  margin-bottom: 0;
}

.tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.tag-accent {
  background: rgba(200, 67, 43, 0.12);
  color: var(--accent);
}

.tag-gold {
  background: rgba(184, 150, 62, 0.18);
  color: #8b6e23;
}

.tag-sage {
  background: rgba(90, 122, 94, 0.15);
  color: #426046;
}

.callout {
  background: linear-gradient(180deg, #f0e8da, #ece2d2);
  border-left: 4px solid var(--accent);
  padding: 24px 28px;
  margin: 34px 0;
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-soft);
}

.callout-gold {
  border-left-color: var(--gold);
}

.callout-sage {
  border-left-color: var(--sage);
}

.callout-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
  color: var(--accent);
}

.callout-gold .callout-label {
  color: #8b6e23;
}

.callout-sage .callout-label {
  color: #426046;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 34px 0;
}

.compare-card {
  background: linear-gradient(180deg, #ffffff, #f8f5ee);
  padding: 28px;
  border-radius: 14px;
  border: 1px solid rgba(212, 205, 191, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.compare-card h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
}

.compare-card p {
  font-size: 14px;
  line-height: 1.65;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  margin: 30px 0;
  align-items: start;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink), #3a332d);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  box-shadow: 0 6px 14px rgba(26, 23, 20, 0.2);
}

.step-content h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 15px;
  margin-bottom: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 36px 0;
}

.stat {
  text-align: center;
  padding: 28px 16px;
  background: linear-gradient(180deg, #ffffff, #f8f5ee);
  border-radius: 14px;
  border: 1px solid rgba(212, 205, 191, 0.9);
  box-shadow: var(--shadow-soft);
}

.stat-value {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'JetBrains Mono', monospace;
}

.toc {
  background: linear-gradient(180deg, #fff, #f8f5ee);
  border: 1px solid rgba(212, 205, 191, 0.9);
  border-radius: 14px;
  padding: 34px 36px;
  margin: 46px 0;
  box-shadow: var(--shadow-soft);
}

.toc-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.toc ol {
  list-style: none;
  counter-reset: toc-counter;
}

.toc li {
  counter-increment: toc-counter;
  padding: 10px 0;
  border-bottom: 1px solid rgba(212, 205, 191, 0.45);
  font-size: 15px;
  font-weight: 400;
}

.toc li:last-child {
  border-bottom: none;
}

.toc li::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  margin-right: 14px;
}

.toc a {
  color: #352f28;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.pull-quote {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(24px, 3.5vw, 32px);
  line-height: 1.4;
  color: var(--ink);
  padding: 34px 0;
  margin: 34px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--border);
}

.pull-quote .attr {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}

.checklist {
  list-style: none;
  margin: 24px 0;
}

.checklist li {
  padding: 12px 0 12px 32px;
  position: relative;
  border-bottom: 1px solid rgba(212, 205, 191, 0.5);
  font-weight: 300;
  color: #3a3630;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
  font-size: 14px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 44px 0;
  color: var(--muted);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider span {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  font-style: italic;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.link-card {
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #f8f5ee);
  border: 1px solid rgba(212, 205, 191, 0.9);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-soft);
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.link-card h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 6px;
}

.platform-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.platform-head h4 {
  margin: 0;
}

.platform-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.platform-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.link-card p {
  margin-bottom: 0;
}

.small-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: 26px;
}

.contact-form-card {
  background: linear-gradient(180deg, #fff, #f9f6ef);
}

.contact-form-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.contact-form-card p {
  margin-bottom: 18px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 67, 43, 0.14);
}

.contact-form .btn {
  justify-self: start;
  border: none;
  cursor: pointer;
}

.contact-form .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  min-height: 22px;
  font-size: 14px;
  color: #3a3630;
  margin: 0;
}

.form-status.is-error {
  color: #9f2d1a;
}

.form-status.is-success {
  color: #26603b;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.page-footer {
  border-top: 1px solid rgba(196, 185, 164, 0.75);
  padding: 58px 0;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.68));
}

.page-footer .footer-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  margin-bottom: 8px;
}

.page-footer p {
  color: #72695d;
  margin-bottom: 8px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

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

@media (max-width: 760px) {
  .brand-logo {
    height: 40px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding: 78px 24px 62px;
  }

  .hero--compact {
    padding-top: 90px;
    padding-bottom: 64px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
  }

  .btn {
    text-align: center;
  }

  .grid-3,
  .grid-2,
  .compare-grid,
  .stats-row,
  .links-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }

  .step-num {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .toc {
    padding: 24px;
  }

  section {
    padding: 68px 0;
  }
}
