:root {
    color-scheme: light dark;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    background-color: #f7f9fc;
    color: #1a1a1a;
}

body {
    margin: 0;
    background-color: inherit;
}

[hidden],
.hidden {
    display: none !important;
}

body.modal-open {
    overflow: hidden;
}

body.page-home {
    background: #04070f;
    color: #f8fafc;
}

body.page-home h1,
body.page-home h2,
body.page-home h3,
body.page-home p,
body.page-home span {
    color: inherit;
}

.page-home a {
    color: #60a5fa;
}

.page-home a:hover {
    color: #93c5fd;
}

.container.home-main {
    width: min(960px, 92vw);
    margin: 0 auto;
    padding: 4rem 0 5rem;
    display: grid;
    gap: 3rem;
    justify-items: center;
}

.home-hero {
    text-align: center;
    display: grid;
    gap: 1rem;
}

.home-hero__content {
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.home-hero__eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.35em;
    color: #60a5fa;
}

.home-hero__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    text-transform: uppercase;
}

.home-hero__subtitle {
    max-width: 48rem;
    font-size: 1.1rem;
    color: rgba(226, 232, 240, 0.85);
    margin: 0;
}

.home-tool {
    width: 100%;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 28px;
    padding: 2.5rem 2rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.home-section {
    width: 100%;
    padding: 3rem 0;
}

.home-section--intro {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 28px;
    padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.home-section--accent {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.35), rgba(14, 116, 144, 0.25));
    border-radius: 32px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 3.5rem clamp(1.5rem, 4vw, 4rem);
    box-shadow: 0 24px 60px rgba(13, 27, 42, 0.25);
}

.home-section__inner {
    display: grid;
    gap: 2rem;
}

.home-section__copy,
.home-section__header {
    display: grid;
    gap: 1rem;
    max-width: 48rem;
}

.home-section__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #f8fafc;
}

.home-section__subtitle {
    margin: 0;
    font-size: 1rem;
    color: #f1f5f9;
}

.home-intro {
    display: grid;
    gap: 1.5rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.05);
}

.home-intro__label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(191, 219, 254, 0.85);
}

.home-intro__description {
    margin: 0;
    font-size: 1.02rem;
    color: #f8fafc;
}

.home-intro__features {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.home-intro__feature {
    background: rgba(8, 47, 73, 0.5);
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: grid;
    gap: 0.5rem;
}

.home-intro__feature-title {
    margin: 0;
    font-size: 1rem;
    color: #ffffff;
}

.home-intro__feature-body {
    margin: 0;
    font-size: 0.9rem;
    color: #f8fafc;
}

.home-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.home-card {
    background: rgba(8, 47, 73, 0.55);
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 20px;
    padding: 1.75rem;
    display: grid;
    gap: 0.75rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}

.home-card__title {
    margin: 0;
    font-size: 1.2rem;
    color: #ffffff;
}

.home-card__body {
    margin: 0;
    font-size: 0.98rem;
    color: #f8fafc;
}

.home-grid--features {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.home-feature {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    padding: 1.6rem;
    display: grid;
    gap: 0.6rem;
}

.home-feature__title {
    margin: 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.home-feature__body {
    margin: 0;
    font-size: 0.95rem;
    color: #f8fafc;
}

.home-section--faq {
    border-radius: 32px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(10, 12, 26, 0.65);
    padding: 3.5rem clamp(1.5rem, 3.5vw, 3.5rem);
    box-shadow: 0 24px 60px rgba(10, 12, 26, 0.35);
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    border-radius: 16px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: rgba(15, 23, 42, 0.45);
    padding: 1rem 1.25rem;
    color: inherit;
}

.faq-item[open] {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(96, 165, 250, 0.35);
}

.faq-item__question {
    cursor: pointer;
    list-style: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__question::after {
    content: '▾';
    font-size: 0.85rem;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
    display: inline-block;
}

.faq-item[open] .faq-item__question::after {
    transform: rotate(180deg);
}

.faq-item__answer {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
    color: #f8fafc;
}

.prompt-form {
    display: grid;
    gap: 1.75rem;
}

.dropzone {
    position: relative;
    background: #1d4ed8;
    border-radius: 32px;
    padding: clamp(2.5rem, 4vw, 4rem) 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.dropzone::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 24px;
    border: 2px dashed rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transition: border-color 0.2s ease, inset 0.2s ease;
}

.dropzone:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(29, 78, 216, 0.35);
}

.dropzone.is-dragging {
    background: #2563eb;
}

.dropzone.is-dragging::before {
    border-color: rgba(255, 255, 255, 0.85);
    inset: 14px;
}

.dropzone.has-file::before {
    border-color: rgba(255, 255, 255, 0.85);
}

.dropzone__content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.dropzone__icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.25);
    color: #f8fafc;
}

.dropzone__icon svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.dropzone__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #f8fafc;
}

.dropzone__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.8);
}

.dropzone__hint {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.65);
}

.button.ghost {
    background: transparent;
    color: #f8fafc;
    border: 1px solid rgba(248, 250, 252, 0.55);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button.ghost:hover,
.button.ghost:focus-visible {
    background: rgba(15, 23, 42, 0.3);
    border-color: rgba(248, 250, 252, 0.8);
}

.selected-file {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(148, 163, 184, 0.9);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.25);
    text-align: center;
    word-break: break-all;
}

.page-home .form-actions {
    display: flex;
    justify-content: center;
}

.page-home button,
.page-home .button {
    border-radius: 999px;
    padding: 0.85rem 2.5rem;
}

.page-home button[type="submit"] {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.35);
}

.page-home button[type="submit"]:hover,
.page-home button[type="submit"]:focus-visible {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
}

.page-home .alert {
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    border-width: 1px;
}

.page-home .alert-success {
    background: rgba(22, 163, 74, 0.12);
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.45);
}

.page-home .alert-error {
    background: rgba(248, 113, 113, 0.12);
    color: #fecdd3;
    border-color: rgba(248, 113, 113, 0.4);
}

.page-home .site-footer {
    background: #030712;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-brand {
    display: grid;
    gap: 1rem;
    max-width: 420px;
    text-align: left;
}

.footer-logo {
    width: 180px;
    max-width: 100%;
}

.footer-tagline {
    margin: 0;
    font-size: 0.95rem;
    color: #ffffff;
}

.footer-nav {
    display: grid;
    gap: 1rem;
    text-align: left;
}

.footer-nav__title {
    margin: 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.footer-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.footer-nav__list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-nav__list a:hover,
.footer-nav__list a:focus-visible {
    color: #cbd5f5;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #ffffff;
}

.footer-bottom small {
    display: inline-block;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(960px, 90vw);
    margin: 0 auto;
    padding: 2rem 0;
}

.site-header {
    background-color: #0d0d0f;
    color: #fff;
    padding: 0.7rem 0;
}

.site-header .container {
    width: 100%;
    max-width: 100%;
    padding: 0 1.25rem;
    margin: 0 auto;
    box-sizing: border-box;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    width: 100%;
    min-height: 54px;
}

.brand {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.brand span {
    display: inline-block;
}

.brand.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.02em;
}

.brand.logo .logo-image {
    height: 50px;
    width: 250px;
    display: block;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #f3f4f6;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
    padding: 0.35rem 0;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #ffffff;
    text-decoration: none;
}

.nav-link.accent {
    color: #8ab4ff;
    font-weight: 600;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #2f3034;
    border: none;
    color: #f5f5f7;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.38rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-pill:hover,
.nav-pill:focus-visible {
    background: #3a3c42;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.nav-pill .chevron {
    font-size: 0.75rem;
    opacity: 0.8;
}

.nav-toggle {
    display: none;
}

.nav-toggle-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-toggle-btn span {
    width: 18px;
    height: 2px;
    background: #f5f5f5;
    display: block;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-footer {
    background-color: #0d1b2a;
    color: #cad2c5;
    padding: 1rem 0;
    text-align: center;
}

.card {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.05);
}

.card.narrow {
    max-width: 520px;
    margin: 2rem auto;
}

.hero {
    background: linear-gradient(145deg, #0d1b2a, #1b263b);
    color: #fff;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.hero .hero-content {
    width: min(860px, 90vw);
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
}

.hero p {
    margin: 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}

h1, h2 {
    margin-top: 0;
    color: #0d1b2a;
}

.form {
    display: grid;
    gap: 1rem;
}

label {
    font-weight: 600;
}

input[type="file"],
input[type="text"],
input[type="password"],
input[type="email"] {
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

button,
.button {
    display: inline-block;
    background-color: #2563eb;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}

.button.secondary {
    background-color: #94a3b8;
}

button:hover,
.button:hover {
    background-color: #1d4ed8;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #ecfdf5;
    color: #0f766e;
    border: 1px solid #99f6e4;
}

.alert-error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.prompt-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.5rem;
}

.prompt-text {
    display: block;
    background-color: #f1f5f9;
    padding: 1rem;
    border-radius: 8px;
    white-space: pre-wrap;
    font-family: "Fira Code", Consolas, monospace;
    color: #0f172a;
}

.prompt-text.muted {
    background: none;
    padding: 0;
    font-style: italic;
    color: #64748b;
}

.prompt-meta {
    display: block;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link,
.nav-pill {
    flex-shrink: 0;
}

.nav-link,
.nav-pill {
    white-space: nowrap;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1000;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1001;
    outline: none;
}

.modal-content {
    width: min(640px, 100%);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    padding: 1.75rem;
    display: grid;
    gap: 1.5rem;
}

.modal-close {
    align-self: start;
    justify-self: end;
    background: none;
    border: none;
    color: #475569;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
    color: #2563eb;
}

.prompt-output {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    white-space: pre-wrap;
    font-family: "Fira Code", Consolas, monospace;
    font-size: 0.95rem;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    max-height: 320px;
    overflow-y: auto;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 641px) {
    .header-inner {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .nav {
        justify-self: center;
        margin-left: 12rem;
    }
}

@media (max-width: 640px) {
    .site-header .container {
        padding: 0 1rem;
    }

    .header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding-right: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .brand {
        flex: 0 0 auto;
    }

    .nav-toggle-btn {
        display: flex;
        position: static;
        margin-left: auto;
        z-index: 11;
    }

    .nav {
        order: 3;
        display: none;
        position: fixed;
        inset: 0;
        padding: 4.5rem 1.75rem 2rem;
        gap: 1rem;
        text-align: left;
        background: rgba(8, 12, 20, 0.96);
        backdrop-filter: blur(12px);
        margin: 0;
        grid-auto-flow: row;
        width: 100vw;
        height: 100vh;
        z-index: 10;
        overflow-y: auto;
        align-content: flex-start;
    }

    .nav-pill {
        padding: 0.75rem 0.5rem;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 999px;
    }

    .nav-toggle:checked ~ .nav {
        display: grid;
    }

    .nav-link,
    .nav-pill {
        justify-content: flex-start;
        width: 100%;
        padding: 0.65rem 0.5rem;
        font-size: 1rem;
    }

    .nav-toggle:checked + .nav-toggle-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle:checked + .nav-toggle-btn span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked + .nav-toggle-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        text-align: center;
    }

    .hero .hero-content {
        justify-items: center;
    }

    .container.home-main {
        width: min(600px, 94vw);
        padding: 3rem 0 4rem;
        gap: 2.5rem;
    }

    .home-hero__title {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .home-tool {
        padding: 2rem 1.25rem;
    }

    .dropzone {
        padding: 2.5rem 1rem;
    }

    .dropzone::before {
        inset: 12px;
    }

    .home-section--accent,
    .home-section--faq {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }

    .home-section--intro {
        padding: 2.25rem 1.5rem;
        border-radius: 24px;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .home-intro__features {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .page-home .form-actions {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .modal {
        align-items: flex-start;
        padding-top: 4rem;
    }
}

