:root {
    --ink: #12213a;
    --muted: #60708a;
    --line: rgba(23, 50, 84, 0.11);
    --surface: rgba(255, 255, 255, 0.82);
    --blue: #2563eb;
    --cyan: #08a6b5;
    --violet: #7559e8;
    --gold: #d78a16;
    --coral: #d8664c;
    --green: #2f9568;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        linear-gradient(180deg, #f8fbff 0%, #f3f7fc 55%, #eef4fa 100%);
    font-family:
        Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei",
        system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

.ambient {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.ambient-one {
    top: -180px;
    right: -100px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(58, 133, 255, 0.13), transparent 68%);
}

.ambient-two {
    bottom: -240px;
    left: -180px;
    width: 580px;
    height: 580px;
    background: radial-gradient(circle, rgba(31, 192, 187, 0.1), transparent 70%);
}

.site-header,
main,
footer {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #fff;
    border-radius: 11px;
    background: linear-gradient(145deg, #2b70ef, #11a9ba);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
    font-size: 13px;
    letter-spacing: -0.02em;
}

.header-note {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.hero {
    max-width: 850px;
    padding: 86px 0 74px;
}

.eyebrow,
.section-kicker {
    margin: 0;
    color: #3474d6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
}

.eyebrow span {
    width: 23px;
    height: 2px;
    border-radius: 2px;
    background: #3474d6;
}

h1 {
    margin: 22px 0 24px;
    font-size: clamp(48px, 7vw, 82px);
    font-weight: 720;
    line-height: 1.05;
    letter-spacing: -0.055em;
}

h1 strong {
    color: transparent;
    background: linear-gradient(100deg, #2267e8, #07a6b5);
    background-clip: text;
    -webkit-background-clip: text;
    font-weight: inherit;
}

.hero-copy {
    max-width: 690px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-tags span {
    padding: 8px 13px;
    border: 1px solid rgba(37, 99, 235, 0.11);
    border-radius: 999px;
    color: #49637f;
    background: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.tools-section {
    padding: 36px 0 92px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 7px 0 0;
    font-size: 30px;
    letter-spacing: -0.035em;
}

.section-heading > p {
    max-width: 390px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    text-align: right;
}

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

.tool-form {
    min-width: 0;
    margin: 0;
}

.tool-card {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 430px;
    flex-direction: column;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(31, 57, 91, 0.12);
    border-radius: 22px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(37, 64, 96, 0.07);
    cursor: pointer;
    text-align: left;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
    backdrop-filter: blur(16px);
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 24px 58px rgba(37, 64, 96, 0.13);
}

.tool-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 3px;
}

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

.card-number {
    color: #9aa8b9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.usage {
    padding: 6px 9px;
    border-radius: 999px;
    color: #64758b;
    background: rgba(232, 239, 247, 0.8);
    font-size: 11px;
    font-weight: 600;
}

.visual {
    position: relative;
    display: grid;
    height: 164px;
    margin: 18px 0 20px;
    place-items: center;
    overflow: hidden;
    border-radius: 17px;
}

.card-cyan .visual {
    background: linear-gradient(145deg, #e6fafb, #f1fbfc);
}

.card-blue .visual {
    background: linear-gradient(145deg, #eaf1ff, #f3f7ff);
}

.card-violet .visual {
    background: linear-gradient(145deg, #f0edff, #f8f6ff);
}

.card-gold .visual {
    background: linear-gradient(145deg, #fff4d8, #fffaf0);
}

.card-coral .visual {
    background: linear-gradient(145deg, #fff0eb, #fff8f5);
}

.card-green .visual {
    background: linear-gradient(145deg, #e9f8ef, #f4fbf6);
}

.visual-roll::before,
.visual-roll::after {
    position: absolute;
    width: 58%;
    height: 38px;
    border: 1px solid rgba(8, 166, 181, 0.12);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.55);
    content: "";
}

.visual-roll::before {
    transform: translateY(-49px) scale(0.9);
}

.visual-roll::after {
    transform: translateY(49px) scale(0.9);
}

.roll-focus {
    position: relative;
    z-index: 2;
    display: grid;
    width: 58%;
    height: 48px;
    place-items: center;
    border-radius: 11px;
    color: #087c89;
    background: #fff;
    box-shadow: 0 12px 28px rgba(8, 166, 181, 0.13);
    font-size: 18px;
    font-weight: 700;
}

.roll-line {
    position: absolute;
    z-index: 3;
    width: 3px;
    height: 88px;
    border-radius: 3px;
    background: rgba(8, 166, 181, 0.24);
}

.roll-line-one {
    left: 18%;
}

.roll-line-two {
    right: 18%;
}

.wheel {
    width: 116px;
    height: 116px;
    border: 8px solid #fff;
    border-radius: 50%;
    background:
        conic-gradient(
            #2d6fea 0deg 60deg,
            #8ab1ff 60deg 120deg,
            #2d6fea 120deg 180deg,
            #8ab1ff 180deg 240deg,
            #2d6fea 240deg 300deg,
            #8ab1ff 300deg 360deg
        );
    box-shadow:
        0 12px 28px rgba(37, 99, 235, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.wheel::after {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 24px;
    height: 24px;
    border: 5px solid #fff;
    border-radius: 50%;
    background: #2563eb;
    content: "";
    transform: translate(-50%, -50%);
}

.wheel-pointer {
    position: absolute;
    top: 17px;
    left: 50%;
    z-index: 2;
    width: 0;
    height: 0;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-top: 26px solid #163a76;
    transform: translateX(-50%);
}

.scratch-card {
    position: absolute;
    display: grid;
    width: 62%;
    height: 76px;
    place-items: center;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 700;
}

.scratch-back {
    color: #6349d0;
    background: #fff;
    box-shadow: 0 14px 30px rgba(117, 89, 232, 0.12);
    transform: translate(-12px, 9px) rotate(-4deg);
}

.scratch-front {
    color: rgba(255, 255, 255, 0.92);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 40%),
        repeating-linear-gradient(45deg, #7760dd 0 7px, #846ee6 7px 14px);
    box-shadow: 0 14px 30px rgba(117, 89, 232, 0.23);
    transform: translate(12px, -9px) rotate(3deg);
}

.card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.card-title {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 720;
    letter-spacing: -0.035em;
}

.card-description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 22px;
    font-size: 13px;
    font-weight: 700;
}

.card-action span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 50%;
    transition: transform 180ms ease;
}

.card-cyan .card-action {
    color: var(--cyan);
}

.card-cyan .card-action span {
    background: rgba(8, 166, 181, 0.1);
}

.card-blue .card-action {
    color: var(--blue);
}

.card-blue .card-action span {
    background: rgba(37, 99, 235, 0.1);
}

.card-violet .card-action {
    color: var(--violet);
}

.card-violet .card-action span {
    background: rgba(117, 89, 232, 0.1);
}

.card-gold .card-action {
    color: var(--gold);
}

.card-gold .card-action span {
    background: rgba(215, 138, 22, 0.1);
}

.card-coral .card-action {
    color: var(--coral);
}

.card-coral .card-action span {
    background: rgba(216, 102, 76, 0.1);
}

.card-green .card-action {
    color: var(--green);
}

.card-green .card-action span {
    background: rgba(47, 149, 104, 0.1);
}

.visual-score {
    align-content: center;
    gap: 9px;
}

.score-mini-card {
    position: relative;
    z-index: 1;
    display: grid;
    width: 76%;
    min-height: 49px;
    grid-template-columns: minmax(0, 1fr) 25px 30px 25px;
    gap: 4px;
    align-items: center;
    padding: 7px 8px 7px 12px;
    border: 1px solid rgba(194, 126, 18, 0.1);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 20px rgba(153, 99, 16, 0.08);
}

.score-mini-card b {
    overflow: hidden;
    color: #78501b;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-mini-card i {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 7px;
    color: #a96c10;
    background: #fff1cf;
    font-size: 13px;
    font-style: normal;
}

.score-mini-card strong {
    color: #b37314;
    font-size: 14px;
    text-align: center;
}

.score-mini-one {
    transform: translateX(-7px);
}

.score-mini-two {
    transform: translateX(8px);
}

.score-spark {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 2;
    color: #e7a232;
    font-size: 24px;
    transform: rotate(12deg);
}

.visual-seat {
    align-content: center;
    gap: 10px;
}

.seat-preview {
    display: grid;
    width: 74%;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.seat-preview i {
    height: 31px;
    border: 1px solid rgba(216, 102, 76, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 14px rgba(176, 75, 53, 0.08);
}

.seat-preview i:nth-child(2),
.seat-preview i:nth-child(7) {
    background: #ffd9ce;
}

.teacher-desk {
    display: grid;
    width: 70px;
    height: 25px;
    place-items: center;
    border-radius: 7px;
    color: #a34834;
    background: #ffd9ce;
    font-size: 10px;
    font-weight: 700;
}

.visual-quiet {
    grid-template-columns: 1fr 72px;
    padding: 20px 46px;
}

.quiet-tree {
    position: relative;
    width: 102px;
    height: 116px;
}

.quiet-tree b {
    position: absolute;
    bottom: 4px;
    left: 47px;
    width: 12px;
    height: 56px;
    border-radius: 8px;
    background: #8b6242;
}

.quiet-tree .leaf {
    position: absolute;
    z-index: 1;
    display: block;
    border-radius: 50%;
    background: #59b986;
    box-shadow: 0 8px 18px rgba(47, 149, 104, 0.15);
}

.leaf-one {
    top: 8px;
    left: 27px;
    width: 57px;
    height: 57px;
}

.leaf-two {
    top: 35px;
    left: 5px;
    width: 52px;
    height: 52px;
}

.leaf-three {
    top: 37px;
    right: 0;
    width: 50px;
    height: 50px;
    background: #78ca99 !important;
}

.quiet-meter {
    display: flex;
    height: 74px;
    align-items: end;
    gap: 5px;
}

.quiet-meter i {
    display: block;
    width: 6px;
    border-radius: 6px;
    background: #56b783;
}

.quiet-meter i:nth-child(1),
.quiet-meter i:nth-child(5) {
    height: 24px;
}

.quiet-meter i:nth-child(2),
.quiet-meter i:nth-child(4) {
    height: 45px;
}

.quiet-meter i:nth-child(3) {
    height: 68px;
}

.tool-card:hover .card-action span {
    transform: translateX(3px);
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0 34px;
    border-top: 1px solid var(--line);
    color: #7a899c;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero {
        padding: 70px 0 60px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .tool-card {
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    .site-header,
    main,
    footer {
        width: min(100% - 28px, 1180px);
    }

    .site-header {
        min-height: 70px;
    }

    .header-note {
        display: none;
    }

    .hero {
        padding: 58px 0 50px;
    }

    h1 {
        margin-top: 18px;
        font-size: clamp(43px, 14vw, 62px);
    }

    .hero-copy {
        font-size: 16px;
        line-height: 1.75;
    }

    .tools-section {
        padding-bottom: 64px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 10px;
    }

    .section-heading > p {
        text-align: left;
    }

    .tool-card {
        min-height: 400px;
    }

    footer {
        flex-direction: column;
        gap: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
