/* =========================================================
   SYNTETIKA ENGINE — product landing page
   Scoped to html.engine-page
   ========================================================= */

html.engine-page {
    --accent: #8cff32;
    --accent-glow: rgba(140, 255, 50, 0.28);
    --accent2: #b5ff6a;

    --e-bg: #050705;
    --e-bg-2: #0a0d09;
    --e-bg-3: #10140e;
    --e-accent: #8cff32;
    --e-accent-2: #b5ff6a;
    --e-text: #f2f2ee;
    --e-muted: #92978f;
    --e-dim: #7d837a;
    --e-border: rgba(255, 255, 255, 0.14);
    --e-border-soft: rgba(255, 255, 255, 0.07);
    --e-border-strong: rgba(140, 255, 50, 0.42);
    --e-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    --e-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --e-mono: 'IBM Plex Mono', 'Consolas', 'Courier New', monospace;
    --e-max: 1400px;
    --e-pad: clamp(20px, 4.4vw, 64px);
    --e-nav-h: 0px;
    --e-subnav-h: 56px;

    scroll-padding-top: calc(var(--e-nav-h) + var(--e-subnav-h) + 12px);
    background: var(--e-bg);
}

body.engine-body {
    background: var(--e-bg);
    color: var(--e-text);
    font-family: var(--e-body);
    padding-top: var(--e-nav-h);
    -webkit-font-smoothing: antialiased;
}

.engine-body .navbar {
    background: rgba(5, 7, 5, 0.78);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.engine-body .navbar.scrolled {
    background: rgba(5, 7, 5, 0.94);
    border-bottom-color: var(--e-border-soft);
}

.engine-body .nav-logo,
.engine-body .nav-menu a,
.engine-body .nav-toggle {
    font-family: var(--e-body);
}

.engine-body .back-to-top {
    background: var(--e-accent);
    color: #050705;
}

/* =========================================================
   Layout primitives
   ========================================================= */

.eng-container {
    width: 100%;
    max-width: var(--e-max);
    margin: 0 auto;
    padding: 0 var(--e-pad);
}

.eng-section {
    position: relative;
    padding: clamp(84px, 11vw, 150px) 0;
}

.eng-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--e-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--e-accent);
}

.eng-eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
}

.eng-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: end;
    margin-bottom: clamp(40px, 6vw, 72px);
}

.eng-head h2 {
    font-family: var(--e-display);
    font-size: clamp(2.3rem, 5.2vw, 4.6rem);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-top: 20px;
}

.eng-head h2 em {
    font-style: normal;
    color: var(--e-accent);
}

.eng-head-copy {
    display: flex;
    flex-direction: column;
    gap: 22px;
    justify-self: end;
    max-width: 400px;
    padding-bottom: 6px;
}

.eng-head-copy p {
    color: var(--e-muted);
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.65;
}

.eng-index {
    font-family: var(--e-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--e-dim);
}

/* =========================================================
   Buttons
   ========================================================= */

.eng-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 17px 24px;
    border: 1px solid var(--e-border);
    background: transparent;
    color: var(--e-text);
    font-family: var(--e-mono);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.eng-btn svg {
    flex: none;
    transition: transform var(--transition);
}

.eng-btn:hover svg {
    transform: translateX(3px);
}

.eng-btn--solid {
    background: var(--e-accent);
    border-color: var(--e-accent);
    color: #050705;
}

.eng-btn--solid:hover {
    background: var(--e-accent-2);
    border-color: var(--e-accent-2);
    box-shadow: 0 0 32px rgba(140, 255, 50, 0.3);
    transform: translateY(-1px);
}

.eng-btn--ghost:hover {
    border-color: var(--e-accent);
    color: var(--e-accent);
    background: rgba(140, 255, 50, 0.05);
}

.eng-btn--sm {
    padding: 11px 16px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
}

.eng-btn--wide {
    width: 100%;
}

.eng-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--e-muted);
    font-family: var(--e-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    transition: color var(--transition);
}

.eng-link:hover {
    color: var(--e-accent);
}

.eng-link svg {
    transition: transform var(--transition);
}

.eng-link:hover svg {
    transform: translate(2px, -2px);
}

/* =========================================================
   Sub navigation
   ========================================================= */

.eng-subnav {
    position: sticky;
    top: var(--e-nav-h);
    z-index: 990;
    background: rgba(5, 7, 5, 0.82);
    border-bottom: 1px solid var(--e-border-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.eng-subnav.is-stuck {
    background: rgba(5, 7, 5, 0.96);
    border-bottom-color: var(--e-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.eng-subnav-inner {
    max-width: var(--e-max);
    margin: 0 auto;
    padding: 0 var(--e-pad);
    height: var(--e-subnav-h);
    display: flex;
    align-items: center;
    gap: 28px;
}

.eng-subnav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--e-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--e-text);
    white-space: nowrap;
}

.eng-brand-mark {
    display: inline-flex;
    gap: 3px;
}

.eng-brand-mark i {
    display: block;
    width: 4px;
    height: 14px;
    background: var(--e-accent);
    transform: skewX(-22deg);
    box-shadow: 0 0 10px rgba(140, 255, 50, 0.6);
}

.eng-subnav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.eng-subnav-links a {
    position: relative;
    padding: 6px 0;
    font-family: var(--e-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--e-muted);
    transition: color var(--transition);
    white-space: nowrap;
}

.eng-subnav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--e-accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform var(--transition);
}

.eng-subnav-links a:hover,
.eng-subnav-links a.active {
    color: var(--e-text);
}

.eng-subnav-links a.active::after,
.eng-subnav-links a:hover::after {
    transform: scaleX(1);
}

.eng-subnav .eng-btn {
    flex: none;
}

/* =========================================================
   Hero
   ========================================================= */

.eng-hero {
    position: relative;
    min-height: calc(100svh - var(--e-nav-h) - var(--e-subnav-h));
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(36px, 5vh, 64px) 0 clamp(36px, 5vh, 56px);
    background: var(--e-bg);
}

.eng-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.85;
}

.eng-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: radial-gradient(ellipse at 70% 45%, #000 10%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #000 10%, transparent 72%);
    pointer-events: none;
}

.eng-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(5, 7, 5, 0.97) 0%, rgba(5, 7, 5, 0.9) 34%, rgba(5, 7, 5, 0.28) 70%, rgba(5, 7, 5, 0.62) 100%),
        linear-gradient(0deg, var(--e-bg) 0%, rgba(5, 7, 5, 0) 34%);
}

.eng-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--e-max);
    margin: 0 auto;
    padding: 0 var(--e-pad);
}

.eng-hero-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(26px, 5vh, 56px);
    font-family: var(--e-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--e-muted);
}

.eng-hero-meta span:last-child {
    color: var(--e-dim);
}

.eng-hero h1 {
    font-family: var(--e-display);
    font-size: clamp(2.9rem, 8.2vw, 8rem);
    font-weight: 700;
    line-height: 0.86;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    animation: eng-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eng-hero h1 em {
    display: inline;
    font-style: normal;
    color: var(--e-accent);
    text-shadow: 0 0 60px rgba(140, 255, 50, 0.22);
}

.eng-hero-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 32px;
    margin-top: clamp(26px, 4.5vh, 46px);
    padding-top: clamp(22px, 4vh, 32px);
    border-top: 1px solid var(--e-border-soft);
    max-width: 1080px;
    animation: eng-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

.eng-hero-desc {
    color: var(--e-muted);
    font-size: clamp(0.98rem, 1.15vw, 1.1rem);
    line-height: 1.65;
    max-width: 420px;
}

.eng-hero-desc strong {
    display: block;
    color: var(--e-text);
    font-weight: 500;
}

.eng-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.eng-hero-corner {
    position: absolute;
    right: var(--e-pad);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--e-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    color: var(--e-dim);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.eng-hero-corner::before {
    content: '';
    width: 1px;
    height: 54px;
    background: linear-gradient(var(--e-accent), transparent);
}

@keyframes eng-rise {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
}

/* =========================================================
   Showcase
   ========================================================= */

.eng-showcase {
    background: var(--e-bg);
}

.eng-app {
    position: relative;
    background: #080b07;
    border: 1px solid var(--e-border);
    padding: 10px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.eng-app:hover {
    border-color: var(--e-border-strong);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.eng-app-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 4px 12px;
    font-family: var(--e-mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    color: var(--e-muted);
}

.eng-app-bar .eng-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--e-accent);
    box-shadow: 0 0 10px rgba(140, 255, 50, 0.7);
}

.eng-app-bar-right {
    margin-left: auto;
    color: var(--e-dim);
    letter-spacing: 0.18em;
}

.eng-app-img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.06);
    filter: saturate(0.95) contrast(1.02);
}

.eng-app-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--e-accent);
    border-style: solid;
    opacity: 0.75;
    pointer-events: none;
}

.eng-app-corner--tl { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.eng-app-corner--tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.eng-app-corner--bl { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.eng-app-corner--br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.eng-app-caption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    font-family: var(--e-mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    color: var(--e-dim);
}

.eng-app-caption span:last-child {
    color: var(--e-muted);
    text-align: right;
}

.eng-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(32px, 5vw, 48px);
    border-top: 1px solid var(--e-border);
}

.eng-spec {
    padding: 24px 24px 0 0;
    border-right: 1px solid var(--e-border-soft);
}

.eng-spec:last-child {
    border-right: 0;
}

.eng-spec strong {
    display: block;
    font-family: var(--e-display);
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--e-text);
}

.eng-spec span {
    display: block;
    margin-top: 6px;
    font-family: var(--e-mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--e-dim);
}

/* =========================================================
   Features
   ========================================================= */

.eng-features {
    background: var(--e-bg-2);
    border-top: 1px solid var(--e-border-soft);
    border-bottom: 1px solid var(--e-border-soft);
}

.eng-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--e-border);
}

.eng-feature {
    position: relative;
    padding: clamp(28px, 3.4vw, 46px) clamp(22px, 2.6vw, 40px) clamp(26px, 3vw, 36px) 0;
    border-right: 1px solid var(--e-border);
}

.eng-feature:last-child {
    border-right: 0;
    padding-right: 0;
}

.eng-feature-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(36px, 5vw, 60px);
}

.eng-feature-icon {
    width: 44px;
    height: 44px;
    color: var(--e-accent);
}

.eng-feature-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.eng-feature-num {
    font-family: var(--e-mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    color: var(--e-dim);
}

.eng-feature h3 {
    font-family: var(--e-display);
    font-size: clamp(1.1rem, 1.45vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.eng-feature p {
    color: var(--e-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 34ch;
}

.eng-feature-list {
    margin-top: 26px;
    border-top: 1px solid var(--e-border-soft);
}

.eng-feature-list li {
    position: relative;
    padding: 10px 0 10px 18px;
    border-bottom: 1px solid var(--e-border-soft);
    font-family: var(--e-mono);
    font-size: 0.68rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--e-dim);
}

.eng-feature-list li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--e-accent);
}

/* =========================================================
   Visual experience
   ========================================================= */

.eng-experience {
    position: relative;
    min-height: clamp(560px, 82vh, 860px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
    background: #040604;
    border-bottom: 1px solid var(--e-border-soft);
}

.eng-flow-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.9;
}

.eng-experience::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 6, 4, 0.94) 0%, rgba(4, 6, 4, 0.7) 45%, rgba(4, 6, 4, 0.18) 100%),
        linear-gradient(0deg, rgba(5, 7, 5, 0.9) 0%, transparent 30%);
    pointer-events: none;
}

.eng-experience-inner {
    position: relative;
    z-index: 2;
    padding-top: clamp(72px, 10vw, 120px);
    padding-bottom: clamp(72px, 10vw, 120px);
}

.eng-experience h2 {
    font-family: var(--e-display);
    font-size: clamp(2.6rem, 6.6vw, 6rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.045em;
    text-transform: uppercase;
    margin: 22px 0 26px;
}

.eng-experience h2 em {
    font-style: normal;
    color: var(--e-accent);
}

.eng-experience p {
    max-width: 480px;
    color: var(--e-muted);
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.7;
}

.eng-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}

.eng-tags span {
    padding: 7px 12px;
    border: 1px solid var(--e-border);
    font-family: var(--e-mono);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--e-muted);
}

.eng-experience-note {
    margin-top: 30px;
    font-family: var(--e-mono);
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    color: var(--e-dim);
}

/* =========================================================
   About
   ========================================================= */

.eng-about {
    background: var(--e-bg-2);
    border-top: 1px solid var(--e-border-soft);
}

.eng-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.82fr);
    gap: clamp(36px, 5.5vw, 80px);
    align-items: start;
}

.eng-about-copy h2 {
    font-family: var(--e-display);
    font-size: clamp(2.3rem, 5.2vw, 4.3rem);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin: 20px 0 26px;
}

.eng-about-copy h2 em {
    font-style: normal;
    color: var(--e-accent);
}

.eng-about-lead {
    color: var(--e-text);
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.65;
    max-width: 54ch;
}

.eng-about-lead strong {
    color: var(--e-accent);
    font-weight: 500;
}

.eng-about-body {
    margin-top: 14px;
    color: var(--e-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 54ch;
}

.eng-about-facts {
    margin: 32px 0 30px;
    border-top: 1px solid var(--e-border);
    max-width: 560px;
}

.eng-about-facts > div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--e-border-soft);
}

.eng-about-facts dt {
    font-family: var(--e-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--e-dim);
}

.eng-about-facts dd {
    color: var(--e-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.eng-about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 560px;
}

.eng-about-link {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid var(--e-border);
    background: rgba(255, 255, 255, 0.015);
    transition: border-color var(--transition), background var(--transition);
}

.eng-about-link:hover {
    border-color: var(--e-accent);
    background: rgba(140, 255, 50, 0.05);
}

.eng-about-link-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: none;
    border: 1px solid var(--e-border);
    border-radius: 50%;
    color: var(--e-accent);
    transition: border-color var(--transition);
}

.eng-about-link:hover .eng-about-link-icon {
    border-color: var(--e-border-strong);
}

.eng-about-link-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.eng-about-link-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.eng-about-link-text small {
    font-family: var(--e-mono);
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--e-dim);
}

.eng-about-link-text strong {
    color: var(--e-text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition);
}

.eng-about-link:hover .eng-about-link-text strong {
    color: var(--e-accent);
}

.eng-about-link-arrow {
    margin-left: auto;
    color: var(--e-muted);
    transition: transform var(--transition), color var(--transition);
}

.eng-about-link:hover .eng-about-link-arrow {
    color: var(--e-accent);
    transform: translate(2px, -2px);
}

.eng-about-media {
    position: relative;
    align-self: center;
    margin: 0;
    border: 1px solid var(--e-border);
    background: #000;
    overflow: hidden;
}

.eng-about-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    filter: saturate(0.92) contrast(1.05);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.eng-about-media:hover img {
    transform: scale(1.025);
}

.eng-about-media::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 7, 5, 0) 52%, rgba(5, 7, 5, 0.9) 100%);
}

.eng-about-media figcaption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 1;
    font-family: var(--e-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--e-muted);
}

.eng-about-media .eng-app-corner--tl { top: 10px; left: 10px; }
.eng-about-media .eng-app-corner--tr { top: 10px; right: 10px; }
.eng-about-media .eng-app-corner--bl { bottom: 10px; left: 10px; }
.eng-about-media .eng-app-corner--br { bottom: 10px; right: 10px; }

@media (max-width: 900px) {
    .eng-about-grid {
        grid-template-columns: 1fr;
    }

    .eng-about-media img {
        aspect-ratio: 16 / 11;
    }
}

@media (max-width: 480px) {
    .eng-about-facts > div {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 12px;
    }

    .eng-about-links {
        flex-direction: column;
    }

    .eng-about-link {
        width: 100%;
    }
}

/* =========================================================
   Download
   ========================================================= */

.eng-download {
    background: var(--e-bg);
}

.eng-platforms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.eng-platform {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: clamp(26px, 3vw, 38px);
    background: var(--e-bg-2);
    border: 1px solid var(--e-border);
    transition: border-color var(--transition), background var(--transition);
}

.eng-platform:hover {
    border-color: var(--e-border-strong);
    background: var(--e-bg-3);
}

.eng-platform-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.eng-platform-icon {
    width: 42px;
    height: 42px;
    color: var(--e-accent);
    flex: none;
}

.eng-platform-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.eng-platform h3 {
    font-family: var(--e-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.eng-platform-sub {
    margin-top: 4px;
    font-family: var(--e-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    color: var(--e-muted);
}

.eng-platform-sub b {
    color: var(--e-accent);
    font-weight: 500;
}

.eng-platform-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-family: var(--e-mono);
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    color: var(--e-dim);
}

.eng-platform-meta span {
    position: relative;
}

.eng-platform-meta span + span::before {
    content: '/';
    margin-right: 14px;
    color: var(--e-border);
}

.eng-platform-note {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--e-border-soft);
    font-size: 0.72rem;
    line-height: 1.6;
    color: var(--e-dim);
}

.eng-download-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--e-border-soft);
}

.eng-download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.eng-checksum {
    font-family: var(--e-mono);
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    color: var(--e-dim);
}

/* =========================================================
   Release log
   ========================================================= */

.eng-release {
    margin-top: 44px;
    padding: 0;
    border: 1px solid var(--e-border);
    background: var(--e-bg-2);
}

.eng-release[hidden],
.eng-release-foot[hidden] {
    display: none;
}

.eng-release:not([hidden]) {
    animation: eng-release-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes eng-release-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.eng-release-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px 28px;
    padding: clamp(20px, 2.6vw, 30px);
    border-bottom: 1px solid var(--e-border-soft);
}

.eng-release-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.eng-release-date {
    font-family: var(--e-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: var(--e-dim);
}

.eng-release-head h3 {
    margin-top: 12px;
    font-family: var(--e-display);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.eng-release-head h3 em {
    font-style: normal;
    color: var(--e-accent);
}

.eng-release-body {
    max-height: 340px;
    overflow-y: auto;
    padding: clamp(20px, 2.6vw, 28px);
    color: var(--e-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
    box-shadow: inset 0 -40px 30px -32px var(--e-bg-2);
}

.eng-release-body:focus-visible {
    outline: 2px solid var(--e-accent);
    outline-offset: -2px;
}

.eng-release-body > :first-child {
    margin-top: 0;
}

.eng-release-body h3 {
    margin: 22px 0 10px;
    font-family: var(--e-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--e-text);
}

.eng-release-body p {
    margin: 0 0 12px;
}

.eng-release-body ul {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.eng-release-body li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 7px;
}

.eng-release-body li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--e-accent);
}

.eng-release-body strong {
    color: var(--e-text);
    font-weight: 500;
}

.eng-release-body em {
    color: var(--e-muted);
}

.eng-release-body a {
    color: var(--e-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.eng-release-body code {
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(140, 255, 50, 0.08);
    color: var(--e-accent);
    font-family: var(--e-mono);
    font-size: 0.9em;
}

.eng-release-body blockquote {
    margin: 0 0 14px;
    padding: 12px 16px;
    border-left: 2px solid var(--e-accent);
    background: rgba(140, 255, 50, 0.05);
}

.eng-release-body blockquote p:last-child {
    margin-bottom: 0;
}

.eng-release-body hr {
    border: 0;
    border-top: 1px solid var(--e-border-soft);
    margin: 18px 0;
}

.eng-release-body img {
    max-width: 100%;
    border: 1px solid var(--e-border);
    margin: 8px 0;
}

.eng-release-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 14px clamp(20px, 2.6vw, 30px);
    border-top: 1px solid var(--e-border-soft);
    font-family: var(--e-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--e-dim);
}

.eng-release-history {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.eng-release-history a {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: var(--e-muted);
    transition: color var(--transition);
}

.eng-release-history a:hover {
    color: var(--e-accent);
}

.eng-release-history a span {
    font-size: 0.58rem;
    color: var(--e-dim);
}

@media (max-width: 768px) {
    .eng-release {
        margin-top: 32px;
    }

    .eng-release-body {
        max-height: 360px;
    }

    .eng-release-head h3 {
        font-size: 1.25rem;
    }
}

/* =========================================================
   Footer
   ========================================================= */

.eng-footer {
    border-top: 1px solid var(--e-border);
    background: var(--e-bg-2);
    padding: clamp(56px, 8vw, 90px) 0 32px;
}

.eng-footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.eng-footer-wordmark {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-family: var(--e-display);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    line-height: 1;
}

.eng-footer-wordmark span {
    font-family: var(--e-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--e-accent);
}

.eng-footer-tagline {
    margin-top: 18px;
    color: var(--e-muted);
    font-size: 0.95rem;
}

.eng-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    justify-content: flex-end;
}

.eng-footer-nav a {
    font-family: var(--e-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--e-muted);
    transition: color var(--transition);
}

.eng-footer-nav a:hover {
    color: var(--e-accent);
}

.eng-footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px 32px;
    margin-top: clamp(44px, 6vw, 72px);
    padding-top: 24px;
    border-top: 1px solid var(--e-border-soft);
    font-size: 0.7rem;
    line-height: 1.7;
    color: var(--e-dim);
}

.eng-footer-bottom a {
    color: var(--e-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.eng-footer-bottom a:hover {
    color: var(--e-accent);
}

.eng-footer-legal {
    max-width: 760px;
}

.eng-footer-site {
    font-family: var(--e-mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* =========================================================
   Reveal
   ========================================================= */

.eng-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--eng-delay, 0ms);
}

.eng-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
    .eng-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .eng-head-copy {
        justify-self: start;
        max-width: 560px;
    }

    .eng-feature {
        padding-right: 24px;
    }

    .eng-footer-top {
        grid-template-columns: 1fr;
    }

    .eng-footer-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .eng-feature-grid {
        grid-template-columns: 1fr;
        border-top: 0;
    }

    .eng-feature {
        border-right: 0;
        border-top: 1px solid var(--e-border);
        padding: 32px 0;
    }

    .eng-feature:first-child {
        border-top: 1px solid var(--e-border);
    }

    .eng-feature-top {
        margin-bottom: 28px;
    }

    .eng-feature p,
    .eng-feature-list {
        max-width: none;
    }

    .eng-platforms {
        grid-template-columns: 1fr;
    }

    .eng-hero-bottom {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .eng-specs {
        grid-template-columns: 1fr;
    }

    .eng-spec {
        padding: 18px 0;
        border-right: 0;
        border-bottom: 1px solid var(--e-border-soft);
    }

    .eng-spec:last-child {
        border-bottom: 0;
    }

    .eng-app-caption {
        flex-direction: column;
        gap: 6px;
    }

    .eng-app-caption span:last-child {
        text-align: left;
    }
}

@media (max-width: 768px) {
    html.engine-page {
        --e-subnav-h: 50px;
        --e-pad: 20px;
    }

    .eng-subnav-brand {
        display: none;
    }

    .eng-subnav-inner {
        gap: 0;
    }

    .eng-subnav-links {
        margin-left: 0;
        gap: 22px;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 2px;
    }

    .eng-subnav-links::-webkit-scrollbar {
        display: none;
    }

    .eng-subnav .eng-btn {
        display: none;
    }

    .eng-hero {
        min-height: auto;
        padding-top: 34px;
        padding-bottom: 44px;
    }

    .eng-hero::after {
        background:
            linear-gradient(180deg, rgba(5, 7, 5, 0.82) 0%, rgba(5, 7, 5, 0.55) 45%, rgba(5, 7, 5, 0.92) 100%),
            linear-gradient(0deg, var(--e-bg) 0%, rgba(5, 7, 5, 0) 40%);
    }

    .eng-hero h1 {
        font-size: clamp(2.7rem, 13.5vw, 4.4rem);
        line-height: 0.9;
        max-width: none;
    }

    .eng-hero-meta {
        font-size: 0.6rem;
        letter-spacing: 0.12em;
        margin-bottom: 48px;
    }

    .eng-hero-meta span:last-child {
        display: none;
    }

    .eng-hero-corner {
        display: none;
    }

    .eng-head h2 {
        font-size: clamp(2.1rem, 10vw, 3.2rem);
    }

    .eng-experience h2 {
        font-size: clamp(2.3rem, 12vw, 3.6rem);
    }

    .eng-experience {
        min-height: 560px;
    }

    .eng-experience::after {
        background:
            linear-gradient(180deg, rgba(4, 6, 4, 0.6) 0%, rgba(4, 6, 4, 0.75) 55%, rgba(5, 7, 5, 0.95) 100%);
    }

    .eng-download-foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .eng-footer-wordmark {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .eng-footer-site {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .eng-subnav-links {
        gap: 16px;
    }

    .eng-subnav-links a {
        font-size: 0.64rem;
        letter-spacing: 0.1em;
    }

    .eng-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .eng-hero-actions .eng-btn {
        width: 100%;
    }

    .eng-btn {
        padding: 15px 18px;
        font-size: 0.7rem;
    }

    .eng-hero-meta {
        margin-bottom: 36px;
    }

    .eng-head-copy {
        gap: 16px;
    }

    .eng-download-links {
        flex-direction: column;
        gap: 14px;
    }

    .eng-platform-meta {
        flex-direction: column;
        gap: 4px;
    }

    .eng-platform-meta span + span::before {
        content: none;
    }

    .eng-footer-bottom {
        flex-direction: column;
    }
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html.engine-page {
        scroll-behavior: auto;
    }

    .eng-hero h1,
    .eng-hero-bottom {
        animation: none;
    }

    .eng-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .eng-app:hover,
    .eng-btn--solid:hover {
        transform: none;
    }
}
