/* Recursivity product page

   Palette sampled from the app itself, so the page and the product agree:

     ground    #0B0E15   the app's dark theme background
     panel     #1D2136   the icon and feature-graphic field
     lit       #D3E4FF   moonlight blue, what a matched digit turns
     muted     #7C8CA6   the clock and the unmatched half of a date
     text      #E1E2E8   entry body text

   The app's light theme is parchment #EFE3C6 with a maroon #713331 accent;
   this page follows the dark theme, which is the app's default. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ground: #0B0E15;
    --panel: #1D2136;
    --lit-color: #D3E4FF;
    --muted: #7C8CA6;
    --text: #E1E2E8;
    --text-strong: #EDF2FA;
    --lit-glow: rgba(211, 228, 255, 0.45);
    --hairline: rgba(211, 228, 255, 0.12);
    --serif: 'Literata', Georgia, 'Times New Roman', serif;
}

html {
    scroll-behavior: smooth;
    /* The page ground lives on body, so without a background here the canvas
       behind it shows through white when you rubber-band past the top. */
    background-color: var(--ground);
    overscroll-behavior-y: none;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: var(--ground);
    color: var(--text);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

/* Site header */
.site-header {
    padding: 1.75rem 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-strong);
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.brand:hover {
    opacity: 1;
}

.product-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.product-icon {
    width: 32px;
    height: auto;
    display: block;
}

.product-mark {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Hero */
.hero {
    padding: 3rem 0 4rem;
    text-align: center;
}

.hero-mark {
    width: clamp(88px, 13vw, 128px);
    height: auto;
    display: block;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 0 28px rgba(211, 228, 255, 0.28));
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-strong);
}

.hero .subhead {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 34rem;
    margin: 0 auto 2.5rem;
    color: var(--muted);
}

.divider {
    width: 60px;
    height: 2px;
    background: var(--lit-color);
    opacity: 0.4;
    margin: 0 auto 2.5rem;
}

/* Live demo card */
.demo {
    background: rgba(29, 33, 54, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid var(--hairline);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
    padding: 2.5rem 2rem;
    max-width: 30rem;
    margin: 0 auto;
    text-align: left;
}

.demo-label {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.25rem;
    text-align: center;
}

.demo-clock {
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
    font-size: clamp(2.75rem, 11vw, 3.75rem);
    font-weight: 300;
    letter-spacing: -0.015em;
    color: var(--muted);
    text-align: center;
    margin-bottom: 0.35rem;
    transition: opacity 0.4s ease;
}

.demo-clock .lit {
    color: var(--lit-color);
    text-shadow: 0 0 22px var(--lit-glow);
}

.demo-date {
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
    font-size: 0.9375rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-align: center;
    margin-bottom: 1.75rem;
}

.demo-date .lit {
    color: var(--lit-color);
    text-shadow: 0 0 14px var(--lit-glow);
}

.demo-entry {
    border-top: 1px solid var(--hairline);
    padding-top: 1.5rem;
    transition: opacity 0.4s ease;
}

.demo-entry.fading {
    opacity: 0;
}

.demo-ref {
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 1rem;
}

.demo-ref .lit {
    color: var(--lit-color);
    text-shadow: 0 0 16px var(--lit-glow);
}

.demo-text {
    font-family: var(--serif);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 0.9rem;
}

.demo-source {
    font-size: 0.8125rem;
    color: var(--muted);
}

.demo-caption {
    max-width: 30rem;
    margin: 1.25rem auto 0;
    font-size: 0.8125rem;
    color: var(--muted);
    opacity: 0.8;
    text-align: center;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-body {
    max-width: 38rem;
    margin: 0 auto;
    font-size: 1.0625rem;
    color: var(--text);
    opacity: 0.88;
}

.section-body p + p {
    margin-top: 1.25rem;
}

.section-body strong {
    font-weight: 600;
    color: var(--text-strong);
    opacity: 1;
}

h2.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
    color: var(--text-strong);
}

/* Quiet notes */
.notes {
    max-width: 38rem;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
}

.note h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    color: var(--text-strong);
}

.note p {
    font-size: 1.0625rem;
    color: var(--text);
    opacity: 0.85;
}

.note a {
    color: var(--lit-color);
}

/* Screenshots */
.shots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.shot {
    margin: 0;
    max-width: 17rem;
    flex: 0 1 17rem;
}

.shot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    border: 1px solid var(--hairline);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.shot figcaption {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--muted);
    text-align: center;
}

/* Library table */
.section-lede {
    max-width: 38rem;
    margin: -1rem auto 2.5rem;
    text-align: center;
    font-size: 1rem;
    color: var(--muted);
}

.table-scroll {
    overflow-x: auto;
    max-width: 44rem;
    margin: 0 auto;
}

.channels-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.channels-table th,
.channels-table td {
    text-align: left;
    padding: 0.75rem 1rem 0.75rem 0;
    border-bottom: 1px solid rgba(211, 228, 255, 0.08);
    vertical-align: top;
}

.channels-table th {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.channels-table td:first-child {
    font-weight: 500;
    color: var(--text-strong);
    white-space: nowrap;
}

.channels-table .num {
    text-align: right;
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
    color: var(--lit-color);
    padding-right: 1.75rem;
    white-space: nowrap;
}

.channels-table td:last-child {
    color: var(--muted);
}

/* CTA */
.cta {
    text-align: center;
    padding-bottom: 5rem;
}

.cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-strong);
}

.cta p {
    color: var(--muted);
    margin-bottom: 2rem;
}

/* The app's own accent button: moonlight on night blue */
.cta-link {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--lit-color);
    color: var(--ground);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-link:hover {
    background: var(--text-strong);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(211, 228, 255, 0.18);
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem 0 3rem;
    font-size: 0.8125rem;
    color: var(--muted);
    border-top: 1px solid rgba(211, 228, 255, 0.08);
}

footer p + p {
    margin-top: 0.5rem;
}

footer a {
    color: inherit;
}

footer a:hover {
    color: var(--lit-color);
}

/* Background: two slow washes of the icon's night blue, nothing louder */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: float 24s infinite ease-in-out;
}

.shape-1 {
    width: 460px;
    height: 460px;
    background: var(--panel);
    opacity: 0.75;
    top: 4%;
    left: 8%;
}

.shape-2 {
    width: 520px;
    height: 520px;
    background: #141A2B;
    opacity: 0.8;
    bottom: 6%;
    right: 6%;
    animation-delay: 8s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--lit-color);
    opacity: 0.045;
    top: 46%;
    left: 50%;
    margin: -150px 0 0 -150px;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

@media (prefers-reduced-motion: reduce) {
    .shape { animation: none; }
    html { scroll-behavior: auto; }
    .demo-clock, .demo-entry { transition: none; }
}

@media (max-width: 640px) {
    section { padding: 3rem 0; }
    .demo { padding: 2rem 1.25rem; }
    .hero-mark { margin-bottom: 1.5rem; }
    .shots { gap: 2.5rem; }
    .notes { gap: 2.5rem; }
    .channels-table td:first-child { white-space: normal; }
}
