/* TermLink Landing Page */

:root {
  --bg: #0a0e0a;
  --bg-elevated: #111611;
  --bg-card: #141a14;
  --border: #243024;
  --text: #d8e8d8;
  --text-muted: #7a947a;
  --accent: #4ade80;
  --accent-dim: #22c55e;
  --accent-glow: rgba(74, 222, 128, 0.15);
  --amber: #fbbf24;
  --mono: "JetBrains Mono", "SF Mono", "Fira Code", ui-monospace, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 12px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  background-position: center top;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 10, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-dim), #166534);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg) !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
}

.nav-cta:hover {
  background: var(--accent-dim);
}

@media (max-width: 768px) {
  .nav-links li:not(:last-child) {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--accent-dim);
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.hero-badge span {
  color: var(--accent);
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  column-gap: 2.5rem;
  align-items: stretch;
  margin-bottom: 3rem;
}

.hero-left {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy {
  min-width: 0;
  width: 100%;
  max-width: 34rem;
  text-align: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 auto 1.25rem;
  max-width: 22rem;
}

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

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 auto 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-right {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 100%;
}

.hero-video-wrap {
  margin: 0;
  padding: 0;
  width: 320px;
  max-width: 100%;
  flex-shrink: 0;
  overflow: hidden;
}

.hero-video {
  display: block;
  width: 320px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1170 / 2532;
  object-fit: cover;
  border-radius: 24px;
  border: 2px solid var(--border);
  background: #000;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(74, 222, 128, 0.1);
}

@media (max-width: 768px) {
  .hero-main {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }

  .hero-left {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-copy h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    max-width: none;
  }

  .hero-right {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-video-wrap {
    width: 216px;
  }

  .hero-video {
    width: 216px;
    border-radius: 20px;
  }
}

.hero-terminal {
  margin-top: 1.75rem;
  margin-inline: auto;
  max-width: 26rem;
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: #22c55e; }

.terminal-title {
  margin-left: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7;
  overflow-x: auto;
}

.terminal-body .prompt { color: var(--accent); }
.terminal-body .dim { color: var(--text-muted); }

.qr-art {
  margin: 0.65rem 0 0.75rem;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.12;
  color: #e8e8e8;
  background: transparent;
  border: none;
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

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

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Use cases */
.use-cases {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.use-case {
  padding: 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.use-case h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.use-case p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.use-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 3rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Compare table */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-weight: 600;
}

.compare-table td:first-child {
  color: var(--text-muted);
}

.compare-table .yes {
  color: var(--accent);
}

.compare-table .no {
  color: #647064;
}

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

/* Apps strip */
.apps-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.app-chip {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
}

/* Download */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.download-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.download-card h3 {
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.download-card .platform {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.code-block {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-all;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-family: var(--mono);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.download-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.download-note code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.price-card {
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 16px 40px var(--accent-glow);
}

.price-badge {
  position: absolute;
  top: -0.65rem;
  left: 1.5rem;
  padding: 0.2rem 0.65rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-card.coming {
  opacity: 0.72;
  border-style: dashed;
}

.price-badge.coming {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}

.price-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.price-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.price-features li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.5rem;
  position: relative;
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.payment-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.payment-chip {
  padding: 0.4rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 720px;
}

.faq-item {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 28rem;
  margin: 0.5rem 0 0;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

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

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

.footer-copy {
  width: 100%;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Legal pages */
.legal-page {
  padding: 3.5rem 0 4rem;
}

.legal-content {
  max-width: 42rem;
  margin-inline: auto;
}

.legal-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.legal-content code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--accent);
}

.legal-nav-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
