# Webflow MCP Import Prompt: NIGHTLINE (nightline)

Import the **NIGHTLINE** (Night Train Travel) landing page template from OpenLandingPage into the user's active Webflow site using the official **Webflow MCP** tools.

- **Live Reference:** https://www.openlanding.page/templates/nightline
- **Structured Webflow Manifest (JSON):** https://www.openlanding.page/copy/nightline-webflow.json
- **Standalone HTML Export (DOM & CSS source of truth):** https://www.openlanding.page/downloads/nightline.html

## 0. Retrieve the Template Data (OpenLanding MCP or Direct Fetch)

1. **If the `openlanding` MCP server is connected in your environment:**
   - Call `get_webflow_manifest({ slug: "nightline" })` to load the structured token, asset, and section manifest.
   - As you build each section below, call `get_webflow_section({ slug: "nightline", sectionId: "section-1" })` (and so on) to pull that section's scoped CSS and custom-code blocks one section at a time.
2. **If only the official `webflow` MCP server is connected:**
   - Fetch `https://www.openlanding.page/copy/nightline-webflow.json` for the structured JSON manifest and use the token and section specifications embedded below.
   - Always call `webflow_guide_tool` once at the start of the session before calling other Webflow MCP tools.

---

## 1. Webflow Variables (`data_variable_tool`)

Create or select a Variable Collection named **`NIGHTLINE Tokens`**, then create these native Webflow variables so the user can restyle colors, fonts, and spacing globally in the Webflow Designer:

### Color Variables (`create_color_variable`)
| Variable Name | CSS Token | Value | Mode |
|---|---|---|---|
| `Color / Nl Ink` | `--color-nl-ink` | `#081423` | `static_value` |
| `Color / Nl Deep` | `--color-nl-deep` | `#0D2238` | `static_value` |
| `Color / Nl Paper` | `--color-nl-paper` | `#F4E8C1` | `static_value` |
| `Color / Nl Amber` | `--color-nl-amber` | `#F4B65E` | `static_value` |
| `Color / Nl Mist` | `--color-nl-mist` | `#A7B4C7` | `static_value` |
| `Color / Nl Rose` | `--color-nl-rose` | `#C97972` | `static_value` |

### Font Family Variables (`create_font_family_variable`)
| Variable Name | CSS Token | Primary Family | Source |
|---|---|---|---|
| `Font / Nl Display` | `--font-nl-display` | `Instrument Serif` | Google Font: `Instrument Serif` |
| `Font / Nl Body` | `--font-nl-body` | `DM Sans` | Google Font: `DM Sans` |
| `Font / Nl Mono` | `--font-nl-mono` | `IBM Plex Mono` | Google Font: `IBM Plex Mono` |
| `Font / DM Sans` | `--font-dm-sans` | `DM Sans` | Google Font: `DM Sans` |
| `Font / IBM Plex Mono` | `--font-ibm-plex-mono` | `IBM Plex Mono` | Google Font: `IBM Plex Mono` |
| `Font / Instrument Serif` | `--font-instrument-serif` | `Instrument Serif` | Google Font: `Instrument Serif` |

### Size Variables (`create_size_variable`)
| Variable Name | CSS Token | Value | Mode |
|---|---|---|---|
| `Size / Lift` | `--lift` | `-8px` | `static_value` |
| `Size / Delay` | `--delay` | `calc(var(--i, 0) * var(--nli-stagger))` | `custom_value` |

---

## 2. Fonts & Site Assets (`data_fonts_tool` & `data_assets_tool`)

1. **Fonts:** Load the Google Fonts listed above in the page/site `<head>` (or upload custom `.woff2` files via `data_fonts_tool` > `create_font`) and bind the font family variables to your base `Body`, heading, and mono classes.
2. **Images & SVGs:** Create an asset folder named `NIGHTLINE` with `data_assets_tool` > `create_asset_folder`, upload the template's media assets via `create_asset`, and attach them to native Webflow `Image` elements so the user can double-click any image on the canvas to swap it:
- `nightline.webp` (image/webp) — https://www.openlanding.page/gallery/nightline.webp (Gallery preview capture)
- `cabin-berth-1600.avif` (image/avif) — https://www.openlanding.page/templates/nightline/cabin-berth-1600.avif (Template media asset)
- `cabin-berth-1600.webp` (image/webp) — https://www.openlanding.page/templates/nightline/cabin-berth-1600.webp (Template media asset)
- `cabin-berth-800.avif` (image/avif) — https://www.openlanding.page/templates/nightline/cabin-berth-800.avif (Template media asset)
- `cabin-berth-800.webp` (image/webp) — https://www.openlanding.page/templates/nightline/cabin-berth-800.webp (Template media asset)
- `cabin-couchette-1600.avif` (image/avif) — https://www.openlanding.page/templates/nightline/cabin-couchette-1600.avif (Template media asset)
- `cabin-couchette-1600.webp` (image/webp) — https://www.openlanding.page/templates/nightline/cabin-couchette-1600.webp (Template media asset)
- `cabin-couchette-800.avif` (image/avif) — https://www.openlanding.page/templates/nightline/cabin-couchette-800.avif (Template media asset)
- `cabin-couchette-800.webp` (image/webp) — https://www.openlanding.page/templates/nightline/cabin-couchette-800.webp (Template media asset)
- `cabin-sleeper-1600.avif` (image/avif) — https://www.openlanding.page/templates/nightline/cabin-sleeper-1600.avif (Template media asset)
- `cabin-sleeper-1600.webp` (image/webp) — https://www.openlanding.page/templates/nightline/cabin-sleeper-1600.webp (Template media asset)
- `cabin-sleeper-800.avif` (image/avif) — https://www.openlanding.page/templates/nightline/cabin-sleeper-800.avif (Template media asset)
- `cabin-sleeper-800.webp` (image/webp) — https://www.openlanding.page/templates/nightline/cabin-sleeper-800.webp (Template media asset)
- `dawn-platform-1600.avif` (image/avif) — https://www.openlanding.page/templates/nightline/dawn-platform-1600.avif (Template media asset)
- `dawn-platform-1600.webp` (image/webp) — https://www.openlanding.page/templates/nightline/dawn-platform-1600.webp (Template media asset)
- `dawn-platform-800.avif` (image/avif) — https://www.openlanding.page/templates/nightline/dawn-platform-800.avif (Template media asset)
- `dawn-platform-800.webp` (image/webp) — https://www.openlanding.page/templates/nightline/dawn-platform-800.webp (Template media asset)
- `footer-night-1600.avif` (image/avif) — https://www.openlanding.page/templates/nightline/footer-night-1600.avif (Template media asset)
- `footer-night-1600.webp` (image/webp) — https://www.openlanding.page/templates/nightline/footer-night-1600.webp (Template media asset)
- `footer-night-800.avif` (image/avif) — https://www.openlanding.page/templates/nightline/footer-night-800.avif (Template media asset)
- `footer-night-800.webp` (image/webp) — https://www.openlanding.page/templates/nightline/footer-night-800.webp (Template media asset)
- `midnight-service-1600.avif` (image/avif) — https://www.openlanding.page/templates/nightline/midnight-service-1600.avif (Template media asset)
- `midnight-service-1600.webp` (image/webp) — https://www.openlanding.page/templates/nightline/midnight-service-1600.webp (Template media asset)
- `midnight-service-800.avif` (image/avif) — https://www.openlanding.page/templates/nightline/midnight-service-800.avif (Template media asset)
- `midnight-service-800.webp` (image/webp) — https://www.openlanding.page/templates/nightline/midnight-service-800.webp (Template media asset)
- `og-base-1600.avif` (image/avif) — https://www.openlanding.page/templates/nightline/og-base-1600.avif (Template media asset)
- `og-base-1600.webp` (image/webp) — https://www.openlanding.page/templates/nightline/og-base-1600.webp (Template media asset)
- `og-base-800.avif` (image/avif) — https://www.openlanding.page/templates/nightline/og-base-800.avif (Template media asset)
- `og-base-800.webp` (image/webp) — https://www.openlanding.page/templates/nightline/og-base-800.webp (Template media asset)
- `preview.svg` (image/svg+xml) — https://www.openlanding.page/templates/nightline/preview.svg (Template media asset)
- `station-lights-1600.avif` (image/avif) — https://www.openlanding.page/templates/nightline/station-lights-1600.avif (Template media asset)
- `station-lights-1600.webp` (image/webp) — https://www.openlanding.page/templates/nightline/station-lights-1600.webp (Template media asset)
- `station-lights-800.avif` (image/avif) — https://www.openlanding.page/templates/nightline/station-lights-800.avif (Template media asset)
- `station-lights-800.webp` (image/webp) — https://www.openlanding.page/templates/nightline/station-lights-800.webp (Template media asset)
- `window-hero-1600.avif` (image/avif) — https://www.openlanding.page/templates/nightline/window-hero-1600.avif (Template media asset)
- `window-hero-1600.webp` (image/webp) — https://www.openlanding.page/templates/nightline/window-hero-1600.webp (Template media asset)
- `window-hero-800.avif` (image/avif) — https://www.openlanding.page/templates/nightline/window-hero-800.avif (Template media asset)
- `window-hero-800.webp` (image/webp) — https://www.openlanding.page/templates/nightline/window-hero-800.webp (Template media asset)

---

## 3. Section-by-Section Build Plan (`data_whtml_builder`, `data_element_builder`, `data_style_tool`)

Build all text, headings, buttons, links, cards, and forms as **native editable Webflow elements** styled with reusable classes via `data_style_tool` (including `main`, `medium`, `small`, and `tiny` breakpoints plus `hover` and `focus-visible` pseudo-states). Only place WebGL/Three.js canvases, procedural shaders, or pinned scroll-scrub tracks inside scoped `HtmlEmbed` islands (`hybrid-embed`).

1. **Main Landing Page** (`section-1`, mode: `hybrid-embed`): Build a Next.js 16 App Router landing page for NIGHTLINE, a fictional European sleeper-train booking brand. The whole site is a train window at night: a raw WebGL2 full-screen fragment shader renders rain, condensation, deep-blue glass, and
   - *Custom-code island note:* Uses custom motion or 3D runtime dependencies alongside native Webflow layout elements.

---

## 4. Native Webflow IX3 Interactions (`data_interactions_tool`)

- Recreate section entrance reveals (fade-in, slide-up, staggered card entrances) and simple click/hover toggles with `data_interactions_tool` > `create_interaction`.
- Always animate opacity under `wf:transform` (e.g. `{"wf:transform": {"opacity": ["0%", "100%"]}}`), never `wf:style`.
- Include `conditionalPlayback: [{ type: "prefers-reduced-motion", behavior: "skip-to-end" }]` on every entrance interaction.

---

## 5. Custom-Code Islands & Page Scripts (`data_scripts_tool` & `HtmlEmbed`)

Keep every custom-code block under Webflow's 50,000-character limit (pre-chunked at 45000 chars in the manifest). Apply head styles and footer runtime bridges via `data_scripts_tool` > `set_page_freeform_code`:

- **NIGHTLINE Scoped Styles** (`nightline-styles-1`, placement: `head`, 21491 / 45000 chars): Authored custom CSS variables, pseudo-elements, and keyframe rules that supplement native Webflow styles.
