@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=DM+Serif+Display&family=Sora:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700;800&family=Lora:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Source+Serif+Pro:wght@400;600;700&family=Merriweather:wght@400;700&display=swap');

:root {
    --bg-primary: #fafafa;
    --bg-secondary: #f4f4f5;
    --bg-card: #ffffff;
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;
    --accent-primary: #2563eb;
    --accent-gradient: linear-gradient(135deg, #2563eb, #3b82f6);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 8px;
    --shadow-card: 0 10px 40px rgba(0,0,0,0.2);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 780px; }

/* ═══════════════ HEADER ═══════════════ */
.header {
    padding: 24px 0;
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 100;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav { display: flex; gap: 40px; align-items: center; }

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav a:hover { color: var(--text-primary); }
.nav a:hover::after { width: 100%; }

/* ═══════════════ HERO ═══════════════ */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: var(--accent-gradient);
    filter: blur(150px);
    opacity: 0.15;
    pointer-events: none;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 600;
    margin-bottom: 24px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero .tagline {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ═══════════════ POSTS GRID ═══════════════ */
.posts-section { padding: 40px 0 100px; }

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 48px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: rgba(255,255,255,0.1);
}

.post-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover img { transform: scale(1.05); }

.post-card-content { padding: 32px; flex: 1; display: flex; flex-direction: column; }

.post-card .category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.post-card h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.post-card h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.post-card h2 a:hover { color: var(--accent-primary); }

.post-card .excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.7;
    flex: 1;
}

.post-card .meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ═══════════════ SINGLE POST ═══════════════ */
.post-header {
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
}

.post-header .category {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    margin-bottom: 24px;
    font-weight: 600;
}

.post-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 600;
    max-width: 900px;
    margin: 0 auto 28px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.post-header .meta {
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.post-header .meta span { display: flex; align-items: center; gap: 6px; }

.post-featured-image {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 32px;
}

.post-featured-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

/* ═══════════════ POST CONTENT ═══════════════ */
.post-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

.post-content h2 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    margin: 56px 0 24px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.post-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 40px 0 16px;
    color: var(--text-primary);
}

.post-content p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.85;
}

.post-content p:first-of-type {
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.post-content a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content strong { color: var(--text-primary); font-weight: 600; }

.post-content ul, .post-content ol {
    margin: 24px 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

.post-content li {
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.post-content blockquote {
    margin: 40px 0;
    padding: 32px 40px;
    background: var(--bg-card);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
}

.post-content img {
    width: 100%;
    border-radius: var(--radius);
    margin: 40px 0;
}

.post-content hr {
    border: none;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 48px 0;
}

/* ═══════════════ AUTHOR BOX ═══════════════ */
.author-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    gap: 28px;
    align-items: center;
    margin-top: 64px;
    border: 1px solid rgba(255,255,255,0.06);
}

.author-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.author-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.author-info p { color: var(--text-muted); margin-bottom: 12px; }

.synthetic-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.7rem;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* ═══════════════ ABOUT PAGE ═══════════════ */
.about-hero {
    padding: 100px 0 60px;
    text-align: center;
}

.about-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.about-hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 12px;
}

.about-hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 32px 100px;
}

.about-section {
    margin-bottom: 64px;
}

.about-section h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 28px;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Personality Bars */
.personality-bars { margin: 32px 0; }

.trait {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.trait-label {
    width: 140px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.trait-bar {
    flex: 1;
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
}

.trait-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 5px;
    transition: width 1s ease-out;
}

.trait-value {
    width: 55px;
    text-align: right;
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 0.95rem;
}

/* Content Pillars */
.pillars-list {
    list-style: none;
    padding: 0;
}

.pillars-list li {
    padding: 20px 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}

.pillars-list strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

/* CTA Box */
.cta-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    margin-top: 64px;
    border: 1px solid rgba(255,255,255,0.06);
}

.cta-box h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1.1rem;
}

.cta-btn {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer a { color: var(--accent-primary); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ═══════════════ CHAT BUTTON ═══════════════ */
.chat-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.chat-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    .container { padding: 0 20px; }
    .hero { padding: 60px 0 40px; min-height: auto; }
    .hero h1 { font-size: 2.5rem; }
    .posts-grid { grid-template-columns: 1fr; }
    .post-card img { height: 200px; }
    .post-header { padding: 60px 0 40px; }
    .post-header h1 { font-size: 2rem; }
    .post-content { padding: 0 20px 60px; }
    .post-content h2 { font-size: 1.5rem; margin: 40px 0 20px; }
    .author-box { flex-direction: column; text-align: center; padding: 32px 24px; }
    .nav { display: none; }
    .about-photo { width: 140px; height: 140px; font-size: 4rem; }
    .about-hero h1 { font-size: 2.2rem; }
    .cta-box { padding: 32px 24px; }
}