/* DappIT — site vitrine */
:root {
  --ink: #0d1117;
  --ink-2: #333c48;
  --muted: #66707d;
  --line: #e3e6ea;
  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --accent: #1f5fd8;
  --accent-soft: #eef3fd;
  --radius: 10px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-size: 20px; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent); text-decoration: none; }
.lang {
  border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 10px; font-size: 13px; font-weight: 600; color: var(--muted);
}

/* Hero */
.hero { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-block; margin: 0 0 20px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: 48px; line-height: 1.12; letter-spacing: -.03em; font-weight: 700;
  max-width: 18ch;
}
.hero p.lead { margin: 0; font-size: 20px; color: var(--ink-2); max-width: 60ch; }

/* Sections */
section { padding: 72px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
h2 { font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 32px; }
h3 { font-size: 22px; letter-spacing: -.01em; margin: 0 0 10px; }
p { margin: 0 0 16px; }
.prose { max-width: 68ch; color: var(--ink-2); }

/* Products */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; background: var(--bg);
}
.card p { color: var(--ink-2); margin-bottom: 0; }
.card .tag {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted);
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.contact-grid dt { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-grid dd { margin: 0 0 20px; color: var(--ink-2); }
address { font-style: normal; }

/* Legal page */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: 34px; letter-spacing: -.02em; margin: 0 0 8px; }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.legal h2 { margin-top: 40px; }
.legal dl { margin: 0 0 24px; }
.legal dt { font-weight: 600; color: var(--ink); margin-top: 12px; }
.legal dd { margin: 0; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 40px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; gap: 20px; font-size: 14px; }

.todo { background: #fff6d6; border-bottom: 1px dashed #c9a227; padding: 0 2px; }

@media (max-width: 720px) {
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 18px; }
  .nav { gap: 16px; }
  .nav a.hide-sm { display: none; }
}

.card-link { margin-top: 16px; font-size: 15px; font-weight: 500; }

/* ---- Brand mark in the header ---- */
.brand { display: inline-flex; align-items: center; }
.brand-mark { border-radius: 7px; display: block; margin-right: 10px; }

/* ---- Hero atmosphere ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f9fc 0%, var(--bg) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 25%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 75% 25%, #000 0%, transparent 70%);
  opacity: .7;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -160px; right: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(31,95,216,.10) 0%, rgba(31,95,216,0) 68%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

/* ---- Product cards with their mark ---- */
.card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.card-head .tag { margin-bottom: 4px; }
.card-head h3 { margin: 0; }
.card-mark { flex: none; width: 52px; height: 52px; border-radius: 13px; display: block; }
.card-mark--pragma { padding: 10px; background: #f4ecfb; }
.card-mark--al { box-shadow: 0 1px 3px rgba(13,17,23,.18); }
.card { transition: border-color .18s ease, box-shadow .18s ease; }
.card:hover { border-color: #cfd6de; box-shadow: 0 6px 20px rgba(13,17,23,.06); }

/* ---- Product screenshot band ---- */
.card { padding: 0; overflow: hidden; }
.card > :not(.card-shot) { padding-left: 28px; padding-right: 28px; }
.card > .card-head { margin-top: 22px; }
.card > p:last-child { padding-bottom: 28px; }
.card-shot {
  display: block;
  width: 100%;
  height: 172px;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.card-shot--al { object-position: center; }
