/* Rocket Launch Sequence & Troubleshooting Portal Theme */
:root {
    --ink: #0d1b3e;
    --ink-2: #3e4c70;
    --sky: #eaf1fa;
    --paper: #ffffff;
    --line: #cbd8ec;
    --blue: #1d4ed8;
    --amber: #f59e0b;
    --amber-hover: #fbbf24;
    --amber-ink: #451a03;
    --sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", system-ui, sans-serif;
    --num: "DIN Alternate", "Bahnschrift", "Roboto Condensed", sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--sky);
    font-size: 16.5px;
    line-height: 1.8;
}

a {
    color: var(--blue);
    text-underline-offset: 0.2em;
    transition: all 0.2s ease;
}

.wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.top {
    background: var(--ink);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
}

.brand small {
    font-weight: 600;
    font-size: 11.5px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 99px;
    padding: 1px 8px;
    line-height: 1.6;
    color: #e0e7ff;
}

.mark {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: var(--amber);
    clip-path: polygon(50% 8%, 96% 92%, 50% 70%, 4% 92%);
}

.topnav {
    display: flex;
    gap: 4px 22px;
    flex-wrap: wrap;
    font-size: 15px;
    align-items: center;
}

.topnav a {
    color: #dbe4ff;
    text-decoration: none;
    padding: 4px 0;
    font-weight: 500;
}

.topnav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.topnav-btn {
    background: var(--amber);
    color: var(--amber-ink) !important;
    padding: 5px 14px !important;
    border-radius: 6px;
    font-weight: 700 !important;
}

/* Hero Section */
.hero {
    background: var(--ink);
    color: #ffffff;
    padding: 58px 0 72px;
}

.hero-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 52px;
    align-items: start;
}

.hero h1 {
    font-size: clamp(32px, 4.8vw, 54px);
    line-height: 1.2;
    margin: 8px 0 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hero-text p {
    color: #d5ddfa;
    max-width: 28em;
    margin: 0 0 18px;
    font-size: 16.5px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px !important;
}

.btn {
    display: inline-block;
    background: var(--amber);
    color: var(--amber-ink);
    font-weight: 700;
    text-decoration: none;
    padding: 11px 24px;
    border-radius: 8px;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.btn:hover {
    background: var(--amber-hover);
    transform: translateY(-1px);
}

.btn.ghost {
    background: transparent;
    color: #ffffff;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-note {
    font-size: 13.5px;
    color: #aeb9e6 !important;
    margin-top: 24px !important;
}

/* Launch Sequence Timeline */
.seq {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.seq::before {
    content: "";
    position: absolute;
    left: 33px;
    top: 14px;
    bottom: 30px;
    width: 2px;
    background: linear-gradient(#3b82f6, var(--amber));
    transform-origin: top;
}

.seq li {
    position: relative;
}

.seq a, .seq .go div {
    display: grid;
    grid-template-columns: 68px 1fr;
    column-gap: 20px;
    padding: 12px 14px 12px 0;
    text-decoration: none;
    color: #ffffff;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.seq a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.seq .t {
    grid-row: 1 / 3;
    align-self: start;
    justify-self: center;
    font-family: var(--num);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.02em;
    background: var(--ink);
    border: 2px solid #3b82f6;
    color: #c9d4ff;
    border-radius: 99px;
    min-width: 56px;
    text-align: center;
    padding: 2px 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.seq .s-title {
    font-weight: 700;
    font-size: 19px;
    line-height: 1.45;
}

.seq a .s-title {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 0.22em;
}

.seq .s-desc {
    color: #bfc9f2;
    font-size: 14.5px;
    line-height: 1.6;
}

.seq .go .t {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--amber-ink);
    font-family: var(--sans);
    font-size: 14px;
}

/* Home Blocks */
.block {
    padding-top: 56px;
    padding-bottom: 8px;
}

.block h2 {
    font-size: 26px;
    line-height: 1.3;
    margin: 0 0 18px;
    font-weight: 800;
}

.cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 40px;
}

.cols p {
    margin: 0;
    color: var(--ink-2);
}

.more {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 2px solid var(--ink);
}

.more a {
    display: grid;
    grid-template-columns: minmax(10em, 16em) 1fr;
    gap: 6px 24px;
    padding: 18px 6px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    border-radius: 4px;
}

.more a:hover {
    background: var(--paper);
}

.more strong {
    font-size: 18px;
    color: var(--blue);
}

.more span {
    color: var(--ink-2);
    font-size: 15px;
}

/* FAQ Accordion */
.faq details {
    border-bottom: 1px solid var(--line);
}

.faq details:first-child {
    border-top: 2px solid var(--ink);
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 17.5px;
    padding: 16px 30px 16px 2px;
    list-style: none;
    position: relative;
    line-height: 1.5;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 6px;
    top: 12px;
    font-size: 22px;
    font-weight: 400;
    color: var(--blue);
}

.faq details[open] summary::after {
    content: "\2212";
}

.faq details > p {
    margin: 0 0 16px;
    max-width: 44em;
    color: var(--ink-2);
}

/* Download Page Specific */
.download-box {
    background: var(--paper);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(13, 27, 62, 0.08);
    margin: 40px auto;
    max-width: 820px;
    text-align: center;
}

.download-box h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 12px;
}

.spec-table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    text-align: left;
}

.spec-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 14.5px;
}

.spec-table td:first-child {
    font-weight: 700;
    color: var(--ink-2);
    width: 120px;
}

/* Footer */
.foot {
    background: var(--ink);
    color: #c3ccf0;
    margin-top: 72px;
    padding: 44px 0 48px;
    font-size: 14px;
    line-height: 1.75;
}

.foot-in {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
}

.foot-name {
    color: #ffffff;
    font-weight: 800;
    font-size: 16.5px;
    margin: 0 0 6px;
}

.foot p {
    margin: 0;
    max-width: 38em;
}

.foot nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 20px;
    align-content: start;
}

.foot a {
    color: #dce4ff;
    text-decoration: none;
}

.foot a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 860px) {
    .hero-in {
        grid-template-columns: 1fr;
    }
    .cols {
        grid-template-columns: 1fr;
    }
    .more a {
        grid-template-columns: 1fr;
    }
    .foot-in {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 880px) {
    .nav-links, .nav-menu {
        display: none !important;
    }
}
