/* Tvaris Labs — modern marketing CSS */
:root {
  --tl-bg: #fafafa;
  --tl-surface: #ffffff;
  --tl-ink: #0f172a;
  --tl-ink-2: #475569;
  --tl-ink-3: #64748b;
  --tl-border: #e2e8f0;
  --tl-border-soft: rgba(15, 23, 42, 0.06);
  --tl-accent: #0f172a;
  --tl-radius: 16px;
  --tl-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
  --tl-shadow-card-hover: 0 4px 8px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.08);
  --tl-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--tl-bg);
  color: var(--tl-ink);
  font-family: var(--tl-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Layout */
.tl-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.tl-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Header */
.tl-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--tl-border);
}
.tl-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.tl-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.01em; font-size: 17px; color: var(--tl-ink);
}
.tl-brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px;
}
.tl-nav { display: flex; align-items: center; gap: 6px; }
.tl-nav a {
  padding: 8px 14px; border-radius: 10px; font-size: 14px; color: var(--tl-ink-2);
  transition: background 0.15s ease, color 0.15s ease;
}
.tl-nav a:hover { background: #f1f5f9; color: var(--tl-ink); }
.tl-nav a.tl-cta {
  background: var(--tl-ink); color: #fff;
}
.tl-nav a.tl-cta:hover { background: #1e293b; }

/* Hero */
.tl-hero { padding: 96px 0 56px; text-align: center; }
.tl-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: #f1f5f9; color: var(--tl-ink-2);
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.tl-eyebrow-dot { width: 6px; height: 6px; border-radius: 999px; background: #10b981; }
.tl-h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05; font-weight: 700; letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.tl-h1 .tl-grad {
  background: linear-gradient(135deg, #0f172a 0%, #475569 60%, #94a3b8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tl-lede { font-size: 18px; color: var(--tl-ink-2); max-width: 620px; margin: 0 auto; }
.tl-sub { font-size: 14px; color: var(--tl-ink-3); margin-top: 14px; }

/* Section */
.tl-section { padding: 64px 0; }
.tl-section-h2 {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px;
}
.tl-section-sub { color: var(--tl-ink-2); margin: 0 0 36px; }

/* Product grid */
.tl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.tl-card {
  position: relative;
  background: var(--tl-surface);
  border: 1px solid var(--tl-border-soft);
  border-radius: var(--tl-radius);
  box-shadow: var(--tl-shadow-card);
  padding: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tl-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--tl-card-accent, #0f172a);
  transition: height 0.2s ease;
}
.tl-card:hover { transform: translateY(-4px); box-shadow: var(--tl-shadow-card-hover); }
.tl-card:hover::before { height: 4px; }

.tl-card-visual {
  aspect-ratio: 16 / 9;
  background: #f8fafc;
  border-bottom: 1px solid var(--tl-border-soft);
  position: relative;
  overflow: hidden;
}
.tl-card-visual svg { width: 100%; height: 100%; }

.tl-card-body { padding: 28px 28px 24px; display: flex; flex-direction: column; flex: 1; }
.tl-card-title {
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em;
  margin: 0 0 8px; color: var(--tl-ink);
}
.tl-card-tag {
  font-size: 14px; color: var(--tl-ink-2); line-height: 1.6; margin: 0; flex: 1;
}
.tl-card-cta {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--tl-card-accent, #0f172a);
}
.tl-card-cta-text { position: relative; }
.tl-card:hover .tl-card-cta-text { text-decoration: underline; text-underline-offset: 4px; }
.tl-card-cta svg { transition: transform 0.2s ease; }
.tl-card:hover .tl-card-cta svg { transform: translateX(3px); }

/* Pillars */
.tl-pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.tl-pillar {
  padding: 28px; border-radius: var(--tl-radius);
  background: var(--tl-surface); border: 1px solid var(--tl-border-soft);
}
.tl-pillar-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: #f1f5f9; color: var(--tl-ink);
  display: grid; place-items: center; margin-bottom: 14px;
}
.tl-pillar-icon svg { width: 20px; height: 20px; }
.tl-pillar-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.tl-pillar-text { font-size: 14px; color: var(--tl-ink-2); margin: 0; }

/* Long-form product list */
.tl-product-row {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px;
  padding: 32px 0; border-bottom: 1px solid var(--tl-border-soft);
  align-items: center;
}
.tl-product-row:last-child { border-bottom: none; }
.tl-product-visual {
  border-radius: var(--tl-radius); overflow: hidden;
  border: 1px solid var(--tl-border-soft);
  aspect-ratio: 16 / 10;
  border-top: 3px solid var(--tl-card-accent, #0f172a);
}
.tl-product-name { font-size: 24px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.015em; }
.tl-product-desc { color: var(--tl-ink-2); margin: 0 0 14px; font-size: 15px; line-height: 1.6; }
.tl-product-link { font-weight: 600; color: var(--tl-card-accent, #0f172a); font-size: 14px; }
.tl-product-link:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 640px) {
  .tl-product-row { grid-template-columns: 1fr; gap: 16px; }
  .tl-hero { padding: 56px 0 32px; }
  .tl-section { padding: 40px 0; }
  .tl-card-body { padding: 22px; }
}

/* About prose */
.tl-prose p { font-size: 17px; color: var(--tl-ink-2); line-height: 1.7; margin: 0 0 18px; }
.tl-prose h2 { font-size: 24px; margin: 36px 0 12px; letter-spacing: -0.015em; }

/* Contact */
.tl-contact-card {
  background: var(--tl-surface);
  border: 1px solid var(--tl-border-soft);
  border-radius: var(--tl-radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--tl-shadow-card);
  margin: 32px 0;
}
.tl-contact-email {
  display: inline-block;
  font-size: 22px; font-weight: 600; color: var(--tl-ink);
  padding: 14px 22px; border-radius: 12px;
  background: #f1f5f9;
  margin: 16px 0;
  letter-spacing: -0.01em;
}
.tl-contact-email:hover { background: #e2e8f0; }

/* Footer */
.tl-footer {
  margin-top: 80px;
  border-top: 1px solid var(--tl-border);
  background: #fff;
  padding: 40px 0 32px;
}
.tl-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  margin-bottom: 32px;
}
@media (max-width: 640px) {
  .tl-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
.tl-footer h4 { font-size: 13px; font-weight: 600; color: var(--tl-ink); margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.tl-footer ul { list-style: none; padding: 0; margin: 0; }
.tl-footer li { margin-bottom: 8px; }
.tl-footer a { font-size: 14px; color: var(--tl-ink-2); }
.tl-footer a:hover { color: var(--tl-ink); }
.tl-footer p { font-size: 14px; color: var(--tl-ink-2); margin: 8px 0 0; max-width: 360px; }
.tl-footer-copy {
  border-top: 1px solid var(--tl-border);
  padding-top: 20px; text-align: center;
  font-size: 13px; color: var(--tl-ink-3);
}

/* Mobile nav */
@media (max-width: 640px) {
  .tl-nav a { padding: 6px 10px; font-size: 13px; }
  .tl-nav a.tl-cta { padding: 8px 12px; }
  .tl-brand { font-size: 15px; }
  .tl-h1 { font-size: 36px; }
}
