/* AM Tech – amtechno.it */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #15181d;
  --muted: #5b6270;
  --line: #e3e6ea;
  --brand-dark: #2b3a80;
  --brand: #2563a6;
  --brand-light: #29a9e0;
  --grey: #8e9096;
  --accent: #2563a6;
  --accent-soft: #e8f2fb;
  --hero-glow: rgba(41, 169, 224, 0.12);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1215;
    --surface: #171b20;
    --text: #eceef1;
    --muted: #a2a8b3;
    --line: #272c33;
    --accent: #5fb6e8;
    --accent-soft: #15283a;
    --hero-glow: rgba(41, 169, 224, 0.10);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: 0.1em; text-decoration: none; white-space: nowrap; }
.brand img { height: 40px; width: auto; display: block; }
.brand .am { color: var(--brand); }
.brand .tech { color: var(--grey); }
@media (prefers-color-scheme: dark) { .brand .am { color: #4fa9e2; } .brand .tech { color: #a7a9ae; } }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang a, .lang span { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; line-height: 1.4; }
.lang span { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 640px) {
  .nav .hide-sm { display: none; }
  .brand .word { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 80px;
  background: radial-gradient(1000px 420px at 85% 20%, var(--hero-glow), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 22px; font-weight: 750; text-wrap: balance; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: dark) {
  .hero h1 .grad { background: linear-gradient(90deg, #6f8ff0, #3fc0f0); -webkit-background-clip: text; background-clip: text; }
}
.hero .lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 0 32px; }
.hero-shot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 2px 4px rgba(16,24,40,.05), 0 24px 48px rgba(16,24,40,.14); transform: perspective(1600px) rotateY(-4deg); transform-origin: left center; }
.hero-shot img { display: block; width: 100%; height: auto; }
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
@media (max-width: 860px) {
  .hero { padding: 56px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-shot { transform: none; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: linear-gradient(90deg, var(--brand-dark), var(--brand)); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 166, 0.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 99, 166, 0.34); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 700; text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
@media (max-width: 640px) { section { padding: 60px 0; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px 26px;
}
section:not(.alt) .step { background: var(--surface); box-shadow: var(--shadow); }
.step .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.step .icon svg { width: 24px; height: 24px; }
.step .num { position: absolute; top: 24px; right: 24px; font-size: 13px; font-weight: 700; color: var(--grey); letter-spacing: 0.06em; }
.step h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Screenshot (enabled when available) */
.shot { margin: 48px 0 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.shot img { display: block; width: 100%; }

/* Audience */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.aud { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.aud h3 { font-size: 19px; margin: 0 0 8px; }
.aud p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .audience { grid-template-columns: 1fr; } }

/* CTA band */
.cta {
  border-radius: 20px; padding: 44px 44px;
  background: linear-gradient(110deg, var(--brand-dark), var(--brand) 55%, var(--brand-light));
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta h2 { margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.015em; }
.cta p { margin: 0; opacity: .9; }
.cta .btn { background: #fff; color: var(--brand-dark); }
.cta .btn:hover { transform: translateY(-1px); }
.cta small { display: block; margin-top: 12px; opacity: .85; font-size: 14px; }
.cta small a { color: #fff; }
@media (max-width: 640px) { .cta { padding: 32px 26px; } }

/* Contacts */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.contact.wide { grid-column: 1 / -1; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.contact a { text-decoration: none; font-weight: 500; }
.contact a:hover { text-decoration: underline; }
@media (max-width: 860px) { .contacts { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer p { margin: 3px 0; }
.site-footer .legal strong { color: var(--text); }
.site-footer .links a { color: var(--muted); margin-right: 16px; }
.site-footer .links a:hover { color: var(--accent); }

/* Legal pages */
.doc { max-width: 760px; padding: 56px 24px 24px; }
.doc h1 { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -0.02em; margin: 0 0 6px; }
.doc h2 { font-size: 19px; margin: 34px 0 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
