/* European Inference — public landing page. Zero JS, zero cookies. Mobile first. */

:root {
  --bg: #0e1116;
  --bg2: #151a22;
  --bg3: #1c2430;
  --border: #242e3c;
  --text: #e6ebf2;
  --muted: #8b98ab;
  --cyan: #02fbfd;
  --magenta: #f23ffe;
  --grad: linear-gradient(90deg, var(--cyan), var(--magenta));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* Hero ambience — only on pages with a hero (landing), so it never floats
   behind inner pages like /contact where it reads as a misplaced shadow. */
body.glow {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(242, 63, 254, 0.07), transparent 60%),
    radial-gradient(60rem 30rem at 10% -10%, rgba(2, 251, 253, 0.08), transparent 60%),
    var(--bg);
}
a { color: var(--cyan); }
code { font-family: ui-monospace, Menlo, Consolas, monospace; }
img { max-width: 100%; height: auto; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: .02em; text-decoration: none; color: var(--text);
}
.brand img { width: 30px; height: 29px; }
.top nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 22px); flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.top nav a:hover { color: var(--text); }
.top nav a.btn { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  border: 1px solid var(--border); background: var(--bg3); color: var(--text);
}
.btn:hover { border-color: var(--cyan); }
.btn.primary {
  background: var(--grad); border: none; color: #081018;
}
.btn.primary:hover { filter: brightness(1.1); }
.top nav .btn { padding: 7px 14px; font-size: 13.5px; }

/* ---------- layout ---------- */
main { max-width: 1040px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
main.narrow { max-width: 760px; }
section { padding: clamp(40px, 8vw, 84px) 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }
h1 {
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: 1.05; margin: 18px 0 10px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); margin: 0 0 10px; }
h3 { font-size: 1.05rem; margin: 4px 0 6px; }
.lead { color: var(--muted); max-width: 56ch; margin: 0 0 26px; }
.tiny { font-size: 12.5px; }
.muted { color: var(--muted); }

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: clamp(48px, 10vw, 96px); }
.hero-logo { width: clamp(96px, 22vw, 180px); opacity: .95; }
.hero .sub { font-size: clamp(1.05rem, 3vw, 1.35rem); color: var(--muted); margin: 0 0 26px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 20px 18px;
}
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.ico { font-size: 22px; margin-bottom: 8px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- code ---------- */
pre {
  background: #0a0d12; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; overflow-x: auto; margin: 0 0 14px;
  font-size: 13px; line-height: 1.55;
}
pre code { color: #cfe3ff; }

/* ---------- footer ---------- */
footer {
  max-width: 1040px; margin: 0 auto;
  padding: 26px clamp(16px, 4vw, 40px) 44px;
  display: flex; flex-direction: column; gap: 10px;
}
footer > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
footer img { width: 24px; height: 23px; }
footer > div:first-child span { font-weight: 600; }
.links { display: flex; gap: 18px; }
.links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.links a:hover { color: var(--text); }

/* ---------- contact page ---------- */
.contact-h { margin-bottom: 4px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.vcenter > * { margin: 0; }
.section-title {
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 10px;
}
.banner {
  border-radius: 10px; padding: 11px 14px; font-size: 14px; margin: 10px 0;
}
.banner.err {
  background: rgba(224, 82, 82, 0.12); color: #f0938f;
  border: 1px solid rgba(224, 82, 82, 0.35);
}

.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.contact-form .frow { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .contact-form .frow.two { grid-template-columns: 1fr 1fr; } }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.contact-form .lname { display: inline-flex; align-items: baseline; gap: 4px; }
.contact-form input, .contact-form textarea {
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: 15px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--cyan); }
.contact-form textarea { resize: vertical; min-height: 180px; }
.req { color: var(--magenta); }

/* honeypot: must stay out of the visual flow but remain fillable by bots */
.hp {
  position: absolute !important; left: -9999px !important; top: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

.sent { padding: 22px; }
.conv-url {
  background: #0a0d12; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; margin-top: 10px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px;
  color: var(--cyan); word-break: break-all;
}
