# Twilight Ledger

A calm, premium fintech aesthetic: deep indigo-black canvas, soft lavender-white type, and cinematic landscape photography with frosted glass controls. Quiet, airy and editorial, with ambient abstract illustrations and a single periwinkle accent.

Tags: dark, fintech, banking, glassmorphism, editorial, minimal, cinematic, saas
Inspired by: https://mercury.com/

## How to use (for coding agents)

Use `tailwind.config.js` (theme.extend) and `tokens.css` from this folder. Build UI with the
token classes below rather than default Tailwind colors. Components in `components/` are
self-contained React + Tailwind files and can be copied in as-is.

## Colors
| Token | Value | Role |
| --- | --- | --- |
| `canvas` | #171721 | Primary dark page background |
| `surface` | #1e1e2a | Raised panels, product mockup cards |
| `surface-deep` | #181623 | Alternate section background |
| `surface-light` | #fbfcfd | Light page background on release notes page |
| `ink` | #ededf3 | Primary text on dark |
| `ink-muted` | #c3c3cc | Secondary body text on dark |
| `ink-subtle` | #70707d | Tertiary text, captions |
| `ink-dark` | #272735 | Primary text on light surfaces |
| `ink-dark-muted` | #535461 | Secondary text on light surfaces |
| `accent` | #5266eb | Primary CTA fill, active dot indicators |
| `accent-tint` | rgba(82,102,235,0.1) | Subtle accent background |
| `glass-fill` | rgba(175,178,206,0.2) | Frosted secondary buttons and input shells |
| `hairline` | rgba(175,178,206,0.36) | Dividers and borders on dark |
| `hover-wash` | rgba(156,180,232,0.28) | Nav item hover background |
| `powder-blue` | #cddcff | Light illustration tile backgrounds |

## Typography
| Token | Stack | Usage |
| --- | --- | --- |
| `font-sans` | arcadia, 'arcadia Fallback', ui-sans-serif, system-ui, sans-serif | All UI, body and headlines; variable weights 360–530 |
| `font-display` | arcadiaDisplay, 'arcadiaDisplay Fallback', ui-sans-serif, sans-serif | Large hero and page titles |
| `font-serif` | tiemposHeadline, 'tiemposHeadline Fallback', Georgia, serif | Rare editorial accent headlines |

| Class | Size | Line height | Weight | Tracking |
| --- | --- | --- | --- | --- |
| `text-display` | 57px | 110% | 420 | -0.01em |
| `text-h1` | 42px | 115% | 420 | -0.005em |
| `text-h2` | 32px | 120% | 420 | 0em |
| `text-h3` | 28px | 125% | 420 | 0.005em |
| `text-lead` | 21px | 140% | 400 | 0.01em |
| `text-body` | 16px | 140% | 400 | 0.02em |
| `text-label` | 14px | 135% | 480 | 0.02em |
| `text-caption` | 12px | 135% | 420 | 0.03em |

## Shape & depth
| Class | Value |
| --- | --- |
| `rounded-xs` | 4px |
| `rounded-md` | 12px |
| `rounded-lg` | 32px |
| `rounded-xl` | 40px |
| `rounded-pill` | 9999px |
| `shadow-glow-soft` | 0 0 6px 0 rgba(86,86,118,0.1) |
| `shadow-card-lift` | 0 10px 16px rgba(28,28,35,0.02), 0 6px 10px rgba(28,28,35,0.04), 0 0 3px rgba(28,28,35,0.09) |
| `shadow-float` | 0 0 3px rgba(0,0,0,0.05), 0 8px 12px rgba(0,0,0,0.05), 0 12px 20px rgba(0,0,0,0.05) |
| `bg-hero-scrim` | linear-gradient(rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0) 100%) |
| `bg-edge-fade-x` | linear-gradient(90deg, rgba(0,0,0,0) 0%, #000 15%, #000 85%, rgba(0,0,0,0) 100%) |
| `bg-edge-fade-y` | linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,0) 10%, #000 40%) |
| `bg-quote-scrim` | linear-gradient(270deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.02) 40%, rgba(0,0,0,0.5) 100%) |

## Motion
| Token | Kind | Duration | Easing | Notes |
| --- | --- | --- | --- | --- |
| `hover-wash` | transition | 300ms | cubic-bezier(0, 0, 0.2, 1) | Background/color fade on nav links and buttons. |
| `rise-in` | animation | 670ms | linear | Scroll-into-view entrance: content rises 50px while fading in, 150ms delay. |
| `logo-scroll` | animation | 45000ms | linear | Slow infinite marquee of customer logos with edge-fade mask. |
| `blur-swap` | animation | 500ms | linear | Crossfade between slides/assets with slight blur-out. |
| `panel-slide` | transition | 600ms | cubic-bezier(0.76, 0, 0.24, 1) | Product mockup panel slides horizontally into place. |
| `progress-fill` | transition | 300ms | cubic-bezier(0.4, 0, 0.2, 1) | Carousel progress bar clip-path fills. |

## Components
- **Light Release Notes Header** (`components/release-notes-header.tsx`, changelog) — Light #fbfcfd page with large dark display title 'Release Notes', muted subline and glass email subscribe pill plus 'View demo' button; contrasts with the dark home theme. Props: title, subtitle, placeholder, subscribeLabel, demoLabel, brand, and onSubscribe(email). Renders standalone on a light #fbfcfd background with nav, title, and glass subscribe pill.
- **Cinematic Landscape Hero** (`components/cinematic-photo-hero.tsx`, hero) — Full-bleed 1440×900 misty-mountain image/video with top dark scrim and bottom edge fade, centered display headline, lead, and a frosted email capture pill with a primary button plus a glass secondary button. A glass disclaimer bar sits at the bottom. Props: headline, lead, imageSrc (background photo, defaults to a stock mountain image), brand, disclaimer. Renders standalone; the background uses KenBurns in place of video, with the scrim and bottom fade layered over it.
- **Frosted Transparent Header** (`components/frosted-nav-bar.tsx`, header) — Transparent overlay header with wordmark left, centered chevron dropdown links, and right-aligned text link, glass outlined pill and solid periwinkle pill. Inverts to dark text on the light release page. Place at the top of a hero with a photo behind it; the header is absolutely positioned and transparent. Props: brand, items (label + optional menu), loginLabel, demoLabel, ctaLabel, and light to switch to dark text for light pages.
- **Glass Email Capture Pill** (`components/email-capture-pill.tsx`, form) — Pill-shaped frosted input (blur 20px) with placeholder text and embedded periwinkle submit button, paired with a separate glass secondary pill button. Props: placeholder, submitLabel, secondaryLabel, onSubmit(email). Renders standalone on a light surface; the input pill and secondary pill both use 20px backdrop blur.
- **Accordion Feature List with Product Mock** (`components/tabbed-feature-list.tsx`, features) — Left column headline above a hairline-separated list: the active item has a glowing blue dot, bold title and expanded description, others are muted single lines; right side shows a floating dark app-window mockup of an accounts list with edge-faded cropping and a cursor. Props: heading, items (title, body, note, rows), ctaLabel, ctaHref. Click a list item to expand it and swap the mock account panel with a blur crossfade.
- **Dark Glass Account Panel Mockup** (`components/app-window-mock.tsx`, media) — Code-drawn banking UI: rounded 12px dark panel with account rows (round emblem icons, balances with dimmed cents), '+' and menu circular buttons, and footer notification strip with accent toggle pill. Sits on a blurred larger frosted slab. Props: title, accounts (name, dollars, cents), moreCount, notice, actionLabel. Renders standalone on a canvas background; the panel slides in from the right over 600ms and a cursor icon pulses a click on the action link.
- **Faded Logo Marquee** (`components/logo-marquee.tsx`, marquee) — Single row of white monochrome customer logos beneath a centered three-line headline, edges dissolving via horizontal mask. Pass `headline` (array of lines) and `logos` (name + geometric mark type) as props; both have defaults. The row scrolls continuously and fades at both edges via a CSS mask.
- **Photo Testimonial Carousel** (`components/photo-quote-carousel.tsx`, testimonial) — Wide 2:1 rounded photo card with portrait on right, left-side dark gradient scrim holding a tag chip, quote in 21px type and name/title; three segmented line progress indicators below. Pass `slides` (tag, quote, name, role, image, optional position) and `interval` in ms. It auto-advances, and the segmented bars are clickable and fill for the active slide.
- **Ambient Illustration Feature Split** (`components/ambient-art-feature-split.tsx`, features) — Two-column feature row alternating sides: tall 3:4 rounded abstract illustration (light beam over horizon on slate, or concentric rings on cream paper) opposite a headline, large gap, and bottom-anchored accordion list with hairline top border. Props: headline, items (title/body accordion entries), imageOnRight (flip sides). Click a list item to expand it; the illustration is pure CSS and the columns rise in on scroll.
- **Paper Orbit Illustration Card** (`components/cream-orbit-illustration.tsx`, animated-graphic) — Cream grainy 3:4 card with blurred concentric grey rings and thin-line globe with dots, reads as soft tactile paper. Props: title, cardLabel, heading, body, linkLabel, others (string[]). Renders standalone; globe rotation and ring pulse are CSS and pause under reduced motion.
- **Two-Column Feature Media Grid** (`components/feature-media-grid.tsx`, card) — Headline under a hairline rule, then 2×2 grid of 3:2 rounded media tiles (glass rings, powder-blue UI snippets, chat dots) with title and muted description below; play buttons overlay video tiles. Pass `heading` and a `tiles` array of {title, body, kind} where kind is rings, flow, form or chat. Light UI tiles show a play/pause button that toggles a 500ms blur crossfade.
- **Glass Circular Play Button** (`components/glass-circle-button.tsx`, floating-button) — Small translucent circular button with play triangle placed at the corner of media tiles. Renders a translucent circular play/pause button over a small sample tile. Props: label (aria-label when paused), defaultPlaying, and onToggle(playing) callback; clicking toggles the icon and hover brightens the glass.
- **Periwinkle and Glass Pill Buttons** (`components/pill-button-set.tsx`, button) — Solid #5266eb pill with white text, glass outlined pill with translucent fill, and underlined text link; 16px medium label. Props: brand, items (label + optional menu chevron), loginLabel, secondaryLabel, primaryLabel. Renders a frosted nav bar with a periwinkle pill, glass pill and hover-wash links; collapses to a menu button on mobile.
- **Dark Tag Chip** (`components/quote-tag-chip.tsx`, badge) — Small 4px-radius near-black chip with white label overlaid on photography, used to mark customer category. Props: label (chip text), quote, name, role, imageSrc. The chip is a 4px-radius near-black label positioned over the photo; renders standalone with defaults.
- **Footnote Disclaimer Block** (`components/legal-footnotes.tsx`, footer) — Hairline rule then two-column layout: small label left, right a numbered small-type list of disclaimers with underlined inline links, on dark canvas. Props: label (left heading) and intro (ReactNode-like override for the opening paragraph). Renders standalone on a bg-canvas; links brighten on hover via the hover-wash motion tokens.
- **Glass Disclaimer Banner** (`components/disclaimer-glass-bar.tsx`, toast) — Dark translucent rounded bar pinned to the hero bottom containing small centered regulatory text. Props: text (disclaimer copy), hideOnScroll (slides the bar down and fades it after scrolling 80px), imageSrc (hero backdrop photo). Renders standalone with no props.
