/* ============================================================
   Termio – Product Site Stylesheet
   ============================================================ */

/* --- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Design Tokens ------------------------------------------ */
:root {
  --bg:           #0d1117;
  --bg-card:      #161b22;
  --bg-card-alt:  #1a2030;
  --bg-nav:       rgba(13,17,23,.85);
  --border:       #30363d;
  --border-light: #21262d;
  --accent:       #00d4aa;
  --accent-dim:   rgba(0,212,170,.12);
  --accent-hover: #00efc0;
  --blue:         #4f8ef7;
  --text:         #e6edf3;
  --text-muted:   #8b949e;
  --text-faint:   #4d5566;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(0,0,0,.4);
  --transition:   .18s ease;
  --max-w:        1120px;
  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    "Cascadia Code", "Fira Code", Consolas, monospace;
}

/* --- Base --------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Image Placeholder -------------------------------------- */
.img-placeholder {
  background: var(--bg-card-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 24px;
  min-height: 120px;
}
.img-placeholder .ph-icon {
  font-size: 32px;
  opacity: .4;
}
.img-placeholder .ph-name {
  font-weight: 600;
  color: var(--accent);
  font-size: 13px;
}
.img-placeholder .ph-size {
  color: var(--text-faint);
  font-size: 11px;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #0d1117;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* --- Badge -------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0,212,170,.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  letter-spacing: .02em;
}
.badge::before { content: "●"; font-size: 7px; }

.badge-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 5px 10px;
}
.badge-link:hover { color: var(--accent); }
.badge-link svg { width: 14px; height: 14px; }

/* === NAVIGATION ============================================= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.02em;
  margin-right: auto;
}
.nav-logo span { color: var(--text-muted); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 8px 18px; font-size: 14px; }
.nav-lang {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  padding: 5px 8px;
  cursor: pointer;
  outline: none;
}
.nav-lang:focus { border-color: var(--accent); }

/* === HERO =================================================== */
.hero {
  padding: 96px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(0,212,170,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-note {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 64px;
}
.hero-screenshot {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(0,212,170,.05);
}
.hero-screenshot .img-placeholder { min-height: 540px; border: none; border-radius: 0; }

/* MS Store badge placeholder */
.store-badge-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 8px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.store-badge-placeholder .ph-name { color: var(--accent); font-weight: 600; }

/* === SECTION COMMON ======================================== */
section { padding: 88px 0; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
}
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }

/* === BETA DOWNLOAD ========================================== */
.download-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 56px 0;
}
.download-card {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 44px;
  margin-bottom: 20px;
}
.download-card-left { flex: 1; }
.download-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  flex-shrink: 0;
}
.download-version-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.download-badge-beta {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  background: rgba(255,180,0,.15);
  color: #f0b400;
  border: 1px solid rgba(255,180,0,.3);
  border-radius: 4px;
  padding: 2px 8px;
}
.download-badge-stable {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0,212,170,.3);
  border-radius: 4px;
  padding: 2px 8px;
}
.download-version {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.download-date {
  font-size: 13px;
  color: var(--text-faint);
}
.download-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.download-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 480px;
}
.download-requirements {
  font-size: 13px;
  color: var(--text-faint);
  display: flex;
  gap: 8px;
}
.download-btn { min-width: 200px; justify-content: center; }
.download-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 280px;
}
.download-meta-row {
  display: flex;
  gap: 12px;
  font-size: 12px;
  align-items: baseline;
}
.download-meta-label {
  color: var(--text-faint);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 11px;
  min-width: 48px;
}
.download-meta-value {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 12px;
  word-break: break-all;
}
.download-hash { font-size: 11px; color: var(--text-faint); }
.download-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-faint);
  padding: 14px 18px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  line-height: 1.6;
}
.download-notice svg { color: #f0b400; margin-top: 1px; }
.download-notice strong { color: var(--text-muted); }
.download-notice a { color: var(--accent); }
.download-notice a:hover { text-decoration: underline; }
.download-notice-warning {
  margin-top: 10px;
  background: rgba(240,180,0,.06);
  border-color: rgba(240,180,0,.25);
}
.download-notice-warning svg { color: #f0b400; }

@media (max-width: 720px) {
  .download-card { flex-direction: column; padding: 28px 24px; gap: 28px; }
  .download-card-right { align-items: stretch; width: 100%; }
  .download-btn { width: 100%; }
}

/* === HOW IT WORKS =========================================== */
.how-it-works {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 88px 0 72px;
}
.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.flow-step {
  flex: 1;
  min-width: 220px;
  text-align: center;
  padding: 0 28px;
  position: relative;
}
.flow-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 16px;
}
.flow-step-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-dim);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.flow-step-icon svg { width: 30px; height: 30px; color: var(--accent); }
.flow-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.flow-step p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.flow-arrow {
  font-size: 28px;
  color: var(--border);
  align-self: center;
  padding-bottom: 60px;
  flex-shrink: 0;
}
.cli-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}
.cli-chip {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 6px 14px;
}
.cli-chip-more {
  color: var(--accent);
  border-color: rgba(0,212,170,.3);
  background: var(--accent-dim);
}
.arch-diagram {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.arch-diagram .img-placeholder { border: none; border-radius: 0; }

/* === MULTI-WORKSPACE SHOWCASE ================================ */
.workspace-showcase {
  background: var(--bg);
  padding: 88px 0;
  border-bottom: 1px solid var(--border-light);
}
.ws-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ws-bullets {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ws-bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}
.ws-bullets svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}
.ws-bullets strong { color: var(--text); }
.ws-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.ws-image .img-placeholder { border: none; border-radius: 0; }

@media (max-width: 800px) {
  .ws-layout { grid-template-columns: 1fr; gap: 40px; }
  .ws-image { order: -1; }
  .flow-arrow { display: none; }
  .flow-steps { flex-direction: column; gap: 32px; }
  .flow-step { padding: 0; }
}

/* === COMMAND COMPLETION SHOWCASE ============================= */
.completion-showcase {
  background: var(--bg-card);
  padding: 88px 0;
  border-bottom: 1px solid var(--border-light);
}
@media (max-width: 800px) {
  .completion-showcase .ws-image { order: -1; }
}

/* === FEATURES =============================================== */
.features { background: var(--bg); border-top: 1px solid var(--border-light); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card {
  background: var(--bg-card);
  padding: 36px 32px;
  transition: var(--transition);
}
.feature-card:hover { background: var(--bg-card-alt); }
.feature-card--featured {
  grid-column: 1 / -1;
  background: linear-gradient(130deg, rgba(0,212,170,.09) 0%, var(--bg-card) 55%);
}
.feature-card--featured:hover {
  background: linear-gradient(130deg, rgba(0,212,170,.14) 0%, var(--bg-card-alt) 55%);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.feature-tag {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2px 8px;
}

/* === TRUST ================================================== */
.trust { background: var(--bg-card); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}
.trust-item { display: flex; gap: 20px; align-items: flex-start; }
.trust-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-icon svg { width: 22px; height: 22px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.trust-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.trust-note {
  margin-top: 48px;
  padding: 20px 24px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,170,.2);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-note strong { color: var(--accent); }

/* === PRICING =============================================== */
.pricing { background: var(--bg); }
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 64px;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.pricing-card.featured {
  border-color: var(--accent);
  background: var(--bg-card-alt);
  position: relative;
}
.pricing-card.featured::before {
  content: "⭐ Most Popular";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0d1117;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-plan { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.pricing-card.featured .pricing-plan { color: var(--accent); }
.pricing-price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 4px; }
.pricing-price span { font-size: 18px; font-weight: 400; color: var(--text-muted); }
.pricing-per { font-size: 13px; color: var(--text-faint); margin-bottom: 28px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.pricing-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-muted); }
.pricing-features li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* Volume table */
.volume-section { margin-top: 16px; }
.volume-title { font-size: 18px; font-weight: 700; margin-bottom: 24px; text-align: center; }
.volume-note { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.volume-table-wrap { overflow-x: auto; }
.volume-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.volume-table th, .volume-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
}
.volume-table th {
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--bg-card);
}
.volume-table td { color: var(--text-muted); }
.volume-table td:first-child { font-weight: 600; color: var(--text); }
.volume-table td .discount { color: var(--accent); font-weight: 600; font-size: 13px; }
.volume-table tr:last-child td { border-bottom: none; }
.volume-table tr:hover td { background: var(--bg-card-alt); }
.volume-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* === CTA BANNER ============================================= */
.cta-banner {
  background: linear-gradient(135deg, rgba(0,212,170,.08) 0%, rgba(79,142,247,.08) 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(24px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.cta-banner p { font-size: 17px; color: var(--text-muted); max-width: 480px; margin: 0 auto 40px; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* === FOOTER ================================================= */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  gap: 48px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer-brand { flex: 1; min-width: 200px; }
.footer-logo { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.footer-tagline { font-size: 14px; color: var(--text-muted); line-height: 1.6; max-width: 240px; }
.footer-col { min-width: 140px; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* === INNER PAGE (privacy / terms / support) ================ */
.inner-page { padding: 72px 0; }
.inner-page h1 { font-size: 36px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.inner-page .updated { font-size: 13px; color: var(--text-faint); margin-bottom: 48px; }
.inner-page h2 { font-size: 20px; font-weight: 700; margin: 40px 0 12px; }
.inner-page p { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
.inner-page ul { list-style: disc; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.inner-page li { font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.inner-page .content { max-width: 720px; }
.inner-page a { color: var(--accent); }
.inner-page a:hover { text-decoration: underline; }
.inner-nav {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text-muted);
}
.inner-nav a { color: var(--accent); }

/* === RESPONSIVE ============================================= */
@media (max-width: 960px) {
  .pricing-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pricing-cards { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .features-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
}
