/* Tablet – between 577px and 1024px */
@media (min-width: 577px) and (max-width: 1024px) {
  html,
  body {
    overflow-x: clip;
  }

  /* --- HEADER --- */
  .site-header {
    height: 64px;
  }

  .site-header-inner {
    padding: 10px 64px;
  }

  /* --- HERO --- */
  .site-hero {
    height: 754px;
    min-height: 754px;
  }

  .site-hero-bg-video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 25% center;
  }

  .site-hero-content {
    margin-top: 76px;
    padding: 80px 64px;
  }

  .site-hero-title {
    font-size: 56px;
    font-weight: 600;
    width: 100%;
    max-width: 700px;
    padding: 16px 0;
  }

  .site-hero-title-line {
    display: inline;
  }

  .site-hero-title-line:last-child {
    white-space: nowrap;
  }

  .site-hero-desc {
    width: 100%;
    max-width: 380px;
    padding-bottom: 40px;
  }

  .site-hero-actions {
    display: inline-grid;
    grid-template-columns: max-content;
    align-items: stretch;
    gap: 16px;
  }

  .site-hero-btn {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
    padding: 12px 20px;
    box-sizing: border-box;
  }

  .site-hero-dashboard {
    height: 580px;
    width: auto;
    max-width: none;
    top: 55%;
  }

  .site-hero-dashboard-img {
    height: 100%;
    width: auto;
  }

  /* --- FOOTER --- */
  footer.site-footer {
    height: auto;
    padding: 0;
  }

  .site-footer-inner {
    padding: 90px 64px;
  }

  .site-footer-main {
    justify-content: space-between;
    gap: 32px;
    flex-wrap: nowrap;
  }

  .site-footer-brand {
    flex-shrink: 0;
    width: 240px;
    min-width: 200px;
  }

  .site-footer-desc {
    width: 100%;
    height: auto;
  }

  .site-footer-nav {
    width: auto;
    gap: 24px;
    grid-template-columns: repeat(4, max-content);
  }

  .site-footer-col {
    max-width: 120px;
  }

  .site-footer-col:last-child {
    max-width: min(200px, 100%);
    min-width: 0;
  }

  .site-footer-col--links {
    max-width: 140px;
  }

  .site-footer-contact {
    min-width: 0;
    max-width: 100%;
  }

  .site-footer-contact-item {
    min-width: 0;
    max-width: 100%;
  }

  .site-footer-contact-item a {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
  }

  .site-footer-copyright {
    margin-top: 48px;
  }

  footer.site-footer::before {
    inset: auto;
    top: 0;
    right: 0;
    width: 432.5px;
    height: 598px;
    background-position: top right;
  }

  /* --- SECTION LAYOUT (tablet) --- */
  .Section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 90px 64px;
  }

  .Section .Content,
  .Section .Content--section3 {
    flex: 1 1 0;
    min-width: 0;
    max-width: min(520px, 52%);
  }

  .section-title {
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -0.4px;
    padding: 16px 0;
  }

  .Section > .Placeholder {
    width: auto;
    max-width: min(480px, 46%);
    min-width: 0;
    flex: 0 1 480px;
    height: auto;
    min-height: 0;
    aspect-ratio: 1350 / 850;
    justify-self: end;
  }

  .Section .Placeholder-img {
    object-fit: contain;
  }

  /* --- FEAT HERO (tablet) --- */
  .feat-hero {
    height: auto;
    min-height: auto;
    min-width: 0;
    overflow: hidden;
  }

  .feat-hero-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 130px 64px 72px;
    gap: 40px;
  }

  .feat-hero-title {
    font-size: 48px;
    letter-spacing: -1.5px;
  }

  .feat-hero-desc {
    font-size: 16px;
  }

  .feat-hero-visual {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .feat-code-card__code {
    font-size: 12px;
    line-height: 1.65;
  }

  .page-feature .feat-hero-inner {
    align-items: center;
    padding: 140px 64px 64px; /* Increased top padding from 120px to 160px to fix the navbar clearance gap */
    gap: 0;
  }

  .page-feature .feat-hero-title {
    font-size: 46px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.25px;
    padding: 12px 0;
    margin-bottom: 32px;
  }

  .page-feature .feat-hero-title-accent {
    line-height: 1.15;
    padding-bottom: 0.12em;
  }

  /* Core button layout controls inside tablet breakpoints */
  .page-feature .feat-hero-actions,
  .cta-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
    gap: 12px;
  }

  .page-feature .feat-hero .site-hero-btn,
  .cta-button {
    width: auto;
    min-width: fit-content;
    flex: 0 1 auto;
    justify-content: center;
    white-space: nowrap;
    padding: 12px 20px;
    font-size: 14px;
    min-height: 44px;
    box-sizing: border-box;
  }

  /* Component button hover states */
  .cta-button.primary:hover,
  .page-feature .feat-hero .site-hero-btn--primary:hover {
    background-color: #030303;
    border-color: #030303;
  }

  .cta-button.secondary:hover,
  .page-feature .feat-hero .site-hero-btn--secondary:hover {
    background-color: #ededed;
    border-color: #030303;
    color: #030303;
  }
}
