/* ============================================================
   FORK LANDING — hero (top section + prompt stage)
   Loaded via <link rel="stylesheet" href="/static/landing/hero.css">
   Contains: .l-hero, .l-hero-bg/blob/grid, .l-hero-top, .l-eyebrow,
   .l-hero-title/sub/actions, .l-stage, .l-stage-chat, .l-stage-device,
   .l-stage-body, .l-stage-prompt, .l-stage-skeleton.
   ============================================================ */

/* ═══════════════════════════════════════════════════
   HERO — the prompt→app experience front-and-center
   ═══════════════════════════════════════════════════ */
.l-hero {
    position: relative;
    padding: clamp(70px, 9vh, 120px) clamp(18px, 4vw, 48px) clamp(70px, 10vh, 120px);
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(30px, 5vh, 60px);
}

.l-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.l-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
}
.l-hero-blob-1 {
    width: 60vw; height: 60vw;
    max-width: 780px; max-height: 780px;
    top: -20vw; right: -10vw;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%);
    opacity: 0.45;
    animation: l-float 22s ease-in-out infinite;
}
.l-hero-blob-2 {
    width: 50vw; height: 50vw;
    max-width: 660px; max-height: 660px;
    bottom: -15vw; left: -10vw;
    background: radial-gradient(circle, color-mix(in srgb, #5856d6 35%, transparent), transparent 70%);
    opacity: 0.35;
    animation: l-float 28s ease-in-out infinite reverse;
}

.l-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--l-border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--l-border) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
}

@keyframes l-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(40px, -30px) rotate(2deg); }
}

.l-hero-top {
    position: relative;
    z-index: 3;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 12px;
}

.l-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--l-border);
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--l-dim);
    background: color-mix(in srgb, var(--bg-body) 70%, transparent);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    animation: l-fade-up 0.9s 0.1s both;
}

.l-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: l-pulse 2s infinite;
}

.l-hero-title {
    position: relative;
    z-index: 1;
    margin: 28px auto 0;
    font-size: clamp(44px, 8vw, 112px);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.035em;
    max-width: 14ch;
    animation: l-fade-up 1s 0.2s both;
}

.l-hero-title .serif {
    font-weight: 400;
    letter-spacing: -0.02em;
}

.l-hero-sub {
    position: relative;
    z-index: 1;
    margin: 32px auto 0;
    max-width: 58ch;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.6;
    color: var(--l-dim);
    animation: l-fade-up 1s 0.35s both;
}

.l-hero-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    animation: l-fade-up 1s 0.5s both;
}

@keyframes l-fade-up {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   HERO STAGE — prompt card (left) → device card (right)
   ═══════════════════════════════════════════════════ */
.l-stage {
    position: relative;
    z-index: 2;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0 12px;
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(460px, 1.35fr);
    gap: 26px;
    align-items: stretch;
    animation: l-fade-up 1s 0.55s both;
}

@media (max-width: 920px) {
    .l-stage { grid-template-columns: 1fr; gap: 18px; }
}

/* Shared card style */
.l-stage-chat,
.l-stage-device {
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--l-shadow-strong);
    display: flex;
    flex-direction: column;
    height: 480px;
    min-height: 0;
}

@media (max-width: 920px) {
    .l-stage-chat, .l-stage-device { height: 380px; }
}

/* Shared "window" header */
.l-stage-head,
.l-stage-device-head {
    padding: 13px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--l-border);
    font-size: 11px;
    color: var(--l-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    flex-shrink: 0;
}
.l-stage-head-title { color: var(--l-dim); }
.l-stage-head-spacer { flex: 1; }
.l-stage-head-ping {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #30d158;
    box-shadow: 0 0 10px #30d158;
    animation: l-ping 1.6s ease-out infinite;
}
@keyframes l-ping {
    0%   { transform: scale(0.85); opacity: 1; }
    70%  { transform: scale(1.4);  opacity: 0.5; }
    100% { transform: scale(1.4);  opacity: 1; }
}

/* Chat body — explicit left alignment (overrides hero's text-align: center) */
.l-stage-body {
    padding: 26px 28px;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
}
.l-stage-body > * { width: 100%; }

.l-stage-you {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--l-muted);
    margin-bottom: 10px;
}

.l-stage-prompt {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 18px;
    line-height: 1.55;
    color: var(--l-fg);
    min-height: 3.3em;
    word-break: break-word;
    font-weight: 500;
}

.l-stage-caret {
    display: inline-block;
    width: 10px;
    height: 1.1em;
    vertical-align: -2px;
    background: #0a84ff;
    margin-left: 2px;
    animation: l-cursor-blink 0.85s step-end infinite;
    box-shadow: 0 0 10px rgba(10, 132, 255, 0.5);
}

.l-stage-status {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--l-muted);
    font-weight: 600;
}
.l-stage-status.active { color: var(--accent); }

.l-stage-spinner {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid var(--l-border);
    border-top-color: var(--accent);
    animation: l-spin 0.8s linear infinite;
    flex-shrink: 0;
}

.l-stage-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
}

.l-stage-chip {
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid var(--l-border);
    background: var(--bg-body);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--l-dim);
    letter-spacing: 0.01em;
    transition: all 0.2s;
}
.l-stage-chip:hover {
    color: var(--l-fg);
    border-color: var(--accent);
}

/* Device (right side) */
.l-stage-device-url {
    flex: 1;
    padding: 6px 16px;
    background: var(--bg-body);
    border: 1px solid var(--l-border);
    border-radius: 999px;
    font-family: ui-monospace, monospace;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--l-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
}

.l-stage-device-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    background: var(--l-surface);
    overflow: hidden;
}

/* The widget mount fills the entire device body — no card-in-card,
   the macOS window IS the widget surface. */
.l-stage-device-body [data-stage-mount] {
    position: absolute;
    inset: 0;
    background: var(--l-surface);
    overflow: hidden;
}

.l-stage-skeleton {
    position: absolute;
    inset: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    opacity: 1;
    transition: opacity 0.4s;
}
.l-stage-skeleton:not(.visible) { opacity: 0; }
.l-stage-skeleton.visible { opacity: 1; }

.l-stage-skeleton .sk {
    background: linear-gradient(90deg, var(--l-border) 0%, var(--bg-tertiary) 50%, var(--l-border) 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: l-shimmer 1.8s infinite;
}

