:root {
    --bg-base: #0F172A;
    --bg-surface: #1E293B;
    --bg-panel: rgba(30, 41, 59, 0.9);
    --border-color: #334155;
    --primary: #0284C7;
    --primary-light: #38BDF8;
    --cyan: #06B6D4;
    --green: #10B981;
    --amber: #F59E0B;
    --orange: #F97316;
    --pink: #EC4899;
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --text-faint: #64748B;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 18% 8%, rgba(6, 182, 212, 0.12), transparent 26rem),
        radial-gradient(circle at 82% 12%, rgba(16, 185, 129, 0.1), transparent 24rem),
        linear-gradient(180deg, #0B1220 0%, var(--bg-base) 46%, #111827 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
}

a {
    color: var(--primary-light);
    text-decoration: none;
}

a:hover {
    color: var(--text-primary);
}

.page-shell {
    width: min(100%, 1160px);
    margin: 0 auto;
    padding: 28px 20px 56px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 36px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 800;
}

.brand-link img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text-muted);
    font-size: 0.94rem;
    font-weight: 700;
}

.nav-links a {
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary-light);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.7fr);
    gap: 44px;
    align-items: center;
    padding: 32px 0 48px;
}

.kicker {
    color: var(--primary-light);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    margin: 0 0 12px;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.7rem, 7vw, 5.2rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    margin: 0;
}

.hero-copy {
    color: var(--text-secondary);
    font-size: 1.13rem;
    max-width: 690px;
    margin: 22px 0 0;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: var(--bg-base);
    background: var(--text-primary);
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.18);
}

.btn-secondary {
    color: var(--text-primary);
    background: rgba(51, 65, 85, 0.86);
    border: 1px solid #475569;
}

.btn:hover {
    transform: translateY(-2px);
}

.phone-stage {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: min(310px, 100%);
    aspect-ratio: 640 / 1387;
    padding: 6px;
    border-radius: 38px;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45), 0 0 64px rgba(56, 189, 248, 0.1);
}

.phone-frame.wide {
    width: min(360px, 100%);
    aspect-ratio: 946 / 2048;
}

.phone-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
}

.mascot-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}

.mascot-stage img {
    display: block;
    width: min(220px, 58vw);
    height: auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 42px rgba(56, 189, 248, 0.18));
}

.guide-grid {
    display: block;
    max-width: 940px;
    margin: 0 auto;
}

.toc {
    display: none;
}

.toc-title {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.toc a {
    display: block;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 7px 0;
}

.toc a:hover {
    color: var(--primary-light);
}

.article {
    min-width: 0;
}

.section {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(71, 85, 105, 0.55);
    border-radius: 0;
    padding: 46px 0;
    margin: 0;
    box-shadow: none;
}

.article > .section:last-child,
main > .section:last-child {
    border-bottom: 0;
}

.section h2 {
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}

.section h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin: 22px 0 8px;
}

.section p {
    color: var(--text-secondary);
    margin: 0 0 14px;
}

.lead {
    font-size: 1.08rem;
}

.editorial-list {
    display: grid;
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.editorial-list li {
    color: var(--text-secondary);
    padding-left: 22px;
    position: relative;
}

.editorial-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.74em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
}

.section-note {
    margin: 22px 0 0;
    color: var(--text-muted);
    font-size: 0.96rem;
}

.media-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
    gap: 30px;
    align-items: center;
}

.commute-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 310px);
    gap: clamp(28px, 5vw, 54px);
    align-items: start;
}

.commute-copy {
    max-width: 620px;
}

.commute-copy .editorial-list {
    margin: 28px 0;
}

.commute-copy p:last-child {
    color: var(--text-muted);
    max-width: 560px;
}

.commute-phone {
    justify-content: end;
}

.commute-phone .phone-frame.wide {
    width: min(300px, 100%);
}

.recipe-panel {
    margin: 22px 0;
    padding: 24px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(249, 115, 22, 0.32);
}

.recipe-panel h3 {
    margin-top: 0;
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mini-card,
.tip-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.8);
    border-radius: 14px;
    padding: 18px;
}

.mini-card h3,
.tip-card h3 {
    margin-top: 0;
}

.mini-card p,
.tip-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.callout {
    border-left: 4px solid var(--primary-light);
    background: rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    padding: 16px 18px;
    color: var(--text-secondary);
}

.warning {
    border-left-color: var(--amber);
    background: rgba(245, 158, 11, 0.1);
}

.success {
    border-left-color: var(--green);
    background: rgba(16, 185, 129, 0.1);
}

.table-wrap {
    overflow-x: auto;
    margin: 18px 0;
    border: 1px solid rgba(71, 85, 105, 0.8);
    border-radius: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
    background: rgba(15, 23, 42, 0.52);
}

th,
td {
    text-align: left;
    vertical-align: top;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.55);
}

th {
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

td {
    color: var(--text-secondary);
}

.temp-alt {
    display: block;
    color: var(--text-muted);
    font-size: 0.86em;
    line-height: 1.35;
    margin-top: 2px;
}

tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 700px) {
    .table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 12px;
        background: transparent;
    }

    thead {
        display: none;
    }

    tbody,
    tr,
    td {
        display: block;
        width: 100%;
    }

    tr {
        padding: 14px 16px;
        border: 1px solid rgba(71, 85, 105, 0.8);
        border-radius: 14px;
        background: rgba(15, 23, 42, 0.58);
    }

    td {
        border-bottom: 0;
        padding: 8px 0;
    }

    td:first-child {
        color: var(--text-primary);
        font-size: 1.04rem;
        font-weight: 850;
        padding-top: 0;
    }

    td:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        color: var(--primary-light);
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        line-height: 1.25;
        margin-bottom: 3px;
        text-transform: uppercase;
    }
}

.checklist {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 28px;
    color: var(--text-secondary);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.reference-note {
    color: var(--text-muted);
    font-size: 0.94rem;
}

.guide-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.guide-card {
    display: block;
    min-height: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.8);
    border-radius: 16px;
    padding: 20px;
    color: var(--text-secondary);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.guide-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light);
}

.guide-card strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.guide-card span {
    color: var(--text-muted);
}

.guide-link-list {
    display: grid;
    gap: 0;
    margin-top: 20px;
    border-top: 1px solid rgba(71, 85, 105, 0.65);
}

.guide-link-row {
    display: grid;
    grid-template-columns: 0.72fr 1fr;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(71, 85, 105, 0.65);
    color: var(--text-secondary);
}

.guide-link-row:hover strong {
    color: var(--primary-light);
}

.guide-link-row strong {
    color: var(--text-primary);
    font-size: 1.2rem;
    line-height: 1.2;
}

.guide-link-row span {
    color: var(--text-muted);
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-faint);
    margin-top: 36px;
    padding-top: 26px;
    font-size: 0.9rem;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 12px;
    margin: 0 0 8px;
    text-align: center;
}

.footer a {
    color: var(--text-muted);
}

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

@media (max-width: 900px) {
    .hero,
    .guide-grid,
    .media-pair {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 8px;
    }

    .toc {
        position: static;
    }

    .split,
    .cards-3,
    .guide-cards,
    .guide-link-row,
    .commute-layout {
        grid-template-columns: 1fr;
    }

    .commute-phone {
        justify-content: center;
    }

    .section {
        padding: 22px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 20px 16px 44px;
    }

    .site-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .phone-frame {
        width: min(265px, 100%);
    }

}
