/* Shared enhanced inner pages — features, download, trust, 404 */

.view-cap,
.view-dl,
.view-policy,
.view-walk,
.view-help {
  background: #060a14;
}

.tt-main {
  background: #060a14;
  color: #cbd5e1;
}

/* Tailwind slate overrides for dark content */
.tt-main .text-slate-900 { color: #f1f5f9; }
.tt-main .text-slate-800 { color: #e2e8f0; }
.tt-main .text-slate-700 { color: #cbd5e1; }
.tt-main .text-slate-600 { color: #94a3b8; }
.tt-main .text-slate-500 { color: #64748b; }
.tt-main .text-slate-400 { color: #94a3b8; }
.tt-main .text-slate-300 { color: #475569; }
.tt-main .text-blue-600 { color: #60a5fa; }
.tt-main .hover\:text-blue-600:hover { color: #93c5fd; }
.tt-main .bg-slate-50 { background: #0f172a; }
.tt-main .border-slate-200 { border-color: rgba(59, 130, 246, 0.12); }

.flow-block {
  position: relative;
}

.flow-block--alt {
  background: linear-gradient(180deg, #0b1120 0%, #0f172a 50%, #0b1120 100%);
}

.block-hd,
.guides-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f1f5f9;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #3b82f6, transparent) 1;
}

.block-hd--mid {
  text-align: center;
  border-image: linear-gradient(90deg, transparent, #3b82f6, transparent) 1;
}

/* Scroll tt-reveal */
.tt-reveal-up,
.tt-reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.tt-reveal-up.is-visible,
.tt-reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Labels & links */
.block-label {
  color: #60a5fa;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #60a5fa;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.link-arrow:hover {
  color: #1d4ed8;
  gap: 0.55rem;
}

.check-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.check-list li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.5;
}

.check-list li span:first-child {
  color: #2563eb;
  font-weight: 700;
  flex-shrink: 0;
}

/* Feature blocks */
.tt-split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .tt-split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .tt-split--flip .cap-row__visual {
    order: 1;
  }

  .tt-split--flip .cap-row__copy {
    order: 2;
  }
}

.cap-row__copy h2 {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 1rem;
}

.cap-row__copy p {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.cap-row__copy p.text-lg {
  font-size: 1.0625rem;
  color: #334155;
}

.cap-row__visual {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.12);
  border: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cap-row__visual:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.18);
}

.cap-row__visual img {
  display: block;
  width: 100%;
}

/* Stat / toolbar cards */
.page-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.stat-tile {
  position: relative;
  padding: 1.25rem 1.125rem 1.125rem;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 0.375rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.stat-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, rgba(59, 130, 246, 0.15));
  opacity: 0.7;
}

.stat-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.18);
}

.stat-tile:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, #60a5fa, rgba(96, 165, 250, 0.2));
}

.stat-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.875rem;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 0.375rem;
}

.stat-tile__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.stat-tile__title,
.stat-tile h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.stat-tile__desc,
.stat-tile p {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0;
}

/* Download cards */
.dl-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.15) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.dl-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #38bdf8);
}

.dl-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15) !important;
}

.page-dl-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 0.375rem;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.15);
}

.page-dl-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: #60a5fa;
}

.dl-copy {
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.dl-copy--sm {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.dl-checklist {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.dl-checklist li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}
.dl-checklist li span { color: #60a5fa; font-weight: 700; }

.dl-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}
.dl-card-meta {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0.25rem 0 0;
}

.page-dl-btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 0.75rem;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
  color: #fff !important;
}

/* Data table */
.data-grid {
  border-radius: 0.375rem;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  background: #0f172a;
}

.data-grid table {
  width: 100%;
  font-size: 0.8125rem;
  border-collapse: collapse;
}

.data-grid td {
  padding: 0.75rem 1rem;
  color: #94a3b8;
  border-top: 1px solid rgba(59, 130, 246, 0.08);
  vertical-align: top;
}

.data-grid tr:first-child td {
  border-top: none;
}

.data-grid td:first-child {
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(37, 99, 235, 0.08);
  width: 38%;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

/* Panels & callouts */
.info-panel {
  padding: 1.25rem;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 0.375rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hash-panel__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.875rem;
}

.hash-panel__label {
  font-size: 0.6875rem;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 0 0 0.35rem;
}

.hash-panel__hash {
  display: block;
  font-size: 0.6875rem;
  font-family: "JetBrains Mono", monospace;
  padding: 0.625rem 0.75rem;
  background: #020617;
  border-radius: 0.25rem;
  word-break: break-all;
  color: #7dd3fc;
  border: 1px solid rgba(59, 130, 246, 0.15);
  margin-bottom: 1rem;
}

.hash-panel__hash:last-child {
  margin-bottom: 0;
}

.callout {
  position: relative;
  padding: 1.25rem 1.125rem;
  border-radius: 0.375rem;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.callout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0.85;
}

.callout:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.15);
}

.callout--warn {
  border-color: rgba(245, 158, 11, 0.25);
}

.callout--warn::before {
  background: linear-gradient(90deg, #f59e0b, rgba(245, 158, 11, 0.15));
}

.callout--warn .callout__icon {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}

.callout--info {
  border-color: rgba(59, 130, 246, 0.2);
}

.callout--info::before {
  background: linear-gradient(90deg, #3b82f6, rgba(59, 130, 246, 0.15));
}

.callout--info .callout__icon {
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
}

.callout__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  border: 1px solid;
  border-radius: 0.375rem;
}

.callout__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.callout h3,
.callout__title {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.callout p,
.callout__text {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0 0 0.875rem;
}

.callout p:last-child,
.callout__text:last-child {
  margin-bottom: 0;
}

.callout__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #60a5fa;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.callout__link:hover {
  color: #93c5fd;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.35);
}

.code-panel {
  background: #0f172a;
  color: #7dd3fc;
  border-radius: 0.875rem;
  padding: 1.25rem;
  font-size: 0.8125rem;
  overflow-x: auto;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.hash-panel code {
  display: block;
  font-size: 0.6875rem;
  font-family: "JetBrains Mono", monospace;
  padding: 0.625rem 0.75rem;
  background: #020617;
  border-radius: 0.25rem;
  word-break: break-all;
  color: #7dd3fc;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

/* Trust articles */
.view-policy-article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.12) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.view-policy-article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #3b82f6, #38bdf8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

html[dir="rtl"] .view-policy-article::before {
  left: auto;
  right: 0;
}

.view-policy-article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.12) !important;
}

.view-policy-article:hover::before {
  opacity: 1;
}

.view-policy-article h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
}

.ethics-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: #475569;
  line-height: 1.6;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.metric-tile {
  padding: 1.25rem;
  text-align: center;
  background: linear-gradient(145deg, #eff6ff, #fff);
  border: 1px solid rgba(147, 197, 253, 0.4);
  border-radius: 0.875rem;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
  transition: transform 0.25s ease;
}

.metric-tile:hover {
  transform: scale(1.04);
}

.metric-tile .metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1d4ed8;
}

.metric-tile .metric-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* 404 enhanced */
.view-err .err-card {
  animation: tt-main--error-in 0.6s ease;
}

@keyframes tt-main--error-in {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.view-err .err-nav a {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.view-err .err-nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .tt-reveal-up,
  .tt-reveal-up,
  .view-err .err-card {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .cap-row__visual:hover,
  .stat-tile:hover,
  .dl-tile:hover,
  .view-policy-article:hover,
  .callout:hover,
  .metric-tile:hover {
    transform: none;
  }
}
