* {
    box-sizing: border-box;
}

:root {
    --navy: #071631;
    --navy-deep: #020817;
    --blue: #2f7bff;
    --green: #2fcb8c;
    --orange: #ff9f32;
    --purple: #8b5cf6;
    --red: #ff2d55;
    --text: #101827;
    --muted: #73809a;
    --line: #e9eef7;
    --soft: #f6f9ff;
    --white: #ffffff;
    --shadow: 0 18px 48px rgba(8, 22, 52, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

button {
    font: inherit;
}

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

.page {
    min-width: 320px;
    overflow: hidden;
}

.container {
    width: min(1220px, calc(100% - 48px));
    margin: 0 auto;
}

.hero {
    position: relative;
    min-height: 760px;
    padding: 0 0 72px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 34%, rgba(47, 123, 255, 0.28), transparent 28%),
        radial-gradient(circle at 16% 44%, rgba(255, 45, 85, 0.16), transparent 24%),
        linear-gradient(135deg, #030817 0%, #071631 48%, #03112d 100%);
    color: #ffffff;
}

.hero::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 88%);
    content: "";
}

.site-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    min-height: 76px;
    gap: 34px;
}

.brand {
    display: flex;
    align-items: center;
    min-width: 280px;
    gap: 14px;
}

.brand-logo {
    color: var(--red);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand-title {
    color: rgba(255,255,255,0.92);
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 34px;
}

.nav a {
    position: relative;
    color: rgba(255,255,255,0.74);
    font-size: 14px;
    font-weight: 800;
}

.nav a.active,
.nav a:hover {
    color: #ffffff;
}

.nav a.active::after {
    position: absolute;
    right: 0;
    bottom: -22px;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--red);
    content: "";
}

.header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 24px;
    border-radius: 8px;
    background: var(--red);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 14px 32px rgba(255, 45, 85, 0.32);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(560px, 1.08fr);
    align-items: center;
    min-height: 600px;
    gap: 38px;
}

.hero-copy h1 {
    margin: 0;
    max-width: 620px;
    color: #ffffff;
    font-size: 54px;
    line-height: 1.13;
    font-weight: 950;
    letter-spacing: 0;
}

.hero-copy p {
    margin: 24px 0 0;
    max-width: 610px;
    color: rgba(255,255,255,0.78);
    font-size: 18px;
    line-height: 1.9;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 40px;
    gap: 18px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 172px;
    min-height: 54px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 900;
    gap: 10px;
}

.primary-btn {
    background: linear-gradient(135deg, #ff2d55, #ff385f);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(255, 45, 85, 0.35);
}

.ghost-btn {
    border: 1px solid rgba(255,255,255,0.32);
    color: #ffffff;
}

.ghost-btn img {
    width: 22px;
    height: 22px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 34px;
    gap: 14px;
}

.hero-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
}

.hero-tags img {
    width: 18px;
    height: 18px;
}

.hero-visual {
    position: relative;
    min-height: 520px;
}

.dashboard-card {
    position: absolute;
    top: 22px;
    right: 0;
    width: 580px;
    min-height: 420px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,0.54);
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 30px 80px rgba(0,0,0,0.28);
    color: #112143;
}

.dash-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.dash-logo {
    color: var(--red);
    font-weight: 950;
}

.dash-user {
    display: flex;
    align-items: center;
    color: #6e7d99;
    font-size: 12px;
    font-weight: 800;
    gap: 10px;
}

.dash-user span {
    display: grid;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eaf2ff;
    color: var(--blue);
    place-items: center;
}

.dash-title h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.dash-title p {
    margin: 0;
    color: #73809a;
    font-size: 13px;
    font-weight: 700;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 20px 0;
    gap: 12px;
}

.dash-stat {
    padding: 14px 12px;
    border-radius: 10px;
    background: #f8fbff;
    box-shadow: inset 0 0 0 1px #edf2fa;
}

.dash-stat small {
    display: block;
    color: #7b89a3;
    font-size: 11px;
    font-weight: 800;
}

.dash-stat strong {
    display: block;
    margin-top: 10px;
    color: #102145;
    font-size: 24px;
}

.dash-panels {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
}

.mini-panel {
    min-height: 150px;
    padding: 16px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 37, 72, 0.08);
}

.mini-panel h4 {
    margin: 0 0 16px;
    color: #1d2d50;
    font-size: 13px;
}

.line-chart {
    position: relative;
    height: 86px;
}

.line-chart::before {
    position: absolute;
    right: 10px;
    bottom: 18px;
    left: 10px;
    height: 44px;
    border-left: 2px solid #e9eef7;
    border-bottom: 2px solid #e9eef7;
    content: "";
}

.line-chart svg {
    position: absolute;
    inset: 0;
}

.ring-chart {
    display: grid;
    width: 92px;
    height: 92px;
    margin: 4px auto 0;
    border-radius: 50%;
    background: conic-gradient(var(--blue) 0 42%, var(--green) 42% 72%, var(--orange) 72% 88%, #d8e2f2 88% 100%);
    place-items: center;
}

.ring-chart span {
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
}

.exam-card,
.wrong-card {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.54);
    border-radius: 16px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 26px 60px rgba(0,0,0,0.26);
    color: #112143;
}

.exam-card {
    right: 250px;
    bottom: 38px;
    width: 355px;
    padding: 18px;
}

.exam-head {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.exam-time {
    margin-top: 10px;
    color: var(--red);
    font-size: 14px;
    font-weight: 950;
}

.staff {
    height: 72px;
    margin: 18px 0 12px;
    background:
        repeating-linear-gradient(to bottom, transparent 0 10px, #202a44 10px 11px, transparent 11px 17px);
    border-radius: 8px;
}

.answers {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.answers span {
    display: grid;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    place-items: center;
}

.answers span.active {
    background: var(--green);
    color: #ffffff;
}

.answers button {
    min-height: 30px;
    padding: 0 14px;
    border: 0;
    border-radius: 7px;
    background: var(--red);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.wrong-card {
    right: 24px;
    bottom: 28px;
    width: 180px;
    padding: 16px;
}

.wrong-card h4 {
    margin: 0 0 18px;
    font-size: 14px;
}

.wrong-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 18px;
    gap: 12px;
}

.wrong-data strong {
    display: block;
    font-size: 26px;
}

.wrong-data small {
    color: #73809a;
    font-size: 11px;
    font-weight: 800;
}

.wrong-card button {
    width: 100%;
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    background: #fff0f4;
    color: var(--red);
    font-weight: 900;
}

.hero-float {
    position: absolute;
    filter: drop-shadow(0 18px 28px rgba(0,0,0,0.24));
}

.hero-float.note {
    bottom: 42px;
    left: 46px;
    width: 76px;
    transform: rotate(-14deg);
}

.hero-float.crown {
    right: 10px;
    bottom: 36px;
    width: 82px;
    transform: rotate(12deg);
}

.section {
    padding: 74px 0;
}

.section-title {
    margin: 0 auto 40px;
    max-width: 680px;
    text-align: center;
}

.section-title h2 {
    margin: 0;
    color: #101827;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 950;
}

.title-mark {
    display: block;
    width: 34px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 999px;
    background: var(--red);
}

.section-title p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    font-weight: 700;
}

.features {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

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

.feature-card {
    min-height: 250px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.feature-head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.feature-head img {
    width: 54px;
    height: 54px;
}

.feature-card h3 {
    margin: 0;
    color: #17284a;
    font-size: 18px;
}

.feature-card p {
    margin: 10px 0 20px;
    color: #73809a;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 700;
}

.mini-ui {
    min-height: 88px;
    padding: 16px;
    border-radius: 12px;
    background: #f8fbff;
    box-shadow: inset 0 0 0 1px #edf2fa;
}

.progress-line {
    height: 8px;
    border-radius: 999px;
    background: #edf2fa;
    overflow: hidden;
}

.progress-line span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    margin-top: 14px;
    gap: 8px;
}

.chips span {
    padding: 6px 13px;
    border-radius: 8px;
    background: #eaf7f1;
    color: #567;
    font-size: 12px;
    font-weight: 800;
}

.loop {
    background: #ffffff;
}

.loop-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    margin-bottom: 34px;
    gap: 24px;
}

.loop-step {
    position: relative;
    text-align: center;
}

.loop-step:not(:last-child)::after {
    position: absolute;
    top: 22px;
    right: -24px;
    width: 24px;
    height: 1px;
    background: #cbd6e8;
    content: "";
}

.loop-step img {
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
}

.loop-step h3 {
    margin: 0;
    color: #17284a;
    font-size: 16px;
}

.loop-step p {
    margin: 8px 0 0;
    color: #73809a;
    font-size: 13px;
    font-weight: 700;
}

.screen-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.phone-card {
    min-height: 330px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.phone-card h4 {
    margin: 0 0 16px;
    color: #17284a;
    font-size: 15px;
}

.question-line {
    height: 12px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #edf2fa;
}

.question-line.short {
    width: 68%;
}

.score-box {
    margin-top: 20px;
    text-align: center;
}

.score-box strong {
    display: block;
    color: #17284a;
    font-size: 44px;
}

.radar {
    width: 150px;
    height: 150px;
    margin: 20px auto 0;
    background:
        radial-gradient(circle, transparent 0 30%, rgba(47,123,255,0.10) 31% 32%, transparent 33%),
        conic-gradient(from 20deg, rgba(47,123,255,0.36), rgba(139,92,246,0.28), rgba(47,123,255,0.36));
    clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.audience {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.audience-card {
    min-height: 300px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.audience-card img {
    width: 52px;
    height: 52px;
}

.audience-card h3 {
    margin: 16px 0 10px;
    color: #17284a;
    font-size: 18px;
}

.audience-card p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 700;
}

.mini-report {
    padding: 16px;
    border-radius: 12px;
    background: #f8fbff;
}

.bar-row {
    display: grid;
    align-items: end;
    grid-template-columns: repeat(5, 1fr);
    height: 90px;
    gap: 8px;
}

.bar-row span {
    display: block;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, #8eb8ff, var(--blue));
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
    gap: 18px;
}

.quote {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow);
    gap: 16px;
}

.quote span {
    display: grid;
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe2e8, #eaf2ff);
    color: var(--red);
    font-size: 20px;
    font-weight: 950;
    place-items: center;
}

.quote p {
    margin: 0;
    color: #52617a;
    line-height: 1.7;
    font-size: 14px;
    font-weight: 700;
}

.quote strong {
    display: block;
    margin-top: 8px;
    color: #17284a;
}

.metrics {
    padding: 30px 0 74px;
    background: #f8fbff;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.metric-item {
    display: flex;
    align-items: center;
    min-height: 112px;
    padding: 24px;
    gap: 16px;
}

.metric-item:not(:last-child) {
    border-right: 1px solid var(--line);
}

.metric-item img {
    width: 48px;
    height: 48px;
}

.metric-item strong {
    display: block;
    color: #17284a;
    font-size: 22px;
}

.metric-item span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.faq {
    background: #ffffff;
}

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

.faq-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    color: #253858;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(8, 22, 52, 0.06);
}

.cta {
    padding: 0 0 70px;
    background: #ffffff;
}

.cta-panel {
    position: relative;
    overflow: hidden;
    padding: 52px 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #071631, #08225a);
    color: #ffffff;
    text-align: center;
}

.cta-panel::before,
.cta-panel::after {
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.28;
    content: "";
}

.cta-panel::before {
    bottom: 16px;
    left: 32px;
    width: 180px;
    height: 118px;
    background-image: url("/abrsm-home-assets/icons/extracted_png/cta_footer/cta_music_notes.png");
}

.cta-panel::after {
    right: 36px;
    bottom: 0;
    width: 170px;
    height: 150px;
    background-image: url("/abrsm-home-assets/icons/extracted_png/cta_footer/cta_crown_watermark.png");
}

.cta-panel h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ffffff;
    font-size: 36px;
    font-weight: 950;
}

.cta-panel p {
    position: relative;
    z-index: 1;
    margin: 14px 0 26px;
    color: rgba(255,255,255,0.82);
    font-size: 18px;
    font-weight: 800;
}

.cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 14px;
}

.footer {
    background: #06101f;
    color: rgba(255,255,255,0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    padding: 44px 0;
    gap: 36px;
}

.footer h3,
.footer h4 {
    margin: 0 0 14px;
    color: #ffffff;
}

.footer h3 {
    color: var(--red);
    font-size: 22px;
}

.footer p,
.footer a {
    display: block;
    margin: 8px 0;
    color: rgba(255,255,255,0.68);
    font-size: 13px;
    line-height: 1.7;
    font-weight: 700;
}

.copyright {
    padding: 16px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 1180px) {
    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: 30px;
    }

    .hero-visual {
        min-height: 560px;
    }

    .dashboard-card {
        left: 0;
        right: auto;
    }

    .feature-grid,
    .audience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .screen-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-item:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 860px) {
    .container {
        width: min(100% - 28px, 640px);
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
        gap: 16px;
    }

    .brand {
        min-width: 0;
    }

    .nav {
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 20px;
    }

    .nav a {
        white-space: nowrap;
    }

    .nav a.active::after {
        bottom: -9px;
    }

    .hero-copy h1 {
        font-size: 36px;
    }

    .hero-copy p {
        font-size: 15px;
    }

    .hero-visual {
        min-height: 640px;
    }

    .dashboard-card,
    .exam-card,
    .wrong-card {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        margin-top: 18px;
    }

    .dash-stats,
    .dash-panels,
    .feature-grid,
    .loop-steps,
    .screen-grid,
    .audience-grid,
    .quote-grid,
    .metric-strip,
    .faq-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .loop-step:not(:last-child)::after,
    .metric-item:not(:last-child) {
        border-right: 0;
    }

    .loop-step:not(:last-child)::after {
        display: none;
    }

    .cta-actions,
    .hero-actions {
        flex-direction: column;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }
}
