/* ============================================
   TextShift Design System - go.textshift.org
   Matches textshift.org exactly
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #0a0a0a;
  color: #fff;
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

/* Subtle radial gradient like textshift.org */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(16,185,129,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(16,185,129,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Navigation ---- */
.ts-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ts-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ts-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
}

.ts-nav-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.ts-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 4px;
}

.ts-nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 6px 16px;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.ts-nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.ts-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ts-nav-right a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.2s ease;
}

.ts-nav-right a:hover {
  color: #fff;
}

.ts-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 9999px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ts-btn-primary:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(52, 211, 153, 0.5);
  transform: translateY(-1px);
}

/* ---- Article / CMS Content Layout ---- */
.ts-page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: 64px; /* nav height */
}

.ts-article-hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  text-align: center;
}

.ts-article-hero .ts-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.ts-article-hero .ts-breadcrumb a {
  color: #34d399;
  text-decoration: none;
}

.ts-article-hero .ts-breadcrumb a:hover {
  text-decoration: underline;
}

.ts-article-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.ts-article-hero .ts-meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ts-article-hero .ts-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Article Body */
.ts-article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 60px;
  position: relative;
}

.ts-article-body h2 {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.ts-article-body h3 {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 36px 0 12px;
  line-height: 1.3;
}

.ts-article-body h4 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 28px 0 10px;
}

.ts-article-body p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.ts-article-body strong {
  color: #fff;
  font-weight: 600;
}

.ts-article-body a {
  color: #34d399;
  text-decoration: none;
  border-bottom: 1px solid rgba(52, 211, 153, 0.3);
  transition: border-color 0.2s;
}

.ts-article-body a:hover {
  border-bottom-color: #34d399;
}

.ts-article-body ul, .ts-article-body ol {
  margin: 16px 0 20px 24px;
  color: rgba(255, 255, 255, 0.8);
}

.ts-article-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.ts-article-body li::marker {
  color: #34d399;
}

/* Tables */
.ts-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ts-article-body thead {
  background: rgba(16, 185, 129, 0.1);
}

.ts-article-body th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: #34d399;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ts-article-body td {
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ts-article-body tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ts-article-body tbody tr:last-child td {
  border-bottom: none;
}

/* Blockquotes */
.ts-article-body blockquote {
  border-left: 3px solid #34d399;
  margin: 24px 0;
  padding: 16px 24px;
  background: rgba(16, 185, 129, 0.05);
  border-radius: 0 8px 8px 0;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

/* Code blocks */
.ts-article-body code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
}

.ts-article-body pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}

.ts-article-body pre code {
  background: none;
  padding: 0;
}

/* Horizontal rules */
.ts-article-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 40px 0;
}

/* Images in articles */
.ts-article-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 24px 0;
}

/* ---- CTA Section ---- */
.ts-cta-section {
  max-width: 720px;
  margin: 0 auto 60px;
  padding: 48px 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(16,185,129,0.03) 100%);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.ts-cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(52,211,153,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.ts-cta-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}

.ts-cta-section p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  margin-bottom: 24px;
  position: relative;
}

/* ---- Footer ---- */
.ts-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 24px 24px;
  position: relative;
  z-index: 1;
}

.ts-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.ts-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ts-footer-brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
}

.ts-footer-brand img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.ts-footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.6;
  max-width: 300px;
}

.ts-footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.ts-footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.ts-footer-col a:hover {
  color: #34d399;
}

.ts-footer-bottom {
  max-width: 1280px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.ts-footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-left: 16px;
  transition: color 0.2s;
}

.ts-footer-bottom a:hover {
  color: #34d399;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .ts-nav-links { display: none; }
  .ts-nav { padding: 0 16px; }
  .ts-article-hero { padding: 60px 16px 32px; }
  .ts-article-hero h1 { font-size: 28px; }
  .ts-article-body { padding: 0 16px 40px; }
  .ts-article-body h2 { font-size: 22px; }
  .ts-article-body h3 { font-size: 18px; }
  .ts-cta-section { margin: 0 16px 40px; padding: 32px 24px; }
  .ts-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .ts-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .ts-article-body table { font-size: 13px; }
  .ts-article-body th, .ts-article-body td { padding: 10px 12px; }
}

/* ---- Hide Webflow badge ---- */
.w-webflow-badge { display: none !important; }

/* ---- Webflow Rich Text override ---- */
.w-richtext { color: inherit; }
.w-richtext h2, .w-richtext h3, .w-richtext h4 { color: #fff; }
.w-richtext p { color: rgba(255, 255, 255, 0.8); }
.w-richtext a { color: #34d399; }
.w-richtext table { width: 100%; border-collapse: collapse; }
.w-richtext figure { margin: 24px 0; }
.w-richtext figcaption { color: rgba(255, 255, 255, 0.5); font-size: 13px; text-align: center; margin-top: 8px; }
