/* UNILOGR landing page - editorial minimalism with the product as the visual. */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: #171713;
  background: #f2f0e9;
  font-family: "SF Pro Display", "Helvetica Neue", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid #ff5c35;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 0.85rem;
  color: #ffffff;
  background: #171713;
  font-size: 0.8125rem;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.wide-container {
  width: min(1280px, calc(100% - 96px));
  margin: 0 auto;
}

/* Navigation */

.site-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(23, 23, 19, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #171713;
}

.brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 31px;
  height: 31px;
  padding: 7px;
  background: #ff5c35;
}

.brand-mark span {
  display: block;
  width: 3px;
  background: #171713;
}

.brand-mark span:nth-child(1) {
  height: 8px;
}

.brand-mark span:nth-child(2) {
  height: 13px;
}

.brand-mark span:nth-child(3) {
  height: 17px;
}

.brand-name {
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.header-nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.header-nav a:hover {
  color: #ff5c35;
}

.header-nav .sign-in {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0 0.7rem 1.15rem;
  border-left: 1px solid rgba(23, 23, 19, 0.2);
}

.sign-in span {
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  transition: transform 160ms ease;
}

.sign-in:hover span {
  transform: translateX(3px);
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(5.75rem, 11vw, 10rem) 0 clamp(5rem, 9vw, 8.5rem);
}

.hero::before {
  position: absolute;
  top: 0;
  left: calc(50% - 1px);
  width: 1px;
  height: 100%;
  background: rgba(23, 23, 19, 0.08);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.31fr);
  gap: clamp(5rem, 10vw, 10rem);
  align-items: end;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: #5a5a50;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
}

.signal-dot {
  width: 8px;
  height: 8px;
  background: #ff5c35;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 92, 53, 0.14);
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(4.1rem, 8.2vw, 8.2rem);
  font-weight: 690;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.hero h1 em {
  color: #ff5c35;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.075em;
}

.hero-lead {
  max-width: 760px;
  margin: 2.75rem 0 0;
  color: #4c4c43;
  font-size: clamp(1.125rem, 1.8vw, 1.4rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  min-width: 238px;
  padding: 1rem 1.1rem 1rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: #171713;
}

.button-primary:hover {
  background: #ff5c35;
}

.text-link {
  padding-bottom: 0.2rem;
  border-bottom: 1px solid #171713;
  font-size: 0.8125rem;
  font-weight: 700;
}

.text-link:hover {
  color: #ff5c35;
  border-color: #ff5c35;
}

.hero-aside {
  position: relative;
  z-index: 1;
  padding-bottom: 0.25rem;
}

.aside-rule {
  width: 48px;
  height: 3px;
  margin-bottom: 1.5rem;
  background: #ff5c35;
}

.hero-aside > p {
  max-width: 220px;
  margin: 0 0 2.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.25;
}

.hero-aside dl {
  margin: 0;
}

.hero-aside dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(23, 23, 19, 0.18);
}

.hero-aside dt,
.hero-aside dd {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 650;
}

.hero-aside dt {
  color: #66665c;
}

.hero-aside dd {
  color: #171713;
  text-align: right;
}

/* Product surface */

.product-section {
  padding: 0 0 clamp(7rem, 11vw, 11rem);
}

.product-frame {
  overflow: hidden;
  color: #efefe8;
  background: #11110f;
  border: 1px solid #2a2a25;
  box-shadow: 0 40px 90px rgba(32, 28, 20, 0.2);
}

.product-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
  padding: 0 1.5rem;
  border-bottom: 1px solid #2b2b26;
}

.product-bar p,
.live-status {
  margin: 0;
  color: #a3a398;
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-dots {
  display: flex;
  gap: 0.4rem;
}

.product-dots span {
  width: 7px;
  height: 7px;
  background: #3b3b35;
  border-radius: 50%;
}

.live-status {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.55rem;
  color: #d1d1c8;
}

.live-status span {
  width: 7px;
  height: 7px;
  background: #77d19a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(119, 209, 154, 0.12);
  animation: live-pulse 2.4s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
}

.emit-pane,
.query-pane {
  min-width: 0;
  padding: clamp(2rem, 4.5vw, 4.25rem);
}

.emit-pane {
  border-right: 1px solid #2b2b26;
}

.query-pane {
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    #151512;
  background-size: 28px 28px;
}

.pane-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.pane-number {
  padding-top: 0.3rem;
  color: #ff5c35;
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.625rem;
}

.pane-label {
  margin: 0 0 0.25rem;
  color: #a3a398;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pane-heading h2 {
  margin: 0;
  color: #f4f4ed;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  font-weight: 560;
  letter-spacing: -0.035em;
}

.editor,
.query-editor {
  overflow-x: auto;
  border: 1px solid #33332e;
  background: #0d0d0c;
}

.editor-meta {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  color: #a3a398;
  border-bottom: 1px solid #292925;
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.625rem;
}

.editor pre,
.query-editor pre {
  min-width: max-content;
  margin: 0;
  padding: 1.35rem 1.2rem;
}

.editor code,
.query-editor code,
.receipt code {
  color: #d7d7cf;
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  line-height: 1.8;
}

.line-number {
  display: inline-block;
  width: 1.4rem;
  color: #494942;
  user-select: none;
}

.keyword {
  color: #ff8568;
}

.string {
  color: #a7d9ba;
}

.number,
.function {
  color: #e7cf78;
}

.receipt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  color: #a7d9ba;
  border: 1px solid rgba(167, 217, 186, 0.25);
  background: rgba(167, 217, 186, 0.06);
}

.receipt-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #11110f;
  background: #a7d9ba;
  border-radius: 50%;
  font-size: 1rem;
}

.receipt div:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.receipt span,
.receipt time {
  font-size: 0.6875rem;
  font-weight: 650;
}

.receipt code {
  color: #a3a398;
  font-size: 0.5625rem;
}

.receipt time {
  color: #a3a398;
}

.query-editor {
  border-bottom: 0;
}

.query-editor pre {
  min-height: 218px;
}

.results {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #33332e;
  background: rgba(13, 13, 12, 0.92);
}

.results caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.results th,
.results td {
  height: 44px;
  padding: 0 1rem;
  color: #bebeb4;
  border-top: 1px solid #292925;
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.65625rem;
  font-weight: 400;
  text-align: left;
}

.results thead tr:first-child th {
  border-top: 0;
}

.results th {
  height: 36px;
  color: #929287;
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.results th:last-child,
.results td:last-child {
  text-align: right;
}

.event-signal {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 0.6rem;
  background: #ff5c35;
  border-radius: 50%;
}

.event-signal-two {
  background: #a7d9ba;
}

.event-signal-three {
  background: #e7cf78;
}

.product-caption {
  display: flex;
  gap: 1rem;
  max-width: 720px;
  margin: 1.4rem 0 0 auto;
  color: #65655c;
  font-size: 0.8125rem;
}

.product-caption span {
  color: #ff5c35;
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.625rem;
}

/* Product philosophy */

.manifesto {
  padding: clamp(7rem, 12vw, 12rem) 0;
  color: #f2f0e9;
  background: #171713;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(5rem, 10vw, 11rem);
}

.section-kicker {
  margin-bottom: 1.75rem;
  color: #ff5c35;
}

.section-intro h2,
.closing h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 580;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.manifesto-lead {
  margin: 0 0 1.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3.1vw, 3rem);
  line-height: 1.2;
}

.manifesto-copy > p:nth-child(2) {
  max-width: 670px;
  margin: 0;
  color: #a3a399;
  font-size: 1rem;
  line-height: 1.75;
}

.absence-list {
  margin-top: 4rem;
  border-top: 1px solid #3a3a34;
}

.absence-list div {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: 1.15rem 0;
  color: #d1d1c8;
  border-bottom: 1px solid #3a3a34;
  font-size: 0.875rem;
}

.absence-list span {
  color: #ff5c35;
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Guarantees */

.guarantees {
  padding: clamp(7rem, 12vw, 12rem) 0;
}

.guarantees-intro {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  align-items: start;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.guarantees-intro h2 {
  max-width: 760px;
}

.guarantee-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(23, 23, 19, 0.25);
  list-style: none;
}

.guarantee-list li {
  display: grid;
  grid-template-columns: 0.14fr 0.72fr 0.9fr 0.35fr;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
  padding: 2.25rem 0;
  border-bottom: 1px solid rgba(23, 23, 19, 0.25);
}

.guarantee-number {
  color: #ff5c35;
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
}

.guarantee-list h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.guarantee-list p {
  max-width: 510px;
  margin: 0;
  color: #5e5e54;
  font-size: 0.875rem;
  line-height: 1.7;
}

.guarantee-tag {
  justify-self: end;
  padding: 0.4rem 0.65rem;
  color: #55554c;
  border: 1px solid rgba(23, 23, 19, 0.2);
  border-radius: 100px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Closing */

.closing {
  color: #171713;
  background: #ff5c35;
}

.closing-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4rem;
  min-height: 510px;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.closing .section-kicker {
  color: #171713;
}

.button-light {
  flex: 0 0 auto;
  color: #171713;
  background: #f2f0e9;
}

.button-light:hover {
  color: #ffffff;
  background: #171713;
}

/* Footer */

.site-footer {
  color: #d1d1c8;
  background: #171713;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  align-items: center;
  min-height: 130px;
}

.footer-brand {
  color: #f2f0e9;
}

.footer-brand .brand-mark {
  width: 27px;
  height: 27px;
  padding: 6px;
}

.footer-tagline {
  margin: 0;
  color: #9b9b90;
  font-size: 0.75rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  font-size: 0.75rem;
  font-weight: 600;
}

.footer-nav a:hover {
  color: #ff5c35;
}

/* Responsive refinement */

@media (max-width: 980px) {
  .wide-container {
    width: min(100% - 48px, 1280px);
  }

  .hero::before {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .hero-aside {
    display: grid;
    grid-template-columns: 0.4fr 1fr;
    gap: 2rem;
    align-items: start;
  }

  .aside-rule {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .hero-aside > p {
    margin: 0;
  }

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

  .emit-pane {
    border-right: 0;
    border-bottom: 1px solid #2b2b26;
  }

  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .guarantees-intro {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .guarantee-list li {
    grid-template-columns: 0.12fr 0.72fr 1fr;
  }

  .guarantee-tag {
    display: none;
  }

  .closing-inner {
    min-height: 450px;
  }
}

@media (max-width: 680px) {
  .wide-container {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 64px;
  }

  .header-nav {
    gap: 1rem;
  }

  .header-nav > a:not(.sign-in) {
    display: none;
  }

  .header-nav .sign-in {
    padding-left: 1rem;
  }

  .hero {
    padding: 4.75rem 0 4.5rem;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 1.25rem;
  }

  .button {
    width: 100%;
  }

  .text-link {
    width: max-content;
  }

  .hero-aside {
    display: block;
  }

  .hero-aside > p {
    margin: 1.5rem 0 2rem;
  }

  .product-bar {
    grid-template-columns: 1fr 1fr;
  }

  .product-bar p {
    display: none;
  }

  .emit-pane,
  .query-pane {
    padding: 1.5rem 1rem;
  }

  .pane-heading {
    margin-bottom: 1.5rem;
  }

  .editor code,
  .query-editor code {
    font-size: 0.6875rem;
  }

  .query-editor pre {
    min-height: auto;
  }

  .product-caption {
    margin-left: 0;
  }

  .manifesto,
  .guarantees {
    padding: 6rem 0;
  }

  .manifesto-lead {
    font-size: 1.75rem;
  }

  .absence-list div {
    grid-template-columns: 70px 1fr;
  }

  .guarantee-list li {
    grid-template-columns: auto 1fr;
    gap: 0.8rem 1.25rem;
    padding: 1.75rem 0;
  }

  .guarantee-list p {
    grid-column: 2;
  }

  .closing-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 540px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .footer-tagline {
    grid-row: auto;
  }

  .footer-nav {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
