@import url('/assets/css/home/base.css');

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #fdfefe 100%);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 251, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1240px;
    width: 100%;
    min-height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-logo span {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 22px;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: var(--blue-700);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.tool-page {
    padding: 108px 0 88px;
}

.tool-hero {
    margin-bottom: 34px;
}

.tool-hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 28px;
    align-items: stretch;
}

.tool-hero-copy {
    padding: 18px 0 8px;
}

.tool-hero-copy h1 {
    font-size: clamp(2.45rem, 5.8vw, 4.5rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
    margin: 16px 0 18px;
    max-width: 10ch;
}

.tool-hero-sub {
    max-width: 60ch;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.78;
}

.tool-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 24px;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(191, 219, 254, 0.92);
    color: var(--blue-700);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.06);
}

.tool-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.tool-cta-primary,
.tool-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tool-cta-primary {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: #fff;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.2);
}

.tool-cta-secondary {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border);
    color: var(--text);
}

.tool-cta-primary:hover,
.tool-cta-secondary:hover {
    transform: translateY(-1px);
}

.tool-hero-art {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(191, 219, 254, 0.92);
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.08);
    padding: 18px;
}

.tool-hero-art::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(191, 219, 254, 0.45), rgba(191, 219, 254, 0));
    pointer-events: none;
}

.tool-hero-art img {
    position: relative;
    z-index: 1;
    width: 100%;
    display: block;
    border-radius: 22px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.tool-hero-note {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.tool-hero-note span {
    display: inline-flex;
    justify-content: center;
    text-align: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(219, 234, 254, 0.96);
    padding: 9px 10px;
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 600;
}

.tool-playground {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 18px;
    margin: 0 auto 36px;
    padding: 22px;
    border-radius: 30px;
    background: linear-gradient(135deg, #0f172a 0%, #13233f 55%, #1d4ed8 160%);
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.18);
}

.tool-playground-copy {
    color: #fff;
}

.playground-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tool-playground h2 {
    color: #fff;
    margin: 14px 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1;
    max-width: 12ch;
}

.tool-playground > .tool-playground-copy > p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.75;
}

.playground-controls {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.playground-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.playground-step {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.18);
    border: 1px solid rgba(147, 197, 253, 0.42);
    color: #bfdbfe;
    font-size: 0.68rem;
}

.playground-input,
.playground-textarea,
.playground-select,
.playground-zone {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.playground-input,
.playground-select {
    min-height: 52px;
    padding: 0 16px;
    font: inherit;
}

.playground-textarea {
    min-height: 112px;
    padding: 14px 16px;
    resize: vertical;
    font: inherit;
    line-height: 1.6;
}

.playground-input::placeholder,
.playground-textarea::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.playground-select {
    appearance: none;
}

.playground-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.playground-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.playground-chip:hover {
    border-color: rgba(147, 197, 253, 0.52);
    color: #fff;
}

.playground-action {
    margin-top: 6px;
}

.playground-button {
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.playground-note {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.74rem;
    text-align: center;
}

.tool-playground-visual {
    display: grid;
    gap: 12px;
}

.playground-preview {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.playground-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.playground-preview-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.playground-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.playground-mini-card {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    color: rgba(255, 255, 255, 0.82);
}

.playground-mini-card strong {
    display: block;
    color: #fff;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.playground-mini-card span {
    font-size: 0.74rem;
    line-height: 1.5;
}

.tool-content {
    display: grid;
    gap: 18px;
}

.tool-card {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(219, 234, 254, 0.92);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.05);
    padding: 28px;
}

.tool-card h2 {
    margin: 0 0 12px;
    font-size: 1.42rem;
    line-height: 1.08;
}

.tool-card p,
.tool-card li {
    color: var(--text-secondary);
    line-height: 1.8;
}

.tool-card ul {
    padding-left: 20px;
    margin: 0;
}

.tool-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 20px;
    align-items: stretch;
}

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

.tool-insight {
    border-radius: 20px;
    border: 1px solid rgba(219, 234, 254, 0.92);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.72));
    padding: 18px;
}

.tool-insight strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 0.94rem;
}

.tool-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.tool-stat {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(219, 234, 254, 0.92);
    padding: 18px;
}

.tool-stat-number {
    display: block;
    color: var(--blue-700);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.tool-stat-label {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.55;
}

.tool-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.tool-step {
    border-radius: 22px;
    border: 1px solid rgba(219, 234, 254, 0.92);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
}

.tool-step-number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: #fff;
    font-weight: 800;
    margin-bottom: 12px;
}

.tool-step h3 {
    margin: 0 0 8px;
    font-size: 0.94rem;
}

.tool-step p {
    margin: 0;
    font-size: 0.84rem;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tool-grid-card {
    border-radius: 22px;
    border: 1px solid rgba(219, 234, 254, 0.92);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    padding: 22px;
}

.tool-grid-card h3 {
    margin: 0 0 8px;
    font-size: 0.96rem;
}

.tool-grid-card p {
    margin: 0;
    font-size: 0.85rem;
}

.tool-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    gap: 18px;
    align-items: center;
}

.tool-showcase-media {
    overflow: hidden;
    border-radius: 24px;
    background: #eff6ff;
}

.tool-showcase-media img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-q {
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.faq-a {
    margin: 0;
    font-size: 0.9rem;
}

.tool-related {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tool-related a {
    display: block;
    border-radius: 20px;
    border: 1px solid rgba(219, 234, 254, 0.92);
    background: rgba(255, 255, 255, 0.92);
    padding: 18px;
    color: var(--blue-700);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
}

footer {
    margin-top: 76px;
    padding: 64px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 42px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-bottom: 14px;
}

.footer-logo img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text);
}

.footer-desc {
    max-width: 340px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.72;
}

.footer-col h4 {
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.84rem;
}

.footer-col a:hover {
    color: var(--blue-600);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
}

@media (max-width: 1100px) {
    .tool-hero-shell,
    .tool-playground,
    .tool-two-col,
    .tool-showcase {
        grid-template-columns: 1fr;
    }

    .tool-hero-copy h1,
    .tool-playground h2 {
        max-width: none;
    }

    .tool-steps,
    .tool-grid,
    .tool-related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 800px) {
    .tool-page {
        padding-top: 96px;
    }

    .tool-hero-copy {
        padding-top: 0;
    }

    .tool-hero-art {
        max-width: 560px;
        margin: 0 auto;
    }

    .tool-stat-row,
    .tool-steps,
    .tool-grid,
    .tool-related {
        grid-template-columns: 1fr;
    }

    .playground-mini-grid,
    .tool-hero-note {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    nav .nav-links {
        display: none !important;
    }

    nav .nav-links.open {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        bottom: auto;
        background: #fafbff;
        padding: 32px 24px;
        gap: 20px;
        align-items: flex-start;
        z-index: 200;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }

    .hamburger {
        display: flex;
    }

    .nav-inner {
        padding: 0 16px;
        gap: 8px;
    }

    .nav-logo span {
        font-size: 1.08rem;
    }

    .nav-cta {
        display: none;
    }

    .tool-page {
        padding-bottom: 64px;
    }

    .tool-playground,
    .tool-card {
        padding: 18px;
        border-radius: 24px;
    }

    .tool-hero-copy h1 {
        font-size: 2.2rem;
    }

    .tool-hero-sub {
        font-size: 0.92rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
