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

:root {
    --bg: #1a1a2e;
    --bg-light: #16213e;
    --gold: #f5c542;
    --white: #f0f0f0;
    --muted: #8888a0;
    --font-heading: 'Fraunces', Georgia, serif;
    --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font: var(--font-body);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--white);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.gold { color: var(--gold); }
.muted { color: var(--muted) !important; }

/* ---- Hero ---- */
.hero {
    text-align: center;
    padding: 100px 24px 80px;
    background: radial-gradient(ellipse at 50% 0%, #16213e 0%, var(--bg) 70%);
}

.hero-avatar {
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

.hero-avatar img {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    border: 3px solid var(--gold);
    object-fit: cover;
    box-shadow: 0 0 30px rgba(245, 197, 66, 0.4), 0 0 60px rgba(245, 197, 66, 0.15);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-tagline {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--muted);
    margin-bottom: 32px;
    font-weight: 400;
}

.btn {
    display: inline-block;
    background: var(--gold);
    color: var(--bg);
    padding: 14px 32px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(245, 197, 66, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--bg);
}

/* ---- Sections ---- */
section { padding: 80px 0; }

section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 24px;
    color: var(--gold);
    font-weight: 700;
}

/* ---- Story ---- */
.story { background: var(--bg-light); }

.story p {
    margin-bottom: 20px;
    color: #ccc;
    font-size: 0.95rem;
}

.story em { color: var(--gold); font-style: italic; }

/* ---- Tracker ---- */
.tracker { text-align: center; }

.tracker-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.tracker-bar {
    flex: 1;
    height: 40px;
    background: #0f0f23;
    border-radius: 20px;
    overflow: visible;
    border: 2px solid #333;
    position: relative;
}

.tracker-fill {
    height: 100%;
    width: var(--progress);
    background: linear-gradient(90deg, var(--gold), #ffd700);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 16px;
    min-width: 60px;
    animation: fillBar 1.5s ease-out forwards;
    position: relative;
    overflow: visible;
}

.tracker-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 18px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite 1.5s;
}

@keyframes fillBar {
    from { width: 0; }
    to { width: var(--progress); }
}

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

.tracker-fill-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a1a2e;
    position: relative;
    z-index: 1;
}

.tracker-goal {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--muted);
    white-space: nowrap;
}

.tracker-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Journey Timeline ---- */
.journey { background: var(--bg-light); }

.journey-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), #333);
}

.timeline-entry {
    position: relative;
    margin-bottom: 36px;
}

.timeline-entry:last-child { margin-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #333;
    border: 2px solid #555;
    z-index: 1;
}

.timeline-marker.active {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(245, 197, 66, 0.5);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.timeline-content {
    background: var(--bg);
    border: 1px solid #2a2a40;
    border-radius: 8px;
    padding: 20px;
    transition: border-color 0.3s;
}

.timeline-content:hover {
    border-color: rgba(245, 197, 66, 0.3);
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.timeline-text {
    font-size: 0.88rem;
    color: #aaa;
    line-height: 1.6;
}

.timeline-text em {
    color: var(--gold);
    font-style: italic;
}

.timeline-text a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 197, 66, 0.3);
    transition: border-color 0.2s;
}

.timeline-text a:hover {
    border-color: var(--gold);
}

.timeline-toggle {
    display: block;
    margin: 32px auto 0;
    background: transparent;
    border: 1px solid #444;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
    letter-spacing: 0.5px;
}

.timeline-toggle:hover {
    color: var(--gold);
    border-color: var(--gold);
}

@media (max-width: 600px) {
    .timeline { padding-left: 28px; }
    .timeline-marker { left: -28px; width: 14px; height: 14px; }
    .timeline::before { left: 6px; }
}

/* ---- Products ---- */
.products { background: var(--bg-light); }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 32px 24px;
    text-decoration: none;
    color: var(--white);
    transition: border-color 0.3s, transform 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

a.card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.card-soon { opacity: 0.6; }

.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gold);
    color: var(--bg);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-soon .card-badge { background: #555; color: #aaa; }

.card-icon { font-size: 2.5rem; margin-bottom: 16px; }

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--gold);
}

.card p {
    font-size: 0.85rem;
    color: var(--muted);
    flex: 1;
    margin-bottom: 16px;
}

.card-cta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
}

/* ---- Follow ---- */
.follow { text-align: center; }

.follow p {
    color: var(--muted);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.follow-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ---- Footer ---- */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #222;
    color: var(--muted);
    font-size: 0.85rem;
}

footer .byline {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #555;
}

footer .byline a {
    color: #777;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: color 0.2s;
}

footer .byline a:hover {
    color: var(--gold);
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
    .hero { padding: 72px 24px 56px; }
    section { padding: 56px 0; }
    .tracker-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .follow-links { flex-direction: column; align-items: center; }
    .follow-links .btn { width: 100%; max-width: 280px; text-align: center; }
}

/* Confetti */
.confetti-wrapper {
    position: relative;
    overflow: visible;
}

.confetti-piece {
    position: absolute;
    left: var(--x);
    top: -10px;
    width: 10px;
    height: 10px;
    background: var(--color);
    border-radius: 50%;
    pointer-events: none;
    animation: confettiFall 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

.confetti-piece:nth-child(even) {
    width: 6px;
    height: 10px;
    border-radius: 2px;
}

.confetti-piece:nth-child(3n) {
    width: 10px;
    height: 6px;
    border-radius: 2px;
}

@keyframes confettiFall {
    0% { transform: translateY(0px) rotate(0deg); opacity: 1; }
    50% { transform: translateY(70px) rotate(180deg); opacity: 1; }
    100% { transform: translateY(0px) rotate(360deg); opacity: 1; }
}
