:root {
    --bg: #0b0d10;
    --surface: #12161b;
    --surface-2: #171c22;
    --line: rgba(255,255,255,.09);
    --text: #f4f5f2;
    --muted: #929ba5;
    --accent: #b9f34a;
    --accent-soft: rgba(185,243,74,.12);
    --blue: #82b7ff;
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color-scheme: dark;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 90% -5%, rgba(185,243,74,.07), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.app-shell {
    width: min(100%, 760px);
    min-height: 100vh;
    margin: 0 auto;
    padding: env(safe-area-inset-top) 20px 118px;
}

/* HEADER */

.topbar {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
}

.brand-mark {
    width: 31px;
    height: 31px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #0b0d10;
    font-size: 15px;
    letter-spacing: 0;
}

.profile-button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}

/* HERO */

.hero {
    padding: 43px 2px 37px;
}

.eyebrow,
.section-label,
.path-kicker {
    color: var(--muted);
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 600px;
    margin: 13px 0 17px;
    font-size: clamp(42px, 11vw, 72px);
    line-height: .97;
    letter-spacing: -.055em;
    font-weight: 650;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

/* DAILY READING */

.daily-card {
    position: relative;
    overflow: hidden;
    padding: 25px;
    border: 1px solid rgba(185,243,74,.22);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(185,243,74,.13), transparent 45%),
        linear-gradient(145deg, #151a1e, #101317);
}

.daily-card::before {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    top: -75px;
    right: -60px;
    border: 1px solid rgba(185,243,74,.15);
    border-radius: 50%;
}

.daily-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.daily-card h2 {
    margin: 12px 0 0;
    font-size: 25px;
    line-height: 1.13;
    letter-spacing: -.035em;
}

.reading-time {
    flex: 0 0 auto;
    height: fit-content;
    padding: 7px 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
}

.daily-description {
    max-width: 520px;
    margin: 21px 0;
    color: #aab1b8;
    font-size: 13px;
    line-height: 1.65;
}

.topic-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 23px;
}

.topic-row span {
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #a8b0b8;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .09em;
}

.primary-action {
    height: 52px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 15px;
    background: var(--accent);
    color: #10130c;
    font-size: 13px;
    font-weight: 800;
}

.primary-action .arrow {
    font-size: 22px;
    transition: transform .2s ease;
}

.primary-action:active .arrow {
    transform: translateX(4px);
}

/* SECTIONS */

.section {
    padding-top: 48px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 8px 0 0;
    font-size: 25px;
    letter-spacing: -.035em;
}

/* LEARNING PATHS */

.path-grid {
    display: grid;
    gap: 12px;
}

.path-card {
    position: relative;
    min-height: 183px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform .18s ease, border-color .18s ease;
}

.path-card:active {
    transform: scale(.985);
}

.path-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 30px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(130,183,255,.11);
    color: var(--blue);
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 700;
}

.path-icon.bolt {
    background: var(--accent-soft);
    color: var(--accent);
    font-family: inherit;
    font-size: 24px;
}

.path-card h3 {
    margin: 7px 0;
    font-size: 20px;
    letter-spacing: -.025em;
}

.path-card p {
    max-width: 85%;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.card-arrow {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #69727b;
    font-size: 19px;
}

.english-card {
    background:
        radial-gradient(circle at 95% 100%, rgba(76,134,255,.09), transparent 45%),
        var(--surface);
}

.engineering-card {
    background:
        radial-gradient(circle at 95% 100%, rgba(185,243,74,.08), transparent 45%),
        var(--surface);
}

/* STATS */

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-card {
    min-height: 115px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.stat-card strong {
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.05em;
}

.stat-card span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .13em;
}

.stat-card.wide {
    grid-column: 1 / -1;
    min-height: 100px;
}

.stat-card.wide > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.progress-track {
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #272d33;
}

.progress-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

/* THOUGHT */

.thought {
    padding: 55px 3px 35px;
}

.thought blockquote {
    margin: 15px 0 0;
    color: #d4d8da;
    font-family: Georgia, serif;
    font-size: 23px;
    line-height: 1.35;
    letter-spacing: -.025em;
}

/* BOTTOM NAV */

.bottom-nav {
    position: fixed;
    z-index: 20;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-width: 720px;
    height: 70px;
    padding: 7px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    transform: translateX(-50%);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 22px;
    background: rgba(18,22,27,.92);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 15px 50px rgba(0,0,0,.35);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 15px;
    color: #78818a;
    font-size: 9px;
    font-weight: 700;
}

.nav-icon {
    font-size: 18px;
    line-height: 1;
}

.nav-item.active {
    background: rgba(185,243,74,.08);
    color: var(--accent);
}

/* TABLET */

@media (min-width: 620px) {
    .app-shell {
        padding-left: 28px;
        padding-right: 28px;
    }

    .path-grid {
        grid-template-columns: 1fr 1fr;
    }

    .daily-card {
        padding: 30px;
    }
}
