/* ========== PARLA — Raycast-inspired single-screen landing ========== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

body {
    background: #0a0a0b;
    color: #f5f5f5;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* ========== AMBIENT + GRAIN ========== */
.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(720px circle at 50% 55%, rgba(202, 170, 58, 0.09), transparent 60%),
        radial-gradient(1000px circle at 20% 20%, rgba(90, 60, 20, 0.08), transparent 70%),
        radial-gradient(900px circle at 80% 85%, rgba(40, 30, 60, 0.08), transparent 70%);
    z-index: 0;
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ========== TOP BAR ========== */
.top-bar {
    position: fixed;
    top: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.icon-btn,
.github-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(245, 245, 245, 0.65);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.icon-btn:hover {
    color: #f5f5f5;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.github-btn {
    gap: 8px;
    padding: 0 14px;
    height: 36px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.005em;
}

.github-btn .arrow {
    opacity: 0.5;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.github-btn:hover {
    color: #f5f5f5;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.github-btn:hover .arrow {
    transform: translate(1px, -1px);
    opacity: 1;
}

/* ========== STAGE ========== */
.stage {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 0 24px;
}

/* ========== PILL (replica of Parla MiniRecorder) ========== */
.pill {
    width: 184px;
    height: 40px;
    background: #000;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 20px 60px -20px rgba(202, 170, 58, 0.25),
        0 12px 32px -12px rgba(0, 0, 0, 0.7);
    animation: pill-float 6s ease-in-out infinite;
}

@keyframes pill-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.pill-btn {
    all: unset;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: default;
    transition: background 0.18s ease;
    flex-shrink: 0;
}

.pill-btn:first-child {
    margin-left: 12px;
    opacity: 0.9;
}

.pill-btn:last-child {
    margin-right: 12px;
}

.power-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
    animation: power-pulse 2.4s ease-in-out infinite;
}

@keyframes power-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.pill-wave {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0 4px;
    height: 28px;
    overflow: hidden;
}

.pill-wave .bar {
    display: block;
    width: 3px;
    height: 4px;
    border-radius: 1.5px;
    background: rgba(255, 255, 255, 0.85);
    transition: height 0.03s linear;
}

/* ========== WORDMARK + TAGLINE ========== */
.wordmark {
    margin: 0;
    font-size: clamp(56px, 10vw, 104px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.95;
    color: #f5f5f5;
    background: linear-gradient(180deg, #f5f5f5 0%, #c5c5c5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.tagline {
    margin: -24px 0 0;
    font-size: clamp(14px, 1.4vw, 17px);
    font-weight: 400;
    letter-spacing: -0.005em;
    color: rgba(245, 245, 245, 0.45);
    text-align: center;
}

/* ========== FOOTER META ========== */
.footer-meta {
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 10;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(245, 245, 245, 0.28);
    text-transform: uppercase;
}

.footer-meta .dot {
    opacity: 0.5;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 520px) {
    .top-bar {
        top: 16px;
        left: 16px;
        right: 16px;
    }

    .stage {
        gap: 36px;
    }

    .tagline {
        margin-top: -16px;
    }

    .footer-meta {
        font-size: 10px;
        gap: 8px;
    }
}

@media (max-height: 520px) {
    .stage {
        gap: 28px;
    }
}
