    :root{
      --gap: 20px;
      --card-radius: 12px;
      --card-bg: #ffffff;
      --shadow: 0 6px 18px rgba(13, 38, 63, 0.12);
      --accent: #2563eb;
      --max-width: 1100px;
    }

    /* Basic page layout */
    body{
      margin:0;
      font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
      background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
      color:#0f172a;
      display:flex;
      align-items:center;
      justify-content:center;
      min-height:100vh;
      padding:40px 16px;
      box-sizing:border-box;
    }

    .wrap{
      width:100%;
      max-width:var(--max-width);
      margin:0 auto;
    }

    /* Cards container - side-by-side on wide screens, stacked on small screens */
    .cards{
      display:flex;
      gap:var(--gap);
      align-items:flex-start;
      justify-content:center;
      flex-wrap:wrap; /* allows cards to wrap on small screens */
    }

    /* Individual card */
    .card{
      background:var(--card-bg);
      border-radius:var(--card-radius);
      box-shadow:var(--shadow);
      flex:1 1 320px; /* grow, shrink, base 320px */
      max-width:520px; /* prevents cards stretching too wide */
      overflow:hidden; /* clips rounded corners for children */
      display:flex;
      flex-direction:column;
      transition:transform .22s cubic-bezier(.2,.9,.3,1), box-shadow .22s;
      will-change:transform;
    }

    .card:hover{
      transform:translateY(-6px);
      box-shadow: 0 12px 28px rgba(13,38,63,0.16);
    }

    /* Image at the top of the card - fills width, keeps aspect ratio */
    .card__media{
      width:100%;
      height:220px;
      display:block;
      object-fit:cover; /* crop nicely */
      aspect-ratio: 16/9; /* keeps consistent ratio in supporting browsers */
      background:linear-gradient(135deg,#e6eefc,#f4f7ff);
    }

    /* Card content */
    .card__content{
      padding:18px 18px 22px 18px;
      display:flex;
      flex-direction:column;
      gap:12px;
    }

    .card__title{
      font-size:1.125rem;
      font-weight:600;
      margin:0;
    }

    .card__text{
      margin:0;
      color:#475569;
      line-height:1.45;
      font-size:.95rem;
    }

    .card__actions{
      margin-top:auto; /* push actions to the bottom */
      display:flex;
      gap:10px;
      align-items:center;
    }

    .btn{
      padding:10px 14px;
      border-radius:10px;
      border:1px solid transparent;
      background:var(--accent);
      color:white;
      text-decoration:none;
      font-weight:600;
      font-size:.95rem;
      display:inline-block;
    }

    .btn--ghost{
      background:transparent;
      color:var(--accent);
      border-color:rgba(37,99,235,0.12);
    }

    /* Responsive tweaks */
    @media (max-width:880px){
      .card__media{ height:180px; }
    }

    @media (max-width:680px){
      .cards{ flex-direction:column; gap:18px; }
      .card{ max-width:none; width:100%; }
    }

    /* Small utility: center a demo area */
    .demo-header{ text-align:center; margin-bottom:18px; }
    .muted{ color:#64748b; font-size:.92rem; }