/* DataLense — landing page
   Brand: Sharp palette (Deep Navy + Electric Pink)
   Type: Inter (UI) + JetBrains Mono (data) */

:root {
    /* Sharp palette */
    --navy-deep: #0A1A3F;
    --navy-mid: #1A2D5C;
    --navy-light: #1F3266;
    --pink-electric: #FF2E63;
    --pink-soft: #FFB3C8;
    --bone: #F8F7F4;
    --cream: #FAFAF7;
    --line: #E8E5DD;
    --muted: #6B6B66;
    --muted-dark: #B8B5AC;

    /* Layout */
    --max-width: 1100px;
}

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

html, body { height: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--navy-deep);
    color: var(--bone);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Subtle radial accent in bottom-right */
    background-image: radial-gradient(ellipse 800px 600px at 90% 100%, rgba(255, 46, 99, 0.08), transparent 60%);
    background-attachment: fixed;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== Header ===== */
.header {
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--navy-light);
}

.logo-link {
    display: inline-flex;
    color: var(--bone);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.logo-link:hover { opacity: 0.85; }

.logo { display: block; }

.status-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--pink-electric);
    padding: 6px 12px;
    border: 1px solid rgba(255, 46, 99, 0.3);
    border-radius: 100px;
    background: rgba(255, 46, 99, 0.06);
}

/* ===== Main ===== */
.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.hero {
    max-width: 760px;
    text-align: center;
}

.headline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(40px, 6.5vw, 76px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 28px;
    color: var(--bone);
}

.tagline {
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted-dark);
    max-width: 600px;
    margin: 0 auto 48px;
}

.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.btn-primary {
    background: var(--pink-electric);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(255, 46, 99, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
    background: #e62458;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 46, 99, 0.35);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: transparent;
    color: var(--bone);
    border: 1px solid var(--navy-light);
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-secondary:hover {
    border-color: var(--pink-electric);
    background: rgba(255, 46, 99, 0.05);
}

.cta-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--muted-dark);
    opacity: 0.6;
}

.user-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 480px;
    margin: 0 auto;
}

.welcome {
    font-size: 19px;
    color: var(--bone);
    font-weight: 500;
}

.signed-in-status {
    font-size: 14px;
    color: var(--muted-dark);
    line-height: 1.6;
    margin-bottom: 8px;
}

.link-pink {
    color: var(--pink-electric);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 46, 99, 0.3);
    transition: border-color 0.15s ease;
}

.link-pink:hover {
    border-color: var(--pink-electric);
}

#user-name {
    color: var(--pink-electric);
    font-weight: 600;
}

#signed-out-area {
    display: flex;
}

#loading-area .welcome {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.15em;
    color: var(--muted-dark);
    opacity: 0.6;
}

/* ===== Footer ===== */
.footer {
    padding: 28px 0;
    border-top: 1px solid var(--navy-light);
}

.footer-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-mark {
    font-size: 13px;
    color: var(--muted-dark);
}

.footer-divider {
    color: var(--navy-light);
}

.footer-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--muted-dark);
    opacity: 0.6;
}

/* ===== Animated pixel pupils (subtle scan effect) ===== */
@keyframes pulse-pixel {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.logo .pixel-pupil {
    animation: pulse-pixel 3s ease-in-out infinite;
}

.logo .pixel-pupil:nth-of-type(2) { animation-delay: 0.3s; }
.logo .pixel-pupil:nth-of-type(3) { animation-delay: 0.6s; }
.logo .pixel-pupil:nth-of-type(4) { animation-delay: 0.9s; }

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
    .logo .pixel-pupil { animation: none; }
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .header { padding: 20px 0; }
    .main { padding: 48px 0; }
    .tagline { font-size: 15.5px; margin-bottom: 36px; }
    .btn-primary { padding: 14px 32px; }
    .logo { width: 150px; }
    .status-pill { font-size: 9px; padding: 5px 10px; }
}
