@font-face {
    font-family: "KozGoPr6N";
    src: url("../assets/fonts/KozGoPr6N-Medium.woff2") format("woff2");
    font-display: swap;
}

:root {
    --ink: #142521;
    --muted: #5f716d;
    --line: rgba(20, 72, 62, 0.14);
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --green: #0d7a67;
    --green-dark: #075d4e;
    --mint: #d9f7eb;
    --telegram: #2aabee;
    --whatsapp: #25d366;
    --pink: #f676a6;
    --shadow: 0 24px 70px rgba(31, 75, 67, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    font-family: "KozGoPr6N", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    background:
        radial-gradient(circle at 8% 12%, rgba(246, 118, 166, 0.18), transparent 28rem),
        radial-gradient(circle at 92% 18%, rgba(42, 171, 238, 0.18), transparent 30rem),
        linear-gradient(145deg, #fff8fb 0%, #f1fbf8 47%, #f3f7ff 100%);
    min-height: 100vh;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    opacity: 0.32;
    background-image: linear-gradient(rgba(13, 122, 103, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 122, 103, 0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 20;
    padding: 10px 14px;
    color: white;
    background: var(--green-dark);
    border-radius: 10px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header,
main,
footer {
    width: min(1180px, calc(100% - 40px));
    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;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: white;
    font: 900 17px/1 Arial, sans-serif;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--pink), #9b72e6);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(246, 118, 166, 0.28);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1rem;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font: 600 0.7rem/1.2 Arial, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-header nav a {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.site-header nav a:hover {
    color: var(--green);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    align-items: center;
    gap: clamp(48px, 8vw, 100px);
    min-height: 650px;
    padding: 74px 0 90px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green);
    font: 900 0.72rem/1.2 Arial, sans-serif;
    letter-spacing: 0.16em;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font: 900 clamp(2.75rem, 6vw, 5rem)/0.98 Arial, "KozGoPr6N", sans-serif;
    letter-spacing: -0.065em;
}

.hero h1 span {
    color: transparent;
    background: linear-gradient(92deg, var(--telegram), var(--green) 48%, #1da851);
    background-clip: text;
    -webkit-background-clip: text;
}

.hero-lead {
    max-width: 680px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.85;
}

code {
    padding: 0.12em 0.35em;
    color: var(--green-dark);
    font-family: Consolas, monospace;
    font-size: 0.88em;
    background: rgba(13, 122, 103, 0.09);
    border-radius: 5px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 52px;
    padding: 0 21px;
    font-size: 0.9rem;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 15px;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.button-primary {
    color: white;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    box-shadow: 0 13px 28px rgba(13, 122, 103, 0.24);
}

.button-primary:hover {
    box-shadow: 0 17px 35px rgba(13, 122, 103, 0.3);
}

.button-secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--line);
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    margin: 22px 0 0;
    padding: 0;
    color: var(--muted);
    font-size: 0.78rem;
    list-style: none;
}

.hero-facts li {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-facts li::before {
    width: 6px;
    height: 6px;
    content: "";
    background: var(--whatsapp);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.12);
}

.converter-preview {
    position: relative;
    padding: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    transform: rotate(1.5deg);
}

.converter-preview::before {
    position: absolute;
    inset: -12px;
    z-index: -1;
    content: "";
    border: 1px dashed rgba(13, 122, 103, 0.22);
    border-radius: 36px;
}

.preview-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.preview-top > strong {
    font: 900 0.74rem/1 Arial, sans-serif;
    letter-spacing: 0.12em;
}

.window-dots {
    display: flex;
    gap: 5px;
}

.window-dots i {
    width: 8px;
    height: 8px;
    background: #f3b44c;
    border-radius: 50%;
}

.window-dots i:first-child {
    background: #ef6d6d;
}

.window-dots i:last-child {
    background: #66c98b;
}

.ready-pill {
    justify-self: end;
    padding: 5px 8px;
    color: var(--green);
    font: 900 0.58rem/1 Arial, sans-serif;
    letter-spacing: 0.1em;
    background: var(--mint);
    border-radius: 999px;
}

.route {
    display: grid;
    grid-template-columns: 1fr 58px 1fr;
    align-items: center;
    gap: 10px;
    margin: 24px 0;
}

.app-node {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 132px;
    padding: 18px 12px;
    color: #25423c;
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
    background: #f7fbfa;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.app-node svg {
    width: 48px;
    height: 48px;
}

.telegram-node svg {
    fill: var(--telegram);
}

.whatsapp-node svg {
    fill: none;
    stroke: var(--whatsapp);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.route-arrow {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.route-arrow span {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    opacity: 0.25;
    animation: route-pulse 1.2s ease-in-out infinite;
}

.route-arrow span:nth-child(2) {
    animation-delay: 150ms;
}

.route-arrow span:nth-child(3) {
    animation-delay: 300ms;
}

@keyframes route-pulse {
    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.pack-list {
    display: grid;
    gap: 8px;
}

.pack-list > div {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 13px;
    font-size: 0.72rem;
    background: #f8fbfa;
    border: 1px solid rgba(13, 122, 103, 0.09);
    border-radius: 12px;
}

.pack-list span {
    color: var(--muted);
}

.pack-list i {
    padding: 4px 7px;
    color: var(--green);
    font-style: normal;
    font-weight: 900;
    background: var(--mint);
    border-radius: 999px;
}

.preview-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 15px 16px;
    color: white;
    background: var(--green-dark);
    border-radius: 15px;
}

.preview-action span {
    font-size: 0.72rem;
    opacity: 0.76;
}

.preview-action strong {
    font-size: 0.78rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding-bottom: 96px;
}

.feature-grid article {
    min-height: 220px;
    padding: 25px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(36, 75, 68, 0.08);
}

.feature-number {
    color: var(--green);
    font: 900 0.7rem/1 Arial, sans-serif;
    letter-spacing: 0.14em;
}

.feature-grid h2 {
    margin: 45px 0 12px;
    font-size: 1.05rem;
}

.feature-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.72;
}

.steps-section {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: clamp(45px, 8vw, 100px);
    padding: 86px 0;
    border-top: 1px solid var(--line);
}

.section-heading h2,
.network-note h2,
.requirements h2,
.final-cta h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.7rem);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.steps {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    padding: 23px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;
}

.steps li > b {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--green);
    font: 900 1rem/1 Arial, sans-serif;
    background: var(--mint);
    border-radius: 15px;
}

.steps h3 {
    margin: 2px 0 7px;
    font-size: 0.98rem;
}

.steps p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.65;
}

.network-note {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 55px;
    margin: 34px 0 92px;
    padding: 50px;
    color: white;
    background:
        radial-gradient(circle at 12% 20%, rgba(37, 211, 102, 0.28), transparent 18rem),
        linear-gradient(135deg, #103f38, #092e28);
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(4, 46, 38, 0.2);
}

.network-note .eyebrow {
    color: #76e6bd;
}

.network-note p:last-child {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.8;
}

.network-note code {
    color: white;
    background: rgba(255, 255, 255, 0.13);
}

.network-icon {
    position: relative;
    display: grid;
    place-items: end center;
    width: 150px;
    height: 120px;
}

.network-icon span {
    position: absolute;
    bottom: 8px;
    width: 130px;
    height: 95px;
    border: 5px solid #72e5bb;
    border-color: #72e5bb transparent transparent;
    border-radius: 50%;
    transform: rotate(180deg);
}

.network-icon span:nth-child(2) {
    width: 84px;
    height: 61px;
}

.network-icon i {
    width: 16px;
    height: 16px;
    margin-bottom: 5px;
    background: #72e5bb;
    border-radius: 50%;
}

.requirements {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: clamp(45px, 8vw, 100px);
    padding: 0 0 92px;
}

.requirements ul {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.requirements li {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    padding: 19px 4px;
    border-bottom: 1px solid var(--line);
}

.requirements strong {
    font-size: 0.83rem;
}

.requirements span {
    color: var(--muted);
    font-size: 0.84rem;
}

.final-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 74px 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.final-cta > p:not(.eyebrow) {
    margin: 17px 0 26px;
    color: var(--muted);
}

.final-cta small {
    max-width: 100%;
    margin-top: 18px;
    color: #7a8a87;
    font: 500 0.62rem/1.5 Consolas, monospace;
    overflow-wrap: anywhere;
}

footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    margin-top: 74px;
    padding: 32px 0 42px;
    border-top: 1px solid var(--line);
}

.footer-brand .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.55;
}

footer > div {
    display: flex;
    gap: 16px;
}

footer > div a {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
}

footer > div a:hover {
    color: var(--green);
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 62px;
    }

    .converter-preview {
        width: min(560px, 100%);
        margin: 0 auto;
        transform: none;
    }

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

    .steps-section,
    .requirements {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    footer {
        grid-template-columns: 1fr;
    }
}

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

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

    .site-header nav a:first-child {
        display: none;
    }

    .site-header nav {
        gap: 15px;
    }

    .hero {
        gap: 54px;
        padding: 52px 0 70px;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 13vw, 3.65rem);
    }

    .hero-lead {
        font-size: 0.96rem;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .converter-preview {
        padding: 16px;
        border-radius: 23px;
    }

    .route {
        grid-template-columns: 1fr 36px 1fr;
    }

    .route-arrow {
        gap: 2px;
    }

    .route-arrow span {
        width: 5px;
        height: 5px;
    }

    .app-node {
        min-height: 116px;
        padding-inline: 8px;
    }

    .app-node svg {
        width: 40px;
        height: 40px;
    }

    .pack-list > div {
        grid-template-columns: 1fr auto;
    }

    .pack-list i {
        display: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        padding-bottom: 70px;
    }

    .feature-grid article {
        min-height: 175px;
    }

    .feature-grid h2 {
        margin-top: 28px;
    }

    .steps-section {
        padding: 68px 0;
    }

    .steps li {
        grid-template-columns: 44px 1fr;
        gap: 14px;
        padding: 18px;
    }

    .steps li > b {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .network-note {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 72px;
        padding: 34px 24px;
        border-radius: 24px;
    }

    .network-icon {
        width: 110px;
        height: 85px;
        transform: scale(0.72);
        transform-origin: bottom left;
    }

    .requirements li {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .final-cta {
        padding: 55px 20px;
        border-radius: 24px;
    }

    .final-cta .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
