@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500&display=swap");

:root {
    --bg: #ffffff;
    --surface: #fbfbfb;
    --text: #1a1a1a;
    --muted: #666666;
    --line: #d8d8d8;
    --line-soft: #e6e6e6;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "IBM Plex Sans", sans-serif;
    line-height: 1.6;
    font-weight: 400;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

header,
main {
    max-width: none;
    margin: 0;
    background: #ffffff;
    border-left: 0;
    border-right: 0;
}

header {
    background: #f3f3f3;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.header-inner,
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

header .container {
    max-width: 1280px;
    gap: 12px;
}

.logo img {
    display: block;
    width: auto;
    height: 64px;
}

.logo {
    margin-left: 0;
    grid-area: logo;
}

header .header-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "logo nav"
        ". switcher";
    align-items: center;
    column-gap: 16px;
    row-gap: 4px;
}

nav {
    grid-area: nav;
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    margin-right: 0;
}

.language-switcher {
    grid-area: switcher;
    justify-self: end;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.language-switcher a {
    text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
    text-decoration: underline;
}

nav li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px 24px;
    width: 100%;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
    align-items: center;
}

nav a {
    color: #2a2a2a;
    font-family: "IBM Plex Sans", sans-serif;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.24;
    display: block;
    white-space: nowrap;
    padding: 1px 0;
}

nav a:visited {
    color: #2a2a2a;
}

nav a:hover,
nav a:focus-visible {
    color: #1f1f1f;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

main {
    padding: 42px 0 64px;
    position: relative;
}

section {
    max-width: 980px;
    margin: 0 auto;
    padding: 42px 0;
}

section:not(:last-of-type) {
    border-bottom: 1px solid var(--line-soft);
}

section.hero:has(+ .video-reveal-home) {
    border-bottom: 0;
}

h1,
h2,
h3 {
    margin: 0 0 14px;
    font-weight: 500;
    color: #101010;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1 {
    font-size: clamp(46px, 7vw, 86px);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.2;
}

p,
li {
    font-size: 1rem;
    color: #222222;
    line-height: 1.6;
}

p {
    margin: 0 0 14px;
    max-width: 860px;
    text-align: left;
}

main:not(:has(.chapter)) p {
    max-width: 920px;
}

ul,
ol {
    margin: 6px 0 4px;
    padding-left: 22px;
    max-width: 860px;
}

section li + li {
    margin-top: 6px;
}

nav li + li {
    margin-top: 0;
}

a {
    color: var(--text);
}

.access .doc-download-link {
    display: inline-block;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.access .doc-download-link:hover,
.access .doc-download-link:focus-visible {
    color: #000000;
    text-decoration-thickness: 2px;
    outline: 1px solid #8e8e8e;
    outline-offset: 2px;
}

.page-intro {
    padding-top: 96px;
    padding-bottom: 40px;
}

.page-intro h1 {
    font-size: clamp(34px, 3.6vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.hero {
    padding-top: 82px;
    padding-bottom: 70px;
    text-align: center;
}

.hero .subtitle {
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    color: var(--muted);
}

.hero .description {
    max-width: 900px;
    font-size: 18px;
    color: #222222;
}

.hero > .container > h1 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.12;
}

.hero > .container > p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero > .container > p:first-of-type {
    font-size: 13px;
    line-height: 1.55;
    margin-top: 30px;
    color: #777777;
}
.hero > .container > p.hero-statement {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 400;
    margin-top: 8px;
    color: #1a1a1a;
}

.hero-sub {
    font-size: 1.3rem;
    line-height: 1.5;
    opacity: 0.85;
    margin-top: 0.8rem;
    font-weight: 500;
    color: #333;
}

.hero-proof {
    font-size: 1.05rem;
    opacity: 0.7;
    margin-top: 1rem;
    font-weight: 400;
}
.chapter {
    margin: 0 auto 18px;
    max-width: 1220px;
    border: 1px solid #ececec;
    border-top: 2px solid #dfdfdf;
}

.chapter section {
    border-bottom: 0;
}

.chapter section + section {
    border-top: 1px solid #ededed;
}

main:not(:has(.chapter)) > section {
    max-width: 1220px;
    margin: 0 auto 18px;
    padding: 40px 0;
    border: 1px solid #ececec;
    border-top: 2px solid #dfdfdf;
    background: #fcfcfc;
}

main:not(:has(.chapter)) > section:not(:last-of-type) {
    border-bottom: 1px solid #ececec;
}

main:not(:has(.chapter)) > section:nth-of-type(even) {
    background: #ffffff;
}

main:not(:has(.chapter)) > section .container {
    max-width: 980px;
}

.chapter-foundation {
    background: #fcfcfc;
}

.chapter-model {
    background: #ffffff;
}

.chapter-evidence {
    background: #f8f8f8;
}

.flow-diagram {
    padding-top: 18px;
    padding-bottom: 18px;
    text-align: center;
}

.flow-diagram .container {
    max-width: 860px;
}

.flow-diagram svg {
    color: #111111;
}

.flow-diagram text {
    font-size: 24px;
}

.mobile-flow {
    display: none;
}

.anchor p,
.difference p,
.closing p {
    max-width: 920px;
}

.cta {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.hero .cta {
    margin-top: 36px;
}

.cta a {
    display: inline-block;
    padding: 10px 17px;
    border: 1px solid #a9a9a9;
    background: #f7f7f7;
    color: #262626;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.06em;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    border-radius: 2px;
    min-height: 40px;
}


.cta a.primary {
    border-color: #202020;
    background: #1a1a1a;
    color: #f4f4f4;
}

.cta a.primary:hover,
.cta a.primary:focus-visible {
    border-color: #141414;
    background: #141414;
    color: #ffffff;
}

.cta a:hover {
    border-color: #7f7f7f;
    background: #ededed;
    color: #1f1f1f;
}

.case-preview a,
.contact-block a,
.request-access button {
    display: inline-block;
    border: 1px solid #a9a9a9;
    padding: 10px 16px;
    background: #f7f7f7;
    color: #262626;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.06em;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    border-radius: 2px;
    min-height: 40px;
}

.case-preview a:hover,
.contact-block a:hover,
.request-access button:hover,
.case-preview a:focus-visible,
.contact-block a:focus-visible,
.request-access button:focus-visible,
.cta a:focus-visible {
    border-color: #7f7f7f;
    background: #ededed;
    color: #1f1f1f;
}

.final-cta {
    text-align: center;
    padding-top: 52px;
    padding-bottom: 52px;
}

.final-cta p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 34px;
    margin-top: 36px;
}

.metric {
    position: relative;
    flex: 1 1 220px;
    max-width: none;
    padding-left: 18px;
}

.metric::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 1px;
    height: 54px;
    background-color: #b8b8b8;
}

.metric-value {
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 500;
    color: #111111;
}

.metric-label {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
}

.metric-value.ratio {
    font-family: "IBM Plex Sans", sans-serif;
}

.process {
    position: relative;
    margin-top: 36px;
}

.process::before {
    content: none;
}

.process-step {
    position: relative;
    display: flex;
    gap: 22px;
    margin-bottom: 36px;
}

.step-number {
    width: 40px;
    height: 40px;
    border: 1px solid #222222;
    border-radius: 50%;
    background: var(--surface);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 38px;
    text-align: center;
}

.step-content h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.process h2 {
    padding-top: 0;
}

.process h2::before {
    content: none;
}

.step-content ul {
    margin: 0;
}

.architecture-diagram svg,
.execution-cycle svg {
    margin-top: 28px;
    margin-bottom: 14px;
}

.execution-cycle {
    padding-top: 14px;
    padding-bottom: 14px;
}

.execution-cycle svg {
    display: block;
    width: min(100%, 560px);
    max-width: 560px;
    height: auto;
    overflow: visible;
    margin: 8px auto 4px;
}

.cycle-note {
    margin: 0 auto 0;
    max-width: 620px;
    text-align: center;
    font-size: 1.18rem;
    line-height: 1.42;
    font-weight: 400;
    color: #333333;
    letter-spacing: 0.025em;
}

svg text {
    font-family: "IBM Plex Sans", sans-serif !important;
}

pre {
    margin: 24px 0;
    padding: 20px;
    border-left: 2px solid #cfcfcf;
    background: #f2f2f2;
    overflow-x: auto;
}

code {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 14px;
    color: #151515;
}

input,
textarea,
button {
    font: inherit;
}

input,
textarea {
    width: 100%;
    margin-top: 6px;
    padding: 10px 8px;
    border: 1px solid #cccccc;
    background: #fcfcfc;
    color: #151515;
}

textarea {
    resize: vertical;
}

button,
.request-access button {
    cursor: pointer;
}

.video-reveal-home {
    margin-top: -58px;
    margin-bottom: 28px;
    text-align: center;
}

.video-toggle {
    display: inline-block;
    padding: 10px 17px;
    border: 1px solid #a9a9a9;
    background: #f7f7f7;
    color: #262626;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.06em;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    border-radius: 2px;
    min-height: 40px;
}

.video-toggle:hover,
.video-toggle:focus-visible {
    border-color: #7f7f7f;
    background: #ededed;
    color: #1f1f1f;
}

.video-reveal-home .video-panel {
    width: min(100% - 40px, 900px);
    aspect-ratio: 16 / 9;
    margin: 22px auto 0;
}

.video-reveal-home video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.video-reveal-model {
    margin-top: 26px;
    text-align: center;
}

.video-reveal-model .video-panel {
    width: min(100% - 40px, 900px);
    aspect-ratio: 16 / 9;
    margin: 22px auto 0;
}

.video-reveal-model video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}


footer {
    width: 100%;
    max-width: none;
    margin: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    border-right: 0;
    background: #e7e7e7;
    padding: 34px 0;
    color: var(--muted);
    font-size: 13px;
    font-family: "IBM Plex Sans", sans-serif;
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a {
    color: #6f6f6f;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #2f2f2f;
}

@media (max-width: 980px) {
    .container {
        padding: 0 22px;
    }

    .logo img {
        height: 64px;
    }

    nav ul {
        gap: 8px 20px;
    }

    section {
        padding: 36px 0;
    }

    main:not(:has(.chapter)) > section {
        padding: 34px 0;
        margin-bottom: 14px;
    }

    .page-intro,
    .hero {
        padding-top: 72px;
    }

    .page-intro h1 {
        font-size: clamp(30px, 5.2vw, 40px);
    }

    .chapter {
        margin-bottom: 14px;
    }
}

@media (max-width: 760px) {
    header .container,
    .header-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 10px 12px;
        white-space: normal;
    }

    nav {
        padding-right: 0;
    }

    .language-switcher {
        position: static;
        display: flex;
        justify-content: flex-start;
        margin-top: 2px;
    }

    h1 {
        font-size: clamp(40px, 14vw, 58px);
    }

    .page-intro h1 {
        font-size: clamp(30px, 8.5vw, 38px);
    }

    .hero .description {
        font-size: 16px;
    }

    .hero > .container > h1 {
        line-height: 1.12;
    }

    .cta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .metrics {
        gap: 24px;
    }

    .metric {
        max-width: none;
        flex-basis: 100%;
    }

    .process::before {
        left: 18px;
    }

    .process-step {
        gap: 16px;
    }

    .chapter {
        border-left: 0;
        border-right: 0;
    }

    main:not(:has(.chapter)) > section {
        border-left: 0;
        border-right: 0;
        margin-bottom: 12px;
    }

    .flow-diagram svg {
        display: none;
    }

    .mobile-flow {
        display: block;
        text-align: center;
        font-family: "IBM Plex Sans", sans-serif;
        font-size: 20px;
        line-height: 1.9;
        color: #111111;
    }

    .mobile-flow p {
        margin: 0;
        max-width: none;
        text-align: center;
    }
}

@media (min-width: 1200px) {
    .hero .container {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(64px, 5.2vw, 72px);
        max-width: 900px;
        white-space: normal;
        line-height: 1.12;
    }
}
.case-image img {
    width: 100%;
    max-width: 800px;   /* prima era 1000px */
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    cursor: pointer;
}

.case-image img {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.case-section-light {
    background: #ffffff;
    padding: 80px 0;
}

.case-section-alt {
    background: #f7f7f7;
    padding: 80px 0;
}

.case-image {
    text-align: center;
    margin-top: 40px;
}

.case-caption {
    max-width: 750px;
    margin: 20px auto 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 40px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    opacity: 0.8;
}
.lightbox-close:hover {
    opacity: 1;
}
.generative-evidence {
  background: #f7f7f7;
  padding: 70px 0;
}

.evidence-intro {
  margin-bottom: 40px;
  color: #555;
}

.evidence-block {
  margin-bottom: 40px;
  padding: 25px 30px;
  background: #ffffff;
  border-radius: 6px;
}

.evidence-block h3 {
  margin-bottom: 20px;
  font-size: 1.05rem;
  font-weight: 600;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 0.95rem;
}

.metric-row:last-child {
  border-bottom: none;
}

.evidence-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #444;
}

@media (max-width: 768px) {
  .metric-row {
    flex-direction: column;
    gap: 4px;
  }
}
.structural-footprint {
  background: #f7f8fa;
  padding: 80px 0;
}

.section-intro {
  margin-bottom: 40px;
  color: #555;
}

.footprint-table {
  max-width: 600px;
  border-top: 1px solid #ddd;
}

.footprint-table .row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.footprint-table .label {
  color: #444;
}

.footprint-table .value {
  font-weight: 600;
  color: #1e2a38;
}

.technical-note {
  margin-top: 30px;
  font-size: 0.9rem;
  color: #666;
}
.model-excerpt pre {
  background: #f8f9fb;
  padding: 24px 28px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.55;
  border: 1px solid #e6e8ec;
}
.model-excerpt pre code {
  color: #2f3640;
}
.model-excerpt pre .annotation {
  color: #7a8696;
  font-style: italic;
}
.learning-steps{
display:flex;
gap:30px;
margin-top:30px;
}

.learning-step{
flex:1;
background:#f5f7fa;
padding:20px;
border-radius:6px;
}

.case-image-tall img {
  cursor: pointer;
}

.lightbox.is-open .case-image-tall-lightbox {
  max-height: none !important;
  max-width: none !important;
  width: auto !important;
  height: auto !important;
  object-fit: none !important;
}

.lightbox.is-open.case-image-tall-container {
  overflow-y: auto !important;
  max-height: 100vh !important;
  align-items: flex-start !important;
  padding-top: 20px !important;
}

.lightbox.is-open.case-image-tall-container .lightbox-close {
  color: #000 !important;
  background: rgb(247, 247, 247) !important;
}
.case-label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 8px;
}
.hero-proof {
    margin-top: 12px;
    font-size: 0.95rem;
    opacity: 0.8;
}
.architecture-statement {
    text-align: center;
}

.principle {
    font-size: 1.2rem;
    font-weight: 500;
}

.meta-structure{
    margin-top:22px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size:0.95rem;
    line-height:1.7;
}

.meta-structure strong{
    display:block;
    margin-top:12px;
}
.meta-quote{
    font-style: italic;
    opacity: 0.75;
    margin-top: 0.4rem;
}
.timeline-note{
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 1rem;
}
.case-navigation{
    margin-top: 4rem;
}

.case-nav{
    display:flex;
    justify-content:space-between;
}

.case-nav:has(.case-next:only-child) {
    justify-content: flex-end;
}

.case-nav:has(.case-prev:only-child) {
    justify-content: flex-start;
}

.case-prev,
.case-next{
    text-decoration:none;
    font-weight:500;
    opacity:0.8;
}

.case-prev:hover,
.case-next:hover{
    opacity:1;
}

.category-comparison table {
  width: 100%;
  max-width: 1100px;
  margin-top: 28px;
  border-collapse: collapse;
  table-layout: fixed;
  border-top: 1px solid #ddd;
}

.category-comparison th,
.category-comparison td {
  width: 50%;
  padding: 14px 36px 14px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e5e5e5;
}

.category-comparison th {
  font-weight: 600;
  color: #111;
}

.category-comparison td {
  color: #222;
  line-height: 1.6;
}

.category-comparison p {
  margin-top: 28px;
  max-width: 950px;
}

@media (max-width: 768px) {
  .category-comparison table,
  .category-comparison thead,
  .category-comparison tbody,
  .category-comparison tr,
  .category-comparison th,
  .category-comparison td {
    display: block;
    width: 100%;
  }

  .category-comparison thead tr {
    display: none;
  }

  .category-comparison tr {
    padding: 14px 0;
    border-bottom: 1px solid #e5e5e5;
  }

  .category-comparison td {
    padding: 6px 0;
    border-bottom: none;
  }

  .category-comparison td::before {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #111;
  }

  .category-comparison td:first-child::before {
    content: "Traditional Low-Code";
  }

  .category-comparison td:last-child::before {
    content: "MySirt Model Execution Engine";
  }
}