/* Yodly SRL — dark technical. System fonts only (no external requests). */

:root {
  --bg:        #08090b;
  --bg-raised: #101216;
  --bg-inset:  #0c0e11;
  --line:      #1e2228;
  --line-soft: #16191e;
  --fg:        #e9ecef;
  --fg-muted:  #949ba4;
  --fg-dim:    #6b727c;
  --accent:    #38d9c4;
  --accent-dim:#1b6f65;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          Helvetica, Arial, sans-serif;

  --measure: 1120px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Faint grid + glow behind the whole page — the only "decoration". */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60rem 40rem at 50% -10%, rgba(56, 217, 196, 0.07), transparent 70%),
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 4.5rem,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 4.5rem 100%;
  mask-image: linear-gradient(180deg, #000 0%, transparent 65%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 65%);
}

body > * { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- typography ---------- */

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.022em; margin: 0; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--fg-muted); max-width: 62ch; }
.muted { color: var(--fg-muted); }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand .mark { width: 1.4rem; height: 1.4rem; flex: none; }

.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.4vw, 1.9rem); }
.nav a {
  color: var(--fg-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: 7px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--accent); color: #04211d; }
.btn-primary:hover { background: #5ee6d3; }

.btn-ghost { border-color: var(--line); color: var(--fg); background: var(--bg-raised); }
.btn-ghost:hover { border-color: var(--accent-dim); color: var(--accent); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* ---------- sections ---------- */

section { padding-block: clamp(3.5rem, 8vw, 6rem); }
section + section { border-top: 1px solid var(--line-soft); }

.hero { padding-block: clamp(4.5rem, 12vw, 8.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero h1 { max-width: 18ch; }
.hero .lede { margin-top: 1.5rem; }

.section-head { max-width: 62ch; margin-bottom: 2.75rem; }
/* :not(.eyebrow) — otherwise this outranks .eyebrow and greys out the label. */
.section-head p:not(.eyebrow) { margin-top: 0.9rem; color: var(--fg-muted); }

/* ---------- cards ---------- */

.grid { display: grid; gap: 1.15rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 1.7rem;
}
.card h3 { margin-bottom: 0.65rem; }
.card p { color: var(--fg-muted); font-size: 0.96rem; }

.card-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.9rem;
}

a.card { display: block; color: inherit; transition: border-color 0.15s ease; }
a.card:hover { border-color: var(--accent-dim); text-decoration: none; }

/* Product cards carry an external-link affordance. */
.card-link {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 1.1rem;
  display: inline-block;
}

/* ---------- definition-style lists ---------- */

.deflist { display: grid; gap: 0; margin: 0; }
.deflist > div {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line-soft);
}
.deflist > div:last-child { border-bottom: 1px solid var(--line-soft); }
.deflist dt { font-weight: 600; }
.deflist dd { margin: 0; color: var(--fg-muted); font-size: 0.96rem; }

@media (max-width: 44rem) {
  .deflist > div { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.contact-card .addr {
  font-family: var(--mono);
  font-size: 1rem;
  display: inline-block;
  margin-top: 0.5rem;
  word-break: break-all;
}

/* ---------- legal block ---------- */

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  margin-top: 1.5rem;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.legal-table th { font-weight: 600; width: 15rem; color: var(--fg); }
.legal-table td { color: var(--fg-muted); font-family: var(--mono); font-size: 0.88rem; }

@media (max-width: 34rem) {
  .legal-table th, .legal-table td { display: block; width: auto; }
  .legal-table th { border-bottom: 0; padding-bottom: 0.2rem; }
}

/* ---------- prose (privacy) ---------- */

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.75rem; margin-bottom: 0.9rem; font-size: 1.35rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose ul { color: var(--fg-muted); padding-left: 1.2rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.5rem; }
.prose p { color: var(--fg-muted); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-inset);
  padding-block: 3rem 2.5rem;
  margin-top: 2rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-soft);
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 0.9rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--fg-muted); font-size: 0.93rem; }
.footer-col a:hover { color: var(--fg); }

.footer-legal {
  padding-top: 1.75rem;
  color: var(--fg-dim);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
}
.footer-legal p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
