/* Clockus welcome page */
:root {
    --bg: #000;
    --text: #f2f2f2;
    --muted: #7d7d7d;
    --line: #2b2b2b;
    --line-soft: #1c1c1c;
    --line-strong: #5a5a5a;
    --mono: 'JetBrains Mono', 'Courier New', monospace;
    --p0: #ffffff;
    --p1: #d6c8ed;
    --p2: #ad90da;
    --p3: #8458c8;
    --p4: #5b21b6;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    font-weight: 300;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 64px; }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line-soft);
}

.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.logo { font-size: 1.125rem; font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 0.8125rem; }
.nav-links .link { color: var(--muted); transition: color 0.2s; }
.nav-links .link:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 16px 34px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.875rem;
    text-align: center;
    transition: background-color 0.2s, opacity 0.2s;
}

.btn:hover { background: rgba(255, 255, 255, 0.08); }
.btn.primary { background: var(--text); border-color: var(--text); color: #000; }
.btn.primary:hover { background: var(--text); opacity: 0.88; }
.btn.small { padding: 10px 22px; font-size: 0.8125rem; }
.btn.big { padding: 16px 38px; }

/* ---------- Hero ---------- */
.eyebrow { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--muted); }

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding-top: 88px;
    padding-bottom: 104px;
}

.hero-text { width: 600px; max-width: 100%; }

h1 {
    margin: 24px 0;
    font-size: clamp(2.6rem, 8vw, 4rem);
    font-weight: 200;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.lead { max-width: 480px; font-size: 1rem; line-height: 1.7; color: var(--muted); }
.lead.small { margin-bottom: 32px; font-size: 0.875rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.note { margin-top: 22px; font-size: 0.75rem; color: var(--muted); }

.hero-visual { position: relative; flex: none; width: 480px; max-width: 100%; }

.hero-visual::before {
    content: '';
    position: absolute;
    inset: -60px -40px;
    background: radial-gradient(closest-side, rgba(91, 33, 182, 0.38), transparent);
}

.timer-card {
    position: relative;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--bg);
    text-align: center;
}

.mini-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.6875rem; }
.mini-tabs span { padding: 6px 14px; border-radius: 999px; color: var(--muted); }
.mini-tabs .on { background: var(--text); color: #000; }

.timer-clock {
    margin: 44px 0 28px;
    font-size: clamp(4.2rem, 20vw, 6.5rem);
    font-weight: 200;
    letter-spacing: -0.04em;
    line-height: 1;
}

.timer-line { height: 1px; background: var(--line); }
.timer-line div { width: 62%; height: 1px; background: var(--text); }
.timer-status { margin: 22px 0; font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--muted); }
.timer-buttons { display: flex; justify-content: center; gap: 10px; }

.pill {
    padding: 10px 26px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.8125rem;
}

.pill.primary { background: var(--text); border-color: var(--text); color: #000; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--line-soft); }

h2 {
    margin: 16px 0 40px;
    max-width: 700px;
    font-size: clamp(1.8rem, 5vw, 2.25rem);
    font-weight: 200;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

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

.card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; }
.card-num { margin-bottom: 28px; font-size: 0.75rem; color: var(--muted); }
.card h3 { margin-bottom: 10px; font-size: 1.0625rem; font-weight: 400; }
.card p { font-size: 0.8125rem; line-height: 1.7; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.75rem; color: var(--muted); }

/* ---------- Progress ---------- */
.split { display: flex; justify-content: space-between; align-items: center; gap: 64px; }
.split-text { flex: none; width: 436px; max-width: 100%; }
.split-text h2 { margin: 16px 0 20px; }

.streak-chip {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border: 1px solid var(--p3);
    border-radius: 16px;
}

.streak-n { font-size: 1.625rem; font-weight: 200; letter-spacing: -0.03em; }
.streak-sub { margin-top: 2px; font-size: 0.75rem; color: var(--muted); }

.map-card {
    flex: 0 1 652px;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.map-head { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 0.75rem; color: var(--muted); }
.map-scroll { overflow-x: auto; padding-bottom: 4px; }
.map-inner { display: flex; gap: 6px; width: max-content; }

.map-days {
    width: 28px;
    padding-top: 17px;
    display: grid;
    grid-template-rows: repeat(7, 13px);
    font-size: 0.625rem;
    line-height: 13px;
    color: var(--muted);
}

.map-months { position: relative; width: 569px; height: 17px; font-size: 0.625rem; color: var(--muted); }
.map-months span { position: absolute; top: 0; }

.map-grid {
    display: grid;
    grid-template-rows: repeat(7, 10px);
    grid-auto-flow: column;
    grid-auto-columns: 10px;
    gap: 3px;
}

.map-grid i, .map-legend i { display: block; width: 10px; height: 10px; border-radius: 2px; }
.l0 { background: var(--p0); }
.l1 { background: var(--p1); }
.l2 { background: var(--p2); }
.l3 { background: var(--p3); }
.l4 { background: var(--p4); }

.map-legend { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 14px; font-size: 0.625rem; color: var(--muted); }

/* ---------- Closing call to action ---------- */
.closing { padding-top: 24px; padding-bottom: 96px; }

.cta {
    position: relative;
    overflow: hidden;
    padding: 80px 64px;
    border: 1px solid var(--line);
    border-radius: 28px;
    text-align: center;
}

.cta::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -220px;
    width: 600px;
    max-width: 140%;
    height: 400px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(91, 33, 182, 0.4), transparent);
}

.cta > * { position: relative; }
.cta h2 { max-width: none; margin: 0 0 16px; font-size: clamp(2rem, 6vw, 2.75rem); letter-spacing: -0.04em; }
.cta p { margin-bottom: 36px; font-size: 0.875rem; line-height: 1.7; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); font-size: 0.75rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .wrap { padding: 0 32px; }
    .hero { flex-direction: column; align-items: flex-start; gap: 56px; padding-top: 56px; padding-bottom: 72px; }
    .hero-visual { align-self: center; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .split { flex-direction: column; align-items: flex-start; gap: 40px; }
    .split-text { width: 100%; }
    .map-card { flex: none; width: 100%; }
}

@media (max-width: 620px) {
    .wrap { padding: 0 20px; }
    .nav-links { gap: 16px; }
    .nav-links .link { display: none; }
    .section { padding: 56px 0; }
    .grid { grid-template-columns: 1fr; }
    .timer-card { padding: 28px 20px; }
    .cta { padding: 56px 24px; }
    .footer-inner { flex-direction: column; gap: 6px; }
    .actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
