/* Kaginet — Warm Scandinavian design.
   Off-white, #212121 text, Bitcoin amber accents, generous whitespace. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #f5f2ee;
  --bg-alt: #ede9e3;
  --bg-card: #faf8f5;
  --border: #ddd6cc;
  --text: #212121;
  --text-secondary: #5c5549;
  --muted: #8c8478;
  --accent: #e8860c;
  --accent-light: #fdf0e0;
  --accent-dark: #c66d00;
  --green: #3d7a4a;
  --green-light: #eaf3ec;
  --amber-light: #fef7ed;
  --code-bg: #1e1d1b;
  --code-text: #d9d0c5;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); }
a:hover { text-decoration-color: var(--text); }

code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg-alt);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--text);
}

/* Layout */

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 88px 0;
}

.alt-bg { background: var(--bg-alt); }

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 242, 238, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
}

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

.nav-logo-img {
  width: 33px;
  height: 33px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  font-weight: 500;
}

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

/* Buttons */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}

.btn:hover { text-decoration: none; opacity: 0.92; transform: translateY(-1px); }

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

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

.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

/* Hero */

.hero {
  padding: 100px 0 60px;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--text);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: 20px;
  line-height: 1.75;
  max-width: 600px;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
}

/* Trust Bar */

.trust-bar-section {
  padding: 0 0 60px;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: flex-start;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  background: var(--bg-alt);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.trust-check {
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Problem Section */

.problem-section {
  padding: 88px 0;
  background: var(--bg-alt);
}

.problem-quote {
  max-width: 620px;
}

.problem-quote p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.problem-quote p:last-child { margin-bottom: 0; }

.problem-punchline {
  font-size: 1.1rem;
  color: var(--text);
}

.problem-punchline strong {
  color: var(--accent-dark);
}

/* Section headers */

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
  color: var(--text);
}

.section-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 560px;
  line-height: 1.75;
}

/* Features */

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

.feature {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 10px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.feature h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Steps */

.step {
  display: flex;
  gap: 24px;
  margin-bottom: 44px;
}

.step:last-child { margin-bottom: 0; }

.step-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.82rem;
  margin-top: 3px;
}

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Diagrams */

.diagram-container {
  margin-top: 40px;
  text-align: center;
}

.diagram-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

/* Lifecycle diagram */

.lifecycle-block {
  background: var(--code-bg);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 40px;
}

.lifecycle-header {
  padding: 10px 20px;
  background: #262420;
  border-bottom: 1px solid #3a3631;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.lifecycle-block pre {
  padding: 24px;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--code-text);
  overflow-x: auto;
  margin: 0;
}

/* FAQ */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.faq-a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Evaluator cards */

.eval-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.eval-card {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.eval-card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.eval-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.eval-best-for {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

.eval-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.eval-tag-auto {
  background: var(--green-light);
  color: var(--green);
}

.eval-tag-manual {
  background: var(--amber-light);
  color: var(--accent-dark);
}

/* Callout */

.callout {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-top: 28px;
}

.callout strong { color: var(--text); }

/* Code blocks */

.code-block {
  background: var(--code-bg);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 16px;
}

.code-block-label {
  padding: 8px 16px;
  background: #262420;
  border-bottom: 1px solid #3a3631;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.code-block pre {
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--code-text);
  overflow-x: auto;
  margin: 0;
}

/* Security Section */

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
  margin-bottom: 40px;
}

.security-card {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.security-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 8px;
}

.security-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.security-card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.security-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Security guarantee table */

.security-guarantee {
  margin-top: 16px;
}

.guarantee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.guarantee-table thead {
  background: var(--bg-alt);
}

.guarantee-table th {
  text-align: left;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.guarantee-table td {
  padding: 12px 18px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}

.guarantee-table tr:last-child td {
  border-bottom: none;
}

.guarantee-table .no-trust {
  color: var(--green);
  font-weight: 600;
  font-size: 0.82rem;
}

/* TDX Chain */

.tdx-chain {
  margin-top: 8px;
}

.tdx-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
}

.tdx-step:last-child { margin-bottom: 0; }

/* Vertical connector line */
.tdx-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 36px;
  width: 2px;
  height: calc(100% - 4px);
  background: var(--border);
}

.tdx-step-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.82rem;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.tdx-step-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.tdx-step-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2px;
}

.tdx-verify {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 500;
}

/* Comparison Table */

.comparison-wrapper {
  margin-top: 28px;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison-table thead {
  background: var(--bg-alt);
}

.comparison-table th {
  text-align: center;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.comparison-table th:first-child {
  text-align: left;
}

.comparison-table td {
  padding: 12px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-highlight {
  background: var(--accent-light);
}

.check-yes {
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
}

.check-no {
  color: var(--muted);
  font-size: 0.9rem;
}

/* CTA */

.cta-section {
  text-align: center;
  padding: 88px 0;
}

.cta-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1rem;
}

.cta-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.cta-step {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.cta-time {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}

.cta-arrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

/* Footer */

footer {
  padding: 36px 0 28px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-inner p {
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
}

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

/* Responsive */

@media (max-width: 768px) {
  .hero { padding: 72px 0 40px; }
  .hero h1 { font-size: 1.7rem; }
  .features { grid-template-columns: 1fr; gap: 16px; }
  .eval-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .nav-links a:not(.btn) { display: none; }
  .footer-inner { flex-direction: column; gap: 16px; }
  .trust-bar { justify-content: center; }
  .trust-bar-section { padding: 0 0 40px; }
  .comparison-table { font-size: 0.78rem; }
  .comparison-table th,
  .comparison-table td { padding: 10px 10px; }
  .cta-steps { flex-direction: column; gap: 8px; }
  .cta-arrow { display: none; }
  .guarantee-table th,
  .guarantee-table td { padding: 10px 12px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 1.45rem; }
  .step { flex-direction: column; gap: 10px; }
  .tdx-step { flex-direction: column; gap: 8px; }
  .tdx-step:not(:last-child)::after { display: none; }
}
