:root {
  --bg: #edf3ef;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-2: #edf5f0;
  --text: #0e2219;
  --muted: #4e6458;
  --line: #c4d3c7;
  --accent: #0e9465;
  --accent-2: #0b724e;
  --accent-soft: #dff2e9;
  --pro: #0d2334;
  --pro-soft: #e8eff6;
  --shadow: 0 18px 40px rgba(10, 24, 17, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 92% -6%, rgba(181, 228, 207, 0.62) 0%, transparent 58%),
    radial-gradient(920px 460px at -8% 18%, rgba(213, 226, 240, 0.74) 0%, transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
    var(--bg);
  line-height: 1.45;
}

a {
  color: inherit;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.topbar {
  padding: 16px 0;
  border-bottom: 1px solid rgba(14, 34, 25, 0.08);
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.top-nav {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 1.05rem;
}

.brand-sub {
  font-size: 0.84rem;
  color: var(--muted);
}

.inline-links a {
  text-decoration: none;
  font-size: 0.94rem;
  margin-left: 14px;
  color: rgba(14, 34, 25, 0.9);
}

.inline-links a:first-child {
  margin-left: 0;
}

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

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 14px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 700;
}

.nav-button:hover {
  border-color: #a8c7b1;
  color: var(--text);
}

.auth-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-link {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.auth-link:hover {
  transform: translateY(-1px);
  border-color: #a8c7b1;
}

.auth-link.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 12px 22px rgba(14, 148, 101, 0.18);
}

.hero {
  padding: 54px 0 26px;
}

.hero-copy {
  max-width: 100%;
}

.eyebrow {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(14, 148, 101, 0.08);
}

h1 {
  margin: 14px 0 10px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.08;
  font-weight: 400;
}

.hero p,
p.muted {
  color: var(--muted);
  max-width: none;
  margin: 0;
}

.section-copy {
  max-width: 100%;
  margin-bottom: 18px;
}

.section-copy p {
  color: var(--muted);
  margin: 0;
  max-width: none;
}

.cta-row {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(16, 35, 26, 0.12);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 22px rgba(14, 148, 101, 0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-pro {
  background: var(--pro);
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 10px 0 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.stat-value {
  display: block;
  margin-bottom: 6px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  line-height: 1;
  color: var(--text);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f3429;
}

.stat-copy {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-pair {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.stat-vs {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.stat-side {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card {
  grid-column: span 6;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.card h2,
.card h3 {
  margin: 0 0 8px;
}

.card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid #cde2d2;
  background: var(--surface-2);
  color: #174632;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.82rem;
}

.pro-card {
  background: linear-gradient(145deg, rgba(251, 253, 255, 0.92) 0%, rgba(234, 241, 248, 0.96) 100%);
  border-color: #c5d7e5;
}

.pro-pill {
  background: var(--pro-soft);
  border-color: #bfd4e6;
  color: var(--pro);
}

.lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lock-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(13, 35, 52, 0.08);
  flex: 0 0 18px;
}

.lock-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.section {
  padding: 10px 0 34px;
}

.section h2 {
  margin: 0 0 12px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  backdrop-filter: blur(10px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-size: 0.88rem;
  color: #244037;
  font-weight: 600;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.82);
}

.field-full {
  grid-column: 1 / -1;
}

.helper-note {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(252, 254, 253, 0.72);
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.result {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #bfd4c2;
  border-radius: 12px;
  background: #f2f9f4;
}

.result h3 {
  margin: 0 0 8px;
}

.result ul {
  margin: 0;
  padding-left: 18px;
}

.result li {
  margin: 4px 0;
}

.funnel {
  margin-top: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 148, 101, 0.16), transparent 34%),
    linear-gradient(135deg, #081a28 0%, #0d2334 100%);
  color: #eaf4fd;
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto;
  align-items: center;
  gap: 16px;
}

.funnel p {
  margin: 0;
  color: #c5d7e6;
  max-width: none;
}

.funnel-copy {
  max-width: 100%;
}

.table-wrap {
  overflow-x: auto;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.model-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
  backdrop-filter: blur(10px);
}

.model-card h3 {
  margin: 0 0 6px;
}

.model-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.viewer-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.78) 0%, rgba(237, 244, 239, 0.96) 42%, rgba(227, 236, 229, 1) 100%);
}

.viewer-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.viewer-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  color: #355247;
  font-size: 0.9rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.1)),
    repeating-linear-gradient(
      -45deg,
      rgba(15, 139, 95, 0.08),
      rgba(15, 139, 95, 0.08) 10px,
      rgba(15, 139, 95, 0.02) 10px,
      rgba(15, 139, 95, 0.02) 20px
    );
}

.viewer-fallback.hidden {
  display: none;
}

.model-note {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.param-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.param-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fcfefd;
}

.param-card h4 {
  margin: 0 0 6px;
}

.param-list {
  margin: 0;
  padding-left: 18px;
}

.param-list li {
  margin: 4px 0;
  color: #2f4b40;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #ecf2ee;
  color: #1c3026;
  font-weight: 700;
}

tbody tr:nth-child(even) td {
  background: rgba(247, 250, 248, 0.56);
}

tbody tr:hover td {
  background: rgba(232, 241, 236, 0.72);
}

.compare-table th:first-child,
.compare-table td:first-child {
  width: 58%;
}

.compare-table th:nth-child(2),
.compare-table th:nth-child(3),
.compare-table td:nth-child(2),
.compare-table td:nth-child(3) {
  width: 21%;
  text-align: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.status-yes {
  color: #0b724e;
  background: #dff2e9;
  border-color: #b8ddc7;
}

.status-no {
  color: #8c2f2f;
  background: #f9e1e1;
  border-color: #e7b8b8;
}

.stl-layout {
  display: grid;
  gap: 18px;
}

.stl-view h2 {
  margin: 0 0 8px;
}

.stl-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stl-static {
  position: static;
  min-height: 320px;
  border-radius: 12px;
}

.stl-static strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 18, 13, 0.44);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 20;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  width: min(560px, calc(100vw - 32px));
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 45, 69, 0.14);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(6, 18, 13, 0.22);
  padding: 24px;
  position: relative;
  backdrop-filter: blur(18px);
}

.modal-card h2 {
  margin: 12px 0 10px;
}

.modal-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: #295244;
  background: #f6faf7;
}

.footer {
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .card {
    grid-column: span 12;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-grid,
  .param-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .funnel {
    grid-template-columns: 1fr;
  }
}
