/* APPVENZA LTD — company site. Apple-style: system type for reading, Space
   Grotesk for the brand, translucent bar, instant press feedback, calm motion. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #0b0b0f;
  --ink-2: #4a4a52;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --card: #ffffff;
  --red: #e11d2e;
  --bar: rgba(255, 255, 255, 0.72);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(0,0,0,.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #0e0e12;
    --ink: #f5f5f7;
    --ink-2: #b4b4bb;
    --ink-3: #8a8a92;
    --line: rgba(255, 255, 255, 0.1);
    --card: #141418;
    --bar: rgba(10, 10, 14, 0.7);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 100%/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }

.wrap { width: min(1080px, 100% - 2rem); margin-inline: auto; }

/* ---------- Brand ---------- */
.brand {
  display: inline-flex; align-items: baseline;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700; letter-spacing: -0.03em; text-decoration: none;
  font-size: 1.45rem; line-height: 1;
}
.brand .v { width: 0.62em; height: 0.6em; margin: 0 0.02em; align-self: center; transform: translateY(0.06em); }
.brand .v .b { fill: var(--ink); }
.brand .dot { color: var(--red); }

/* ---------- Bar: a translucent layer, content scrolls under it ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.bar.scrolled { border-bottom-color: var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.bar nav { display: flex; gap: 1.4rem; font-size: 0.9rem; }
.bar nav a { text-decoration: none; color: var(--ink-2); }
.bar nav a:hover { color: var(--ink); }
@media (max-width: 520px) { .bar nav { gap: 1rem; font-size: 0.85rem; } .bar nav .hide-s { display: none; } }

/* ---------- Type scale: tight tracking as it grows ---------- */
h1, h2, h3 { font-family: "Space Grotesk", system-ui, sans-serif; margin: 0; }
.display {
  font-size: clamp(2.6rem, 7.5vw, 5.4rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 700;
}
.display .red { color: var(--red); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.012em; font-weight: 600; }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.45; color: var(--ink-2); max-width: 36em; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin: 0 0 0.9rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(4.5rem, 12vw, 9rem) 0 clamp(3.5rem, 8vw, 6rem); text-align: center; }
.hero .lead { margin: 1.4rem auto 2.2rem; }
.hero .mark { width: 84px; height: 84px; margin: 0 auto 2rem; border-radius: 20px; box-shadow: var(--shadow); }
.actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* Buttons: feedback on press, at once */
.btn {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.8rem 1.35rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform 100ms ease-out, background-color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--bg-soft); }
.btn:focus-visible, .bar a:focus-visible, .app-card:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 9vw, 7rem) 0; }
.soft { background: var(--bg-soft); }
.head { max-width: 40em; margin-bottom: 2.6rem; }
.head .lead { margin-top: 1rem; }

.grid3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid3 { grid-template-columns: 1fr; } }
.tile {
  background: var(--card); border-radius: 22px; padding: 1.8rem;
  box-shadow: var(--shadow);
}
.tile .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(225, 29, 46, 0.1); color: var(--red); margin-bottom: 1.2rem; }
.tile .ic svg { width: 24px; height: 24px; }
.tile p { color: var(--ink-2); margin: 0.55rem 0 0; }

/* App card */
.app-card {
  display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center;
  background: var(--card); border-radius: 28px; padding: clamp(1.4rem, 4vw, 2.6rem);
  box-shadow: var(--shadow); text-decoration: none;
  transition: transform 120ms ease-out;
}
.app-card:active { transform: scale(0.985); }
.app-card .app-icon { width: clamp(72px, 14vw, 112px); height: auto; border-radius: 24%; box-shadow: 0 6px 18px rgba(225,29,46,.25); }
.app-card p { color: var(--ink-2); margin: 0.5rem 0 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { font-size: 0.8rem; font-weight: 600; padding: 0.32rem 0.7rem; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); }
.more { margin-top: 1rem; color: var(--ink-3); font-size: 0.95rem; }
.link { color: var(--red); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
@media (max-width: 560px) { .app-card { grid-template-columns: 1fr; } }

/* Contact */
.contact { text-align: center; }
.contact .lead { margin: 1rem auto 2rem; }
.mail { font-family: "Space Grotesk", system-ui, sans-serif; font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.mail:hover { color: var(--red); }

/* ---------- Footer: the company details the law asks for ---------- */
footer { border-top: 1px solid var(--line); padding: 2.4rem 0 3rem; font-size: 0.85rem; color: var(--ink-3); }
footer .row { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
footer .legal { max-width: 46em; line-height: 1.6; margin: 0.9rem 0 0; }
footer nav { display: flex; gap: 1.2rem; }
footer nav a { text-decoration: none; color: var(--ink-2); }
footer nav a:hover { color: var(--ink); }

/* Legal pages */
.doc { padding: clamp(3rem, 8vw, 5rem) 0; max-width: 44em; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.05; }
.doc h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin-top: 2.4rem; }
.doc p, .doc li { color: var(--ink-2); }
.doc .updated { color: var(--ink-3); margin-top: 0.6rem; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.4rem; margin-top: 1.4rem; }
.doc dt { color: var(--ink-3); }
.doc dd { margin: 0; color: var(--ink); font-weight: 500; }
@media (max-width: 520px) { .doc dl { grid-template-columns: 1fr; gap: 0.2rem; } .doc dd { margin-bottom: 0.7rem; } }

/* ---------- Gentle arrival as you scroll (none with reduced motion) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms cubic-bezier(.22,1,.36,1), transform 700ms cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .app-card { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .bar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
