:root {
    --surface: #f5f7fb;
    --surface-strong: #eef1f9;
    --border: #d6d9e6;
    --primary: #275efe;
    --primary-dark: #1740b6;
    --text: #1d2333;
    --muted: #5c6370;
    --background: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #0d1b46 0%, #1c2d68 45%, #f5f7fb 45%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.landing-header {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
    color: #fff;
}

.brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
}

.brand-logo {
    width: clamp(80px, 12vw, 120px);
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}

.brand-copy h1 {
    margin: 0.5rem 0 0.75rem;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 700;
}

.brand-copy p {
    margin: 0 0 1.5rem;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 46ch;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-decoration: none;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta.primary {
    background: #fff;
    color: #0d1b46;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.cta.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.cta.secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

.cta.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.cta.ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
}

.cta.ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero-visual {
    margin-top: clamp(2rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(8, 18, 46, 0.35);
}

.hero-card__label {
    display: block;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.7);
}

.hero-card strong {
    display: block;
    margin-top: 0.4rem;
    font-size: 1.35rem;
}

.hero-card p {
    margin: 0.6rem 0 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

main {
    flex: 1;
}

.section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: var(--surface);
}

.section:nth-of-type(odd) {
    background: var(--surface-strong);
}

.section-heading {
    max-width: 640px;
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    margin: 0 0 0.8rem;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}


.section-create-form {
    background: var(--surface-strong);
}

.create-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.create-form input {
    flex: 1 1 320px;
    min-width: 220px;
    padding: 0.8rem 0.95rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 1rem;
    font-family: inherit;
}

.create-form-duplicate {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.create-form-duplicate label {
    font-weight: 600;
    color: var(--muted);
}

.create-form-duplicate select {
    min-width: min(420px, 100%);
    max-width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.template-card {
    position: relative;
    background: var(--background);
    border-radius: 18px;
    padding: 1.75rem;
    border: 1px solid rgba(18, 34, 72, 0.08);
    box-shadow: 0 18px 45px rgba(17, 23, 48, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.template-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(17, 23, 48, 0.18);
}

.template-card__name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.template-card__meta {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.template-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary);
}

.template-card__cta::after {
    content: '→';
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.template-card:hover .template-card__cta::after {
    transform: translateX(4px);
}

.pdf-section .container {
    display: grid;
    gap: 2.5rem;
}

.pdf-panel {
    background: var(--background);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(18, 34, 72, 0.08);
    box-shadow: 0 18px 40px rgba(17, 23, 48, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: flex-end;
}

.pdf-controls {
    display: flex;
    flex-direction: column;
    min-width: 220px;
    gap: 0.5rem;
}

.pdf-controls label {
    font-weight: 600;
    color: var(--muted);
}

select {
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 1rem;
    font-family: inherit;
}

button.primary {
    cursor: pointer;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(39, 94, 254, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(39, 94, 254, 0.45);
}

button.primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.status {
    margin: 0;
    font-weight: 500;
    min-height: 1.2em;
}

.status.success {
    color: #1b8f4d;
}

.status.error {
    color: #c9363c;
}

.status.info {
    color: var(--muted);
}

.landing-footer {
    padding: 2rem 0;
    background: #0b1537;
    color: rgba(255, 255, 255, 0.75);
}

.landing-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    text-decoration: underline;
}

@media (max-width: 820px) {
    .brand {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .brand-copy {
        order: 2;
    }

    .brand-logo {
        margin: 0 auto;
    }

    .brand-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .create-form {
        flex-direction: column;
        align-items: stretch;
    }

    .create-form input {
        width: 100%;
    }

    .pdf-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .pdf-controls {
        width: 100%;
    }

    button.primary {
        width: 100%;
    }
}
