/* =========================
   Provedi Laboratorio — Landing
   Dark · Developer vibes
   ========================= */

:root {
  --bg: #0b0d12;
  --bg-elev: #11141b;
  --bg-card: rgba(20, 24, 33, 0.65);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #e6e9ef;
  --text-dim: #9aa3b2;
  --text-mute: #6b7280;

  --accent: #00e5a8;      /* verde "lab" */
  --accent-2: #7c5cff;    /* viola dev */
  --accent-3: #ffb020;    /* giallo warning */

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);

  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* =========================
   Background
   ========================= */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
              radial-gradient(ellipse 60% 50% at 100% 100%, rgba(0, 229, 168, 0.12), transparent 60%),
              var(--bg);
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  opacity: 0.7;
}

.glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  pointer-events: none;
}
.glow-a { background: var(--accent-2); top: -100px; left: -120px; }
.glow-b { background: var(--accent);   bottom: -160px; right: -120px; opacity: 0.35; }

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* =========================
   Top bar
   ========================= */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(11, 13, 18, 0.6);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}
.logo { width: 28px; height: 28px; }
.brand-name {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.2px;
}
.brand-name-accent { color: var(--text-dim); }

.topnav { display: flex; align-items: center; gap: 18px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 229, 168, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 229, 168, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(0, 229, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 168, 0); }
}

/* =========================
   Hero
   ========================= */
main { padding: 0 32px; }

.hero {
  display: flex;
  justify-content: center;
  padding: 80px 0 40px;
}

.hero-inner {
  max-width: 980px;
  width: 100%;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-3);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-3);
}

.headline {
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--text);
}
.headline .word {
  color: var(--accent);
  display: inline-block;
  transform: translateY(-2px);
}
.headline .hl {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.claim {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  color: var(--text);
  margin: 0 auto 22px;
  max-width: 760px;
  letter-spacing: -0.01em;
}
.claim-em {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.sub {
  font-size: 16.5px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 56px;
}

/* =========================
   Pipeline (Idea → Prodotto)
   ========================= */
.pipeline {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px auto 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  min-width: 110px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.step:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}
.step-out {
  background: linear-gradient(180deg, rgba(0, 229, 168, 0.08), rgba(124, 92, 255, 0.08));
  border-color: rgba(0, 229, 168, 0.3);
}
.step-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 229, 168, 0.08);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 168, 0.2);
}
.step-icon svg { width: 22px; height: 22px; }
.step-out .step-icon {
  background: rgba(124, 92, 255, 0.1);
  border-color: rgba(124, 92, 255, 0.3);
  color: #b6a4ff;
}
.step-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.connector {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-mute);
}
.conn-line {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.conn-arrow { font-size: 10px; opacity: 0.7; }

/* =========================
   Cards
   ========================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 64px auto 0;
  padding: 0 0 24px;
}

.card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(124, 92, 255, 0.1);
  color: #b6a4ff;
  border: 1px solid rgba(124, 92, 255, 0.25);
  margin-bottom: 16px;
}
.card-icon svg { width: 20px; height: 20px; }
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* =========================
   Terminal mock
   ========================= */
.terminal-wrap {
  display: flex;
  justify-content: center;
  margin: 56px auto 64px;
  max-width: 760px;
}
.terminal {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(8, 10, 15, 0.85);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.t-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-r { background: #ff5f57; }
.t-y { background: #febc2e; }
.t-g { background: #28c840; }
.t-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-mute);
}
.t-body {
  padding: 18px 18px 22px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.7;
}
.t-body p { margin: 0; }
.t-prompt { color: var(--accent); margin-right: 8px; }
.t-ok { color: var(--accent); margin-right: 8px; }
.t-info { color: var(--accent-2); margin-right: 8px; }
.t-muted { color: var(--text-mute); }
.t-cursor {
  display: inline-block;
  margin-left: 4px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* =========================
   Footer
   ========================= */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 13px;
}
.foot-tag {
  font-family: var(--font-mono);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 880px) {
  .topbar { padding: 18px 20px; }
  main { padding: 0 20px; }
  .hero { padding: 56px 0 24px; }
  .cards { grid-template-columns: 1fr; margin-top: 40px; }
  .pipeline { padding: 14px; gap: 6px; }
  .step { min-width: 92px; padding: 12px 10px; }
  .connector { display: none; }
  .pipeline { flex-wrap: wrap; }
  footer { padding: 18px 20px; flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 13.5px; }
  .status-text { display: none; }
  .status { padding: 8px 10px; }
}
