/* =========================================================
   20260720 Claude Code EDM
   01 Tokens / 02 Base / 03 Navigation / 04 Hero
   05 Content / 06 Stages / 07 Comparison / 08 Responsive
   ========================================================= */

/* 01. Design tokens */
:root {
    --ink: #24201e;
    --ink-soft: #504640;
    --paper: #f7f2ec;
    --paper-deep: #ede3da;
    --white: #fffdf9;
    --claude: #c96442;
    --claude-dark: #9f472f;
    --apricot: #f1b08f;
    --line: #dfd2c8;
    --night: #171413;
    --green: #4f7a67;
    --shadow: 0 22px 60px rgba(69, 45, 32, .12);
    --radius: 26px;
    --content: 1200px;
    --header-content: 1320px;
}

/* 02. Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
em { color: var(--claude); font-style: normal; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-md { font-size: 1rem; }
.text-lg { font-size: 1.125rem; line-height: 1.6; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 1.6; }
.text-3xl { font-size: 1.875rem; line-height: 1.4; }
.text-4xl { font-size: 2.25rem; line-height: 1.3; }
.text-5xl { font-size: 3rem; line-height: 1.4; }
.text-6xl { font-size: 3.25rem; line-height: 1.3; }
section.section { max-width: var(--content); margin: 0 auto; padding: 110px 30px; }
section .section-heading {max-width:80%; margin: 0 0 52px; }
section .section-heading.centered { margin-right: auto; margin-left: auto; text-align: center; }
.con-title { margin: 5px 0 15px; letter-spacing: -.025em; }
section .section-heading > p:last-child { margin: 0; color: var(--ink-soft); }
section .section-label { margin: 0; color: var(--claude-dark); font-weight: 800; letter-spacing: .22em; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 22px; padding: 12px 22px; border: 1px solid transparent; border-radius: 10px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--claude); color: #fff; box-shadow: 0 12px 28px rgba(201, 100, 66, .26); }
.button-primary:hover { background: var(--claude-dark); color: #fff; }
.button-ghost { border-color: rgba(255,255,255,.25); color: #fff; }
.button-ghost:hover { border-color: var(--apricot); background: rgba(255,255,255,.05); }

/* 03. Navigation */
.site-nav { position: sticky; z-index: 50; top: 0; display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(28px, calc((100vw - var(--header-content)) / 2)); border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(23,20,19,.93); color: #fff; backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .04em; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: var(--claude); font-family: Georgia, serif; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 700; }
.nav-links a { opacity: .82; transition: opacity .2s ease, color .2s ease; }
.nav-links a:hover { color: var(--apricot); opacity: 1; }
.nav-links .nav-cta { padding: 8px 16px; border-radius: 8px; background: var(--claude); opacity: 1; }
.nav-links .nav-cta:hover { color: #fff; }

/* 04. Hero */
header.hero { position: relative; overflow: hidden; min-height: 720px; background: var(--night); color: #fff; }
header.hero::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 54px 54px; content: ""; mask-image: linear-gradient(to bottom, #000, transparent 90%); }
header.hero::after { position: absolute; top: -260px; right: -200px; width: 50%; height: 720px; border-radius: 50%; background: rgba(201,100,66,.18); content: ""; filter: blur(90px); }
header.hero .hero-grid { position: relative; z-index: 1; display: grid; max-width:var(--header-content); min-height: 720px; align-items: center; gap: 14px; margin: 0 auto; padding: 76px 30px 92px; grid-template-columns: 1fr; grid-template-columns: minmax(55%, 1.1fr) minmax(400px, 650px); gap: 14px; }
header.hero .hero-copy { max-width: unset; }
header.hero .eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--apricot); font-weight: 800; letter-spacing: .2em; }
header.hero .eyebrow span { width: 34px; height: 2px; background: var(--claude); }
.hero-title { margin: 0; font-size: clamp(1.6rem, 4.5vw, 4.2rem); line-height: 1.4; display: block; max-width: 100%; width: min(100%, 980px); position: relative; white-space: nowrap; overflow-wrap: normal; }
header.hero h1 #typed-line-1,
header.hero h1 #typed-line-2 {
    display: inline;
    white-space: nowrap;
}

header.hero h1 .typewriter-line--orange { color: var(--apricot);  display: inline; }
.typed-cursor { display: inline-block; color: #fff; font-weight: 900; line-height: 1.02; transform: scaleX(0.2); animation: blink-caret .75s step-end infinite;animation: blink-caret .75s step-end infinite; }
@keyframes blink-caret {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}














header.hero .lead { margin: 26px 0 32px; color: #cfc6c0; }
header.hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
header.hero .photo { width: 100%;justify-self: end;max-width: 900px;}
header.hero .photo svg { display: block; width: 100%; height: auto; }


        /* 建議在你的專案中，將 SVG 包裝在這樣的一個容器內 */
        .hero-image-container {
            width: 100%;
            max-width: 600px;
            /* 加上輕微的浮動效果增加層次 */
            animation: container-float 6s ease-in-out infinite;
        }

        @keyframes container-float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-15px); }
        }







/* 05. Problem and workflow */

section.challenge .question-grid { display: grid; gap: 15px; grid-template-columns: repeat(3, 1fr); }
section.challenge .question-grid article { min-height: 215px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,249,.68); transition: transform .25s ease, box-shadow .25s ease; }
section.challenge .question-grid article:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
section.challenge .question-grid article img {width: 90%;margin: 0 auto 20px;display: block;}
section.challenge .question-grid span { color: var(--claude); font-family: Consolas, monospace; font-weight: 700; }
section.challenge .question-grid p { margin: 10px 0 0; }
section.challenge .question-grid strong { display: block; margin-top: 4px; }
section.challenge .key-insight { position: relative; overflow: hidden; max-width: 950px; margin: 54px auto 0; padding: 38px 46px 36px; border: 1px solid rgba(201,100,66,.38); border-radius: 24px; background: linear-gradient(135deg, #fff9ef 0%, #fff6ed 100%); box-shadow: 0 16px 38px rgba(105,64,41,.1); text-align: center; }

/* section.challenge .key-insight::after { position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: linear-gradient(90deg, transparent, var(--claude), transparent); content: ""; opacity: .78; } */
section.challenge .key-insight-label { position: relative; z-index: 1; margin: 0 0 11px; color: var(--claude); font-family: Consolas, monospace; font-weight: 800; letter-spacing: .2em; }
section.challenge .key-insight-copy { position: relative; z-index: 1; }
section.challenge .key-insight-copy p { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0; color: var(--ink); font-weight: 750; letter-spacing: -.02em; }
section.challenge .key-insight-copy strong { color: var(--ink); }
section.challenge .key-insight-copy span { color: #44413f; font-weight: 500; }
section.challenge .key-insight-copy mark { position: relative; padding: 0 3px 3px; background: transparent; color: var(--claude-dark); font-weight: 900; }
section.challenge .key-insight-copy mark::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--claude); content: ""; }
section.workflow-section { max-width: none; padding: 100px max(30px, calc((100vw - var(--content)) / 2)); background: var(--white); }
section.workflow-section .workflow-copy { text-align: center; }
section.workflow-section .workflow-copy .section-label { margin-bottom: 10px; }
section.workflow-section .workflow-quick-list { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 18px auto 52px; padding: 9px 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); box-shadow: 0 3px 10px rgba(69,45,32,.08); color: var(--ink-soft); line-height: 1.5; }
section.workflow-section .workflow-quick-list span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
section.workflow-section .workflow-quick-list i { color: var(--green); }
section.workflow-section .workflow-panel { padding: 48px 44px 40px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
section.workflow-section .workflow-panel > h3 { margin: 0 0 28px; text-align: center; color: var(--ink); line-height: 1.5; }
section.workflow-section .workflow-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
section.workflow-section .workflow-card { display: flex; min-height: 116px; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
section.workflow-section .workflow-card > i { color: var(--claude); }
section.workflow-section .workflow-card h4 { margin: 0; color: var(--ink); line-height: 1.4; }
section.workflow-section .workflow-note { margin: 28px 0 0; text-align: center; color: var(--ink-soft); }









/* 06. Stage cards */
section.stages { max-width: 1240px; }
section.stages .stage-card { --stage: var(--claude); display: grid; overflow: hidden; margin-top: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 40px rgba(69,45,32,.07); grid-template-columns: .8fr 1.2fr; }
section.stages .stage-two { --stage: #9b604e; }
section.stages .stage-three { --stage: var(--green); }
section.stages .stage-intro { display: flex; gap: 15px; padding:30px; background: linear-gradient(145deg, #f5ece5, #fffaf5); }
section.stages .stage-intro b span{ color: var(--stage);}
section.stages .stage-number { display: flex; min-width: 70px; flex-direction: column; color: var(--stage); }
section.stages .stage-number small { font-family: Consolas, monospace; font-weight: 700; letter-spacing: .15em; }
section.stages .stage-number strong { font-family: Consolas, monospace; font-size: 3.375rem; font-weight: 700; line-height: 1; }
section.stages .stage-state { margin: 0 0 18px; color: var(--stage); font-weight: 800; letter-spacing: .08em; }
section.stages .stage-intro h4 { margin: 0 0 18px; line-height: 1.4;}

section.stages .stage-intro p:last-child { margin: 0; color: var(--ink-soft); }
section.stages .course-panel { padding:30px; border-left: 1px solid var(--line); }
section.stages .course-label { display: flex; align-items: center; justify-content: space-between; color: var(--stage); font-weight: 800; letter-spacing: .12em; }
section.stages .course-label span { padding: 4px 10px; border: 1px solid currentColor; border-radius: 99px; letter-spacing: .04em; }
section.stages .course-panel h3 { margin: 16px 0 20px; line-height: 1.4;letter-spacing: -0.03em; }
section.stages .course-panel > p { margin: 0 0 20px; color: var(--ink-soft); }
section.stages .tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
section.stages .tag-list li { padding: 5px 11px; border-radius: 6px; background: var(--paper-deep); font-family: Consolas, "Microsoft JhengHei", sans-serif; }
section.stages .gift { margin: 22px 0; padding: 13px 16px; border-left: 3px solid #d59a42; background: #fff7df; color: #6c5125;  }
section.stages .gift i { flex-shrink: 0; }
section.stages .course-button { display: flex; min-height: 52px; align-items: center; justify-content: space-between; padding: 12px 18px; border-radius: 9px; background: var(--stage); color: #fff; font-weight: 800; transition: filter .2s ease, transform .2s ease; }
section.stages .course-button:hover { color: #fff; filter: brightness(.91); transform: translateY(-2px); }
section.stages .day-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
section.stages .day-grid div { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; }
section.stages .day-grid b { color: var(--stage); font-family: Consolas, monospace; font-weight: 700; white-space: nowrap; }
section.stages .day-grid span { transform: translateY(-5px);}
section.stages .stack-note { padding: 12px 0; }
section.stages .stack-note span { color: var(--ink-soft); }
section.stages .stage-thinking { margin: 22px 0; padding: 18px 16px; border-left: 4px solid var(--stage); background: rgba(255,253,249,.7); border-radius: 6px; }
section.stages .thinking-label { margin: 0 0 12px; color: var(--stage);  font-weight: 800; letter-spacing: .08em; }
section.stages .thinking-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
section.stages .thinking-list li { position: relative; padding-left: 16px; color: var(--ink-soft); line-height: 1.5; }
section.stages .thinking-list li::before { position: absolute; left: 0; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--stage); content: ""; }
section.stages .skills-label { margin: 18px 0 12px; color: var(--stage);  font-weight: 800; letter-spacing: .08em; }
section.stages .skills-list { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr);  margin: 0 0 22px; padding: 0; list-style: none; }
section.stages .skills-list li { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(201, 100, 66, .2); border-radius: 8px; background: rgba(255,253,249,.5); color: var(--ink-soft);  line-height: 1.4; }
section.stages .skills-list li i { color: var(--stage); flex-shrink: 0; }
section.stages .stage-two .skills-list li { border-color: rgba(155, 96, 78, .2); }
section.stages .stage-three .skills-list li { border-color: rgba(79, 122, 103, .2); }
section.stages .stage-three .skills-ul { padding-left: 25px;  margin: 0 ; }



/* 07. Comparison and close */
section.comparison { max-width: none; padding-right: max(30px, calc((100vw - var(--content)) / 2)); padding-left: max(30px, calc((100vw - var(--content)) / 2)); background: var(--night); color: #fff; }
section.comparison .inverse .section-label { color: var(--apricot); }
section.comparison .inverse > p:last-child { color: #ada39d; }
section.comparison .comparison-table { overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; }


section.comparison .comparison-row { display: grid; align-items: center; min-height: 86px; padding: 14px 26px; border-top: 1px solid rgba(255,255,255,.1); grid-template-columns: .9fr 1.7fr .45fr; font-weight: 400; }
section.comparison .comparison-row:not(.comparison-head) { transition: background .2s ease; }
section.comparison .comparison-row:not(.comparison-head):hover { background: rgba(201,100,66,.15); color: #fff; }
section.comparison .comparison-row strong { color: #f1c0aa; }
section.comparison .comparison-row > b:last-child {  font-family: Consolas, monospace; }
section.comparison .comparison-head { min-height: 54px; border-top: 0; background: rgba(255,255,255,.06); color: #aea39e;  font-weight: 800; letter-spacing: .1em; }




section.growth-quote { padding: 110px 30px 0;/*  background: url(../images/edm-bg.png) no-repeat center center/cover; 
background-attachment: fixed; */background-color: var(--paper);
}
section.growth-quote .growth-quote-text {text-align: center;}
section.growth-quote > p:not(.section-label) { max-width: 900px; margin: 0 auto 32px; color: var(--ink-soft); }
section.growth-quote strong { display: block; margin-top: 12px; color: var(--claude); }








/* Responsive */

@media (max-width: 1100px) {
    header.hero .hero-grid { grid-template-columns: 1fr; gap: 50px; /* 圖片掉下去後，與上方文字的間距 */ }
    
    header.hero .photo { justify-self: center; width: 100%; max-width: 600px; margin: 0 auto; justify-self: center; }
}


@media (max-width: 991.98px) {
    .hero-grid, section.stages .stage-card { grid-template-columns: 1fr; }
    .hero-grid { padding-top: 72px; }
    header.hero .hero-copy { z-index: 1; }
    section.workflow-section .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    section.stages .course-panel { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 767.98px) {
    section.section {
        max-width: var(--content);
        margin: 0 auto;
        padding: 74px 18px;
    }



    .site-nav { min-height: 62px; padding: 0 16px; }
    .brand > span:last-child { display: none; }
    .nav-links { gap: 12px; }
    .nav-links a:not(.nav-cta) { display: none; }
    .hero { min-height: auto; }
    .hero-grid { min-height: auto; gap: 50px; padding: 64px 18px 74px; }
    .hero-metrics { justify-content: space-between; gap: 14px; margin-top: 40px; }

    .text-5xl { font-size: 2rem; }
    .text-4xl { font-size: 1.75rem; }
    .text-3xl { font-size: 1.4rem; }
    .text-2xl { font-size: 1.25rem; }
    .text-md { font-size: 1.1rem; }


    header.hero .hero-grid { max-width: 100%; }

    section.challenge .question-grid { grid-template-columns: 1fr; }
    section.challenge .question-grid article { min-height: 170px; }
    section.challenge .question-grid p { margin-top: 24px; }
    section.challenge .key-insight { margin-top: 36px; padding: 30px 22px 28px; border-radius: 18px; text-align: center; }
    section.challenge .key-insight-label { text-align: center; }
    section.challenge .key-insight-copy p { display: block; line-height: 1.55; }
    section.challenge .key-insight-copy p + p { margin-top: 4px; }
    section.challenge .key-insight-copy strong, section.challenge .key-insight-copy mark { display: inline; }
     section.challenge .key-insight-copy span {display: block;}
    section.challenge .key-insight-copy mark { text-decoration: underline; text-decoration-color: var(--claude); text-decoration-thickness: 2px; text-underline-offset: 6px; }
    section.challenge .key-insight-copy mark::after { display: none; }
    section.workflow-section { padding: 74px 18px; }
    section.workflow-section .workflow-quick-list { width: 100%; margin-bottom: 28px; padding: 12px 16px; border-radius: 18px; }
    section.workflow-section .workflow-quick-list > span:first-child { flex-basis: 100%; justify-content: center; }
    section.workflow-section .workflow-panel { padding: 30px 18px 26px; border-radius: 20px; }
    section.workflow-section .workflow-grid { grid-template-columns: 1fr; gap: 12px; }
    section.workflow-section .workflow-card { min-height: 96px; }
    section.stages .stage-intro, section.stages .course-panel { padding: 30px 22px; }
    section.stages .stage-intro { flex-direction: column; gap: 16px; }
    section.stages .stage-number { flex-direction: row; align-items: baseline; gap: 8px; }
    section.stages .day-grid { grid-template-columns: 1fr; }
    section.stages .stage-thinking { margin-top: 18px; padding: 16px 14px; }
    section.stages .skills-list { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 18px; }
    section.stages .skills-list li { padding: 9px 12px; }




    section.comparison { padding: 74px 18px; }
    section.comparison .comparison-head { display: none; }
    section.comparison .comparison-row { min-height: 0; gap: 5px; padding: 20px; grid-template-columns: 1fr auto; }
    section.comparison .comparison-row span { grid-column: 1 / -1; color: #a99e98; }
    section.comparison .comparison-row strong { line-height: 1.45; }
    section.comparison .growth-quote { padding: 82px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
