    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      --violet: #AE17FF;
      --violet-d: #9217E2;
      --dark: #2D2D2D;
      --body: #4A4A5A;
      --muted: #8B87A8;
      --border: #E8E6F4;
      --surface: #F7F5FC;
      --white: #FFFFFF;
      --r: 12px;
      --fh: 'Montserrat', sans-serif;
      --fb: 'Inter', sans-serif;
      --max-w: 1120px;
      --px: 48px;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--fb);
      background: var(--white);
      color: var(--body);
      line-height: 1.6;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }

    .container {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 0 var(--px);
    }

    /* ── NAV ── */
    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      height: 64px;
      border-bottom: 1px solid var(--border);
      background: rgba(255, 255, 255, .97);
      backdrop-filter: blur(16px);
    }

    .nav-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 0 var(--px);
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .nav-logo {
      display: flex;
      align-items: center;
      text-decoration: none;
    }

    .nav-links {
      display: flex;
      gap: 32px;
      list-style: none;
    }

    .nav-links a {
      font-size: 14px;
      font-weight: 400;
      color: var(--muted);
      text-decoration: none;
      transition: color .15s;
    }

    .nav-links a:hover {
      color: var(--dark);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    /* ── BUTTONS ── */
    .btn {
      font-family: var(--fb);
      font-size: 14px;
      font-weight: 600;
      border: none;
      cursor: pointer;
      border-radius: var(--r);
      transition: all .15s;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      white-space: nowrap;
    }

    .btn-ghost {
      background: transparent;
      color: var(--muted);
      padding: 8px 14px;
    }

    .btn-ghost:hover {
      background: var(--surface);
      color: var(--dark);
    }

    .btn-dark {
      background: var(--dark);
      color: var(--white);
      padding: 9px 18px;
    }

    .btn-dark:hover {
      background: #3d3d3d;
    }

    .btn-violet {
      background: var(--violet);
      color: var(--white);
      padding: 14px 32px;
      font-size: 16px;
      font-weight: 700;
    }

    .btn-violet:hover {
      background: var(--violet-d);
      box-shadow: 0 4px 20px rgba(174, 23, 255, .3);
    }

    .btn-outline-dark {
      background: transparent;
      color: var(--dark);
      border: 1.5px solid var(--dark);
      padding: 12.5px 30.5px;
      font-size: 16px;
      font-weight: 600;
      border-radius: var(--r);
      cursor: pointer;
      font-family: var(--fb);
      transition: all .15s;
    }

    .btn-outline-dark:hover {
      background: var(--dark);
      color: var(--white);
    }

    /* ── HERO ── */
    .hero {
      padding: 100px 0 0;
      background: linear-gradient(180deg, rgba(174, 23, 255, .04) 0%, rgba(174, 23, 255, .015) 55%, transparent 100%);
    }

    .hero-text-block {
      text-align: center;
      max-width: 900px;
      margin: 0 auto;
      padding: 0 var(--px);
    }

    .hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 32px;
      background: rgba(174, 23, 255, .07);
      border: 1px solid rgba(174, 23, 255, .18);
      padding: 5px 14px;
      border-radius: 999px;
    }

    .hero-eyebrow-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--violet);
      flex-shrink: 0;
    }

    .hero-eyebrow-text {
      font-size: 12px;
      font-weight: 600;
      color: var(--violet);
      letter-spacing: .04em;
    }

    .hero h1 {
      font-family: var(--fh);
      font-size: clamp(28px, 3.6vw, 44px);
      font-weight: 800;
      line-height: 1.1;
      letter-spacing: -.025em;
      color: var(--dark);
      margin-bottom: 18px;
      white-space: nowrap;
    }

    .hero h1 .hl {
      color: var(--violet);
    }

    .hero-lead {
      font-size: 16px;
      font-weight: 400;
      color: var(--body);
      line-height: 1.75;
      max-width: 520px;
      margin: 0 auto 36px;
    }

    .hero-actions {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      flex-wrap: wrap;
    }

    /* Trust strip */
    .hero-trust-strip {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      margin-top: 32px;
      padding-bottom: 56px;
      max-width: var(--max-w);
      margin-left: auto;
      margin-right: auto;
      padding-left: var(--px);
      padding-right: var(--px);
    }

    .trust-item {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 13px;
      font-weight: 500;
      color: var(--muted);
      padding: 0 28px;
      flex: 1;
      justify-content: center;
    }

    .trust-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--violet);
      flex-shrink: 0;
      opacity: .5;
    }

    /* Hero preview card */
    .hero-preview {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 0 var(--px);
    }

    .preview-card {
      background: var(--white);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 -12px 60px rgba(0, 0, 0, .12), 0 0 0 1px var(--border);
      min-height: 380px;
      display: flex;
      flex-direction: column;
    }

    .preview-topbar {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 13px 20px;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
    }

    .preview-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }

    .preview-avatar-row {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 22px 24px 16px;
    }

    .preview-avatar {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      overflow: hidden;
    }

    .preview-intro {
      font-size: 14px;
      font-weight: 400;
      color: var(--body);
    }

    .preview-chips {
      display: flex;
      gap: 8px;
      padding: 0 24px 20px;
      flex-wrap: wrap;
    }

    .preview-chip {
      font-size: 11px;
      font-weight: 500;
      color: var(--muted);
      background: var(--surface);
      border: 1px solid var(--border);
      padding: 5px 11px;
      border-radius: 999px;
      cursor: pointer;
      transition: all .15s;
    }

    .preview-chip:hover {
      background: var(--border);
      color: var(--body);
    }

    .preview-input-row {
      margin: 0 24px 24px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: var(--r);
      padding: 13px 16px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .preview-input-row span {
      flex: 1;
      min-width: 0;
      font-size: 13px;
      color: var(--muted);
      word-break: break-word;
    }

    .preview-send {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: var(--violet);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      cursor: pointer;
    }

    /* ── SECTIONS ── */
    .section {
      padding: 96px 0;
    }

    .section-label {
      font-family: var(--fh);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--violet);
      opacity: .7;
      margin-bottom: 14px;
      display: block;
    }

    h2 {
      font-family: var(--fh);
      font-size: clamp(26px, 3vw, 38px);
      font-weight: 700;
      line-height: 1.18;
      letter-spacing: -.025em;
      color: var(--dark);
    }

    h2 .hl {
      color: var(--violet);
    }

    .section-body {
      font-size: 16px;
      font-weight: 400;
      color: var(--body);
      line-height: 1.75;
      margin-top: 14px;
    }

    /* ── TEMPLATES SECTION ── */
    .templates-bg {
      background: var(--surface);
    }

    .templates-head {
      max-width: 560px;
      margin: 0 auto 52px;
      text-align: center;
    }

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

    .template-card {
      background: var(--white);
      border: 1.5px solid var(--border);
      border-radius: 14px;
      padding: 24px 22px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .template-icon {
      width: 44px;
      height: 44px;
      border-radius: 11px;
      background: rgba(174, 23, 255, .08);
      color: var(--violet);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .template-name {
      font-family: var(--fh);
      font-size: 16px;
      font-weight: 700;
      color: var(--dark);
      line-height: 1.25;
      letter-spacing: -.01em;
    }

    .template-desc {
      font-size: 13px;
      font-weight: 400;
      color: var(--muted);
      line-height: 1.65;
      flex: 1;
    }

    .template-tag {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 11px;
      font-weight: 600;
      color: var(--violet);
      background: rgba(174, 23, 255, .07);
      border: 1px solid rgba(174, 23, 255, .15);
      padding: 3px 10px;
      border-radius: 999px;
      width: fit-content;
    }

    .template-download {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      margin-top: 4px;
      font-size: 12px;
      font-weight: 600;
      color: var(--muted);
      text-decoration: none;
      transition: color .15s;
    }

    .template-download:hover {
      color: var(--violet);
    }

    /* Note box */
    .templates-note-box {
      max-width: 600px;
      margin: 44px auto 0;
      background: var(--white);
      border: 1.5px solid var(--border);
      border-radius: 14px;
      padding: 22px 28px;
      display: flex;
      align-items: flex-start;
      gap: 14px;
    }

    .note-icon {
      color: var(--violet);
      flex-shrink: 0;
      margin-top: 2px;
      opacity: .7;
    }

    .note-text {
      font-size: 14px;
      font-weight: 400;
      color: var(--body);
      line-height: 1.7;
    }

    .note-text strong {
      font-weight: 600;
      color: var(--dark);
    }

    .templates-cta {
      text-align: center;
      margin-top: 48px;
    }

    .templates-cta-note {
      display: block;
      font-size: 12px;
      font-weight: 400;
      color: var(--muted);
      margin-top: 12px;
    }

    /* ── CTA BAND ── */
    .cta-band {
      background: var(--dark);
      padding: 80px 0;
      position: relative;
      overflow: hidden;
    }

    .cta-band::before {
      content: '';
      position: absolute;
      right: -60px;
      top: -100px;
      width: 480px;
      height: 480px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(174, 23, 255, .15) 0%, transparent 65%);
      pointer-events: none;
    }

    .cta-band::after {
      content: '';
      position: absolute;
      left: -80px;
      bottom: -80px;
      width: 280px;
      height: 280px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(174, 23, 255, .08) 0%, transparent 65%);
      pointer-events: none;
    }

    .cta-band-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 48px;
      flex-wrap: wrap;
      position: relative;
      z-index: 1;
    }

    .cta-band h2 {
      color: var(--white);
      max-width: 480px;
    }

    .cta-band .section-body {
      color: rgba(255, 255, 255, .5);
      max-width: 400px;
    }

    .cta-band-actions {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
      text-align: center;
    }

    .cta-band-actions .btn {
      justify-content: center;
    }

    .cta-link {
      font-size: 13px;
      font-weight: 400;
      color: rgba(255, 255, 255, .4);
      text-decoration: none;
      transition: color .15s;
    }

    .cta-link:hover {
      color: var(--violet);
    }

    /* ── ABOUT FAGURA ── */
    .fagura-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 96px;
      align-items: center;
    }

    .fagura-stats {
      display: flex;
      gap: 40px;
      margin-top: 40px;
    }

    .fstat-num {
      font-family: var(--fh);
      font-size: 28px;
      font-weight: 800;
      color: var(--dark);
      letter-spacing: -.03em;
      line-height: 1;
    }

    .fstat-label {
      font-size: 12px;
      font-weight: 500;
      color: var(--muted);
      margin-top: 4px;
    }

    .fagura-panel {
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 20px;
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .fp-top {
      background: var(--dark);
      border-radius: 12px;
      padding: 22px 24px;
    }

    .fp-top-label {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .45);
      margin-bottom: 6px;
    }

    .fp-top-val {
      font-family: var(--fh);
      font-size: 32px;
      font-weight: 800;
      color: var(--white);
      letter-spacing: -.03em;
      line-height: 1;
    }

    .fp-top-sub {
      font-size: 12px;
      font-weight: 500;
      color: var(--violet);
      margin-top: 4px;
    }

    .fp-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .fp-card {
      background: var(--white);
      border: 1.5px solid var(--border);
      border-radius: 12px;
      padding: 18px 16px;
    }

    .fp-card-label {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 6px;
    }

    .fp-card-val {
      font-family: var(--fh);
      font-size: 22px;
      font-weight: 800;
      color: var(--dark);
      letter-spacing: -.02em;
      line-height: 1;
    }

    .fp-card-sub {
      font-size: 11px;
      font-weight: 500;
      color: var(--violet);
      margin-top: 4px;
    }

    .fp-stars {
      display: flex;
      gap: 2px;
      margin-top: 6px;
    }

    .fp-star {
      width: 10px;
      height: 10px;
    }

    /* ── DONATORI ── */
    .helvetas-strip {
      border-top: 1px solid var(--border);
      padding: 48px 0;
    }

    .helvetas-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 0 var(--px);
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 28px;
    }

    .helvetas-disclaimer {
      font-size: 12px;
      font-weight: 400;
      color: var(--muted);
      line-height: 1.6;
      max-width: 560px;
    }

    .helvetas-logos {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 44px;
      flex-wrap: wrap;
    }

    .helvetas-logo-img {
      display: block;
      width: auto;
      object-fit: contain;
      opacity: .85;
    }

    .helvetas-logo-switzerland {
      height: 44px;
    }

    .helvetas-logo-helvetas {
      height: 28px;
    }

    .helvetas-logo-optim {
      height: 38px;
    }

    @media (max-width: 640px) {
      .helvetas-strip {
        padding: 36px 0;
      }

      .helvetas-inner {
        gap: 22px;
      }

      .helvetas-disclaimer {
        font-size: 11px;
      }

      .helvetas-logos {
        gap: 28px;
      }

      .helvetas-logo-switzerland {
        height: 36px;
      }

      .helvetas-logo-helvetas {
        height: 24px;
      }

      .helvetas-logo-optim {
        height: 30px;
      }
    }

    /* ── FOOTER ── */
    footer {
      background: var(--dark);
      border-top: 1px solid rgba(255, 255, 255, .07);
      padding: 64px 0 32px;
    }

    .ft-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 0 var(--px);
    }

    .ft-grid {
      display: grid;
      grid-template-columns: 220px repeat(4, 1fr);
      gap: 48px;
      padding-bottom: 40px;
      border-bottom: 1px solid rgba(255, 255, 255, .07);
      margin-bottom: 28px;
    }

    .ft-brand-desc {
      font-size: 13px;
      font-weight: 400;
      color: rgba(255, 255, 255, .35);
      line-height: 1.65;
      max-width: 180px;
      margin-top: 12px;
    }

    .ft-col h4 {
      font-family: var(--fh);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .4);
      margin-bottom: 16px;
    }

    .ft-col a {
      display: block;
      font-size: 13px;
      font-weight: 400;
      color: rgba(255, 255, 255, .35);
      text-decoration: none;
      margin-bottom: 10px;
      transition: color .15s;
    }

    .ft-col a:hover {
      color: rgba(255, 255, 255, .75);
    }

    .ft-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 12px;
    }

    .ft-copy {
      font-size: 12px;
      font-weight: 400;
      color: rgba(255, 255, 255, .25);
    }

    .ft-socials {
      display: flex;
      gap: 8px;
    }

    .ft-soc {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, .1);
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      transition: all .15s;
    }

    .ft-soc:hover {
      border-color: var(--violet);
      background: rgba(174, 23, 255, .15);
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 900px) {
      :root {
        --px: 24px;
      }

      .nav-links {
        display: none;
      }

      .hero {
        padding: 72px 0 0;
      }

      .hero h1 {
        white-space: normal;
      }

      .hero h1 br {
        display: none;
      }

      .templates-grid {
        grid-template-columns: 1fr 1fr;
      }

      .fagura-grid {
        grid-template-columns: 1fr;
        gap: 48px;
      }

      .ft-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
      }

      .cta-band {
        padding: 60px 0;
      }

      .cta-band-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
      }

      .cta-band-actions {
        width: 100%;
        align-items: stretch;
      }

      .hero-actions {
        flex-direction: column;
        align-items: stretch;
      }

      .hero-actions .btn,
      .hero-actions .btn-outline-dark {
        justify-content: center;
      }

      .hero-trust-strip {
        flex-direction: column;
        gap: 12px;
        padding-bottom: 44px;
      }

      .trust-item {
        padding: 0;
        flex: 0 0 auto;
      }

      .section {
        padding: 72px 0;
      }

      .fagura-stats {
        gap: 28px;
        flex-wrap: wrap;
      }
    }

    @media (max-width: 600px) {
      :root {
        --px: 20px;
      }

      nav {
        height: 56px;
      }

      .nav-actions .btn-ghost {
        display: none;
      }

      .hero {
        padding: 56px 0 0;
      }

      .hero h1 {
        font-size: clamp(26px, 7vw, 34px);
      }

      .hero-lead {
        font-size: 15px;
      }

      .templates-grid {
        grid-template-columns: 1fr;
      }

      .template-card {
        padding: 22px 20px;
      }

      .templates-cta .btn {
        width: 100%;
        justify-content: center;
      }

      .section {
        padding: 56px 0;
      }

      .cta-band {
        padding: 48px 0;
      }

      .preview-topbar {
        padding: 11px 16px;
      }

      .preview-avatar-row,
      .preview-chips,
      .preview-input-row {
        padding-left: 16px;
        padding-right: 16px;
      }

      .preview-input-row {
        margin-left: 16px;
        margin-right: 16px;
        padding: 11px 14px;
      }

      .chat-stream {
        padding: 8px 16px 16px;
      }

      .preview-scroll {
        height: 300px;
      }

      .chat-bubble-ai {
        max-width: 92%;
        padding: 10px 13px;
        font-size: 12.5px;
      }

      .chat-bubble-user {
        max-width: 78%;
        padding: 10px 13px;
        font-size: 12.5px;
      }

      .fp-top-val {
        font-size: 26px;
      }

      .fp-card-val {
        font-size: 18px;
      }

      .fagura-stats {
        gap: 20px 28px;
      }
    }

    @media (max-width: 420px) {
      :root {
        --px: 16px;
      }

      .nav-inner {
        padding: 0 16px;
      }

      .hero-eyebrow {
        padding: 4px 12px;
      }

      .hero-eyebrow-text {
        font-size: 11px;
      }

      .ft-grid {
        grid-template-columns: 1fr;
        gap: 28px;
      }

      .preview-chip {
        font-size: 10.5px;
        padding: 4px 10px;
      }
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(16px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    .hero-text-block>* {
      animation: fadeUp .5s ease both;
    }

    .hero-text-block>*:nth-child(1) {
      animation-delay: .05s
    }

    .hero-text-block>*:nth-child(2) {
      animation-delay: .12s
    }

    .hero-text-block>*:nth-child(3) {
      animation-delay: .19s
    }

    .hero-text-block>*:nth-child(4) {
      animation-delay: .26s
    }

    .hero-text-block>*:nth-child(5) {
      animation-delay: .33s
    }

    .hero-preview {
      animation: fadeUp .6s ease .42s both;
    }

    /* ── SCROLL REVEAL ── */
    .reveal {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
      will-change: opacity, transform;
    }

    .reveal.in {
      opacity: 1;
      transform: translateY(0);
    }

    .reveal-stagger>* {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity .65s cubic-bezier(.2, .7, .2, 1), transform .65s cubic-bezier(.2, .7, .2, 1);
    }

    .reveal-stagger.in>* {
      opacity: 1;
      transform: translateY(0);
    }

    .reveal-stagger.in>*:nth-child(1) {
      transition-delay: .04s;
    }

    .reveal-stagger.in>*:nth-child(2) {
      transition-delay: .12s;
    }

    .reveal-stagger.in>*:nth-child(3) {
      transition-delay: .20s;
    }

    .reveal-stagger.in>*:nth-child(4) {
      transition-delay: .28s;
    }

    .reveal-stagger.in>*:nth-child(5) {
      transition-delay: .36s;
    }

    .reveal-stagger.in>*:nth-child(6) {
      transition-delay: .44s;
    }

    /* Eyebrow dot subtle pulse */
    @keyframes dotPulse {

      0%,
      100% {
        box-shadow: 0 0 0 0 rgba(174, 23, 255, .55);
      }

      70% {
        box-shadow: 0 0 0 9px rgba(174, 23, 255, 0);
      }
    }

    .hero-eyebrow-dot {
      animation: dotPulse 2.4s ease-in-out infinite;
    }

    /* ── CHAT SIMULATION ── */
    .preview-scroll {
      height: 360px;
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: thin;
      scrollbar-color: var(--border) transparent;
      background: var(--white);
    }

    .preview-scroll::-webkit-scrollbar {
      width: 6px;
    }

    .preview-scroll::-webkit-scrollbar-track {
      background: transparent;
    }

    .preview-scroll::-webkit-scrollbar-thumb {
      background: var(--border);
      border-radius: 3px;
    }

    .chat-stream {
      padding: 8px 24px 20px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      background: var(--white);
    }

    .chat-msg {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity .4s ease, transform .4s ease;
    }

    .chat-msg.in {
      opacity: 1;
      transform: translateY(0);
    }

    .chat-msg.user {
      flex-direction: row-reverse;
    }

    .chat-avatar-sm {
      width: 32px;
      height: 32px;
      border-radius: 9px;
      background: var(--surface);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 9px;
      font-weight: 700;
      color: var(--muted);
    }

    .chat-bubble-ai {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 4px 14px 14px 14px;
      padding: 12px 16px;
      font-size: 13px;
      color: var(--body);
      line-height: 1.6;
      max-width: 82%;
      min-height: 22px;
    }

    .chat-bubble-user {
      background: #3D3A52;
      border-radius: 14px 4px 14px 14px;
      padding: 12px 16px;
      font-size: 13px;
      color: #fff;
      line-height: 1.6;
      max-width: 60%;
    }

    .chat-caret {
      display: inline-block;
      width: 1px;
      background: var(--violet);
      height: 1em;
      vertical-align: -2px;
      margin-left: 1px;
      animation: caretBlink .9s steps(1) infinite;
    }

    @keyframes caretBlink {
      50% {
        opacity: 0;
      }
    }

    /* Typing indicator */
    .typing {
      display: inline-flex;
      gap: 4px;
      padding: 2px 2px;
      align-items: center;
    }

    .typing span {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--muted);
      opacity: .45;
      animation: typingBounce 1.1s infinite ease-in-out;
    }

    .typing span:nth-child(2) {
      animation-delay: .15s;
    }

    .typing span:nth-child(3) {
      animation-delay: .30s;
    }

    @keyframes typingBounce {

      0%,
      80%,
      100% {
        transform: translateY(0);
        opacity: .35;
      }

      40% {
        transform: translateY(-4px);
        opacity: .9;
      }
    }

    /* Chip selected state during simulation */
    .preview-chip {
      transition: background .25s, color .25s, border-color .25s, transform .25s;
    }

    .preview-chip.is-active {
      background: var(--violet);
      color: #fff;
      border-color: var(--violet);
      transform: translateY(-1px);
      box-shadow: 0 4px 14px rgba(174, 23, 255, .25);
    }

    /* Input field "typing" state */
    .preview-input-row span.typing-text {
      color: var(--dark);
    }

    /* Send button pulse on dispatch */
    .preview-send {
      transition: transform .2s, box-shadow .2s, background .2s;
    }

    .preview-send.is-firing {
      animation: sendPulse .55s ease;
    }

    @keyframes sendPulse {
      0% {
        transform: scale(1);
      }

      45% {
        transform: scale(1.18);
        box-shadow: 0 0 0 9px rgba(174, 23, 255, .18);
      }

      100% {
        transform: scale(1);
      }
    }

    /* Inline download chip inside an AI bubble */
    .dl-chip {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      margin-top: 8px;
      background: var(--white);
      border: 1px solid var(--border);
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 600;
      color: var(--body);
      cursor: pointer;
      transition: all .15s;
    }

    .dl-chip:hover {
      border-color: var(--violet);
      color: var(--violet);
    }

    @media (prefers-reduced-motion: reduce) {

      .hero-eyebrow-dot,
      .typing span,
      .preview-send.is-firing,
      .reveal,
      .reveal-stagger>*,
      .hero-text-block>*,
      .hero-preview {
        animation: none !important;
        transition: none !important;
      }

      .reveal,
      .reveal-stagger>* {
        opacity: 1 !important;
        transform: none !important;
      }
    }

/* ── Minimal landing top bar (logo + back link) ── */
.ai-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.ai-topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ai-topbar-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.ai-topbar-logo img,
.ai-topbar-logo svg {
  display: block;
}
.ai-topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.ai-topbar-back:hover {
  color: var(--dark);
}
.ai-topbar-back svg {
  display: block;
}
.admin-bar .ai-topbar {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .ai-topbar {
    top: 46px;
  }
}
@media (max-width: 768px) {
  .ai-topbar-inner {
    padding: 0 20px;
  }
}

/* "Creează cont" CTAs rendered as links — no underline. */
a.btn {
  text-decoration: none;
}

/* "Descoperă documentele" as an anchor link + scroll offset for sticky header. */
a.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
#documente {
  scroll-margin-top: 80px;
}

/* Remove the focus outline ring on buttons. */
.btn:focus,
.btn-outline-dark:focus {
  outline: none;
}
