/* ── TETHER WEBSITE — Shared Styles ──────────────────────────────── */
:root {
  --ink:        #15171c;
  --ink-soft:   #21242c;
  --ink-mid:    #2d313b;
  --ink-line:   #383d4a;
  --accent:     #d4f034;
  --accent-deep:#aacf0a;
  --accent-glow:rgba(212,240,52,.18);
  --surface:    #ffffff;
  --bg:         #f5f6f8;
  --border:     #e6e8ec;
  --text:       #1a1d24;
  --muted:      #6b7280;
  --faint:      #9ca3af;
  --emerald:    #10b981;
  --blue:       #3b82f6;
  --amber:      #f59e0b;
  --red:        #ef4444;
  --r:          12px;
  --r-sm:       8px;
  --shadow:     0 1px 3px rgba(16,18,23,.06), 0 4px 20px rgba(16,18,23,.07);
  --shadow-lg:  0 20px 60px rgba(16,18,23,.22);
  --sans:       'IBM Plex Sans', system-ui, sans-serif;
  --display:    'Bricolage Grotesque', system-ui, sans-serif;
  --mono:       'IBM Plex Mono', monospace;
  --nav-h:      64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ink);
  color: #c9cdd6;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAV ─────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(21,23,28,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-line);
  transition: background .2s;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; font-family: var(--display);
  font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.02em;
}
.nav-logo .mark {
  width: 32px; height: 32px; border-radius: 8px; background: var(--ink-soft);
  border: 1px solid var(--ink-line); display: grid; place-items: center;
}
.nav-logo .mark span {
  width: 14px; height: 14px; border: 2.5px solid var(--accent); border-radius: 3px;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 7px 14px; border-radius: var(--r-sm); color: #9ca3af;
  font-size: 14px; font-weight: 500; transition: all .14s;
}
.nav-links a:hover { color: #fff; background: var(--ink-soft); }
.nav-links a.active { color: #fff; }
.nav-cta {
  display: flex; align-items: center; gap: 10px;
}
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--r-sm); font-size: 14px;
  font-weight: 600; cursor: pointer; border: none; transition: all .14s;
  white-space: nowrap; font-family: var(--sans);
}
.btn-ghost {
  background: transparent; color: #9ca3af;
  border: 1px solid var(--ink-line);
}
.btn-ghost:hover { border-color: #6b7280; color: #fff; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-dark { background: var(--ink-soft); color: #fff; border: 1px solid var(--ink-line); }
.btn-dark:hover { background: var(--ink-mid); }
.btn-lg { padding: 13px 26px; font-size: 15.5px; border-radius: var(--r); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: #9ca3af; border-radius: 2px; transition: all .2s; }
.mobile-menu {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0;
  background: var(--ink); z-index: 99; padding: 24px 32px;
  flex-direction: column; gap: 8px;
}
.mobile-menu a {
  padding: 13px 0; border-bottom: 1px solid var(--ink-line);
  color: #c9cdd6; font-size: 17px; font-weight: 500;
}

/* ── UTILITY ─────────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-glow); color: var(--accent);
  border: 1px solid rgba(212,240,52,.3); border-radius: 20px;
  padding: 5px 14px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.chip svg { width: 13px; height: 13px; }
h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 700;
  letter-spacing: -.025em; line-height: 1.15; color: #fff;
}
h1 { font-size: clamp(38px, 5.5vw, 68px); }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: 22px; }
p { line-height: 1.7; }
.lead { font-size: clamp(16px, 1.8vw, 19px); color: #9ca3af; max-width: 560px; }
.text-accent { color: var(--accent); }
.text-muted { color: #6b7280; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── FEATURE GRID ────────────────────────────────────────────────── */
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--r);
  overflow: hidden;
}
.feat-card {
  background: var(--ink-soft); padding: 32px 28px;
  transition: background .15s;
}
.feat-card:hover { background: var(--ink-mid); }
.feat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-glow); border: 1px solid rgba(212,240,52,.25);
  display: grid; place-items: center; margin-bottom: 18px;
  color: var(--accent);
}
.feat-icon svg { width: 22px; height: 22px; }
.feat-card h3 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.feat-card p { color: #9ca3af; font-size: 14.5px; line-height: 1.65; }

/* ── PRICING CARDS ───────────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.price-card {
  background: var(--ink-soft); border: 1px solid var(--ink-line);
  border-radius: 16px; padding: 32px 26px; position: relative;
  transition: transform .15s, border-color .15s;
  display: flex; flex-direction: column;
}
.price-card:hover { transform: translateY(-3px); }
.price-card.featured {
  border-color: var(--accent); background: var(--ink-mid);
}
.price-card.featured::before {
  content: 'Most Popular';
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--ink);
  font-size: 11.5px; font-weight: 700; padding: 3px 12px;
  border-radius: 20px; white-space: nowrap; letter-spacing: .04em;
}
.price-name { font-family: var(--display); font-size: 20px; font-weight: 700; color: #fff; }
.price-amount {
  font-family: var(--display); font-size: 44px; font-weight: 800;
  color: #fff; line-height: 1; margin: 14px 0 4px; letter-spacing: -.03em;
}
.price-amount sub { font-size: 18px; font-weight: 600; color: #9ca3af; vertical-align: super; }
.price-amount small { font-size: 15px; font-weight: 500; color: #6b7280; }
.price-limit { font-size: 13px; color: #9ca3af; margin-bottom: 24px; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-features li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 14px; color: #c9cdd6;
}
.price-features li svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.price-cta { margin-top: 28px; width: 100%; justify-content: center; }

/* ── COMPARISON TABLE ────────────────────────────────────────────── */
.comp-table { width: 100%; border-collapse: collapse; }
.comp-table th {
  text-align: left; padding: 14px 20px; font-size: 13px;
  text-transform: uppercase; letter-spacing: .06em; color: #6b7280;
  border-bottom: 1px solid var(--ink-line); background: var(--ink-soft);
}
.comp-table th:first-child { border-radius: var(--r-sm) 0 0 0; }
.comp-table th:last-child { border-radius: 0 var(--r-sm) 0 0; }
.comp-table td {
  padding: 14px 20px; border-bottom: 1px solid var(--ink-line);
  font-size: 14.5px; color: #c9cdd6;
}
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:hover td { background: var(--ink-soft); }
.comp-table .check { color: var(--accent); }
.comp-table .cross { color: #4b5563; }
.comp-table .cat-row td {
  background: var(--ink-mid); color: #9ca3af; font-size: 12px;
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600; padding: 10px 20px;
}

/* ── TESTIMONIAL / QUOTE ─────────────────────────────────────────── */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote-card {
  background: var(--ink-soft); border: 1px solid var(--ink-line);
  border-radius: var(--r); padding: 28px 24px;
}
.quote-text { font-size: 15px; color: #c9cdd6; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.quote-text::before { content: '"'; color: var(--accent); font-size: 28px; line-height: 0; vertical-align: -10px; margin-right: 4px; }
.quote-author { display: flex; align-items: center; gap: 11px; }
.quote-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--ink); display: grid;
  place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px;
  flex-shrink: 0;
}
.quote-name { font-size: 14px; font-weight: 600; color: #fff; }
.quote-role { font-size: 12.5px; color: #6b7280; }

/* ── CTA SECTION ─────────────────────────────────────────────────── */
.cta-band {
  background: var(--accent); border-radius: 20px;
  padding: 64px 56px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(255,255,255,.15) 0%, transparent 60%);
}
.cta-band h2 { color: var(--ink); position: relative; }
.cta-band p { color: rgba(21,23,28,.65); max-width: 520px; margin: 14px auto 32px; font-size: 17px; position: relative; }
.cta-band .btn-dark { position: relative; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--ink-line); padding: 56px 0 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: #6b7280; font-size: 14px; line-height: 1.7; max-width: 280px; margin-top: 14px; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 16px; }
.footer-col a { display: block; color: #6b7280; font-size: 14px; padding: 4px 0; transition: color .12s; }
.footer-col a:hover { color: #c9cdd6; }
.footer-bottom {
  border-top: 1px solid var(--ink-line); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 13px; color: #4b5563; }
.footer-badge {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: #4b5563;
}

/* ── DOCS ────────────────────────────────────────────────────────── */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: calc(100vh - var(--nav-h)); }
.docs-sidebar {
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
  overflow-y: auto; padding: 32px 24px; border-right: 1px solid var(--ink-line);
  background: var(--ink-soft);
}
.docs-sidebar h5 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: #4b5563; font-weight: 700; margin: 22px 0 8px; font-family: var(--sans);
}
.docs-sidebar h5:first-child { margin-top: 0; }
.docs-sidebar a {
  display: block; padding: 6px 10px; border-radius: var(--r-sm);
  font-size: 13.5px; color: #6b7280; transition: all .12s;
}
.docs-sidebar a:hover { color: #c9cdd6; background: var(--ink-mid); }
.docs-sidebar a.active { color: var(--accent); background: var(--accent-glow); }
.docs-content { padding: 48px 64px; max-width: 820px; }
.docs-content h1 { font-size: 36px; margin-bottom: 12px; }
.docs-content h2 { font-size: 24px; margin: 44px 0 12px; padding-top: 44px; border-top: 1px solid var(--ink-line); }
.docs-content h2:first-of-type { border-top: none; padding-top: 0; }
.docs-content h3 { font-size: 18px; margin: 28px 0 10px; color: #e5e7eb; }
.docs-content p { color: #9ca3af; margin-bottom: 16px; }
.docs-content ul, .docs-content ol { color: #9ca3af; padding-left: 22px; margin-bottom: 16px; }
.docs-content li { margin-bottom: 6px; line-height: 1.7; }
.docs-content code {
  font-family: var(--mono); font-size: 13px; background: var(--ink-mid);
  border: 1px solid var(--ink-line); padding: 2px 7px; border-radius: 5px; color: var(--accent);
}
.docs-content pre {
  background: var(--ink-mid); border: 1px solid var(--ink-line);
  border-radius: var(--r); padding: 22px 24px; overflow-x: auto;
  margin: 20px 0;
}
.docs-content pre code {
  background: none; border: none; padding: 0; color: #c9cdd6; font-size: 13.5px;
}
.docs-content .callout {
  border-left: 3px solid var(--accent); background: var(--accent-glow);
  padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 20px 0;
}
.docs-content .callout p { color: #c9cdd6; margin: 0; }
.docs-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.docs-content th { text-align: left; padding: 10px 14px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; border-bottom: 1px solid var(--ink-line); }
.docs-content td { padding: 11px 14px; border-bottom: 1px solid var(--ink-line); font-size: 14px; color: #9ca3af; }
.docs-content td code { font-size: 12px; }

/* ── ABOUT ───────────────────────────────────────────────────────── */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.value-card {
  background: var(--ink-soft); border: 1px solid var(--ink-line);
  border-radius: var(--r); padding: 32px 28px;
}
.value-num {
  font-family: var(--display); font-size: 48px; font-weight: 800;
  color: var(--accent); letter-spacing: -.03em; line-height: 1;
}

/* ── HERO GLOW ───────────────────────────────────────────────────── */
.hero-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,240,52,.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── APP PREVIEW MOCKUP ──────────────────────────────────────────── */
.mockup {
  background: var(--ink-soft); border: 1px solid var(--ink-line);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.mockup-bar {
  background: var(--ink-mid); padding: 10px 16px;
  display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--ink-line);
}
.mockup-dot { width: 11px; height: 11px; border-radius: 50%; }
.mockup-body { display: grid; grid-template-columns: 200px 1fr; }
.mockup-sidebar {
  background: var(--ink); padding: 16px 12px; border-right: 1px solid var(--ink-line);
}
.mockup-nav-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 6px; margin-bottom: 2px; font-size: 12px; color: #6b7280;
}
.mockup-nav-item.active { background: var(--accent); color: var(--ink); font-weight: 600; }
.mockup-nav-dot { width: 14px; height: 14px; border-radius: 3px; background: currentColor; opacity: .6; flex-shrink: 0; }
.mockup-main { padding: 16px; }
.mockup-stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 12px; }
.mockup-stat {
  background: var(--ink-mid); border: 1px solid var(--ink-line); border-radius: 8px; padding: 10px 12px;
}
.mockup-stat .ms-label { font-size: 9px; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.mockup-stat .ms-val { font-family: var(--display); font-size: 20px; font-weight: 700; color: #fff; }
.mockup-table { background: var(--ink-mid); border: 1px solid var(--ink-line); border-radius: 8px; overflow: hidden; }
.mockup-row { display: grid; grid-template-columns: 80px 1fr 70px 80px; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--ink-line); font-size: 10px; }
.mockup-row.head { color: #4b5563; text-transform: uppercase; letter-spacing: .05em; font-size: 9px; }
.mockup-row:last-child { border-bottom: none; }
.mockup-tag { font-family: var(--mono); color: #c9cdd6; font-size: 10px; }
.mockup-badge { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 9px; font-weight: 600; }
.mb-available { background: #e7f8f1; color: #047857; }
.mb-deployed  { background: #e8f0fe; color: #1d4ed8; }

/* ── ANIMATIONS ──────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-glow { 0%,100% { opacity: .8; } 50% { opacity: 1; } }
.fade-up { animation: fadeUp .6s ease both; }
.fade-up-1 { animation-delay: .1s; }
.fade-up-2 { animation-delay: .22s; }
.fade-up-3 { animation-delay: .34s; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--ink-line); }
  .docs-content { padding: 32px 24px; }
}
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .mockup-body { grid-template-columns: 140px 1fr; }
}
