@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2") format("woff2");
}
@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2") format("woff2");
}

.guide-card { transition: transform 0.2s ease, box-shadow 0.2s ease; border: 1px solid var(--glass-border); }
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important; border-color: rgba(0, 113, 227, 0.3); }

.guide-badge { font-size: 0.6rem; padding: 0.2rem 0.4rem; }
.guide-title { font-size: 0.85rem; }
.guide-desc { font-size: 0.7rem; line-height: 1.2; }

@media (min-width: 576px) {
    .guide-badge { font-size: 0.65rem; }
    .guide-title { font-size: 0.95rem; }
    .guide-desc { font-size: 0.75rem; line-height: 1.3; }
}

@media (min-width: 768px) {
    .guide-badge { font-size: 0.7rem; padding: 0.2rem 0.4rem; }
    .guide-title { font-size: 1.05rem; }
    .guide-desc { font-size: 0.85rem; line-height: 1.2; }
}

@media (min-width: 992px) {
    .guide-badge { font-size: 0.75rem; }
    .guide-title { font-size: 1.15rem; }
    .guide-desc { font-size: 0.9rem; line-height: 1.2; }
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

body.dark-mode .tool-card {
    background: rgba(0, 0, 0, 0.2);
    color: #f8f9fa;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 113, 227, 0.15);
    border-color: rgba(0, 113, 227, 0.4);
    color: inherit;
}

.tool-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 113, 227, 0.1);
    border-radius: 50%;
    margin-bottom: 1rem;
    color: var(--btn-primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon-wrapper {
    background: var(--btn-primary);
    color: white;
}

.tool-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tool-desc {
    font-size: 0.75rem;
    color: #495057; 
    margin-bottom: 0;
    line-height: 1.4;
}

body.dark-mode .tool-desc {
    color: #adb5bd;
}

@media (min-width: 1400px) {
    .row-cols-xxl-5 > * {
        flex: 0 0 auto;
        width: 20%;
    }
}

.apple-btn-dark-warning {
    background-color: transparent;
    color: var(--text-color); 
    border: 1.5px solid var(--text-color); 
    border-radius: 980px;
    padding: 10px 24px;
    transition: all 0.2s ease;
}

.apple-btn-dark-warning:hover {
    background-color: #ffc107;
    color: #1d1d1f !important;
    border-color: #ffc107 !important;
}

body.dark-mode .apple-btn-dark-warning {
    color: #f5f5f7;
    border-color: #f5f5f7;
}

body.dark-mode .apple-btn-dark-warning:hover {
    background-color: #ffc107; 
    color: #1d1d1f !important;
    border-color: #ffc107 !important;
}

body.light-mode .apple-btn-outline:not(:hover) {
    background-color: #fcfcfc !important;
}

.home-task,
.home-guide-group,
.home-step,
.home-about,
.home-intro,
.home-faq {
    background: var(--glass-bg);
    border: 1px solid var(--line-color, rgba(128, 128, 128, 0.25));
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
}
.home-task h3 i { color: var(--btn-primary); }
.home-tool {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    height: 100%;
    padding: 0.8rem 0.9rem;
    background: var(--glass-bg);
    border: 1px solid var(--line-color, rgba(128, 128, 128, 0.25));
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.home-tool:hover {
    border-color: var(--btn-primary);
    color: inherit;
    transform: translateY(-2px);
}
.home-tool > i {
    flex: 0 0 1.6rem;
    margin-top: 0.15rem;
    color: var(--btn-primary);
    font-size: 1.1rem;
    text-align: center;
}
.home-tool strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.3;
}
.home-guide {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line-color, rgba(128, 128, 128, 0.2));
}
.home-guide:last-child { border-bottom: 0; padding-bottom: 0; }
.home-guide a:hover { color: var(--btn-primary) !important; }
.home-step { position: relative; padding-top: 1.4rem; }
.home-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    margin-bottom: 0.5rem;
    border-radius: 50%;
    background: var(--btn-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
}

#blog h2[id],
#blog h3[id],
#blog section[id] { scroll-margin-top: 90px; }

.home-about { padding: 1rem 1.2rem; }
.home-faq { padding: 0; overflow: hidden; }
.home-faq summary { padding: 0.85rem 1.2rem; }
.home-faq > div { padding: 0.85rem 1.2rem !important; }

html,
body { overflow-x: clip; }
.home-hero {
    position: relative;
    isolation: isolate;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -4rem;
    padding: 5rem 1rem 3.5rem;
    overflow: hidden;
}
.home-hero-bg,
.home-hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.home-hero-bg { z-index: -2; }
.home-hero-bg img {
    object-fit: cover;
    object-position: center;
}
.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(245, 245, 247, 0.80) 0%, rgba(245, 245, 247, 0.88) 70%, rgba(245, 245, 247, 1) 100%);
}
body.dark-mode .home-hero::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.75) 70%, rgba(0, 0, 0, 1) 100%);
}
.home-hero-inner {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}
.home-intro { padding: 1.4rem 1.5rem; }
