/* ============================================================
   ProfilePulse — Main CSS
   Aesthetic: Dark refined editorial with teal-amber accents
   Fonts: Syne (display) + DM Sans (body)
   ============================================================ */

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

:root {
    --teal:      #2dd4bf;
    --teal-dim:  #0f766e;
    --amber:     #fbbf24;
    --green:     #22c55e;
    --red:       #ef4444;
    --yellow:    #f59e0b;

    --bg:        #080c10;
    --bg-card:   #0d1117;
    --bg-raised: #111820;
    --bg-hover:  #161e28;
    --border:    rgba(255,255,255,0.07);
    --border-md: rgba(255,255,255,0.12);

    --text-1:    #f0f6fc;
    --text-2:    #8b949e;
    --text-3:    #484f58;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-card: 0 0 0 1px var(--border), 0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(45,212,191,0.15);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-1);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Ambient Background ──────────────────────────────────── */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}
.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #0d9488, transparent 70%);
    top: -200px; left: -100px;
    animation: drift1 20s ease-in-out infinite alternate;
}
.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #1e3a5f, transparent 70%);
    bottom: -100px; right: -100px;
    animation: drift2 25s ease-in-out infinite alternate;
}
.orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #78350f, transparent 70%);
    top: 50%; right: 20%;
    animation: drift3 18s ease-in-out infinite alternate;
}
.ambient-bg.subtle .orb { opacity: 0.12; }

.grid-overlay {
    position: absolute; inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(60px,40px) scale(1.1); } }
@keyframes drift2 { from { transform: translate(0,0); } to { transform: translate(-40px,60px); } }
@keyframes drift3 { from { transform: translate(-50%,-50%); } to { transform: translate(-50%,-50%) translate(50px,-30px); } }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
    position: relative; z-index: 10;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 48px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    background: rgba(8,12,16,0.8);
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-body);
    font-weight: 700; font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--text-1);
}
.brand-icon { color: var(--teal); font-size: 1.4rem; }
.nav-tagline { color: var(--text-3); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ── Landing: Hero ───────────────────────────────────────── */
.hero {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 48px 80px;
    min-height: calc(100vh - 80px);
}
.badge-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(45,212,191,0.1);
    border: 1px solid rgba(45,212,191,0.25);
    color: var(--teal);
    font-size: 0.78rem; font-weight: 500;
    padding: 6px 14px; border-radius: 100px;
    margin-bottom: 28px; letter-spacing: 0.04em;
}
.pulse-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--teal);
    animation: pulse-ring 2s ease-in-out infinite;
}
@keyframes pulse-ring {
    0%,100% { box-shadow: 0 0 0 0 rgba(45,212,191,0.5); }
    50%      { box-shadow: 0 0 0 6px rgba(45,212,191,0); }
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    color: var(--text-1);
}
.hero-title em {
    font-style: italic;
    font-weight: 700;
    background: linear-gradient(135deg, var(--teal), var(--amber));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 1.05rem; color: var(--text-2); line-height: 1.7;
    max-width: 480px; margin-bottom: 32px;
}
.feature-chips {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px;
}
.chip {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 0.78rem; padding: 6px 12px; border-radius: 100px;
}
.btn-google-login {
    display: inline-flex; align-items: center; gap: 12px;
    background: #fff; color: #1a1a1a;
    font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
    padding: 14px 24px; border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-google-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.google-icon { width: 20px; height: 20px; }
.cta-block { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cta-note { font-size: 0.78rem; color: var(--text-3); }

/* ── Score Card Preview ──────────────────────────────────── */
.hero-visual { display: flex; justify-content: center; }
.score-card-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-md);
    border-radius: var(--radius-xl);
    padding: 28px;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.score-preview-header {
    display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
}
.preview-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #0d9488, #0369a1);
    flex-shrink: 0;
}
.preview-name { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.preview-cat  { font-size: 0.75rem; color: var(--text-2); margin-top: 2px; }
.preview-score {
    margin-left: auto;
    font-family: var(--font-display); font-size: 2rem; font-weight: 800;
    color: var(--amber);
}
.score-bars { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 0.75rem; color: var(--text-2); }
.bar-row span:first-child { width: 130px; flex-shrink: 0; }
.bar { flex: 1; height: 6px; background: var(--bg-raised); border-radius: 100px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 100px; transition: width 1s ease; }
.bar-pct { width: 35px; text-align: right; }
.preview-alert {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.25);
    color: #fca5a5;
    border-radius: var(--radius-sm);
    padding: 10px 14px; font-size: 0.8rem;
    display: flex; align-items: center; gap: 8px;
}

/* ── How it works ────────────────────────────────────────── */
.how-it-works {
    position: relative; z-index: 2;
    max-width: 1200px; margin: 0 auto; padding: 80px 48px;
    border-top: 1px solid var(--border);
}
.how-it-works h2 {
    font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
    margin-bottom: 48px; color: var(--text-1);
}
.steps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.step { position: relative; }
.step-num {
    font-family: var(--font-display); font-size: 2.5rem; font-weight: 800;
    color: var(--teal-dim); line-height: 1; margin-bottom: 16px;
    opacity: 0.6;
}
.step h3 {
    font-family: var(--font-display); font-size: 1rem; font-weight: 700;
    margin-bottom: 8px; color: var(--text-1);
}
.step p { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    position: relative; z-index: 2;
    text-align: center; padding: 32px 48px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem; color: var(--text-3);
}
.footer a { color: var(--teal); text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding: 48px 24px; }
    .hero-visual { display: none; }
    .steps { grid-template-columns: 1fr 1fr; }
    .nav { padding: 16px 24px; }
}
@media (max-width: 540px) {
    .steps { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
}

/* Login error on landing page */
.login-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    color: #fca5a5;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    max-width: 480px;
}
