/* ======================== RESET & BASE ======================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --red:    #e63946;
    --red-d:  #b82e3a;
    --red-l:  #ff6b6b;
    --green:  #4ade80;
    --bg:     #0d0d0d;
    --surface:#161616;
    --card:   #1c1c1c;
    --card-h: #232323;
    --border: #2a2a2a;
    --border-h:#3a3a3a;
    --text:   #c4c4c4;
    --muted:  #777777;
    --heading:#f5f5f5;
    --r-sm:   6px;
    --r-md:   10px;
    --r-lg:   14px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.75;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated grain + gradient overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(230,57,70,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 90%, rgba(74,222,128,0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Reading progress */
.progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--red), #fb923c);
    z-index: 999;
    transition: width 0.08s linear;
    box-shadow: 0 0 12px rgba(230,57,70,0.5);
}

.page-wrap {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* ======================== HERO ======================== */
.hero {
    padding-bottom: 32px;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--border);
    animation: heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tags {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.tag {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    animation: popIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tag:nth-child(1) { animation-delay: 0.3s; }
.tag:nth-child(2) { animation-delay: 0.36s; }
.tag:nth-child(3) { animation-delay: 0.42s; }

@keyframes popIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

.tag-live {
    background: rgba(230,57,70,0.08);
    color: rgba(230,57,70,0.7);
    border: 1px solid rgba(230,57,70,0.15);
}

.tag-live::before {
    content: '';
    display: inline-block;
    width: 5px; height: 5px;
    background: rgba(230,57,70,0.6);
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 1.6s ease-in-out infinite;
}

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

.tag-meta {
    background: rgba(255,255,255,0.03);
    color: #555;
    border: 1px solid rgba(255,255,255,0.06);
}

h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 700;
    color: var(--heading);
    line-height: 1.25;
    margin-bottom: 14px;
    animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.title-line {
    display: inline-block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--red), transparent);
    border-radius: 2px;
    margin-bottom: 18px;
    animation: expandW 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

@keyframes expandW {
    from { width: 0; opacity: 0; }
    to   { width: 48px; opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.meta {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 12px;
    color: #555;
    letter-spacing: 0.3px;
    animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta .sep {
    color: var(--red);
    margin: 0 10px;
    opacity: 0.7;
    font-weight: 500;
    letter-spacing: 2px;
}

/* ======================== CTA ======================== */
.cta-row {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    text-decoration: none;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: rippleAnim 0.5s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to { transform: scale(3); opacity: 0; }
}

.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-d));
    color: #fff;
    border: none;
    box-shadow: 0 2px 12px rgba(230,57,70,0.25);
}

.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(230,57,70,0.4);
}

.btn-secondary {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--card-h);
    border-color: var(--border-h);
}

/* ======================== INTRO ======================== */
.intro {
    font-size: 17px;
    color: #a8a8a8;
    margin-bottom: 36px;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(230,57,70,0.07), transparent);
    border-left: 3px solid var(--red);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

/* ======================== CONTENT ======================== */
h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--heading);
    margin: 44px 0 14px;
    padding-left: 14px;
    position: relative;
    transition: text-shadow 0.3s;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: linear-gradient(180deg, var(--red), rgba(230,57,70,0.2));
    border-radius: 2px;
}

h2:hover { text-shadow: 0 0 24px rgba(230,57,70,0.2); }

p {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 14px;
}

hr.sep {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 40px 0;
}

/* ======================== DISCLAIMER ======================== */
.disclaimer {
    background: rgba(255,255,255,0.015);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 18px;
    margin-top: 36px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 11px;
    color: #555;
    line-height: 1.65;
}

/* ======================== REVEAL ======================== */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 600px) {
    .container { padding: 28px 16px 48px; }
    .cta-row { flex-direction: column; }
    .btn { justify-content: center; }
    .meta { justify-content: center; gap: 6px; }
    .meta span { gap: 6px; }
}
