/* ============================================
   Daily Crypto History — Stylesheet
   Colors derived from brand: sky blue, coral red, cream
   ============================================ */

:root {
    --sky: #7EC8E3;
    --sky-deep: #5BA8C8;
    --sky-light: #B8E2F2;
    --red: #D63B2F;
    --red-dark: #B52D22;
    --red-light: #E8695F;
    --cream: #FDF5E6;
    --cream-dark: #F5E6CC;
    --dark: #1A1A2E;
    --dark-mid: #2D2D44;
    --gray: #6B7280;
    --white: #FFFFFF;

    --font-display: 'DM Serif Display', Georgia, serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;
    --font-body: 'Outfit', -apple-system, sans-serif;

    --max-width: 1120px;
    --radius: 16px;
    --radius-sm: 10px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--sky-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---- Particles background ---- */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-10vh) rotate(360deg); }
}

/* ---- Header ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(184, 226, 242, 0.7);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: background 0.3s;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--red);
}

.nav {
    display: flex;
    gap: 12px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 100px;
    background: var(--dark);
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,26,46,0.3);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 160px 32px 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--cream);
    color: var(--red);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid var(--cream-dark);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 24px;
}

.highlight {
    color: var(--red);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--red-light);
    opacity: 0.3;
    border-radius: 3px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--dark);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(26,26,46,0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(26,26,46,0.35);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid rgba(26,26,46,0.12);
}

.btn-secondary:hover {
    border-color: var(--sky-deep);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(126,200,227,0.25);
}

/* ---- Calendar visual ---- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendar-card {
    width: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(26,26,46,0.15),
        0 2px 8px rgba(26,26,46,0.08);
    animation: calendarFloat 4s ease-in-out infinite;
    background: var(--white);
}

@keyframes calendarFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-14px) rotate(1deg); }
}

.calendar-top {
    height: 56px;
    background: var(--red);
    position: relative;
}

.calendar-top::before,
.calendar-top::after {
    content: '';
    position: absolute;
    top: -10px;
    width: 14px;
    height: 28px;
    background: var(--gray);
    border-radius: 7px;
}

.calendar-top::before { left: 60px; }
.calendar-top::after { right: 60px; }

.calendar-body {
    padding: 28px;
    text-align: center;
    background: var(--cream);
}

.calendar-date {
    font-family: var(--font-display);
    font-size: 3.2rem;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 8px;
}

.calendar-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ---- Features ---- */
.features {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 32px 100px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    padding: 40px 32px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid rgba(26,26,46,0.06);
    box-shadow: 0 4px 20px rgba(26,26,46,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeUp 0.6s ease-out backwards;
    animation-delay: var(--delay);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(26,26,46,0.1);
}

.card-highlight {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
    color: var(--white);
    border: none;
}

.card-highlight h3 {
    color: var(--white);
}

.card-highlight p {
    color: rgba(255,255,255,0.85);
}

.card-highlight .feature-link.muted {
    color: rgba(255,255,255,0.55);
}

/* Polymarket shimmer text */
.polymarket-text {
    display: inline-block;
    background: linear-gradient(
        90deg,
        #7EC8E3 0%,
        #ffffff 20%,
        #E8695F 40%,
        #F5A623 60%,
        #7EC8E3 80%,
        #ffffff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    font-weight: 700;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.feature-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--red);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s ease-in-out infinite;
}

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

.feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.feature-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--red);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.feature-link:hover {
    color: var(--red-dark);
}

.feature-link.muted {
    color: var(--sky-light);
}

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

/* ---- Timeline ---- */
.timeline-section {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 32px 120px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--dark);
    text-align: center;
    margin-bottom: 60px;
}

.timeline {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--red), var(--sky-deep));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding: 0 0 40px 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--red);
    border: 3px solid var(--sky-light);
    border-radius: 50%;
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.timeline-text {
    font-size: 1.05rem;
    color: var(--dark-mid);
    line-height: 1.5;
}

.timeline-cta {
    text-align: center;
    margin-top: 40px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gray);
}

/* ---- Footer ---- */
.footer {
    position: relative;
    z-index: 1;
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    padding: 48px 32px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--white);
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--sky-light);
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 130px;
        gap: 40px;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-cta {
        justify-content: center;
    }
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .header { padding: 12px 20px; }
    .hero { padding: 120px 20px 60px; }
    .features { padding: 20px 20px 60px; }
    .timeline-section { padding: 40px 20px 80px; }
    .footer { padding: 32px 20px; }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }

    .logo-text {
        font-size: 0.95rem;
    }
}
