:root {
    --ink: #101019;
    --muted: #6a6675;
    --accent: #ff6b35;
    --accent-dark: #d84c1a;
    --surface: #f5f1ea;
    --surface-strong: #fff7ee;
    --line: #e1d8c8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top left, #fff2dd, #f4e7d0 55%, #efe1c7);
    min-height: 100vh;
}

.bg-orbit {
    position: fixed;
    inset: -30% -10% auto auto;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3), transparent 60%);
    filter: blur(10px);
    z-index: 0;
}

.site-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 8%;
}

.brand {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-nav a {
    color: var(--ink);
    text-decoration: none;
    margin-left: 16px;
    font-weight: 600;
}

.page {
    position: relative;
    z-index: 1;
    padding: 20px 8% 60px;
    animation: fadeUp 0.7s ease;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 16px;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.hero-copy p {
    color: var(--muted);
    font-size: 18px;
}

.track-form {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.text-input {
    padding: 12px 16px;
    border-radius: 28px;
    border: 1px solid var(--line);
    min-width: 240px;
    font-size: 16px;
}

.primary-btn {
    padding: 12px 24px;
    border-radius: 28px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
    background: var(--accent-dark);
}

.hero-card {
    background: var(--surface-strong);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(16, 16, 25, 0.08);
}

.hero-card ul {
    padding-left: 20px;
    color: var(--muted);
}

.tracker-panel {
    background: var(--surface);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(16, 16, 25, 0.08);
}

.tracker-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.latest-status {
    margin-top: 24px;
    padding: 20px;
    border-radius: 20px;
    background: #fff9f0;
    border: 1px dashed var(--line);
}

.timeline {
    margin-top: 24px;
    display: grid;
    gap: 20px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 16px;
    animation: fadeUp 0.5s ease;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 6px;
}

.timeline-content h3 {
    margin: 0 0 6px;
}

.meta {
    color: var(--muted);
    font-size: 14px;
}

.ghost-btn {
    padding: 10px 20px;
    border-radius: 24px;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
}

.empty {
    color: var(--muted);
}

.not-found-panel {
    max-width: 900px;
    margin: 0 auto;
}

.not-found-help {
    margin-top: 24px;
    padding: 20px;
    border-radius: 20px;
    background: #fff9f0;
    border: 1px dashed var(--line);
}

.not-found-help h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.not-found-help ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    display: grid;
    gap: 8px;
}

.not-found-actions {
    margin-top: 24px;
}

.site-footer {
    padding: 20px 8% 40px;
    color: var(--muted);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .track-form {
        flex-direction: column;
    }

    .text-input {
        width: 100%;
    }
}
