:root {
  --bg-color: #F2F2F2;
  --card-bg: #FFFFFF;
  --ink: #0A0A0A;
  --subtle: #737373;
  --border: #E5E5E5;
  --terminal-bg: #0F0F0F;
  --success: #00CC66;
  --swiss-red: #FF0000;
  --bg-image: none;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  background-image: var(--bg-image);
  background-size: auto 100%;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(0px) saturate(1);
  transition: opacity 600ms ease;
  opacity: 0;
  transform: scale(1.12);
  will-change: opacity, transform;
}

body.bg-loaded::before {
  opacity: 1;
  transform: scale(1.12);
}

body {
  background-color: var(--bg-color);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 40px;
  -webkit-font-smoothing: antialiased;
}

.side-brand {
  position: fixed;
  top: 40px;
  left: 40px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  background: rgba(0,0,0,.8);
  padding: 8px 12px;
  text-decoration: none;
}

.side-brand-name {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1;
  text-transform: uppercase;
   color: #fff;

}

.artifact {
  background: var(--card-bg);
  width: 100%;
  max-width: 600px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.status-bar {
  background: var(--ink);
  color: #fff;
  padding: 12px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 10px var(--success);
}

.top-nav {
  padding: 14px 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(4px);
}

.top-nav-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--subtle);
  text-decoration: none;
  font-weight: 700;
}

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

.top-nav-links a {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  opacity: 0.86;
  transition: opacity 0.2s;
  padding-bottom: 3px;
}

.top-nav-links a:hover { opacity: 1; }
.top-nav-links a.active { opacity: 1; border-bottom: 2px solid var(--ink); }

.swiss-badge {
  margin-top: 40px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
}

.swiss-cross {
  width: 12px;
  height: 12px;
  background: var(--swiss-red);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiss-cross::before, .swiss-cross::after {
  content: "";
  background: #fff;
  position: absolute;
}

.swiss-cross::before { width: 8px; height: 2px; }
.swiss-cross::after { width: 2px; height: 8px; }

/* Home */
body.page-home .content-pad { padding: 60px 50px 80px; }
body.page-home h1 {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 0.95;
  margin-bottom: 30px;
  color: var(--ink);
}

body.page-home .manifesto {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 300;
  color: #333;
  max-width: 90%;
  margin-bottom: 60px;
  border-left: 2px solid var(--ink);
  padding-left: 30px;
}

body.page-home .manifesto strong {
  font-weight: 600;
  color: var(--ink);
  background: #c5e1a5;
  padding: 0 4px;
}

body.page-home .pipeline-container {
  margin-bottom: 60px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
}

body.page-home .label-row {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

body.page-home .pipeline-flow {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.page-home .node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

body.page-home .node-circle {
  width: 12px;
  height: 12px;
  background: var(--card-bg);
  border: 2px solid var(--ink);
  border-radius: 50%;
  margin-bottom: 12px;
}

body.page-home .node.active .node-circle { background: var(--ink); }

body.page-home .node-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

body.page-home .pipeline-line {
  flex-grow: 1;
  height: 1px;
  background: #E0E0E0;
  margin: 0 10px;
  position: relative;
  top: -12px;
  z-index: 1;
}

body.page-home .specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 30px;
  margin-bottom: 60px;
}

body.page-home .spec-item h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--ink);
  display: flex;
  align-items: center;
}

body.page-home .spec-item h3::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: var(--ink);
  margin-right: 10px;
}

body.page-home .spec-item p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

body.page-home .terminal-block {
  background: var(--terminal-bg);
  color: #fff;
  padding: 30px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  position: relative;
}

body.page-home .terminal-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
  margin-bottom: 20px;
  color: #666;
  font-size: 10px;
  text-transform: uppercase;
}

body.page-home .log-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  margin-bottom: 12px;
  align-items: baseline;
}

body.page-home .key { color: #888; }
body.page-home .val { color: #fff; }
body.page-home .highlight { color: var(--success); font-weight: 700; }
body.page-home .path { color: #00CCFF; }

body.page-home .footer-row {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.page-home .meta-data {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--subtle);
  line-height: 1.6;
}

body.page-home .btn-primary {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 18px 40px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.2s;
}

body.page-home .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

body.page-home .origin-story {
  margin-top: 60px;
  padding: 34px 32px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(197,225,165,0.18) 0%, rgba(255,255,255,0.95) 100%);
  max-width: 620px;
}

body.page-home .origin-story-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--subtle);
  margin-bottom: 14px;
}

body.page-home .origin-story h3 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 33px;
  line-height: 1.15;
  letter-spacing: 0.4px;
  margin-bottom: 18px;
  color: var(--ink);
  font-weight: 800;
  text-wrap: balance;
}

body.page-home .origin-story p {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: 0.2px;
  color: #2B2B2B;
  margin-bottom: 14px;
  max-width: 58ch;
  text-wrap: pretty;
}

body.page-home .origin-story p:last-of-type { margin-bottom: 22px; }

body.page-home .origin-signoff {
  display: inline-block;
  border-top: 1px solid #D8D8D8;
  padding-top: 12px;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
}

/* Documentation */
body.page-docs .content-pad { padding: 34px 22px 42px; }
body.page-docs h1 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.08;
  margin-bottom: 10px;
}

body.page-docs h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

body.page-docs p {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0.12px;
  color: #2f3137;
  margin-bottom: 10px;
}

body.page-docs .section {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px;
  margin-top: 12px;
  background: #fff;
}

body.page-docs .mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2px;
  white-space: pre-wrap;
  word-break: break-word;
}

body.page-docs .grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body.page-docs .field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--subtle);
  margin-bottom: 6px;
}

body.page-docs .field input,
body.page-docs .field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}

body.page-docs .actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.page-docs .btn {
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

body.page-docs .btn-primary { background: var(--ink); color: #fff; }
body.page-docs .btn-secondary { background: #eceff3; color: var(--ink); }
body.page-docs .status { font-size: 12px; color: var(--subtle); }
body.page-docs .status.ok { color: #0b9f56; font-weight: 700; }
body.page-docs ul { padding-left: 18px; }
body.page-docs li { margin-bottom: 6px; font-size: 14px; line-height: 1.5; }

/* Pricing */
body.page-pricing .content-pad { padding: 34px 22px 42px; }
body.page-pricing h1 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.7px;
  line-height: 1.08;
  margin-bottom: 10px;
}

body.page-pricing .lead {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0.12px;
  color: #2f3137;
  margin-bottom: 14px;
}

body.page-pricing .plan {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px;
  margin-top: 10px;
  background: #fff;
}

body.page-pricing .plan h2 { font-size: 20px; margin-bottom: 6px; }

body.page-pricing .kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--subtle);
  margin-bottom: 6px;
}

body.page-pricing .price {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

body.page-pricing .price-sub {
  font-size: 12px;
  color: var(--subtle);
  margin-bottom: 8px;
  line-height: 1.5;
}

body.page-pricing p {
  font-size: 14px;
  line-height: 1.6;
  color: #2f3137;
  margin-bottom: 8px;
}

body.page-pricing ul { padding-left: 18px; }
body.page-pricing li { font-size: 14px; line-height: 1.5; margin-bottom: 6px; }

body.page-pricing .note {
  margin-top: 12px;
  border: 1px dashed #d6d6d6;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 13px;
  color: #30343a;
}

/* Contact */
body.page-contact .content-pad { padding: 52px 50px 66px; }
body.page-contact h1 {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 0.98;
  margin-bottom: 18px;
}

body.page-contact .lead {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: 0.2px;
  color: #2B2B2B;
  max-width: 58ch;
  margin-bottom: 30px;
}

body.page-contact .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

body.page-contact .card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px;
  background: #fff;
}

body.page-contact .card h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

body.page-contact .contact-list { list-style: none; padding: 0; }

body.page-contact .contact-list li {
  margin-bottom: 10px;
  color: #2f3137;
  line-height: 1.55;
  letter-spacing: 0.14px;
  word-break: break-word;
}

body.page-contact .contact-list a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #ccc;
}

body.page-contact .form-grid { display: grid; gap: 10px; }

body.page-contact .input,
body.page-contact .textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 11px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: #111;
}

body.page-contact .textarea { min-height: 110px; resize: vertical; }

body.page-contact .btn-primary {
  display: inline-block;
  margin-top: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

body.page-contact .small-note {
  margin-top: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--subtle);
}

/* Use cases + solutions */
body.page-usecases .content-pad { padding: 42px 34px 50px; }
body.page-usecases h1 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 10px;
}

body.page-usecases .lead {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.15px;
  color: #2f3137;
  margin-bottom: 16px;
  max-width: 70ch;
}

body.page-usecases .segment {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  margin-top: 12px;
  background: #fff;
}

body.page-usecases .segment h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

body.page-usecases .cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

body.page-usecases .case-card,
body.page-usecases .solution-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
  background: #fff;
}

body.page-usecases .case-card h3,
body.page-usecases .solution-card h3 {
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 6px;
}

body.page-usecases .case-card p,
body.page-usecases .solution-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #2f3137;
  letter-spacing: 0.1px;
}

body.page-usecases .solution-card p { margin-bottom: 8px; }
body.page-usecases .solution-card ul { padding-left: 18px; }
body.page-usecases .solution-card li { font-size: 13px; line-height: 1.52; margin-bottom: 6px; }

body.page-usecases .cta-strip {
  margin-top: 14px;
  border: 1px dashed #d6d6d6;
  border-radius: 4px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
}

body.page-usecases .cta-copy {
  font-size: 13px;
  color: #2f3137;
  letter-spacing: 0.12px;
}

body.page-usecases .btn-primary {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

body.page-usecases .solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 960px) {
  body.page-home .specs-grid { grid-template-columns: 1fr; }
  body.page-usecases .cases-grid,
  body.page-usecases .solutions-grid,
  body.page-contact .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .side-brand {
    top: 22px;
    left: 22px;
    padding: 6px 9px;
  }

  .side-brand-name {
    font-size: 26px;
    letter-spacing: -0.4px;
  }

  .top-nav {
    padding: 12px 22px;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .top-nav-links { width: 100%; gap: 14px; }
  .top-nav-links a { font-size: 11px; letter-spacing: 0.9px; }

  body.page-home .content-pad,
  body.page-contact .content-pad,
  body.page-usecases .content-pad { padding: 30px 22px 42px; }

  body.page-home .origin-story { margin-top: 44px; padding: 28px 22px; }
  body.page-home .origin-story h3 { font-size: 28px; line-height: 1.2; letter-spacing: 0.2px; }
  body.page-home .origin-story p { font-size: 16px; line-height: 1.72; }

  body.page-home h1 { font-size: 34px; line-height: 1.02; letter-spacing: -1.3px; }
  body.page-contact h1 { font-size: 37px; letter-spacing: -1px; }
  body.page-usecases h1 { font-size: 31px; }
}

@media (max-width: 480px) {
  body { padding: 20px 14px; }

  .side-brand {
    top: 14px;
    left: 14px;
    padding: 5px 8px;
  }

  .side-brand-name {
    font-size: 22px;
    letter-spacing: -0.3px;
  }

  .status-bar,
  .top-nav { padding-left: 14px; padding-right: 14px; }

  .top-nav {
    row-gap: 6px;
  }

  .top-nav-links {
    width: 100%;
    gap: 10px;
  }

  .top-nav-links a {
    font-size: 10px;
    letter-spacing: 0.7px;
  }

  body.page-home .content-pad,
  body.page-docs .content-pad,
  body.page-pricing .content-pad,
  body.page-contact .content-pad,
  body.page-usecases .content-pad {
    padding: 26px 14px 34px;
  }

  body.page-home .manifesto { padding-left: 14px; max-width: 100%; font-size: 15px; }
  body.page-home .pipeline-flow { gap: 8px; }
  body.page-home .node-text { font-size: 9px; }
  body.page-home .pipeline-line { margin: 0 2px; }
  body.page-home .terminal-block { padding: 14px; }
  body.page-home .log-row { grid-template-columns: 72px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { transition: none; }
}
