:root {
  --bg: #f7f2e9;
  --paper: #fffaf2;
  --paper-2: #eee5d6;
  --ink: #1f241b;
  --muted: #69705e;
  --olive: #627044;
  --olive-dark: #3f4b2d;
  --sage: #9aa77e;
  --beige: #e8ddca;
  --line: rgba(63, 75, 45, 0.15);
  --line-strong: rgba(98, 112, 68, 0.34);
  --shadow: 0 24px 70px rgba(76, 70, 52, 0.13);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(154, 167, 126, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 16%, rgba(232, 221, 202, 0.6), transparent 26rem),
    linear-gradient(180deg, var(--bg) 0%, #fffaf2 50%, #f1eadf 100%);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0%, rgba(255, 250, 242, 0.56) 44%, rgba(154, 167, 126, 0.12) 58%, transparent 74%),
    repeating-linear-gradient(90deg, rgba(63, 75, 45, 0.028) 0 1px, transparent 1px 120px);
  opacity: 0.72;
  transform: translateX(-26%);
  animation: calm-drift 18s ease-in-out infinite alternate;
}

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

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin-top: 18px;
  font-size: clamp(3rem, 7.7vw, 7rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 4.35rem);
  font-weight: 500;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max));
  min-height: 74px;
  margin: 0 auto;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffaf2, #e7eadb);
  color: var(--olive);
  box-shadow: 0 12px 28px rgba(98, 112, 68, 0.14);
  font-size: 0.8rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.84);
  box-shadow: 0 12px 28px rgba(76, 70, 52, 0.08);
}

.site-nav a {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 0.92rem;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(98, 112, 68, 0.11);
  color: var(--olive-dark);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.88);
  color: var(--ink);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 74svh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(247, 242, 233, 0.99) 0%, rgba(247, 242, 233, 0.9) 38%, rgba(247, 242, 233, 0.26) 72%, rgba(247, 242, 233, 0.86) 100%),
    linear-gradient(180deg, rgba(247, 242, 233, 0) 68%, var(--bg) 100%),
    url("assets/olomo-minimal-apps.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  height: 22%;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-content {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 74px 0 58px;
}

.eyebrow {
  color: var(--olive);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 620px;
  margin-top: 22px;
  color: var(--muted);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.04rem, 1.9vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: var(--olive);
  color: #fffaf2;
  box-shadow: 0 16px 34px rgba(98, 112, 68, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--olive-dark);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 250, 242, 0.84);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(76, 70, 52, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--line-strong);
  background: var(--paper);
}

.section {
  padding: 96px 0;
}

.section-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.intro-section {
  padding-top: 54px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: 48px;
  align-items: end;
}

.section-copy,
.section-heading p:not(.eyebrow),
.contact-panel p:not(.eyebrow) {
  color: var(--muted);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 1.04rem;
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
}

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

.service-card,
.process-card,
.systems-panel,
.contact-panel,
.legal-content section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(98, 112, 68, 0.08), transparent 42%),
    rgba(255, 250, 242, 0.88);
  box-shadow: var(--shadow);
}

.service-card,
.process-card {
  min-height: 292px;
  padding: 24px;
}

.card-index,
.process-card span,
.system-row span {
  color: var(--olive);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card h3,
.process-card h3 {
  margin-top: 44px;
}

.service-card p,
.process-card p {
  margin-top: 16px;
  color: var(--muted);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.systems-section {
  background: linear-gradient(180deg, transparent, rgba(255, 250, 242, 0.58), transparent);
}

.systems-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.68fr);
  gap: 48px;
  align-items: start;
}

.systems-panel {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(154, 167, 126, 0.12), transparent 38%),
    var(--paper);
}

.system-row {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.system-row:last-child {
  border-bottom: 0;
}

.system-row strong {
  line-height: 1.35;
}

.product-section {
  padding-top: 50px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: start;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-tags span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.78);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.contact-section {
  padding-top: 50px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-color: var(--line-strong);
  background:
    linear-gradient(115deg, rgba(98, 112, 68, 0.14), transparent 36%),
    linear-gradient(280deg, rgba(232, 221, 202, 0.72), transparent 42%),
    #fff8ec;
}

.contact-panel > div {
  display: grid;
  gap: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 48px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.footer-brand {
  color: var(--ink);
}

.site-footer p {
  margin-top: 10px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a:not(.brand) {
  color: var(--ink);
}

.site-footer a:not(.brand):hover,
.site-footer a:not(.brand):focus-visible {
  color: var(--olive);
  outline: none;
}

.copyright {
  text-align: right;
}

.legal-main {
  width: min(100% - 32px, 940px);
  margin: 0 auto;
  padding: 62px 0 76px;
}

.legal-hero {
  padding: 54px 0 46px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: none;
  font-size: clamp(2.7rem, 7vw, 6.2rem);
}

.legal-hero p:last-child {
  margin-top: 18px;
  color: var(--muted);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.legal-content {
  display: grid;
  gap: 24px;
  padding-top: 38px;
}

.legal-content section {
  padding: 24px;
  background: rgba(255, 250, 242, 0.88);
}

.legal-content h2 {
  font-size: 1.14rem;
}

.legal-content p {
  margin-top: 12px;
  color: var(--muted);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.legal-content a {
  color: var(--olive);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes calm-drift {
  0% {
    transform: translateX(-26%);
  }
  100% {
    transform: translateX(18%);
  }
}

@media (max-width: 980px) {
  .card-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .systems-layout,
  .product-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel .button {
    justify-self: start;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .copyright {
    text-align: left;
  }
}

@media (max-width: 740px) {
  .site-header {
    min-height: 68px;
  }

  .brand {
    max-width: calc(100% - 58px);
  }

  .brand span:last-child {
    overflow-wrap: anywhere;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(310px, calc(100vw - 32px));
    padding: 8px;
    background: rgba(255, 250, 242, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    width: 100%;
  }

  .hero {
    min-height: 78svh;
    background-position: 58% center;
  }

  .hero-content {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4.8rem);
    overflow-wrap: anywhere;
  }

  .section {
    padding: 72px 0;
  }

  .card-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .service-card,
  .process-card,
  .system-row,
  .legal-content section {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
