:root {
  --background: #03070d;
  --foreground: #f6fbff;
  --muted: #a8b8c8;
  --cyan: #28d7ff;
  --blue: #2b6cb0;
  --panel: rgba(10, 24, 42, 0.78);
  --line: rgba(78, 208, 255, 0.28);
  --green: #67d26f;
  --amber: #f4a62a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 5.2rem;
  background:
    radial-gradient(circle at 20% 10%, rgba(40, 215, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 18%, rgba(43, 108, 176, 0.24), transparent 30rem),
    linear-gradient(180deg, #03070d 0%, #06111f 46%, #020509 100%);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

img {
  height: auto;
  max-width: 100%;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(3, 7, 13, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  gap: 1rem;
  min-width: 0;
}

.brand img {
  width: 9.4rem;
}

.brand span {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  padding-left: 1rem;
  white-space: nowrap;
}

nav {
  align-items: center;
  color: #d8e7f5;
  display: flex;
  font-size: 0.9rem;
  gap: 1.1rem;
}

nav .contact-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan);
  font-weight: 800;
  padding: 0.62rem 0.95rem;
  text-transform: uppercase;
}

.menu-button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dff6ff;
  display: none;
  font: inherit;
  padding: 0.6rem 0.9rem;
}

.section {
  margin: 0 auto;
  padding: clamp(2.8rem, 5.5vw, 5rem) 0;
  width: min(1180px, calc(100% - 2rem));
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 32rem);
  min-height: calc(100vh - 5.2rem);
  padding-top: clamp(3rem, 6vw, 6rem);
}

.hero-copy h1,
.section h2,
.cta h2,
.detail-hero h1 {
  color: #ffffff;
  font-weight: 800;
  line-height: 1.04;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 3.4vw, 3.3rem);
  max-width: 18ch;
}

.section h2 {
  font-size: clamp(1.35rem, 2.1vw, 2.1rem);
  max-width: 20ch;
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.lead,
.section p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 44rem;
}

.lead {
  color: #dcebf7;
  font-size: 1.18rem;
  margin: 1.8rem 0 0;
}

/* Hero image (home) — immagine pulita, senza scritte sovrapposte */
.hero-image {
  border-radius: 1.4rem;
  overflow: hidden;
  position: relative;
}

.hero-image-media {
  margin: 0;
  position: relative;
}

.hero-image-media img {
  aspect-ratio: 15 / 8;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

/* La hero è un link a "Scopri il prodotto" */
.hero-image-link {
  display: block;
  position: relative;
}

.hero-image-link::after {
  background: rgba(3, 7, 13, 0);
  content: "";
  inset: 0;
  position: absolute;
  transition: background 0.25s ease;
}

.hero-image-link:hover::after {
  background: rgba(3, 7, 13, 0.08);
}

.hero-image-link:focus-visible {
  outline: 2px solid var(--accent, #0ea5e9);
  outline-offset: 2px;
}

.hero-actions,
.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  min-height: 3rem;
  padding: 0.88rem 1.2rem;
}

.primary {
  background: linear-gradient(135deg, var(--cyan), #74f0ff 48%, #ffffff);
  box-shadow: 0 0 34px rgba(40, 215, 255, 0.28);
  color: #06111f;
}

.secondary {
  border: 1px solid var(--line);
  color: #dff6ff;
}

.proof-row span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #dbeaf7;
  padding: 0.62rem 0.9rem;
}

.panel,
.brain-console,
.sitemap-card,
.feature-card,
.pillar,
.roadmap-panel,
.usecase,
.security,
.comparison article,
.cta,
.architecture-card,
.detail-panel,
.demo-preview {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.brain-console {
  border-radius: 1.3rem;
  min-height: 35rem;
  overflow: hidden;
  padding: 1.2rem;
  position: relative;
}

.brain-console::before {
  background-image:
    linear-gradient(rgba(40, 215, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 215, 255, 0.11) 1px, transparent 1px);
  background-size: 2rem 2rem;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  position: absolute;
}

.console-top,
.flow-grid,
.console-output,
.brain-core {
  position: relative;
}

.console-top {
  align-items: center;
  color: #cde9f8;
  display: flex;
  font-size: 0.82rem;
  gap: 1rem;
  justify-content: space-between;
}

.console-top strong {
  background: rgba(103, 210, 111, 0.18);
  border-radius: 999px;
  color: #9af0a0;
  padding: 0.45rem 0.7rem;
}

.brain-core {
  align-items: center;
  display: grid;
  height: 16rem;
  justify-items: center;
}

.ring {
  border: 1px solid rgba(40, 215, 255, 0.35);
  border-radius: 50%;
  position: absolute;
}

.ring-one {
  height: 12rem;
  width: 12rem;
}

.ring-two {
  box-shadow: 0 0 54px rgba(40, 215, 255, 0.28);
  height: 8rem;
  width: 8rem;
}

.core-mark {
  align-items: center;
  background: radial-gradient(circle, #152b45, #050a12);
  border: 1px solid var(--cyan);
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 2.2rem;
  font-weight: 900;
  height: 6rem;
  justify-content: center;
  width: 6rem;
}

.flow-grid,
.console-output,
.security-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-grid span,
.console-output span,
.security-grid span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.7rem;
  color: #e9f7ff;
  padding: 0.8rem;
}

.console-output {
  margin-top: 1.4rem;
}

.console-output span {
  background: rgba(40, 215, 255, 0.08);
}

.split {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1fr);
}

.reverse {
  grid-template-columns: minmax(20rem, 1.15fr) minmax(0, 0.85fr);
}

.sitemap-card {
  border-radius: 1rem;
  padding: 1rem;
}

.sitemap-row {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 1rem;
  grid-template-columns: 3rem 1fr;
  padding: 0.78rem 0.2rem;
}

.sitemap-row:last-child {
  border-bottom: 0;
}

.sitemap-row:hover,
.architecture-card:hover,
.next-grid a:hover {
  border-color: rgba(40, 215, 255, 0.62);
  color: #ffffff;
}

.sitemap-row span,
.card-index,
.architecture-card span {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
}

.section-heading {
  margin-bottom: 2rem;
}

.system-grid,
.pillar-grid,
.usecase-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-architecture {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.pillar,
.usecase,
.architecture-card {
  border-radius: 1rem;
  padding: 1.3rem;
}

.architecture-card {
  display: grid;
  min-height: 14rem;
}

.architecture-card strong {
  color: white;
  font-size: 1.2rem;
  margin-top: 1.2rem;
}

.feature-card p,
.pillar p,
.usecase p,
.comparison p,
.architecture-card p {
  font-size: 0.96rem;
  line-height: 1.58;
}

.product-band {
  max-width: none;
  padding-left: max(1rem, calc((100% - 1180px) / 2));
  padding-right: max(1rem, calc((100% - 1180px) / 2));
  width: 100%;
}

.pillar {
  min-height: 18rem;
}

.node {
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(40, 215, 255, 0.8);
  height: 0.8rem;
  margin-bottom: 2rem;
  width: 0.8rem;
}

/* Icon system */
.icon-badge {
  align-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(40, 215, 255, 0.28), rgba(43, 108, 176, 0.12));
  border: 1px solid rgba(40, 215, 255, 0.4);
  border-radius: 0.9rem;
  color: var(--cyan);
  display: inline-flex;
  height: 2.9rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 2.9rem;
}

.icon-badge svg {
  height: 1.5rem;
  width: 1.5rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card .icon-badge,
.pillar .icon-badge,
.usecase .icon-badge,
.phase-card .icon-badge,
.security .icon-badge {
  margin-bottom: 1.1rem;
}

.timeline-step .icon-badge {
  align-items: center;
  background: rgba(40, 215, 255, 0.12);
  border-radius: 50%;
  display: flex;
  height: 2.6rem;
  justify-content: center;
  margin-bottom: 0;
  width: 2.6rem;
}

.timeline-step .icon-badge svg {
  height: 1.3rem;
  width: 1.3rem;
}

.faq-icon {
  height: 2.1rem;
  margin-bottom: 0;
  margin-right: 0.9rem;
  width: 2.1rem;
  vertical-align: middle;
}

.faq-icon svg {
  height: 1.05rem;
  width: 1.05rem;
}

.pillar h3,
.usecase h3,
.comparison h2 {
  color: white;
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.roadmap-panel {
  border-radius: 1rem;
  overflow: hidden;
  padding: 0.6rem;
  position: relative;
}

.roadmap-panel img {
  border-radius: 0.65rem;
  display: block;
}

.roadmap-link {
  display: block;
}

.roadmap-link span {
  background: rgba(3, 7, 13, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  bottom: 1.3rem;
  color: #dff6ff;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.7rem 1rem;
  position: absolute;
  right: 1.3rem;
}

.timeline {
  display: grid;
  gap: 0.7rem;
}

.timeline-step {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 2.9rem 1fr;
  padding: 0.8rem 1.2rem 0.8rem 0.8rem;
}

.timeline-step > div {
  min-width: 0;
}

.security {
  border-radius: 1rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.comparison {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison article {
  border-radius: 1rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.comparison article:last-child {
  border-color: rgba(103, 210, 111, 0.48);
}

.cta {
  border-radius: 1.4rem;
  margin-bottom: 1.75rem;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.cta h2,
.cta p {
  margin-left: auto;
  margin-right: auto;
}

.demo-teaser {
  align-items: center;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 0.85fr 1.15fr;
}

.demo-teaser .button {
  margin-top: 0.65rem;
}

.demo-preview {
  border-radius: 1rem;
  display: block;
  overflow: hidden;
  padding: 0.55rem;
}

.demo-preview img {
  aspect-ratio: 16 / 7.8;
  border-radius: 0.65rem;
  display: block;
  object-fit: cover;
  object-position: left top;
  width: 100%;
}

body[data-page="demo"] main,
.demo-main {
  padding-top: 4.7rem;
}

.demo-page-hero h1 {
  color: #ffffff;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.04;
  margin: 0;
}

.demo-page {
  max-width: none;
  padding-left: max(1rem, calc((100% - 1380px) / 2));
  padding-right: max(1rem, calc((100% - 1380px) / 2));
  width: 100%;
}

.demo-page-nav {
  align-items: center;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(3, 7, 13, 0.98), rgba(3, 7, 13, 0.9)), var(--background);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  display: flex;
  gap: 0.65rem;
  margin-top: 1.4rem;
  overflow-x: auto;
  padding: 0.9rem 1rem 0.95rem;
  position: sticky;
  top: 5.2rem;
  z-index: 9;
}

.demo-page-nav a {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #dcebf7;
  flex: 0 0 auto;
  font-size: 0.86rem;
  padding: 0.62rem 0.86rem;
}

.demo-page-nav a:hover {
  border-color: var(--line);
  color: var(--cyan);
}

@media (max-width: 767px) {
  .demo-page-nav {
    display: none;
  }
}

.demo-step-list {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 1.6rem;
}

.demo-step {
  scroll-margin-top: 8.6rem;
}

.demo-step img {
  background: #050b12;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
  display: block;
  margin-top: 1rem;
  width: 100%;
}

.demo-step-copy {
  max-width: 58rem;
}

.demo-step-copy span {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.demo-step-copy h2 {
  color: white;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  line-height: 1.1;
  margin: 0.45rem 0 0.55rem;
}

.demo-step-copy p {
  margin: 0;
}

/* Macrosezioni demo: MBCC e OpenWebUI */
.demo-sheet {
  margin-top: clamp(3rem, 6vw, 5.5rem);
  scroll-margin-top: 12rem;
}

.demo-sheet-head {
  border-top: 1px solid var(--line);
  margin-bottom: 2.6rem;
  max-width: 58rem;
  padding-top: 2.6rem;
}

.demo-sheet-head .eyebrow {
  margin-bottom: 0.6rem;
}

.demo-sheet-head h2 {
  color: white;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.08;
  margin: 0 0 0.7rem;
}

.demo-sheet-head p {
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0;
}

.demo-sheet-media {
  background: #050b12;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
  display: block;
  margin-bottom: 1rem;
  width: 100%;
}

/* Riquadro segnaposto per voci senza ancora immagine */
.demo-step-placeholder {
  align-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.12), transparent 60%),
    #050b12;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1rem;
  min-height: 16rem;
  padding: 2rem;
  text-align: center;
}

.demo-step-placeholder svg {
  color: var(--cyan);
  height: 2.4rem;
  width: 2.4rem;
}

.demo-step-placeholder strong {
  color: #dcebf7;
  font-size: 1.05rem;
}

.demo-step-placeholder span {
  font-size: 0.9rem;
  max-width: 34rem;
}

/* Galleria del processo (es. generazione video) */
.demo-process {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.demo-process figure {
  background: #050b12;
  border: 1px solid var(--line);
  border-radius: 1rem;
  margin: 0;
  overflow: hidden;
}

.demo-process figure img {
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  display: block;
  margin: 0;
  width: 100%;
}

.demo-process figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0.7rem 0.9rem;
}

@media (max-width: 720px) {
  .demo-process {
    grid-template-columns: 1fr;
  }
}

/* Video generato inline */
.demo-video {
  background: #000;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
  display: block;
  margin-top: 1rem;
  width: 100%;
}

.roadmap-hero {
  align-items: center;
  background: #020509;
  display: flex;
  min-height: calc(100vh - 5rem);
  overflow: hidden;
  padding: clamp(0.75rem, 2vw, 1.4rem);
}

.roadmap-hero img {
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 30px 120px rgba(40, 215, 255, 0.18);
  display: block;
  height: calc(100vh - 7rem);
  object-fit: contain;
  width: 100%;
}

.roadmap-intro {
  padding-top: clamp(2.2rem, 4vw, 4rem);
}

.roadmap-intro h1 {
  color: #ffffff;
  font-size: clamp(1.9rem, 3.4vw, 3.5rem);
  line-height: 1.04;
  margin: 0;
  max-width: 15ch;
}

.phase-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phase-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.35rem;
}

.phase-card span {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
}

.phase-card h3 {
  color: white;
  font-size: 1.28rem;
  margin: 0.85rem 0 0.65rem;
}

.phase-card p {
  font-size: 0.96rem;
  line-height: 1.52;
}

/* Roadmap — stato attuale */
.status-card {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.10), rgba(14, 165, 233, 0.02)), var(--panel);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 1rem;
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
  grid-template-columns: minmax(9rem, 12rem) 1fr;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.status-percent {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.status-percent span {
  color: var(--muted);
  display: block;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
  text-transform: uppercase;
}

.status-copy .eyebrow {
  margin-bottom: 0.5rem;
}

.status-copy h2 {
  color: white;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  margin: 0 0 0.7rem;
}

.status-copy p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0.6rem 0 0;
}

.status-date {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1rem !important;
}

@media (max-width: 720px) {
  .status-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .status-copy p {
    text-align: left;
  }
  .status-date {
    text-align: left;
  }
}

/* Roadmap — aree in 0N */
.area-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)), var(--panel);
  padding: 1.4rem;
}

.area-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.area-num {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
}

.area-pct {
  border: 1px solid rgba(14, 165, 233, 0.4);
  border-radius: 999px;
  color: white;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  white-space: nowrap;
}

.area-card h3 {
  color: white;
  font-size: 1.3rem;
  line-height: 1.15;
  margin: 0 0 0.25rem;
}

.area-tagline {
  color: var(--cyan);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.7rem;
}

.area-card p {
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0 0 0.8rem;
}

.badge {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.area-tags {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 0.9rem;
  padding: 0.8rem 0 0;
}

.area-tags::before {
  content: "";
}

/* Roadmap — traguardo */
.traguardo {
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.12), transparent 60%), var(--panel);
  padding: clamp(2rem, 5vw, 3.4rem);
  text-align: center;
}

.traguardo h2 {
  color: white;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.12;
  margin: 0 auto 1rem;
  max-width: 22ch;
}

.traguardo p {
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0.8rem auto;
  max-width: 62rem;
}

.detail-hero {
  border-radius: 1.4rem;
  overflow: hidden;
  padding: clamp(2.6rem, 6vw, 5.5rem) clamp(1.2rem, 4vw, 3.5rem) 3.2rem;
  position: relative;
}

.detail-hero::before {
  background:
    radial-gradient(circle at 8% 110%, rgba(40, 215, 255, 0.14), transparent 32rem),
    radial-gradient(circle at 92% 0%, rgba(43, 108, 176, 0.28), transparent 34rem),
    linear-gradient(180deg, rgba(16, 40, 66, 0.55), rgba(6, 17, 31, 0.35));
  content: "";
  inset: 0;
  position: absolute;
}

.detail-hero::after {
  background-image:
    linear-gradient(rgba(40, 215, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 215, 255, 0.07) 1px, transparent 1px);
  background-size: 2.6rem 2.6rem;
  content: "";
  inset: 0;
  mask-image: radial-gradient(circle at 78% 30%, black, transparent 55%);
  pointer-events: none;
  position: absolute;
}

.detail-hero > * {
  position: relative;
}

.hero-visual {
  align-items: center;
  color: rgba(40, 215, 255, 0.85);
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 12rem;
  pointer-events: none;
  position: relative;
}

.hero-visual svg {
  filter: drop-shadow(0 0 22px rgba(40, 215, 255, 0.5));
  height: 14rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 14rem;
}

.hero-visual::before,
.hero-visual::after {
  border: 1px solid rgba(40, 215, 255, 0.24);
  border-radius: 50%;
  content: "";
  position: absolute;
}

.hero-visual::before {
  height: 20rem;
  width: 20rem;
}

.hero-visual::after {
  height: 27rem;
  width: 27rem;
}

.detail-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 0.6fr);
}

.detail-hero-copy h1 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  max-width: 18ch;
}

.detail-hero-copy p:last-child {
  color: #dcebf7;
  font-size: 1.18rem;
  max-width: 44rem;
}

.detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 0.8fr;
  padding-top: 1rem;
}

.detail-panel {
  border-radius: 1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.detail-panel ul {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}

.detail-panel li {
  border-left: 2px solid var(--cyan);
  color: #dcebf7;
  line-height: 1.65;
  padding-left: 1rem;
}

.guarded {
  border-color: rgba(244, 166, 42, 0.46);
}

.next-pages {
  padding-top: 1rem;
}

.next-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.next-grid a {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
  color: #dcebf7;
  padding: 1rem;
}

.site-footer {
  background: linear-gradient(180deg, rgba(40, 215, 255, 0.05), rgba(255, 255, 255, 0.02)), #020509;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
  padding: clamp(2.4rem, 5vw, 4rem) clamp(1rem, 4vw, 4rem) 1.5rem;
}

.footer-brand {
  display: grid;
  gap: 0.8rem;
  max-width: 24rem;
}

.footer-brand img {
  width: 12rem;
}

.footer-brand p {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}

.footer-brand strong {
  color: white;
  font-size: 1.3rem;
}

.footer-brand span {
  line-height: 1.55;
}

.footer-columns {
  display: grid;
  gap: 1.8rem 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  align-content: start;
}

.footer-columns section {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.footer-columns h2 {
  color: #ffffff;
  font-size: 0.92rem;
  margin: 0 0 0.3rem;
  text-transform: uppercase;
}

.footer-columns a,
.footer-offices span {
  color: #b8c9da;
  font-size: 0.9rem;
}

.footer-columns a:hover {
  color: var(--cyan);
}

.footer-offices {
  display: grid;
  gap: 0.6rem 1.4rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan) !important;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.7rem 1rem;
  text-transform: uppercase;
  width: fit-content;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding-top: 1.2rem;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .reverse,
  .security,
  .comparison,
  .detail-grid,
  .detail-hero-grid,
  .demo-teaser {
    grid-template-columns: 1fr;
  }

  .system-grid,
  .pillar-grid,
  .usecase-grid,
  .page-architecture,
  .phase-list,
  .next-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    display: none;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-offices {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-offices {
    grid-template-columns: 1fr;
  }
}

/* Skip link */
.skip-link {
  background: var(--cyan);
  color: #03070d;
  font-weight: 800;
  left: 0;
  padding: 0.8rem 1.2rem;
  position: fixed;
  top: -100%;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* FAQ accordion */
.faq-list {
  display: grid;
  gap: 0.6rem;
}

.faq-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
}

.faq-item[open] {
  border-color: rgba(40, 215, 255, 0.5);
}

.faq-item summary {
  color: #ffffff;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  list-style: none;
  padding: 1.2rem 1.5rem;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  background: var(--cyan);
  content: "+";
  font-size: 1.3rem;
  font-weight: 800;
  height: 1.8rem;
  line-height: 1.8rem;
  position: absolute;
  right: 1.2rem;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  width: 1.8rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  padding: 1.2rem 1.5rem 1.5rem;
}

.faq-answer p {
  margin: 0;
}

/* FAQ macro-areas */
.faq-group {
  margin-top: 2.5rem;
}

.faq-group .section-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.faq-group .section-heading h2 {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  max-width: none;
}

.faq-group .section-heading .faq-count {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faq-highlight {
  background: linear-gradient(180deg, rgba(40, 215, 255, 0.16), rgba(43, 108, 176, 0.08)), var(--panel);
  border: 1px solid rgba(40, 215, 255, 0.5);
  border-radius: 1.4rem;
  box-shadow: 0 0 70px rgba(40, 215, 255, 0.14);
  margin-top: 0.6rem;
  padding: clamp(1.4rem, 3vw, 2.6rem);
}

.faq-highlight .section-heading {
  margin-bottom: 1rem;
}

.faq-highlight .section-heading h2 {
  color: #ffffff;
}

.faq-tag {
  background: rgba(40, 215, 255, 0.14);
  border: 1px solid rgba(40, 215, 255, 0.4);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem;
  text-transform: uppercase;
  width: fit-content;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Card hover micro-interaction */
.feature-card,
.pillar,
.usecase,
.architecture-card,
.phase-card,
.detail-panel {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.pillar:hover,
.usecase:hover,
.phase-card:hover {
  border-color: rgba(40, 215, 255, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.button {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary:hover {
  box-shadow: 0 0 46px rgba(40, 215, 255, 0.45);
}

/* Hero fade-in */
.detail-hero h1,
.detail-hero p,
.hero-copy h1,
.hero-copy .lead {
  animation: fade-up 0.6s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .pillar,
  .usecase,
  .architecture-card,
  .phase-card,
  .detail-panel,
  .button,
  .detail-hero h1,
  .detail-hero p,
  .hero-copy h1,
  .hero-copy .lead {
    animation: none;
    transition: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  body {
    padding-top: 9rem;
  }

  .brand img {
    width: 7.8rem;
  }

  .menu-button {
    display: inline-flex;
  }

  nav {
    display: none;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
  }

  .demo-page-nav {
    top: 9rem;
  }

  body[data-page="demo"] main,
  .demo-main {
    padding-top: 5.8rem;
  }

  nav.is-open {
    display: flex;
  }

  nav a {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.7rem;
    padding: 0.8rem;
    width: 100%;
  }

  .hero-copy h1 {
    font-size: 2rem;
    max-width: 100%;
  }

  .section h2 {
    max-width: 100%;
  }

  .brain-console {
    min-height: auto;
  }

  .flow-grid,
  .console-output,
  .system-grid,
  .pillar-grid,
  .usecase-grid,
  .security-grid,
  .page-architecture,
  .next-grid,
  .footer-columns,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .timeline-step {
    border-radius: 1rem;
  }

  .phase-list {
    grid-template-columns: 1fr;
  }

  .roadmap-hero {
    min-height: auto;
  }

  .roadmap-hero img {
    height: auto;
  }
}
