:root {
    --color-background: #111316;
    --color-surface: #17191d;
    --color-surface-soft: #1e2227;
    --color-surface-strong: #272c33;
    --color-text-primary: #ffffff;
    --color-text-secondary: #b9c0cc;
    --color-text-muted: #8e98a7;
    --color-outline: rgba(255, 255, 255, 0.1);
    --color-primary: #9fc0ff;
    --color-primary-strong: #4d8efe;
    --color-line: #06c755;
    --color-line-dark: #05ad4b;
    --color-warn: #ffbd7a;
    --color-danger: #ff8f8f;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-background);
    color: var(--color-text-primary);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

@media (min-width: 501px) {
    body {
        background-image: linear-gradient(rgba(17, 19, 22, 0.02), rgba(17, 19, 22, 0.2)), var(--bg-image-url);
        background-position: center;
        background-size: cover;
        background-attachment: fixed;
    }
}

a {
    color: inherit;
}

.app-container {
    width: 100%;
    max-width: 500px;
    min-height: 100vh;
    background: var(--color-background);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 92px;
    position: relative;
}

.nav-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(17, 19, 22, 0.86);
    border-bottom: 1px solid var(--color-outline);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-primary);
    text-decoration: none;
    font-family: "Sora", sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
    min-width: 0;
}

.nav-logo-mark {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: var(--color-primary-strong);
    box-shadow: 0 0 12px rgba(77, 142, 254, 0.8);
    flex: 0 0 auto;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--color-line);
    color: #ffffff;
    text-decoration: none;
    font-family: "Sora", sans-serif;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(6, 199, 85, 0.22);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn:hover {
    background: var(--color-line-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(6, 199, 85, 0.34);
}

.content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 20px;
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 0 2px;
    text-align: center;
}

.chip-mono {
    align-self: center;
    border: 1px solid rgba(77, 142, 254, 0.24);
    border-radius: 999px;
    background: rgba(77, 142, 254, 0.1);
    color: var(--color-primary);
    padding: 4px 12px;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.hero-title {
    color: var(--color-text-primary);
    font-family: "Sora", sans-serif;
    font-size: 32px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: 0;
}

.hero-gradient-text {
    background: linear-gradient(135deg, #ffffff 20%, #9fc0ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--color-text-secondary);
    font-size: 15px;
    margin: 0 auto;
    max-width: 420px;
}

.hero-console {
    margin-top: 10px;
    border: 1px solid var(--color-outline);
    border-radius: var(--radius-lg);
    background: rgba(10, 12, 15, 0.72);
    overflow: hidden;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.console-top {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-outline);
    background: rgba(255, 255, 255, 0.03);
}

.console-top span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--color-danger);
}

.console-top span:nth-child(2) {
    background: var(--color-warn);
}

.console-top span:nth-child(3) {
    background: var(--color-line);
}

.console-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
}

.console-line:last-child {
    border-bottom: 0;
}

.console-label {
    color: var(--color-text-muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    white-space: nowrap;
}

.glass-panel,
.price-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-outline);
    border-radius: var(--radius-lg);
    background: rgba(30, 34, 39, 0.66);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    padding: 20px;
}

.glass-panel::before,
.price-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04), transparent);
}

.section-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--color-text-primary);
    font-family: "Sora", sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
}

.section-heading-row .section-title {
    margin-bottom: 0;
}

.section-title-icon {
    display: inline-block;
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: var(--color-primary-strong);
    flex: 0 0 auto;
}

.section-copy {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.notice-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 14px;
    padding: 14px;
    border-left: 3px solid var(--color-warn);
    border-radius: var(--radius-md);
    background: rgba(255, 189, 122, 0.08);
    color: var(--color-text-secondary);
    font-size: 14px;
}

.notice-box strong {
    color: var(--color-text-primary);
}

.source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.source-links a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(159, 192, 255, 0.22);
    color: var(--color-primary);
    background: rgba(77, 142, 254, 0.08);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.soft-badge {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 189, 122, 0.28);
    background: rgba(255, 189, 122, 0.09);
    color: var(--color-warn);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 700;
}

.compare-list,
.fit-list,
.flow-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compare-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.compare-row.highlight {
    border-color: rgba(6, 199, 85, 0.24);
}

.compare-name {
    color: var(--color-text-primary);
    font-family: "Sora", sans-serif;
    font-size: 15px;
    font-weight: 800;
}

.compare-text {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.flow-list {
    list-style: none;
    counter-reset: none;
}

.flow-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.flow-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(77, 142, 254, 0.16);
    color: var(--color-primary);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    font-weight: 800;
    flex: 0 0 auto;
}

.flow-list strong {
    display: block;
    color: var(--color-text-primary);
    font-size: 15px;
}

.flow-list p {
    color: var(--color-text-secondary);
    font-size: 13px;
    margin-top: 2px;
}

.fit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.fit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-md);
    background: rgba(6, 199, 85, 0.1);
    color: var(--color-line);
    flex: 0 0 auto;
}

.fit-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.price-panel {
    background: linear-gradient(180deg, rgba(6, 199, 85, 0.18), rgba(30, 34, 39, 0.72));
    border-color: rgba(6, 199, 85, 0.26);
    text-align: center;
}

.price-label {
    color: var(--color-line);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    font-weight: 800;
}

.price-main {
    margin-top: 4px;
    color: var(--color-text-primary);
    font-family: "Sora", sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
}

.price-panel p {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin: 12px auto 16px;
    max-width: 390px;
}

.price-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border-radius: var(--radius-lg);
    background: var(--color-line);
    color: #ffffff;
    text-decoration: none;
    font-family: "Sora", sans-serif;
    font-size: 15px;
    font-weight: 800;
}

.faq-item {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0;
}

.faq-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.faq-item:last-of-type {
    padding-bottom: 0;
}

.faq-item summary {
    cursor: pointer;
    color: var(--color-text-primary);
    font-size: 15px;
    font-weight: 800;
}

.faq-item p {
    color: var(--color-text-secondary);
    font-size: 13px;
    margin-top: 8px;
}

.bottom-cta {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 99;
    width: 100%;
    max-width: 500px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 20px 8px;
    border-top: 1px solid var(--color-outline);
    background: rgba(17, 19, 22, 0.92);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.bottom-cta-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-btn-secondary,
.cta-btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: var(--radius-lg);
    font-family: "Sora", sans-serif;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.2s ease, box-shadow 0.2s ease, font-size 0.15s ease;
}

.cta-btn-secondary {
    flex: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--color-surface-strong);
    color: var(--color-text-primary);
    cursor: pointer;
}

.cta-btn-secondary:hover {
    background: #313844;
}

.cta-btn-line {
    flex: 1;
    gap: 7px;
    border: 0;
    background: var(--color-line);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(6, 199, 85, 0.2);
}

.cta-btn-line:hover {
    background: var(--color-line-dark);
    box-shadow: 0 6px 18px rgba(6, 199, 85, 0.34);
}

.cta-btn-line img {
    width: 28px;
    height: 28px;
    transition: width 0.15s ease, height 0.15s ease;
}

.bottom-cta-info {
    color: var(--color-text-muted);
    text-align: center;
    font-size: 11px;
    font-weight: 600;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 88px;
    z-index: 1000;
    transform: translateX(-50%) translateY(18px);
    opacity: 0;
    pointer-events: none;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: var(--color-surface-strong);
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 380px) {
    .content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nav-header,
    .bottom-cta {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-title {
        font-size: 29px;
    }

    .price-main {
        font-size: 34px;
    }

    .cta-btn-secondary,
    .cta-btn-line {
        font-size: 12px;
    }
}
