/* Dark mode support for key feature cards and building cards */
  .dark .key-feature-card {
    background-color: #101418;
    color: #e0e0e0 !important;
  }

  .dark .building-card {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
  }

  .dark .building-card h3 {
    color: #e0e0e0 !important;
  }

  .dark .building-card p {
    color: #a0a0a0 !important;
  }

  .agent-get-started-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    column-gap: 10px;
    row-gap: 35px;
    margin-top: 50px;
  }

  .agent-get-started-container .link-card {
    text-decoration: none;
    position: relative;
    cursor: pointer;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--fern-color-border, #e1e5e9);
    min-width: 375px;
    max-width: 375px;
    min-height: 213px;
    max-height: 213px;
    border-radius: 10px;
    padding: 16px 24px;
    transition: all 0.3s ease-in-out;
  }

  .agent-get-started-container .link-card:hover {
    border-color: #5F38FB;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
  }

  .agent-get-started-container .link-card-title {
    margin: 10px 0px;
  }

  .agent-get-started-container .link-card-subtitle {
    margin: 0px;
    text-align: center;
  }

  .agent-get-started-container .link-card .link-card-icon {
    margin: 0px;
    margin-top: 20px;
    height: 40px;
  }

  .agent-get-started-container .link-card .link-card-icon img {
    margin: 0px;
  }

  .section-badge {
    position: absolute;
    margin: 0px !important;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .key-feature-container {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 24px; 
    margin: 48px 0px 60px;
  }

  .agent-next-steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
  }

  .key-feature-card {
    padding: 30px;
    background-color: transparent;
    border: 1px solid var(--fern-color-border, #e1e5e9);
    border-radius: 12px;
    color: var(--fern-color-text, #e5e7eb);
  }

  .agent-next-steps-container .key-feature-card {
    border: none;
    border-radius: 0px;
    padding: 24px 0px;
  }

  .dark .agent-next-steps-container .feature-card-icon img {
    filter: invert(1);
  }

  .agent-next-steps-container .feature-card-icon img {
    margin: 15px 0px;
    width: 16px;
    height: 16px;
  }

  .agent-next-steps-container .key-feature-card:last-child h4 ,
  .agent-next-steps-container .key-feature-card:last-child p {
    opacity: 0.7;
    color: #556578 !important;
  }

  .gradient-button {
    display: block;
    width: fit-content;
    border: 0.86px solid transparent;
    color: var(--fern-color-text, #212529);
    font-weight: 500;
    font-size: 12px;
    padding: 6px 10px;
    margin: 10px 0px;
    border-radius: 60px;
    background:
      linear-gradient(
          var(--background),
          var(--background)
        )
        padding-box,
      /* outer gradient border */
        linear-gradient(
          45.02deg, 
          #5F38FB 14.29%, 
          #CF447B 60.01%, 
          #F9774B 85.66%
        )
        border-box;
  }

  .dark .gradient-button {
    color: #ECECEC;
  }

  .key-feature-container .key-feature-card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }

  .key-feature-card h4 {
    margin-top: 0px;
    font-size: 14px;
    color: var(--fern-color-text, #212529);
  }

  .key-feature-card p {
    margin: 0px;
    margin-top: 16px;  
    font-size: 12px;
    color: var(--fern-color-text-secondary, #6c757d);
  }

  .key-feature-card .link {
    margin-top: 12px; 
    display: inline-block;
  }

  .dark .key-feature-card h4 {
    color: white !important;
  }

  .agent-get-started-container .link-card-subtitle {
    font-size: 12px;
  }
  
  .dark .key-feature-card p, 
  .dark .agent-get-started-container .link-card-subtitle {
    color: #B9C5D4 !important;
  }

  .building-card {
    height: 104px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
  }
  .building-card,
  .building-card h3,
  .building-card p {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.4;
  }
  /* normalize icon size across all cards */
  .building-card svg {
    width: 40px;
    height: 40px;
    display: block;
    color: currentColor;
    stroke: currentColor;
  }
  .building-card > div:first-child {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--fern-color-text, #212529);
    opacity: 0.9;
  }
  .building-card > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  /* --- Start Building: lock typography --- */
  .building-card,
  .building-card h3,
  .building-card p {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
      Noto Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial,
      "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.4;
  }
  .building-card h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--fern-color-text, #212529);
  }
  .building-card p {
    margin: 0;
    font-size: 14px;
    color: var(--fern-color-text-secondary, #6c757d);
  }
  /* --- Start Building: consistent size + typography --- */
  .start-building-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 104px;
    gap: 24px;
    margin: 32px 0;
    align-items: stretch;
  }
  @media (min-width: 1024px) {
    .start-building-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  .building-card {
    min-height: 104px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background-color: var(--fern-color-background-secondary, #f8f9fa);
    border: 1px solid var(--fern-color-border, #e1e5e9);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: inherit;
    text-decoration: none;
  }
  .building-card svg { width: 40px; height: 40px; display: block; color: currentColor; stroke: currentColor; }
  .building-card:hover { transform: translateY(-2px); transition: transform .2s ease; }
  .building-card-link { display: block; }
  .start-building-grid a,
  .start-building-grid a:hover,
  .start-building-grid a:focus,
  .start-building-grid a:visited {
    color: inherit;
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
  }
  @media (max-width: 768px) {
    .models-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    .model-card { max-width: 100%; }
    .model-details h3 { font-size: 12px; }
    .model-details p { font-size: 10px; }
    .key-feature-card h3 { min-height: auto; }
    .key-feature-card p { min-height: auto; }
  }
  @media (min-width: 769px) and (max-width: 1024px) {
    .models-grid { grid-template-columns: repeat(3, 1fr); }
    .model-card { max-width: 200px; }
  }
  @media (min-width:1150px) {
    .fern-layout-guide {
      margin-left: auto;
      margin-right: auto;
    }
    .fern-layout-guide article {
      width: 835px;
    }
  }
  @media (min-width: 1300px) and (max-width: 1400px) {
    .agent-get-started-container {
      column-gap: 5px;
    }
    .agent-get-started-container .link-card {
      min-width: 350px;
      max-width: 350px;
    }
  }
  @media (min-width: 1200px) {
    .models-grid { grid-template-columns: repeat(5, 1fr); }
  }

  /* Dark mode: make Start Building icons white */
  .dark .building-card-icon,
  .dark .building-card > div:first-child {
    color: #ffffff !important;
    opacity: 1;
  }
  .dark .building-card svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
  }
astro-island,astro-slot,astro-static-slot{display:contents}