/* Landing ph — Conflux × Product Heroes Conference 2026.
   Token da sites/conflux-ds-engine/page.css. File esterno: passa la CSP style-src 'self'. */
@font-face { font-family: "Roboto"; src: url("fonts/roboto-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto-var-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
/* L'hub non carica un reset: senza questa regola .unlocked{display:flex} scavalca [hidden]
   e i download sarebbero visibili prima del form. */
[hidden] { display: none !important; }
  /* Conflux DS Engine tokens (sites/conflux-ds-engine/page.css), single dark world by brand choice */
  :root {
    --bg: #05070e;
    --bg-2: #080b14;
    --ink: #e8eaf0;
    --soft: #b4bacb;
    --muted: #868da3;
    --line: rgba(255, 255, 255, 0.09);
    --glass: rgba(255, 255, 255, 0.035);
    --glass-2: rgba(255, 255, 255, 0.055);
    --acc-1: #5b8cff;
    --acc-2: #8b5cf6;
    --pink: #e6337f;
    --grad: linear-gradient(100deg, #5b8cff 0%, #8b5cf6 100%);
    --cx-blue: #3a5bff;
    --maxw: 1120px;
    --r: 14px;
    --sans:
      "Roboto", "Helvetica Neue", system-ui, -apple-system, "Segoe UI",
      sans-serif;
    --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    color-scheme: dark;
  }
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  html {
    scroll-behavior: smooth;
    background: var(--bg);
  }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  img {
    max-width: 100%;
    display: block;
  }
  .wrap {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 24px;
  }
  @media (max-width: 480px) {
    .wrap {
      padding-inline: 16px;
    }
  }
  :focus-visible {
    outline: 2px solid var(--acc-1);
    outline-offset: 3px;
    border-radius: 4px;
  }

  .mono-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* wordmark */
  .cx-word {
    position: relative;
    display: inline-block;
    font-weight: 700;
    color: var(--cx-blue);
    letter-spacing: -0.035em;
    line-height: 1;
    padding-right: 0.32em;
  }
  .cx-word .cx-dot {
    position: absolute;
    right: 0.05em;
    top: 0.06em;
    width: 0.155em;
    height: 0.155em;
    border-radius: 50%;
    background: currentColor;
  }

  /* header */
  header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 7, 14, 0.74);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .nav {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 68px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .brand .cx-word {
    font-size: 1.3rem;
  }
  .brand-div {
    width: 1px;
    height: 22px;
    background: var(--line);
  }
  .brand-event {
    font-size: 0.9rem;
    font-weight: 500;
  }
  .nav-links {
    margin-left: auto;
    display: flex;
    gap: 24px;
    align-items: center;
  }
  .nav-links a:not(.btn) {
    font-size: 0.9rem;
    color: var(--muted);
    transition: color 0.2s;
  }
  .nav-links a:not(.btn):hover {
    color: var(--ink);
  }
  @media (max-width: 860px) {
    .nav-links a:not(.btn) {
      display: none;
    }
  }
  @media (max-width: 520px) {
    .brand-div,
    .brand-event {
      display: none;
    }
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    border-radius: 999px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.66em 1.2em;
    cursor: pointer;
    border: 1px solid transparent;
    transition:
      transform 0.15s,
      box-shadow 0.2s,
      background 0.2s;
  }
  .btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 24px rgba(120, 110, 255, 0.3);
  }
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(120, 110, 255, 0.45);
  }
  .btn-ghost {
    background: var(--glass);
    color: var(--ink);
    border-color: var(--line);
  }
  .btn-ghost:hover {
    background: var(--glass-2);
  }

  /* hero */
  .hero {
    position: relative;
    padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 88px);
    overflow: hidden;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: -30% -10% auto;
    height: 680px;
    pointer-events: none;
    background:
      radial-gradient(
        680px 420px at 76% 22%,
        rgba(139, 92, 246, 0.26),
        transparent 62%
      ),
      radial-gradient(
        560px 460px at 26% 6%,
        rgba(91, 140, 255, 0.24),
        transparent 60%
      );
    filter: blur(6px);
  }
  .hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
  }
  @media (max-width: 900px) {
    .hero-grid {
      grid-template-columns: 1fr;
    }
  }
  .event-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6em;
  }
  .event-line::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--acc-1);
    box-shadow: 0 0 12px var(--acc-1);
  }
  h1 {
    font-size: clamp(2.6rem, 6.4vw, 4.6rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-wrap: balance;
    margin-top: 22px;
    max-width: 13ch;
  }
  .subtitle {
    margin-top: 18px;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
    color: var(--ink);
    max-width: 34ch;
    text-wrap: balance;
  }
  .subtitle em {
    font-style: normal;
    color: var(--acc-1);
  }
  .lede {
    margin-top: 18px;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: #c3c8d6;
    max-width: 58ch;
  }
  .talk-meta {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--soft);
  }
  .talk-meta span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35em 0.85em;
    background: var(--glass);
  }
  .talk-meta .tbd {
    border-style: dashed;
    border-color: rgba(230, 51, 127, 0.55);
    color: #ffb3d1;
  }
  .hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
  }

  .canvas-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--bg-2);
    padding: 14px;
    transform: rotate(1.4deg);
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(91, 140, 255, 0.08);
  }
  .canvas-card img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    aspect-ratio: 910 / 1287;
    object-fit: cover;
  }
  .canvas-card figcaption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.04em;
  }
  @media (max-width: 900px) {
    .canvas-card {
      transform: none;
      max-width: 420px;
    }
  }

  /* sections */
  section.block {
    padding-block: clamp(64px, 8vw, 104px);
  }
  section.alt {
    background: var(--bg-2);
    border-block: 1px solid var(--line);
  }
  .sec-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--acc-1);
  }
  h2 {
    font-size: clamp(1.9rem, 3.8vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.018em;
    line-height: 1.1;
    text-wrap: balance;
    margin-top: 14px;
    max-width: 22ch;
  }
  .sub {
    color: var(--muted);
    margin-top: 14px;
    max-width: 58ch;
    font-size: 1.04rem;
  }
  h3 {
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
  }

  /* path vs goal diagram */
  .thesis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 44px;
  }
  @media (max-width: 820px) {
    .thesis {
      grid-template-columns: 1fr;
    }
  }
  .thesis figure {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--bg);
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .thesis figure.goal {
    border-color: rgba(91, 140, 255, 0.4);
    background: linear-gradient(
      160deg,
      rgba(91, 140, 255, 0.08),
      rgba(139, 92, 246, 0.05) 60%,
      var(--bg)
    );
  }
  .thesis .fig-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
  }
  .thesis .fig-title {
    font-weight: 600;
    font-size: 1.05rem;
  }
  .thesis .fig-then {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .thesis svg {
    width: 100%;
    height: auto;
    display: block;
  }
  .thesis figcaption {
    font-size: 0.92rem;
    color: var(--soft);
  }
  .trace {
    stroke-dasharray: 5 7;
    animation: march 2.4s linear infinite;
  }
  .trace.t2 {
    animation-duration: 3.1s;
  }
  .trace.t3 {
    animation-duration: 2.7s;
  }
  @keyframes march {
    to {
      stroke-dashoffset: -48;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    .trace {
      animation: none;
    }
    .btn,
    .card {
      transition: none;
    }
  }

  .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
  }
  @media (max-width: 860px) {
    .cards {
      grid-template-columns: 1fr;
    }
  }
  .card {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition:
      border-color 0.2s,
      background 0.2s;
  }
  .card:hover {
    border-color: rgba(91, 140, 255, 0.45);
    background: var(--glass-2);
  }
  .card p {
    font-size: 0.95rem;
    color: var(--soft);
  }

  /* quote band */
  .quote {
    padding-block: clamp(64px, 9vw, 120px);
    position: relative;
    overflow: hidden;
  }
  .quote::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
      600px 300px at 50% 120%,
      rgba(139, 92, 246, 0.18),
      transparent 70%
    );
  }
  .quote blockquote {
    position: relative;
    font-size: clamp(1.7rem, 4.2vw, 3.1rem);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-wrap: balance;
    max-width: 26ch;
  }
  .quote blockquote strong {
    font-weight: 700;
  }
  .quote cite {
    position: relative;
    display: block;
    margin-top: 22px;
    font-style: normal;
  }

  /* canvas grid */
  .canvas-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 44px;
  }
  .blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
  }
  @media (max-width: 760px) {
    .blocks {
      grid-template-columns: 1fr 1fr;
    }
  }
  @media (max-width: 460px) {
    .blocks {
      grid-template-columns: 1fr;
    }
  }
  .blk {
    background: var(--bg-2);
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .blk-top {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .blk-n {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #fff;
    background: var(--cx-blue);
    font-variant-numeric: tabular-nums;
  }
  .blk.out .blk-n {
    background: var(--pink);
  }
  .blk-name {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
  }
  .blk p {
    font-size: 0.94rem;
    color: var(--soft);
  }
  .blk.goal {
    background: linear-gradient(
      150deg,
      rgba(230, 51, 127, 0.16),
      rgba(139, 92, 246, 0.1) 70%,
      var(--bg-2)
    );
  }
  .blk.goal .tag {
    align-self: flex-start;
    margin-top: 4px;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffc2da;
    border: 1px solid rgba(230, 51, 127, 0.5);
    border-radius: 999px;
    padding: 0.15em 0.65em;
  }
  .legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--muted);
  }
  .legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .legend i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
  }

  .verdict {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 20px 22px;
    background: var(--glass);
  }
  @media (max-width: 700px) {
    .verdict {
      grid-template-columns: 1fr;
    }
  }
  .verdict p {
    color: var(--soft);
    font-size: 0.95rem;
    max-width: 46ch;
  }
  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .chip {
    font-family: var(--mono);
    font-size: 0.8rem;
    border-radius: 999px;
    padding: 0.4em 0.9em;
    border: 1px solid;
    font-variant-numeric: tabular-nums;
  }
  .chip.go {
    color: #8fe3b0;
    border-color: rgba(80, 200, 130, 0.45);
    background: rgba(80, 200, 130, 0.08);
  }
  .chip.fix {
    color: #ffd38a;
    border-color: rgba(240, 180, 70, 0.45);
    background: rgba(240, 180, 70, 0.08);
  }
  .chip.back {
    color: #ffa3c6;
    border-color: rgba(230, 51, 127, 0.5);
    background: rgba(230, 51, 127, 0.08);
  }

  /* when */
  .when {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 40px;
    border-top: 1px solid var(--line);
  }
  @media (max-width: 820px) {
    .when {
      grid-template-columns: 1fr;
    }
  }
  .when div {
    padding: 24px 24px 8px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .when div + div {
    padding-left: 24px;
    border-left: 1px solid var(--line);
  }
  @media (max-width: 820px) {
    .when div + div {
      padding-left: 0;
      border-left: 0;
      border-top: 1px solid var(--line);
    }
  }
  .when p {
    color: var(--soft);
    font-size: 0.95rem;
    max-width: 34ch;
  }

  /* download */
  .dl {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(32px, 5vw, 56px);
    align-items: start;
  }
  @media (max-width: 880px) {
    .dl {
      grid-template-columns: 1fr;
    }
  }
  .dl-facts {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .dl-facts li {
    list-style: none;
    display: flex;
    gap: 12px;
    align-items: baseline;
    color: var(--soft);
    font-size: 0.95rem;
  }
  .dl-facts b {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    min-width: 92px;
  }
  form {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: clamp(20px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .frow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  @media (max-width: 520px) {
    .frow {
      grid-template-columns: 1fr;
    }
  }
  .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  label {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    color: var(--muted);
  }
  input[type="text"],
  input[type="email"] {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink);
    padding: 0.74em 0.85em;
    font: inherit;
    font-size: 0.95rem;
    transition:
      border-color 0.2s,
      box-shadow 0.2s;
  }
  input::placeholder {
    color: #565d70;
  }
  input:focus {
    outline: none;
    border-color: var(--acc-1);
    box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.18);
  }
  input[aria-invalid="true"] {
    border-color: var(--pink);
  }
  .consent {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    font-family: var(--sans);
    font-size: 0.88rem;
    letter-spacing: 0;
    color: var(--soft);
  }
  .consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--acc-1);
  }
  .consent a {
    color: var(--acc-1);
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .consent small {
    color: var(--muted);
  }
  .hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  form .btn {
    width: 100%;
    padding: 0.85em;
    margin-top: 4px;
  }
  .status {
    min-height: 1.4em;
    font-size: 0.9rem;
  }
  .status.err {
    color: #ffa3c6;
  }
  .unlocked {
    border: 1px solid rgba(91, 140, 255, 0.45);
    border-radius: 12px;
    padding: 16px;
    background: rgba(91, 140, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .unlocked .row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .unlocked small {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
  }

  /* faq */
  .faq {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 48px;
    margin-top: 40px;
  }
  @media (max-width: 820px) {
    .faq {
      grid-template-columns: 1fr;
    }
  }
  .faq div {
    padding-block: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .faq p {
    color: var(--soft);
    font-size: 0.95rem;
    max-width: 52ch;
  }

  /* final cta */
  .final {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(91, 140, 255, 0.4);
    border-radius: calc(var(--r) + 4px);
    padding: clamp(24px, 4vw, 40px);
    background: linear-gradient(
      110deg,
      rgba(91, 140, 255, 0.12),
      rgba(139, 92, 246, 0.1)
    );
  }
  .final h2 {
    margin-top: 8px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
  }
  .final p {
    color: var(--soft);
    margin-top: 8px;
  }

  /* footer */
  footer {
    border-top: 1px solid var(--line);
    padding-block: 48px 30px;
  }
  .foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-end;
  }
  .foot .cx-word {
    font-size: 2rem;
  }
  .foot-tag {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 8px;
  }
  .foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: 0.92rem;
    color: var(--soft);
  }
  .foot-links a:hover {
    color: var(--ink);
  }
  .foot-base {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
  }
  .legend i.sw-blue { background: var(--cx-blue); }
  .legend i.sw-pink { background: var(--pink); }
