*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --white: #ffffff;
    --symbol: #ffffff;
    --bg: #F4F6FF;
    --ink: #0F0E17;
    --ink2: #3A3952;
    --muted: #8B8BA7;
    --border: #E2E4F0;
    --primary: #5B4FE9;
    --primary-light: #EEF0FF;
    --c1: #FF6B6B;
    --c1l: #FFF0F0;
    --c2: #FF9F43;
    --c2l: #FFF5E9;
    --c3: #48C9B0;
    --c3l: #E8FBF7;
    --c4: #5B4FE9;
    --c4l: #EEF0FF;
    --c5: #FF6BAE;
    --c5l: #FFF0F8;
    --c6: #4ECDC4;
    --c6l: #EDFBFA;
    --footer-bg: #0F0E17;
    --trans: background 0.25s, color 0.25s, border-color 0.25s;
}

html.dark {
    --white: #1C1B2E;
    --symbol: #777;
    --bg: #13121F;
    --ink: #EEEAF8;
    --ink2: #B8B4D4;
    --muted: #6B6888;
    --border: #2E2C45;
    --primary: #7C6FF5;
    --primary-light: #2A2650;
    --c1l: #2D1A1A;
    --c2l: #2D2010;
    --c3l: #102820;
    --c4l: #1E1A40;
    --c5l: #2D1525;
    --c6l: #102828;
    --footer-bg: #0A0914;
}

* {
    transition: var(--trans)
}

html {
    scroll-behavior: smooth
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
}

nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.nav-menu a {
    text-decoration: none;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink2);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.nav-item:hover,
.nav-item.active-page {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.nav-arrow {
    width: 10px;
    height: 10px;
    transition: transform 0.2s;
}

.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}

.nav-badge {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 100px;
}

.hamburger {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

.mobile-drawer {
    display: none;
    width: 150px;
    right: 0;
    height: 100%;
    z-index: 1;
    position: fixed;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 0.5rem 1rem 1rem;
    flex-direction: column;
    gap: 2px;
}

.mobile-drawer.open {
    display: flex;
}

.mob-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink2);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.mob-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-drawer .mob-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.mobile-drawer a {
    text-decoration: none;
}

.hero {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 5px 14px 5px 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--ink2);
    margin-bottom: 1.4rem;
}

.hero-pill-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #A855F7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--primary), #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1rem;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.input-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.5rem 2.5rem;
}

.input-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-card:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(91, 79, 233, 0.1);
}

.input-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 0;
}

.input-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}

.dot1 {
    background: #FF6B6B
}

.dot2 {
    background: #FF9F43
}

.dot3 {
    background: #48C9B0
}

.input-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-left: 4px;
}

textarea {
    width: 100%;
    border: none;
    outline: none;
    font-family: 'Fira Code', monospace;
    font-size: 15px;
    color: var(--ink);
    padding: 14px 18px;
    resize: none;
    min-height: 100px;
    background: transparent;
    line-height: 1.7;
}

textarea::placeholder {
    color: var(--muted);
}

.input-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 12px;
    border-top: 1px solid var(--border);
}

.char-count {
    font-size: 12px;
    color: var(--muted);
    font-family: 'Fira Code', monospace;
}

.clear-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.15s;
}

.clear-btn:hover {
    background: #FFF0F0;
    color: var(--c1);
}

.section-hd {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-hd h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.section-hd span {
    font-size: 12px;
    color: var(--muted);
}

.styles-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.style-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    position: relative;
    overflow: hidden;
}

.style-card:hover {
    transform: translateY(-3px);
}

.style-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
}


.style-card:hover.cc1 {
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
}

.style-card:hover.cc2 {
    box-shadow: 0 8px 24px rgba(255, 159, 67, 0.15);
    border-color: rgba(255, 159, 67, 0.3);
}

.style-card:hover.cc3 {
    box-shadow: 0 8px 24px rgba(72, 201, 176, 0.15);
    border-color: rgba(72, 201, 176, 0.3);
}

.style-card:hover.cc4 {
    box-shadow: 0 8px 24px rgba(91, 79, 233, 0.15);
    border-color: rgba(91, 79, 233, 0.3);
}

.style-card:hover.cc5 {
    box-shadow: 0 8px 24px rgba(255, 107, 174, 0.15);
    border-color: rgba(255, 107, 174, 0.3);
}

.style-card:hover.cc6 {
    box-shadow: 0 8px 24px rgba(78, 205, 196, 0.15);
    border-color: rgba(78, 205, 196, 0.3);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.style-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 100px;
}

.cc1 .style-tag {
    background: var(--c1l);
    color: var(--c1);
}

.cc2 .style-tag {
    background: var(--c2l);
    color: var(--c2);
}

.cc3 .style-tag {
    background: var(--c3l);
    color: var(--c3);
}

.cc4 .style-tag {
    background: var(--c4l);
    color: var(--c4);
}

.cc5 .style-tag {
    background: var(--c5l);
    color: var(--c5);
}

.cc6 .style-tag {
    background: var(--c6l);
    color: var(--c6);
}

.copy-btn {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.copy-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.copy-btn.done {
    border-color: #48C9B0;
    color: rgb(26, 182, 26);
    background: #3e3e3e;
}

.style-output {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--ink);
    word-break: break-all;
    min-height: 26px;
}

.style-output.empty {
    color: var(--muted);
    font-size: 0.9rem;
    font-style: italic;
}

.info-strip {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.info-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.info-block h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.info-block p {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.7;
}

.platforms {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
}

.platforms p {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.platform-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.platform-chip {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink2);
    transition: all 0.15s;
    cursor: default;
}

.platform-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.4);
    padding: 2rem 1.5rem;
    font-size: 12px;
    line-height: 1.9;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.footer-brand strong {
    color: #fff;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 4px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s;
    text-decoration: none;
    background: none;
    border: none;
    font-family: inherit;
}

.footer-link:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 1.2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 11px;
}

/* THEME TOGGLE */
.theme-toggle {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    width: 64px;
    height: 32px;
    display: flex;
    align-items: center;
    padding: 3px;
    position: relative;
    flex-shrink: 0;
}

.toggle-track {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    font-size: 13px;
    pointer-events: none;
}

.toggle-thumb {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    left: 3px;
    transition: left 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

html.dark .toggle-thumb {
    left: 35px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--white);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
    box-shadow: 0 8px 24px rgba(15, 14, 23, 0.25);
}

.toast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #48C9B0;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}



.faq-section {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem
}

.faq-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.3px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px
}

.faq-heading::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border);
    border-radius: 2px
}

.faq-box {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    overflow: hidden
}

.faq-item {
    border-bottom: 1px solid var(--border)
}

.faq-item:last-child {
    border-bottom: none
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    user-select: none;
    transition: background .12s;
    line-height: 1.4
}

.faq-q:hover {
    background: var(--bg)
}

.faq-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .2s
}

.faq-icon svg {
    width: 11px;
    height: 11px;
    color: var(--muted);
    transition: transform .2s
}

.faq-item.open .faq-q {
    color: var(--primary)
}

.faq-item.open .faq-icon {
    background: var(--primary-light);
    border-color: var(--primary)
}

.faq-item.open .faq-icon svg {
    color: var(--primary);
    transform: rotate(180deg)
}

.faq-a {
    font-size: .875rem;
    color: var(--ink2);
    line-height: 1.85;
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease
}

.faq-item.open .faq-a {
    max-height: 300px;
    padding: 0 18px 15px
}

/* Page labels (for this reference file only) */
.page-sep {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 8px 20px;
    margin: 2rem 0 1rem;
    border-radius: 8px;
    display: inline-block
}

.copy-note {
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: .8rem;
    font-family: 'Fira Code', monospace
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.hero {
    animation: fadeUp 0.5s ease both;
}

.input-section {
    animation: fadeUp 0.5s 0.1s ease both;
}

.styles-grid {
    animation: fadeUp 0.5s 0.2s ease both;
}

@media(max-width:1050px) {
    .styles-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 2fr));
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-badge {
        display: none;
    }

}

@media(max-width:600px) {
    .styles-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 2rem 1.5rem 1.5rem;
    }

    .nav-menu {
        display: none;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    nav {
        padding: 0 1rem;
    }
}