:root {
    --method-ink: #172132;
    --method-muted: #5f6d81;
    --method-line: rgba(23, 33, 50, 0.08);
    --method-panel: rgba(255, 255, 255, 0.92);
    --method-shadow: 0 24px 60px rgba(23, 33, 50, 0.1);
    --method-radius: 24px;
    --method-accent: #ef7d32;
    --method-accent-soft: rgba(239, 125, 50, 0.12);
    --method-secondary: #0d7a70;
    --method-secondary-soft: rgba(13, 122, 112, 0.12);
    --method-hero-start: #182744;
    --method-hero-mid: #14516a;
    --method-hero-end: #117968;
}

main {
    min-height: auto;
    background:
        radial-gradient(circle at top left, rgba(255, 205, 117, 0.18), transparent 28%),
        radial-gradient(circle at right 14%, rgba(0, 170, 145, 0.12), transparent 22%),
        linear-gradient(180deg, #fffaf2 0%, #ffffff 32%, #f3f8fb 100%);
}

.method-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 20px 96px;
    color: var(--method-ink);
}

.method-hero {
    margin-top: 12px;
}

.method-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
    gap: 32px;
    padding: 48px;
    border-radius: 30px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--method-hero-start) 0%, var(--method-hero-mid) 58%, var(--method-hero-end) 100%);
    box-shadow: 0 32px 72px rgba(21, 38, 64, 0.24);
}

.method-hero-inner::before,
.method-hero-inner::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    opacity: 0.55;
    pointer-events: none;
}

.method-hero-inner::before {
    width: 360px;
    height: 360px;
    top: -170px;
    right: -110px;
    background: radial-gradient(circle, rgba(255, 211, 140, 0.38), rgba(255, 211, 140, 0));
}

.method-hero-inner::after {
    width: 280px;
    height: 280px;
    left: -80px;
    bottom: -150px;
    background: radial-gradient(circle, rgba(129, 220, 207, 0.28), rgba(129, 220, 207, 0));
}

.method-hero-copy,
.method-hero-card {
    position: relative;
    z-index: 1;
}

.method-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.method-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffd376;
    box-shadow: 0 0 0 6px rgba(255, 211, 118, 0.15);
}

.method-hero-copy h2 {
    margin: 0;
    max-width: 11em;
    font-size: 50px;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.method-hero-copy p {
    max-width: 42em;
    margin: 20px 0 0;
    font-size: 18px;
    line-height: 1.82;
    color: rgba(255, 255, 255, 0.86);
}

.method-chip-row,
.method-action-row,
.method-button-row,
.method-badge-strip,
.method-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.method-chip-row,
.method-badge-strip {
    margin-top: 24px;
}

.method-action-row {
    gap: 14px;
    margin-top: 30px;
}

.method-chip,
.method-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
}

.method-chip {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
}

.method-pill {
    background: rgba(23, 33, 50, 0.06);
    color: #495a70;
}

.method-btn,
.method-action-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.method-btn:hover,
.method-action-btn:hover {
    transform: translateY(-1px);
}

.method-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
}

.method-btn-primary {
    background: #ffffff;
    color: #133252;
    box-shadow: 0 14px 30px rgba(11, 34, 57, 0.2);
}

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

.method-hero-card,
.method-step-card,
.method-panel,
.method-guide-card {
    background: var(--method-panel);
    border: 1px solid var(--method-line);
    box-shadow: var(--method-shadow);
    border-radius: var(--method-radius);
}

.method-hero-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.method-hero-card h3,
.method-panel-head h4,
.method-panel-head h5,
.method-guide-card h4,
.method-step-card h4 {
    margin: 0;
}

.method-hero-card h3 {
    font-size: 24px;
    font-weight: 600;
}

.method-hero-card p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.75;
}

.method-mini-metrics,
.method-metrics,
.method-flow,
.method-guide-grid,
.method-dual-grid,
.method-triple-grid {
    display: grid;
    gap: 18px;
}

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

.method-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.method-guide-grid,
.method-triple-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.method-mini-metric,
.method-metric {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f9fbff 0%, #f2f7fb 100%);
    border: 1px solid rgba(23, 33, 50, 0.05);
}

.method-mini-metric strong,
.method-metric strong {
    display: block;
}

.method-mini-metric strong {
    font-size: 15px;
}

.method-mini-metric span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.6;
}

.method-hero-card .method-mini-metric {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.method-hero-card .method-mini-metric strong {
    color: #ffffff;
}

.method-section-head {
    max-width: 860px;
    margin: 76px auto 28px;
    text-align: center;
}

.method-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(23, 33, 50, 0.06);
    color: #536278;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.method-section-head h3 {
    margin: 0;
    font-size: 38px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.method-section-head p {
    margin: 16px 0 0;
    color: var(--method-muted);
    font-size: 17px;
    line-height: 1.9;
}

.method-step-card,
.method-guide-card {
    padding: 28px 24px;
}

.method-step-number,
.method-guide-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--method-accent-soft), var(--method-secondary-soft));
    color: #132746;
    font-weight: 700;
    font-size: 20px;
}

.method-step-card p,
.method-guide-card p {
    margin: 12px 0 0;
    color: var(--method-muted);
    line-height: 1.84;
    font-size: 15px;
}

.method-highlight,
.method-formula-card {
    padding: 22px 24px;
    border-radius: 22px;
    background: linear-gradient(90deg, rgba(255, 244, 225, 0.92), rgba(232, 247, 242, 0.92));
    border: 1px solid rgba(23, 33, 50, 0.06);
    box-shadow: 0 16px 40px rgba(23, 33, 50, 0.06);
}

.method-highlight strong,
.method-formula-title {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #87511d;
}

.method-highlight p,
.method-formula-card p {
    margin: 0;
    color: #31445c;
    line-height: 1.8;
}

.method-formula {
    margin: 10px 0 12px;
    color: #18263b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1.35;
}

.method-lab {
    margin-top: 18px;
}

.method-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.method-panel {
    padding: 24px;
}

.method-control-panel {
    position: sticky;
    top: 92px;
}

.method-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.method-panel-head h4,
.method-panel-head h5 {
    font-size: 22px;
    line-height: 1.3;
}

.method-panel-head span {
    max-width: 330px;
    color: var(--method-muted);
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
}

.method-panel-intro {
    margin: 0 0 18px;
    color: var(--method-muted);
    font-size: 15px;
    line-height: 1.82;
}

.method-metric span {
    display: block;
    color: #66778c;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.method-metric strong {
    margin-top: 8px;
    font-size: 24px;
    line-height: 1.15;
    color: #172132;
}

.method-control-group {
    margin-bottom: 14px;
}

.method-control-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #32445e;
    font-size: 14px;
    line-height: 1.5;
}

.method-control-group input[type="range"] {
    width: 100%;
    accent-color: var(--method-accent);
}

.method-button-row {
    margin: 16px 0 20px;
}

.method-action-btn {
    flex: 1 1 100px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #162845;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(22, 40, 69, 0.14);
}

.method-action-btn.secondary {
    background: #eef4f9;
    color: #1c314f;
    box-shadow: none;
}

.method-action-btn.accent {
    background: linear-gradient(135deg, var(--method-accent), #ff9b52);
}

.method-visual-stack {
    display: grid;
    gap: 22px;
}

.method-canvas,
.method-svg-box {
    display: block;
    width: 100%;
    min-height: 240px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fcfdff 0%, #f4f7fb 100%);
    border: 1px solid rgba(23, 33, 50, 0.05);
}

.method-canvas {
    height: 260px;
}

.method-canvas-large {
    height: 430px;
}

.method-insight-list {
    display: grid;
    gap: 12px;
}

.method-insight-list p {
    margin: 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f9fbff 0%, #f5f8fb 100%);
    color: #40536b;
    font-size: 14px;
    line-height: 1.8;
}

.method-legend {
    margin-top: 14px;
}

.method-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a5a70;
    font-size: 13px;
}

.method-legend i {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    display: inline-block;
}

@media (max-width: 1180px) {
    .method-hero-inner,
    .method-layout {
        grid-template-columns: 1fr;
    }

    .method-control-panel {
        position: static;
    }
}

@media (max-width: 860px) {
    .method-page {
        padding: 20px 16px 72px;
    }

    .method-hero-inner {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .method-hero-copy h2 {
        font-size: 36px;
        max-width: none;
    }

    .method-section-head h3 {
        font-size: 30px;
    }

    .method-flow,
    .method-dual-grid,
    .method-triple-grid,
    .method-guide-grid {
        grid-template-columns: 1fr;
    }

    .method-panel-head {
        flex-direction: column;
    }

    .method-panel-head span {
        max-width: none;
        text-align: left;
    }

    .method-canvas-large {
        height: 340px;
    }
}

@media (max-width: 640px) {
    .method-action-row,
    .method-button-row {
        flex-direction: column;
    }

    .method-mini-metrics,
    .method-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .method-formula {
        font-size: 24px;
    }
}
