/* ==========================================================================
   Migro — in-theme components built on top of the Solid template.
   Reuses the template's design tokens:
     bg          #1D2026 / #242830
     card        #2C3039
     line        rgba(138,148,167,.24)
     body text   #8A94A7
     headings    #fff
     primary     #0270D7 -> #0F8AFD
     accent      #00BFFB
     success     #02CBB1
   ========================================================================== */

:root {
    --bg-1: #15181D;
    --bg-2: #1D2026;
    --bg-3: #242830;
    --card: #2C3039;
    --line: rgba(138, 148, 167, .24);
    --text: #8A94A7;
    --text-dim: #3B404C;
    --white: #fff;
    --primary: #0270D7;
    --primary-2: #0F8AFD;
    --accent: #00BFFB;
    --success: #02CBB1;
}

html { scroll-behavior: smooth; }

/* --------------------------------------------------------------------------
   Header / sticky nav with blur
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
    background: rgba(21, 24, 29, .72);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 var(--line);
}
/* Override the template's decorative skew so the sticky bar stays clean */
.site-header::before { display: none; }

.header-brand a { display: inline-flex; align-items: center; text-decoration: none; }
.header-logo-image { width: 28px; height: auto; }
.header-logo-text {
    color: var(--white);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -.4px;
    margin-left: 12px;
}
.header-nav { display: none; }
.header-cta { margin-left: 16px; }

@media (min-width: 821px) {
    .header-nav { display: inline-flex; }
    .header-links a:not(.button):hover { color: var(--white); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero-eyebrow,
.section-eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.section-eyebrow { margin-bottom: 12px; }
.hero-title { letter-spacing: -.5px; }
.hero-paragraph { color: var(--text); }

.section-header {
    max-width: 680px;
    margin: 0 auto 56px;
}
.section-title { letter-spacing: -.4px; }

/* Give the hero room for the dashboard and dim the loud template boxes */
@media (min-width: 641px) {
    .hero-inner { align-items: center; }
}
.hero .hero-figure-box-01,
.hero .hero-figure-box-02,
.hero .hero-figure-box-08,
.hero .hero-figure-box-09,
.hero .hero-figure-box-10 { opacity: .55; }

/* --------------------------------------------------------------------------
   Floating dashboard (hero visual)
   -------------------------------------------------------------------------- */
.dashboard {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    background: linear-gradient(180deg, #2C3039 0%, #262a33 100%);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px;
    box-shadow: -20px 32px 64px rgba(0, 0, 0, .35);
}
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.dashboard-label {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--text);
}
.dashboard-score {
    margin: 0;
    color: var(--white);
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
}
.dashboard-score-max {
    font-size: 18px;
    font-weight: 400;
    color: var(--text);
}

.dashboard-ring { position: relative; width: 72px; height: 72px; }
.dashboard-ring svg { transform: rotate(-90deg); }
.ring-track {
    fill: none;
    stroke: var(--bg-3);
    stroke-width: 6;
}
.ring-value {
    fill: none;
    stroke: url(#ringGradient);
    stroke: var(--accent);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 213.6;
    stroke-dashoffset: 213.6;
    transition: stroke-dashoffset 1.4s cubic-bezier(.5, -.01, 0, 1.005);
}
.dashboard-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
}
.metric { display: flex; flex-wrap: wrap; align-items: center; }
.metric-label {
    flex: 1 1 auto;
    font-size: 13px;
    color: var(--text);
}
.metric-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
}
.bar {
    flex: 0 0 100%;
    height: 5px;
    margin-top: 8px;
    background: var(--bg-3);
    border-radius: 4px;
    overflow: hidden;
}
.bar-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary) 0, var(--primary-2) 100%);
    transition: width 1.4s cubic-bezier(.5, -.01, 0, 1.005);
}

.dashboard-footer {
    display: flex;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}
.dashboard-rec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 12px;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(2, 203, 177, .18);
}
.dashboard-rec-text { color: var(--text); }
.dashboard-rec-text strong { color: var(--white); }

@media (max-width: 640px) {
    .hero-figure { margin-top: 48px; }
}

/* --------------------------------------------------------------------------
   Category definition (planting the flag)
   -------------------------------------------------------------------------- */
.definition { padding: 8px 0 64px; }
.definition-inner {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
}
.definition-kicker {
    margin: 0 0 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.definition-statement {
    margin: 0;
    font-size: 24px;
    line-height: 36px;
    font-weight: 400;
    letter-spacing: -.3px;
    color: var(--text);
}
.definition-term {
    color: var(--white);
    font-weight: 600;
}
@media (min-width: 641px) {
    .definition { padding: 16px 0 80px; }
    .definition-statement { font-size: 30px; line-height: 44px; }
}

/* --------------------------------------------------------------------------
   Section 2 — Timeline
   -------------------------------------------------------------------------- */
.timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 721px) {
    .timeline { grid-template-columns: repeat(3, 1fr); align-items: start; }
}
.timeline-col {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px 24px;
}
.timeline-col.is-highlight {
    border-color: rgba(2, 112, 215, .5);
    box-shadow: 0 0 0 1px rgba(2, 112, 215, .25), 0 24px 48px rgba(21, 24, 29, .4);
}
.timeline-tag {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
}
.timeline-flow li {
    position: relative;
    padding: 12px 0 12px 0;
    color: var(--text);
    text-align: center;
    font-size: 16px;
}
.timeline-flow li + li::before {
    content: "↓";
    display: block;
    margin: -2px 0 10px;
    color: var(--text-dim);
    font-size: 14px;
}
.timeline-flow li.is-end {
    color: var(--white);
    font-weight: 600;
}
.shift-highlight {
    max-width: 720px;
    margin: 56px auto 0;
    font-size: 24px;
    line-height: 34px;
    font-weight: 600;
    color: var(--white);
}

/* --------------------------------------------------------------------------
   Section 3 — Question cards
   -------------------------------------------------------------------------- */
.questions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 641px) { .questions-grid { grid-template-columns: 1fr 1fr; } }
.q-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px;
    transition: transform .3s ease, border-color .3s ease;
}
.q-card:hover { transform: translateY(-4px); border-color: rgba(2, 112, 215, .45); }
.q-num {
    display: block;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-2);
}
.q-card p { margin: 0; color: var(--white); font-size: 20px; line-height: 30px; }
.questions-note {
    margin: 48px auto 0;
    max-width: 640px;
    font-size: 20px;
    color: var(--text);
}
.questions-note em { color: var(--white); font-style: italic; }

/* --------------------------------------------------------------------------
   Section 4 — Meet Migro
   -------------------------------------------------------------------------- */
.meet-inner { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 821px) {
    .meet-inner { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
}
.meet-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}
.meet-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text);
    font-size: 16px;
    line-height: 24px;
}
.meet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 11px;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUuNiA2LjRMMS42IDQgMCA1LjYgNS42IDEyIDE2IDEuNiAxNC40IDB6IiBmaWxsPSIjMDJDQkIxIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=");
    background-repeat: no-repeat;
}

/* --------------------------------------------------------------------------
   Section 5 — How it works (horizontal steps)
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 20px; }
.step-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px;
    transition: transform .3s ease, border-color .3s ease;
}
.step-card:hover { transform: translateY(-4px); border-color: rgba(2, 112, 215, .45); }
.step-num {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(65deg, var(--primary) 0, var(--primary-2) 100%);
}
.step-title { margin: 0 0 8px; color: var(--white); font-size: 22px; }
.step-body p { margin: 0; color: var(--text); }

/* --------------------------------------------------------------------------
   Section 6 — Report card
   -------------------------------------------------------------------------- */
.report-card {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(21, 24, 29, .4);
}
@media (min-width: 821px) { .report-card { grid-template-columns: 1.4fr 1fr; } }
.report-scores { padding: 40px; }
.report-overall {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
}
.report-overall-label { margin: 0 0 6px; font-size: 14px; color: var(--text); }
.report-overall-value {
    margin: 0;
    font-size: 56px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--white);
}
.report-metrics { display: grid; gap: 18px; }
.report-recs {
    padding: 40px;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
}
@media (min-width: 821px) {
    .report-recs { border-top: 0; border-left: 1px solid var(--line); }
}
.report-recs-title {
    margin: 0 0 20px;
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
}
.report-recs-list li {
    position: relative;
    padding: 12px 0 12px 28px;
    color: var(--text);
    font-size: 16px;
    border-bottom: 1px solid var(--line);
}
.report-recs-list li:last-child { border-bottom: 0; }
.report-recs-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 17px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* --------------------------------------------------------------------------
   Section 7 — Feature grid hover (extends template .feature)
   -------------------------------------------------------------------------- */
.features .feature-inner {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px 28px;
    transition: transform .3s ease, border-color .3s ease;
}
.features .feature-inner:hover { transform: translateY(-4px); border-color: rgba(2, 112, 215, .45); }
.feature-icon img { height: 56px; width: auto; }

/* --------------------------------------------------------------------------
   Section 8 — The Future (orbit visualization)
   -------------------------------------------------------------------------- */
.future-inner { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 821px) {
    .future-inner { grid-template-columns: 1fr 1fr; gap: 64px; }
    .future-orbit { order: 2; }
}
.future-orbit {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}
.orbit-core {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--accent), var(--primary));
    box-shadow: 0 0 40px rgba(2, 112, 215, .6);
}
.orbit-ring {
    position: absolute;
    inset: 50% auto auto 50%;
    border: 1px solid var(--line);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.orbit-ring-1 { width: 46%; height: 46%; }
.orbit-ring-2 { width: 72%; height: 72%; border-color: rgba(0, 191, 251, .22); }
.orbit-ring-3 { width: 100%; height: 100%; }
.orbit-node {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(0, 191, 251, .8);
}
.orbit-ring-2 .orbit-node { background: var(--primary-2); box-shadow: 0 0 12px rgba(15, 138, 253, .8); }
.orbit-ring-3 .orbit-node { background: var(--success); box-shadow: 0 0 12px rgba(2, 203, 177, .8); }

@media (prefers-reduced-motion: no-preference) {
    .orbit-ring-1 { animation: orbit-spin 14s linear infinite; }
    .orbit-ring-2 { animation: orbit-spin 22s linear infinite reverse; }
    .orbit-ring-3 { animation: orbit-spin 30s linear infinite; }
}
@keyframes orbit-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.cta-section .cta-inner {
    position: relative;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}
.cta-section .cta-inner::after {
    content: "";
    position: absolute;
    top: -40%;
    left: 50%;
    width: 120%;
    height: 180%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(2, 112, 215, .22) 0%, rgba(2, 112, 215, 0) 60%);
    pointer-events: none;
}
.cta-copy { position: relative; max-width: 640px; margin: 0 auto; }
.cta-buttons { margin-top: 32px; display: inline-flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* --------------------------------------------------------------------------
   Footer additions
   -------------------------------------------------------------------------- */
.footer-brand { flex-direction: column; align-items: flex-start; }
.footer-brand a { display: inline-flex; align-items: center; }
.footer-tagline { margin: 16px 0 0; font-size: 14px; color: var(--text); max-width: 280px; }

@media (max-width: 640px) {
    .footer-brand { align-items: center; text-align: center; }
    .footer-tagline { margin-left: auto; margin-right: auto; }
}

/* --------------------------------------------------------------------------
   Scroll-reveal helper (used alongside ScrollReveal for non-JS safety)
   -------------------------------------------------------------------------- */
.cta-buttons .button { margin: 0; }
