/* The landing page only. Shared pieces (reset, wordmark, language and theme pill) are in shared/base.css. */
html {
    scroll-behavior: smooth;
}
/* The page glows like a lit room: a soft radial gradient instead of the flat ground */
body {
    background: radial-gradient(
        circle at 50% 45%,
        var(--bg-sun) 0%,
        var(--bg) 55%,
        var(--bg-shadow) 100%
    );
    background-color: var(--bg-edge);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 12px);
    transition: background 0.4s ease;
}

/* Top Navigation Bar */
header {
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
    padding: 20px 28px 8px 28px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 10;
    flex-shrink: 0;
}

/* Hero */
main {
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.hero-copy {
    margin-bottom: 6px;
    z-index: 5;
}
/* The wordmark at display size; its face comes from .wordmark in base.css */
h1.brand-title {
    font-size: clamp(2.4rem, 6.5vw, 4.2rem);
    margin-bottom: 10px;
}
p.slogan {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    color: var(--muted);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.35;
}
/* "coming soon" (the sign-up) and the way into the designer, side by side */
.hero-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.hero-pill {
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    font-weight: 500;
    font-family: var(--font-mono);
    background: transparent;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-pill:hover {
    opacity: 1;
    color: var(--text);
    border-color: var(--timber);
    transform: translateY(-1px);
}
.hero-pill svg.pill-icon {
    width: 1.15em;
    height: 0.86em;
    display: inline-block;
    vertical-align: -0.05em;
    stroke: currentColor;
    opacity: 0.85;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.hero-pill:hover svg.pill-icon {
    opacity: 1;
    transform: translateY(-0.5px);
}

/* 3D Canvas Container */
.viewer-wrap {
    width: 100%;
    max-width: 500px;
    height: clamp(280px, calc(100dvh - 250px), 440px);
    position: relative;
    margin: 4px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
}
#lamp-canvas {
    width: 100%;
    height: 100%;
    cursor: grab;
    outline: none;
    touch-action: pan-y;
}
#lamp-canvas:active {
    cursor: grabbing;
}
/* The still picture a browser gets that cannot draw the scene (app.js) */
.lamp-still {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.drag-hint {
    font-size: var(--fs-note);
    letter-spacing: 0.06em;
    color: var(--text-faint);
    font-family: var(--font-serif-text);
    text-transform: lowercase;
    margin-top: 4px;
    user-select: none;
    pointer-events: none;
    transition: opacity 0.35s ease;
    flex-shrink: 0;
    padding-bottom: 6px;
}
.viewer-wrap.interacting + .drag-hint {
    opacity: 0;
}

/* Footer */
footer {
    max-width: 1080px;
    margin: 12px auto 0 auto;
    width: 100%;
    padding: 16px 24px 20px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--fs-note);
    font-family: var(--font-serif-text);
    color: var(--text-faint);
    z-index: 10;
    flex-shrink: 0;
}
/* Opening Notification Dialog (Fixed Top-Layer Modal) */
dialog:not([open]) {
    display: none !important;
}
.notify-dialog {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--panel);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    color: var(--text);
    padding: 30px 26px 24px 26px;
    max-width: 400px;
    width: calc(100vw - 36px);
    margin: auto;
    box-shadow: var(--shadow-elevated);
    outline: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}
.notify-dialog::backdrop {
    background: var(--overlay);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.notify-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.notify-close {
    position: absolute;
    top: -16px;
    right: -12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    font-size: var(--fs-xs);
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.notify-close:hover {
    color: var(--text);
    border-color: var(--muted);
    transform: scale(1.05);
}
.notify-badge {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    font-weight: 600;
    font-family: var(--font-mono);
    margin-bottom: 8px;
    display: inline-block;
}
.notify-title {
    font-size: var(--fs-lg);
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    color: var(--text);
}
.notify-subtitle {
    font-size: var(--fs-md);
    font-family: var(--font-serif-text);
    color: var(--muted);
    line-height: 1.45;
    margin-bottom: 20px;
    max-width: 320px;
}
.notify-form {
    width: 100%;
    max-width: 330px;
}
.notify-turnstile {
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
    width: 100%;
}
.notify-turnstile:has(iframe:not([style*="display: none"])) {
    margin-top: 10px;
}
.notify-form .form-error {
    margin-top: 8px;
    text-align: center;
}
.notify-card .form-success {
    width: 100%;
    max-width: 330px;
}

@media (max-width: 600px) {
    header {
        padding: 16px 20px 0 20px;
    }
    .hero-copy {
        margin-bottom: 2px;
    }
    .viewer-wrap {
        height: clamp(250px, calc(100dvh - 240px), 390px);
    }
    footer {
        padding: 12px 20px env(safe-area-inset-bottom, 16px) 20px;
        margin-top: 8px;
    }
}

/* Large Desktop Displays */
@media (min-width: 1200px) and (min-height: 750px) {
    header, main, footer {
        max-width: 1320px;
    }
    h1.brand-title {
        font-size: clamp(2.8rem, 4vw, 4.6rem);
        margin-bottom: 12px;
    }
    p.slogan {
        font-size: clamp(1.25rem, 1.4vw, 1.6rem);
    }
    .viewer-wrap {
        max-width: 620px;
        height: clamp(380px, calc(100dvh - 270px), 560px);
        margin: 8px 0 0 0;
    }
    .drag-hint {
        margin-top: 6px;
    }
}

/* Ultrawide & Large Screens */
@media (min-width: 1600px) and (min-height: 850px) {
    header, main, footer {
        max-width: 1600px;
    }
    header {
        padding: 28px 40px 12px 40px;
    }
    footer {
        padding: 20px 40px 24px 40px;
    }
    h1.brand-title {
        font-size: clamp(3.4rem, 4.5vw, 5.4rem);
        margin-bottom: 16px;
    }
    p.slogan {
        font-size: clamp(1.35rem, 1.6vw, 1.8rem);
    }
    .hero-actions {
        margin-top: 18px;
    }
    .hero-pill {
        letter-spacing: 0.18em;
    }
    .viewer-wrap {
        max-width: 760px;
        height: clamp(480px, calc(100dvh - 300px), 680px);
        margin: 12px 0 0 0;
    }
    .drag-hint {
        margin-top: 8px;
    }
}