html { scroll-behavior: smooth; }

.scot-page { font-family: Montserrat, sans-serif; }
.nav-menu ul { width: 245px; }
.scot-home-feature-alt,
.platform-section-alt { background: var(--surface); }
.home-feature-copy-right { padding-left: 55px; }
.scot-automation-preview { background: #edf6fa; }
.generator-window { max-width: 850px; margin-right: auto; margin-left: auto; }
.generator-window img { background: #f6f9fc; }

.page-hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.platform-anchor { color: #d8f6f6; font-size: 13px; font-weight: 700; }
.platform-anchor i { margin-left: 8px; }
.platform-anchor:hover { color: #fff; }

.platform-nav {
    position: sticky;
    top: 102px;
    z-index: 90;
    border-bottom: 1px solid #dbe6ef;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 24px rgba(16, 42, 67, .06);
    backdrop-filter: blur(8px);
}
.platform-nav .container { display: flex; align-items: center; justify-content: center; gap: 38px; min-height: 58px; }
.platform-nav a { color: #526980; font-size: 12px; font-weight: 700; }
.platform-nav a:hover { color: #0b84aa; }
.platform-nav a.is-active { color: #0b84aa; }
.platform-nav a.is-active::after { position: absolute; right: 0; bottom: -20px; left: 0; height: 2px; background: #16a7c7; content: ""; }
.platform-nav a { position: relative; }
.platform-section { scroll-margin-top: 170px; }

.showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.showcase-card { min-width: 0; }
.showcase-card .product-window {
    border-radius: 9px;
    box-shadow: 0 17px 38px rgba(16, 42, 67, .12);
    transition: transform .25s, box-shadow .25s;
}
.showcase-card:hover .product-window { box-shadow: 0 23px 48px rgba(16, 42, 67, .17); transform: translateY(-4px); }
.showcase-copy { padding: 25px 5px 0; }
.showcase-copy > span { display: block; margin-bottom: 9px; color: #118bab; font-size: 10px; font-weight: 700; letter-spacing: 1.35px; }
.showcase-copy h3 { margin: 0 0 10px; color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1.35; }
.showcase-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.automation-section { background: linear-gradient(180deg, #fff 0, #f3f8fb 100%); }
.automation-lead h2 { margin: 0 0 19px; color: var(--ink); font-size: 35px; font-weight: 700; letter-spacing: -.8px; line-height: 1.2; }
.automation-lead p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.output-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 70px; }
.output-gallery article { overflow: hidden; border: 1px solid #dfe9f1; border-radius: 9px; background: #fff; box-shadow: 0 12px 30px rgba(16, 42, 67, .08); }
.output-image { overflow: hidden; aspect-ratio: 16 / 7; border-bottom: 1px solid #e2eaf1; background: #eef3f7; }
.output-image img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .3s; }
.output-gallery article:hover .output-image img { transform: scale(1.02); }
.output-gallery h3 { margin: 21px 22px 8px; color: var(--ink); font-size: 17px; font-weight: 700; }
.output-gallery p { margin: 0; padding: 0 22px 24px; color: var(--muted); font-size: 12px; line-height: 1.65; }

.scot-zoomable-image { cursor: zoom-in; }
.scot-zoomable-image:focus-visible { outline: 3px solid rgba(22, 167, 199, .65); outline-offset: -3px; }
body.lightbox-open { overflow: hidden; }
.scot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(5, 18, 32, .9);
    opacity: 0;
}
.scot-lightbox.is-open { display: flex; animation: scot-lightbox-in .18s ease forwards; }
.scot-lightbox-dialog { position: relative; display: flex; max-width: 96vw; max-height: 94vh; flex-direction: column; align-items: center; }
.scot-lightbox-image { display: block; max-width: 96vw; max-height: 86vh; border-radius: 7px; background: #fff; box-shadow: 0 28px 75px rgba(0, 0, 0, .42); object-fit: contain; }
.scot-lightbox-caption { margin: 13px 44px 0; color: #dce8f2; font-size: 12px; text-align: center; }
.scot-lightbox-close { position: absolute; top: -18px; right: -18px; z-index: 1; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; color: #163753; background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); cursor: pointer; font-size: 16px; }
.scot-lightbox-close:hover { color: #fff; background: #16a7c7; }
@keyframes scot-lightbox-in { to { opacity: 1; } }

@media (max-width: 991px) {
    .home-feature-copy-right { padding-left: 15px; margin-top: 42px; }
    .platform-nav .container { justify-content: flex-start; overflow-x: auto; gap: 24px; padding-top: 18px; padding-bottom: 18px; white-space: nowrap; }
    .showcase-grid { grid-template-columns: 1fr; gap: 50px; }
    .automation-lead .generator-window { margin-top: 42px; }
    .output-gallery { grid-template-columns: 1fr 1fr; }
    .scot-home-feature .integrations-copy { margin-bottom: 42px; }
}

@media (max-width: 575px) {
    .page-hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
    .platform-nav .container { padding-right: 20px; padding-left: 20px; }
    .platform-nav { top: 80px; }
    .platform-nav a.is-active::after { bottom: -19px; }
    .output-gallery { grid-template-columns: 1fr; margin-top: 50px; }
    .automation-lead h2 { font-size: 28px; }
    .showcase-copy h3 { font-size: 18px; }
    .scot-section.platform-section { padding-top: 68px; padding-bottom: 68px; }
    .scot-lightbox { padding: 14px; }
    .scot-lightbox-close { top: 8px; right: 8px; }
    .scot-lightbox-image { max-width: calc(100vw - 28px); max-height: 82vh; }
}
