/* ===== CSS VARIABLES ===== */
:root {
  --black:   #070708;
  --surface: #0e0e10;
  --card:    #141417;
  --border:  #1e1e24;
  --orange:  #ff3c00;
  --orange2: #ff6a2f;
  --orange3: #8a2000;   /* arancio bruciato, per sfumature verso il nero */
  --neon:    #00ff41;   /* verde terminale "matrix": usato con parsimonia */
  --white:   #f0ede8;
  --muted:   #6b6b78;
  --text:    #c8c5bf;
  --mono: 'Space Mono', monospace;
  --head: 'Syne', sans-serif;
  --body: 'DM Sans', sans-serif;
  --radius: 6px;
  --glow-orange: 0 0 40px rgba(255,60,0,0.18), 0 0 80px rgba(255,60,0,0.06);
  --glow-neon: 0 0 6px rgba(0,255,65,0.45);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }

/* ===== NOISE OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
nav.scrolled {
  background: rgba(7,7,8,0.92);
  border-color: var(--border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.nav-logo {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo span { color: var(--orange); }
.nav-logo-icon {
  width: 28px;
  height: 28px;
  background: var(--orange);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.nav-logo-icon img {
  width: 65%;
  height: 65%;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  font-size: 0.85rem;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.nav-links a {
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--orange);
  color: var(--black);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--orange2); transform: translateY(-1px); }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.nav-cta-icon { display: none; flex-shrink: 0; }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* Animated grid background */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,60,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,60,0,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

/* Glow blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.blob-1 {
  width: 500px; height: 500px;
  background: rgba(255,60,0,0.12);
  top: -100px; left: -100px;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-2 {
  width: 400px; height: 400px;
  background: rgba(255,60,0,0.07);
  bottom: -80px; right: -60px;
  animation: blobFloat 10s ease-in-out infinite reverse;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px, 20px) scale(1.05); }
}

.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: rgba(255,60,0,0.06);
  color: var(--orange2);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 0;
  margin-right: 20px;
  animation: fadeUp 0.8s 0.1s both;
}
.lang-badge:hover { color: var(--white); border-color: var(--orange); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

h1.hero-title {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--white);
  animation: fadeUp 0.8s 0.2s both;
  margin-bottom: 8px;
}
h1.hero-title .accent { color: var(--orange); }

.hero-sub {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeUp 0.8s 0.3s both;
  margin-bottom: 24px;
}

.hero-desc {
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  animation: fadeUp 0.8s 0.4s both;
  margin-bottom: 44px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s 0.5s both;
}
.btn-primary {
  background: var(--orange);
  color: var(--black);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 24px rgba(255,60,0,0.3);
}
.btn-primary:hover {
  background: var(--orange2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,60,0,0.4);
}
.btn-secondary {
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
}
.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255,60,0,0.05);
  transform: translateY(-2px);
}

/* Terminal hero widget */
.hero-terminal {
  margin-top: 64px;
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  animation: fadeUp 0.8s 0.7s both;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), var(--glow-orange);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot.red { background: #ff5f57; }
.t-dot.yellow { background: #ffbd2e; }
.t-dot.green { background: #28c840; }
.terminal-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: auto;
  letter-spacing: 0.04em;
}
.terminal-body {
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.8;
  text-align: left;
}
.t-prompt { color: var(--orange); }
.t-cmd { color: var(--white); }
.t-output { color: var(--muted); }
.t-ai { color: var(--neon); text-shadow: var(--glow-neon); }
.t-system { color: var(--neon); opacity: 0.85; }
.t-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--orange);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== SECTIONS ===== */
section {
  padding: 96px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--orange);
}
h2.section-title {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}
h2.section-title .accent { color: var(--orange); }
.section-body {
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== ABOUT GRID ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-visual {
  position: relative;
}

.hexagon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.hex-cell {
  aspect-ratio: 1;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--card);
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hex-cell img {
  width: 65%;
  height: 65%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.6);
  transition: 0.25s ease;
}
.hex-cell:hover { background: var(--orange) !important; }
.hex-cell:hover img { opacity: 1; transform: scale(1); }
.hex-cell:nth-child(odd)  { background: rgba(255,60,0,0.15); }
.hex-cell:nth-child(even) { background: rgba(255,255,255,0.025); }

.creator-tag {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
}
.creator-avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--orange), var(--orange3));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--head);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--white);
  flex-shrink: 0;
  overflow: hidden;
}
.creator-avatar img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}
.creator-info small {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.creator-info strong { color: var(--white); }

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 6 card = 3x2, nessuna cella vuota */
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 56px;
}
.feature-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.25s;
  position: relative;
}
.feature-card:hover { background: var(--card); }
.feature-card h3 {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--orange3));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.feature-card:hover::after { transform: scaleX(1); }

/* ===== SPLIT SECTIONS ===== */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.code-header .dots { display: flex; gap: 6px; }
.code-header .dot { width: 10px; height: 10px; border-radius: 50%; }
.code-header .dot.r { background: #ff5f57; }
.code-header .dot.y { background: #ffbd2e; }
.code-header .dot.g { background: #28c840; }
.code-filename {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: auto;
}
.code-body {
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.9;
}
.c-comment { color: var(--muted); }
.c-keyword { color: var(--neon); }
.c-string { color: var(--orange2); }
.c-func { color: #7dd3fc; }
.c-var { color: var(--white); }

/* ===== MEMORY DIAGRAM ===== */
.memory-diagram {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.memory-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.memory-node:hover {
  border-color: var(--orange);
  background: rgba(255,60,0,0.04);
}
.memory-node-info { text-align: center; }
.memory-node-info small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.memory-node-info strong { color: var(--white); }
.memory-center {
  background: linear-gradient(135deg, rgba(255,60,0,0.18), rgba(0,0,0,0.6));
  border: 1px solid var(--orange);
  text-align: center;
  justify-content: center;
  padding: 20px;
  box-shadow: var(--glow-orange);
}
.memory-center strong {
  color: var(--orange);
  font-size: 0.9rem;
}
.arrow-down {
  text-align: center;
  color: var(--orange);
  font-size: 1.2rem;
  line-height: 1;
}

/* ===== USE CASE ===== */
.usecase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 48px;
}
.usecase-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.usecase-step {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  position: relative;
}
.usecase-step:last-child { border-right: none; }
.step-num {
  font-family: var(--head);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}
.usecase-step h4 {
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 8px;
}
.usecase-step p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.usecase-step.active .step-num { color: var(--orange); }
.usecase-step.active { background: rgba(255,60,0,0.03); }

/* ===== FOR WHO ===== */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.who-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  transition: border-color 0.25s;
}
.who-card:hover { border-color: var(--orange); }
.who-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.who-tag.beginner { background: rgba(0,255,65,0.08); color: var(--neon); }
.who-tag.expert   { background: rgba(255,60,0,0.15); color: var(--orange2); }
.who-card h3 {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
}
.who-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

/* ===== REQUIREMENTS ===== */
.req-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 6 card = 3x2 */
  gap: 16px;
  margin-top: 48px;
}
.req-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.req-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.req-card h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.req-card .req-value {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}
.req-card .req-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== INSTALL STEPS ===== */
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.install-steps::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 48px;
  bottom: 48px;
  width: 1px;
  background: linear-gradient(180deg, var(--orange), var(--orange3), transparent);
}
.install-step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.install-step:last-child { border-bottom: none; }
.step-badge {
  width: 48px;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orange);
  flex-shrink: 0;
  z-index: 1;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.install-step:hover .step-badge {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--black);
}
.step-content h4 {
  font-family: var(--head);
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 6px;
}
.step-content p { font-size: 0.9rem; color: var(--muted); }
.step-content code {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--orange2);
}

/* ===== HERO LIVE ROW (terminale + credenziali) ===== */
.hero-live-row {
  margin-top: 36px;
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  text-align: left;
}
.hero-live-row .hero-terminal {
  margin-top: 0;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}
.hero-live-row .hero-terminal .terminal-body {
  overflow-x: auto;
}
.live-creds {
  flex: 0 0 280px;
  align-self: stretch;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeUp 0.8s 0.85s both;
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--glow-orange);
}
.live-creds-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange2);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.live-creds-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
  flex-shrink: 0;
}
.live-creds-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.live-cred {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 14px;
}
.live-cred-values {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.live-cred-key {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.live-cred-val {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  background: rgba(255,60,0,0.14);
  border: 1px solid rgba(255,60,0,0.35);
  border-radius: 3px;
  padding: 1px 10px;
  user-select: all;
  white-space: nowrap;
}
.live-cred-key, .live-cred-val { white-space: nowrap; }
.live-creds-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ===== ROADMAP ===== */
/* Griglia a 3 colonne: [stato] [descrizione] [nome pacchetto].
   Con subgrid tutte le righe condividono le stesse colonne, quindi i badge
   hanno la stessa larghezza e testi e nomi partono tutti dallo stesso punto. */
.roadmap-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  row-gap: 12px;
  margin-top: 48px;
}
.roadmap-item {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto;   /* fallback senza subgrid */
  align-items: center;
  column-gap: 20px;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
@supports (grid-template-columns: subgrid) {
  .roadmap-item { grid-template-columns: subgrid; }
}
.roadmap-item:hover { border-color: var(--orange); }
.roadmap-status {
  justify-self: stretch;          /* tutti i badge larghi come il più lungo */
  text-align: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.status-done    { background: rgba(40,200,64,0.12); color: #28c840; }
.status-wip     { background: rgba(255,189,46,0.12); color: #ffbd2e; }
.status-planned { background: rgba(107,107,120,0.2); color: var(--muted); }
.roadmap-item > span:not(.roadmap-status) { color: var(--white); }
.roadmap-item small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-align: right;
}

/* schermi stretti: badge sopra, poi descrizione e nome pacchetto */
@media (max-width: 600px) {
  .roadmap-list { grid-template-columns: 1fr; }
  .roadmap-item {
    grid-template-columns: 1fr;
    row-gap: 8px;
    padding: 16px 18px;
  }
  .roadmap-status { justify-self: start; }
  .roadmap-item small { text-align: left; }
}

/* ===== COMMUNITY ===== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.community-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.community-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.community-card h3 {
  font-family: var(--head);
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
}
.community-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.community-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--orange);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.2s;
}
.community-card:hover .community-link { gap: 10px; }

.community-card-full {
  display: block;
  text-decoration: none;
  transition: 0.25s ease;
  border-radius: 10px;
}
.community-card-full:hover > div {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 1px rgba(255, 60, 0, 0.25),
              0 0 30px rgba(255, 60, 0, 0.25);
  background: rgba(255, 60, 0, 0.04) !important;
}

/* ===== CTA FINAL ===== */
#cta {
  text-align: center;
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255,60,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-quote {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.cta-quote blockquote {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.cta-quote blockquote span { color: var(--orange); }
.cta-quote p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 40px;
}
.cta-author {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 20px;
  letter-spacing: 0.04em;
}
.cta-author strong { color: var(--orange); }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }

/* ===== UTILITY ===== */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255,60,0,0.1);
  color: var(--orange);
  border: 1px solid rgba(255,60,0,0.2);
}

.hidden { display: none; }

.feature-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* immagine fuori da una section (pic2.png): centrata e larga come le section */
section + img.feature-image {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .hero-live-row { flex-direction: column; align-items: center; max-width: 640px; }
  .hero-live-row .hero-terminal { flex: 1 1 auto; width: 100%; max-width: 100%; }
  .live-creds { flex: 1 1 auto; width: 100%; order: -1; }
  .about-grid,
  .split-section,
  .who-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-section.reverse { direction: ltr; }
  .usecase-steps { grid-template-columns: 1fr; }
  .usecase-step { border-right: none; border-bottom: 1px solid var(--border); }
  .usecase-step:last-child { border-bottom: none; }
  .community-grid { grid-template-columns: 1fr 1fr; }
  .community-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }   /* 3 card su 2 colonne: l'ultima occupa tutta la riga */
  .features-grid, .req-grid { grid-template-columns: repeat(2, 1fr); }   /* 6 card = 2x3 */
  .hexagon-grid { display: none; }
  footer { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  section { padding: 64px 20px; }
  .community-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary, .hero-buttons .btn-philosophy { width: 100%; justify-content: center; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
/* a reveal concluso gli hover tornano immediati */
.reveal.revealed { transition: opacity .3s ease, transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease, gap .2s ease; transition-delay: 0s; }
.reveal.visible.req-card:hover { transform: translateY(-3px); }
.reveal.visible.community-card:hover { transform: translateY(-4px); }


/* ===== NAV ACTIONS + MENU MOBILE ===== */
.nav-actions { display: flex; align-items: center; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}
nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-links-download { display: none; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .lang-badge { margin-right: 12px; }
  .nav-cta { padding: 8px 14px; font-size: 0.74rem; }
  nav:has(.nav-toggle) .nav-cta { display: none; }
  /* pagine senza menu (filosofia, donazioni): pulsante download solo icona */
  .nav-cta:has(.nav-cta-icon) { width: 40px; height: 40px; padding: 0; }
  .nav-cta-icon { display: block; }
  .nav-cta-text { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px 24px 14px;
    background: rgba(7,7,8,0.97);
    border-bottom: 1px solid var(--border);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  nav.menu-open { background: rgba(7,7,8,0.97); border-color: var(--border); }
  nav.menu-open .nav-links { display: flex; }
  .nav-links li + li { border-top: 1px solid var(--border); }
  .nav-links a { display: block; padding: 13px 0; font-size: 0.9rem; }
  .nav-links-download { display: list-item; }
  .nav-links-download a { color: var(--orange2); font-weight: 700; }
}

/* ===== PULSANTI SECONDARI (filosofia / donazioni) ===== */
.btn-philosophy {
  background: rgba(255, 60, 0, 0.15);
  color: var(--orange2);
  border: 1px solid rgba(255, 60, 0, 0.4);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.btn-philosophy:hover {
  background: rgba(255, 60, 0, 0.25);
  border-color: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 60, 0, 0.15);
}
.btn-donate {
  border-width: 2px;
  border-color: rgba(255, 60, 0, 0.75);
  box-shadow: 0 0 12px rgba(255, 60, 0, 0.35),
              0 0 24px rgba(255, 60, 0, 0.15),
              inset 0 0 8px rgba(255, 60, 0, 0.10);
  color: var(--orange2);
}
.btn-donate:hover {
  border-color: var(--orange);
  box-shadow: 0 0 18px rgba(255, 60, 0, 0.55),
              0 0 36px rgba(255, 60, 0, 0.25),
              inset 0 0 12px rgba(255, 60, 0, 0.18);
  color: var(--white);
}

/* ===== MODAL SCELTA EDIZIONE (condiviso da tutte le pagine) ===== */
.edition-overlay[hidden] { display: none; }
  .edition-overlay{
    position:fixed; inset:0; z-index:9999;
    display:flex; align-items:center; justify-content:center;
    padding:24px;
    background:rgba(0,0,0,.78);
    -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
    opacity:0; visibility:hidden;
    transition:opacity .22s ease, visibility .22s ease;
  }

.edition-overlay.is-open{ opacity:1; visibility:visible; }

.edition-panel{
    width:100%; max-width:980px;
    background:var(--surface, #121212);
    border:1px solid var(--border, #2a2a2a);
    border-radius:14px;
    padding:34px 30px 30px;
    position:relative;
    transform:translateY(14px) scale(.985);
    transition:transform .22s ease;
    max-height:90vh; overflow-y:auto;
  }

.edition-overlay.is-open .edition-panel{ transform:none; }

.edition-eyebrow{
    font-family:var(--mono, 'Space Mono', monospace);
    font-size:.7rem; letter-spacing:.14em; text-transform:uppercase;
    color:var(--orange, #ff6a2b); margin-bottom:10px;
  }

.edition-title{
    font-family:var(--head, 'Syne', sans-serif);
    font-size:1.6rem; font-weight:800; line-height:1.15;
    color:var(--white, #fff); margin:0 0 8px;
  }

.edition-intro{
    font-size:.9rem; color:var(--muted, #9a9a9a);
    margin:0 0 26px; max-width:52ch;
  }

.edition-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }

.edition-card{
    display:flex; flex-direction:column; text-decoration:none;
    background:transparent;
    border:1px solid var(--border, #2a2a2a);
    border-radius:10px; padding:22px 20px;
    transition:border-color .18s ease, background .18s ease, transform .18s ease;
  }

.edition-card:hover, .edition-card:focus-visible{
    border-color:var(--orange, #ff6a2b);
    background:rgba(255,106,43,.05);
    transform:translateY(-2px);
  }

.edition-card:focus-visible{ outline:2px solid var(--orange, #ff6a2b); outline-offset:3px; }

.edition-card h3{
    font-family:var(--head, 'Syne', sans-serif);
    font-size:1.1rem; font-weight:700;
    color:var(--white, #fff); margin:0 0 6px;
  }

.edition-card p{
    font-size:.82rem; line-height:1.5;
    color:var(--muted, #9a9a9a); margin:0 0 20px;
  }

.edition-meta{
    display:flex; align-items:center; justify-content:space-between;
    margin-top:auto;
    font-family:var(--mono, 'Space Mono', monospace); font-size:.72rem;
    color:var(--muted, #9a9a9a);
    padding-top:12px; border-top:1px solid var(--border, #2a2a2a);
  }

.edition-card:hover .edition-meta .edition-go,
  .edition-card:focus-visible .edition-meta .edition-go{ color:var(--orange, #ff6a2b); }

.edition-go{ transition:color .18s ease; }

.edition-close{
    position:absolute; top:14px; right:16px;
    background:none; border:none; cursor:pointer;
    font-size:1.5rem; line-height:1;
    color:var(--muted, #9a9a9a); padding:6px 10px; border-radius:6px;
    transition:color .18s ease;
  }

.edition-close:hover{ color:var(--white, #fff); }

.edition-close:focus-visible{ outline:2px solid var(--orange, #ff6a2b); outline-offset:2px; }

.edition-note{
    margin:22px 0 0; font-size:.75rem; color:var(--muted, #9a9a9a);
    text-align:center;
  }

.edition-note a{ color:var(--orange, #ff6a2b); text-decoration:none; }

.edition-note a:hover{ text-decoration:underline; }

@media (max-width:640px){
    .edition-grid{ grid-template-columns:1fr; }
    .edition-panel{ padding:30px 22px 24px; }
    .edition-title{ font-size:1.35rem; }
  }

@media (prefers-reduced-motion:reduce){
    .edition-overlay, .edition-panel, .edition-card{ transition:none; }
    .edition-card:hover{ transform:none; }
  }

.edition-card.is-disabled{
    opacity: 0.45;
    filter: grayscale(1);
    cursor: not-allowed;
    pointer-events: none;
    border-color: var(--border, #2a2a2a);
    background: transparent;
  }

.edition-card.is-disabled h3,
  .edition-card.is-disabled p,
  .edition-card.is-disabled .edition-meta,
  .edition-card.is-disabled .edition-meta .edition-go{
    color: var(--muted, #9a9a9a);
  }

.edition-card.is-disabled .edition-go{
    font-style: italic;
  }

.edition-card.is-disabled:hover,
  .edition-card.is-disabled:focus,
  .edition-card.is-disabled:focus-visible{
    border-color: var(--border, #2a2a2a);
    background: transparent;
    transform: none;
    outline: none;
  }

/* ===== RIDUZIONE MOVIMENTO (preferenza di sistema dell'utente) ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ===== AGGIUNTE ===== */
/* etichetta "In lavorazione" nel modal edizioni */
.edition-wip {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Mantis in roadmap: arancione */
.status-mantis { background: rgba(255,60,0,0.14); color: var(--orange2); }
.roadmap-item.roadmap-mantis { border-color: rgba(255,60,0,0.45); }
.roadmap-item.roadmap-mantis > span:not(.roadmap-status) { color: var(--orange2); }
/* badge "in sviluppo" accanto alle etichette di sezione */
.section-label .tag { margin-left: 4px; }
