.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero -------------------------------------------------------------------- */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}
.hero h1 {
  margin: 0 auto 18px;
}

.hero-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 22px;
}
.eq-box {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 22px;
}
.eq-box--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.eq-sign {
  color: var(--text-muted);
  font-size: 1.2em;
}
.hero .subtitle {
  margin: 0 auto 28px;
  font-size: 16px;
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-offer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 14px 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 20px;
}

/* Trust bar ----------------------------------------------------------------- */
.trust-bar {
  padding: 8px 0 56px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}
.trust-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.trust-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--accent);
}
.trust-item h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.trust-item p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Sections ------------------------------------------------------------------ */
section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  text-align: center;
  margin-bottom: 32px;
}
.section-head .subtitle {
  margin: 10px auto 0;
}
.head-box {
  display: inline-block;
  max-width: 62ch;
  padding: 14px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 1.4;
}

.boxed {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 24px;
}
.boxed h1,
.boxed h2 { margin: 0; }

.section-head.boxed { margin-bottom: 20px; }
.section-head.boxed h2 { font-size: 20px; }

/* Product grid ---------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-grid .card {
  padding-top: 26px;
}

/* Why-Tectarix contrast section ------------------------------------------------ */
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.contrast-grid .card h3 {
  font-family: var(--font-mono);
}
.contrast-grid ul li {
  position: relative;
  padding-left: 20px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13.5px;
}
.contrast-grid .no ul li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--err);
}
.contrast-grid .yes ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--ok);
}

/* Tool-chain section ------------------------------------------------------------ */
.chain {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 32px;
}
.chain-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 10px 15px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.chain-step .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gcolor, var(--accent));
  flex-shrink: 0;
}
.chain-step--image { --gcolor: var(--cat-image); }
.chain-step--audio { --gcolor: var(--cat-audio); }
.chain-step--video { --gcolor: var(--cat-video); }
.chain-arrow {
  color: var(--text-muted);
  font-size: 15px;
}
.chain-diff {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.chain-diff .card h3 {
  font-size: 14px;
  margin-bottom: 8px;
}
.chain-diff .card p {
  font-size: 13.5px;
}
.chain-note {
  max-width: 72ch;
  margin: 0 auto 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Examples section --------------------------------------------------------------- */
.examples-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.example {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.example img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}
.example-cap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
}
.example-cap .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gcolor, var(--accent));
  flex-shrink: 0;
}
.example-cap b {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
}
.example-cap span {
  font-size: 13px;
  color: var(--text-muted);
}
.example--image { --gcolor: var(--cat-image); }

/* Developers section ------------------------------------------------------------ */
.dev-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.dev-section .copy { max-width: 56ch; }

/* Footer --------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Flowing-content pages (generic markdown template, legal pages) ------------- */
.about-content {
  max-width: 66ch;
  margin: 0 auto;
  padding: 56px 0 80px;
}
.about-content h1 { margin-bottom: 24px; }

.about-content p {
  margin: 16px 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}
.about-content > p:first-child { margin-top: 0; }

.about-content h2 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--accent-ink);
  margin: 40px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.about-content > h2:first-of-type { margin-top: 32px; padding-top: 0; border-top: none; }

.about-content h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-ink);
  margin: 28px 0 8px;
}

.about-content ul,
.about-content ol {
  margin: 16px 0;
  padding-left: 22px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}
.about-content ul { list-style: disc; }
.about-content ol { list-style: decimal; }
.about-content li { margin: 6px 0; }
.about-content li::marker { color: var(--accent); }
.about-content li > ul,
.about-content li > ol { margin: 6px 0; }

.about-content strong { font-weight: 600; color: var(--text); }

.about-content a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.about-content a:hover { text-decoration-color: var(--accent); }

.about-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border-radius: 4px;
  padding: 2px 6px;
}

.about-content blockquote {
  margin: 20px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-size: 14px;
}
.about-content blockquote p { margin: 0; color: inherit; }

.about-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* Stat bar ------------------------------------------------------------------- */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-item {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 20px;
}
.stat-item .stat-num {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 34px;
  font-weight: 600;
  color: var(--accent-ink);
  line-height: 1.1;
}
.stat-item .stat-label {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* Comparison table ------------------------------------------------------------ */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 13.5px;
}
.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table thead th {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--surface-2);
  font-weight: 600;
}
.compare-table th[scope="row"] {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.compare-table td.tectarix-col {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}
.compare-table-wrap {
  overflow-x: auto;
}

/* Pricing calculator ------------------------------------------------------------ */
.calc-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.calc-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.calc-row label {
  font-size: 13.5px;
  color: var(--text-muted);
}
.calc-row select,
.calc-row input[type="text"],
.calc-row input[type="range"] {
  width: 100%;
}
.calc-row select,
.calc-row input[type="text"] {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
}
.calc-app-wrap {
  position: relative;
}
.calc-app-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 10;
}
.calc-app-menu.is-open {
  display: block;
}
.calc-app-option {
  padding: 8px 12px;
  font-size: 13.5px;
  cursor: pointer;
}
.calc-app-option:hover,
.calc-app-option.is-active {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.calc-app-empty {
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.calc-storage-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.calc-total {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.calc-total-label {
  color: var(--text-muted);
  font-size: 14px;
}
.calc-total-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  font-weight: 600;
  color: var(--accent-ink);
}

/* 404 --------------------------------------------------------------------------- */
.notfound {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 40px 24px;
}

/* Responsive --------------------------------------------------------------------- */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .chain-diff { grid-template-columns: 1fr; }
  .stat-bar { grid-template-columns: 1fr; }
  .calc-row { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .contrast-grid { grid-template-columns: 1fr; }
  .examples-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 36px; }
  .hero-equation { font-size: 18px; gap: 10px; flex-direction: column; }
  .eq-box { padding: 8px 14px; }
  .hero-offer { padding: 12px 30px; font-size: 18px; }
  .head-box { padding: 12px 22px; }
  .dev-section { flex-direction: column; align-items: flex-start; }
  .chain { flex-direction: column; }
  .chain-arrow { transform: rotate(90deg); }
}
