/* ============================================================
   Modexora — global stylesheet
   palette derived from BG #0B112A + accent #E37233
   ============================================================ */

:root {
    --bg: #0B112A;
    --surface: #0F1532;
    --surface-raised: #141B3E;
    --border: #1E2654;
    --border-strong: #2A3370;
    --text: #ECEEF8;
    --muted: #8A93B8;
    --accent: #E37233;
    --accent-soft: rgba(227, 114, 51, 0.14);
    --star: #E37233;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.75;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

main {
    flex: 1;
}

/* ============================================================
   wrapper
   ============================================================ */

.lex {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ============================================================
   header
   ============================================================ */

.site-head {
    border-bottom: 1px solid var(--border);
    background: rgba(11, 17, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-head .lex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    height: 28px;
    width: auto;
}

.nav-links {
    display: none;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.nav-links a:hover {
    color: var(--text);
    opacity: 1;
}

.menu-toggle {
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--border);
    padding: 18px 0 24px;
    background: var(--surface);
}

@media (max-width: 767px) {
    .mobile-nav.is-open {
        display: block;
    }
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav a {
    color: var(--text);
    font-size: 15px;
    padding: 12px 0;
    display: block;
    border-bottom: 1px solid var(--border);
}

.mobile-nav li:last-child a {
    border-bottom: none;
}

/* ============================================================
   hero — tall typographic opener
   ============================================================ */

.hero {
    padding: 88px 0 64px;
    text-align: left;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2.8px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 28px;
    padding-left: 14px;
    border-left: 2px solid var(--accent);
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 1.05;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    max-width: 18ch;
}

.hero h1 .accent-word {
    color: var(--accent);
    font-weight: 500;
    font-style: italic;
}

.hero p.lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 56ch;
    line-height: 1.65;
    margin-bottom: 40px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 28px;
}

/* outline CTA */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    padding: 14px 26px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent);
    color: #0B112A;
    opacity: 1;
}

.muted-note {
    font-size: 0.85rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.muted-note::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
}

/* hero rating preview */
.rating-line {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 56px;
    padding: 14px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    flex-wrap: wrap;
}

.rating-stars {
    display: inline-flex;
    gap: 3px;
    color: var(--star);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.rating-stars .dim {
    color: var(--border-strong);
}

.rating-meta {
    font-size: 0.85rem;
    color: var(--muted);
}

.rating-meta strong {
    color: var(--text);
    font-weight: 500;
}

/* ============================================================
   showcase band (full-width image)
   ============================================================ */

.showcase {
    padding: 32px 0 96px;
}

.showcase-frame {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-raised) 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    overflow: hidden;
    position: relative;
}

.showcase-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.showcase-frame img {
    border-radius: 10px;
    width: 100%;
}

/* ============================================================
   feature numbered list
   ============================================================ */

.section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    max-width: 22ch;
}

.section-kicker {
    font-size: 0.78rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 600;
}

.section-lead {
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 56ch;
    margin-bottom: 56px;
}

.numbered {
    list-style: none;
    counter-reset: feat;
    display: grid;
    gap: 8px;
}

.numbered li {
    counter-increment: feat;
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: start;
    gap: 24px;
    padding: 28px 0;
    border-top: 1px solid var(--border);
}

.numbered li:last-child {
    border-bottom: 1px solid var(--border);
}

.numbered li::before {
    content: counter(feat, decimal-leading-zero);
    color: var(--border-strong);
    font-size: 2.6rem;
    font-weight: 200;
    line-height: 1;
    letter-spacing: -0.02em;
    font-feature-settings: "tnum";
}

.numbered h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.005em;
}

.numbered p {
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.6;
    max-width: 58ch;
}

/* ============================================================
   subjects band (mock UI)
   ============================================================ */

.subjects-band {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.subjects-grid {
    display: grid;
    gap: 14px;
    margin-top: 40px;
}

.subject-row {
    display: grid;
    grid-template-columns: 130px 1fr 60px;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.subject-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.bar-track {
    height: 6px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--accent);
    border-radius: 999px;
}

.subject-stars {
    color: var(--star);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-align: right;
}

/* ============================================================
   privacy / checkmark list
   ============================================================ */

.privacy-list {
    list-style: none;
    display: grid;
    gap: 18px;
    margin-top: 40px;
    max-width: 640px;
}

.privacy-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 16px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border);
}

.privacy-list li:last-child {
    border-bottom: none;
}

.check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
    flex-shrink: 0;
}

.privacy-list strong {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 4px;
}

.privacy-list span {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ============================================================
   closing
   ============================================================ */

.closing {
    padding: 110px 0 100px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.closing h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 300;
    letter-spacing: -0.015em;
    max-width: 22ch;
    margin: 0 auto 22px;
    line-height: 1.15;
}

.closing h2 em {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}

.closing p {
    color: var(--muted);
    max-width: 50ch;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ============================================================
   secondary page header
   ============================================================ */

.page-head {
    padding: 80px 0 56px;
    border-bottom: 1px solid var(--border);
}

.page-head h1 {
    font-size: clamp(2rem, 4.6vw, 3.2rem);
    font-weight: 300;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
}

.page-head p {
    color: var(--muted);
    max-width: 60ch;
    font-size: 1.05rem;
}

.page-content {
    padding: 64px 0 96px;
}

/* ============================================================
   info cards (support / privacy / terms)
   ============================================================ */

.cards-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 40px;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 26px;
}

.info-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.005em;
}

.info-card .card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.info-card p,
.info-card li {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-card p + p {
    margin-top: 10px;
}

.info-card a {
    color: var(--accent);
    word-break: break-word;
}

.info-card ul {
    list-style: none;
    margin-top: 8px;
}

.info-card li {
    padding-left: 16px;
    position: relative;
    margin-bottom: 6px;
}

.info-card li::before {
    content: "·";
    color: var(--accent);
    position: absolute;
    left: 4px;
    font-weight: 700;
}

/* legal sections */
.legal-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px 28px;
    margin-bottom: 16px;
}

.legal-section .num {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
    font-feature-settings: "tnum";
}

.legal-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: -0.005em;
}

.legal-section p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 10px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--accent);
}

.legal-foot {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 0.2px;
}

/* support topic cards row */
.topics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 46px;
}

.topic-card {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 24px;
}

.topic-card h4 {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.topic-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ============================================================
   footer
   ============================================================ */

.site-foot {
    border-top: 1px solid var(--border);
    padding: 44px 0 56px;
    margin-top: auto;
}

.foot-inner {
    display: flex;
    flex-direction: column;
    gap: 22px;
    justify-content: space-between;
    align-items: flex-start;
}

.foot-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.foot-brand img {
    height: 22px;
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    list-style: none;
    font-size: 0.88rem;
}

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

.foot-links a:hover {
    color: var(--text);
    opacity: 1;
}

.foot-copy {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.1px;
}

/* ============================================================
   desktop
   ============================================================ */

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .hero {
        padding: 130px 0 90px;
    }

    .cards-row {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .topics {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .foot-inner {
        flex-direction: row;
        align-items: center;
    }

    .showcase {
        padding: 40px 0 130px;
    }

    .showcase-frame {
        padding: 44px;
    }
}

@media (min-width: 980px) {
    .topics {
        grid-template-columns: repeat(2, 1fr);
    }
}
