:root {
    --docsdee-primary: #2563eb;
    --docsdee-secondary: #1d4ed8;
    --docsdee-accent: #60a5fa;
    --docsdee-bg: #f8fafc;
    --docsdee-surface: #ffffff;
    --docsdee-text: #0f172a;
    --docsdee-muted: #475569;
    --docsdee-border: rgba(148, 163, 184, 0.22);
    --docsdee-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
    --docsdee-radius: 24px;
    --docsdee-font: "Inter", "Sarabun", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.docsdee-landing {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.20), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, var(--docsdee-bg) 36%, #ffffff 100%);
    color: var(--docsdee-text);
    font-family: var(--docsdee-font);
    line-height: 1.6;
}

body.docsdee-landing.rtl {
    font-family: "Sarabun", "Inter", "Segoe UI", sans-serif;
}

a {
    text-decoration: none;
}

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

.section-space {
    padding: 5.5rem 0;
}

.section-muted {
    background: rgba(37, 99, 235, 0.03);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 3rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.section-heading p,
.section-copy {
    color: var(--docsdee-muted);
    font-size: 1.05rem;
}

.section-eyebrow,
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--docsdee-primary);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.docsdee-navbar {
    padding: 1rem 0;
    background: rgba(248, 250, 252, 0.72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: all 0.25s ease;
}

.docsdee-navbar.scrolled {
    background: rgba(255, 255, 255, 0.88);
    border-color: var(--docsdee-border);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.docsdee-logo,
.footer-logo {
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--docsdee-text);
}

.docsdee-logo:hover,
.footer-logo:hover,
.nav-link:hover,
.docsdee-login-link:hover {
    color: var(--docsdee-primary);
}

.nav-link,
.docsdee-login-link {
    color: var(--docsdee-text);
    font-weight: 600;
}

.docsdee-lang-btn {
    border-radius: 999px;
    border: 1px solid var(--docsdee-border);
    background: var(--docsdee-surface);
    color: var(--docsdee-text);
    font-weight: 600;
}

.docsdee-primary-btn,
.docsdee-secondary-btn,
.pricing-card .btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.9rem 1.45rem;
}

.docsdee-primary-btn {
    background: linear-gradient(135deg, var(--docsdee-primary), var(--docsdee-secondary));
    border: none;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.24);
}

.docsdee-secondary-btn {
    border-width: 2px;
}

.hero-shell {
    position: relative;
    overflow: hidden;
}

.hero-section {
    padding: 9rem 0 5rem;
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.9rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--docsdee-muted);
    max-width: 620px;
}

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

.hero-audiences span,
.hero-doc-chips span {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: var(--docsdee-surface);
    border: 1px solid var(--docsdee-border);
    color: var(--docsdee-text);
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.hero-preview-wrap {
    position: relative;
    min-height: 540px;
}

.hero-doc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    justify-content: flex-end;
}

.hero-preview-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    box-shadow: var(--docsdee-shadow);
    overflow: hidden;
}

.preview-card-main {
    inset: 4rem 2rem 0 auto;
    width: min(100%, 470px);
    z-index: 3;
}

.preview-card-secondary {
    width: 240px;
    top: 8rem;
    left: 0;
    transform: rotate(-8deg);
    z-index: 1;
    animation: floatSlow 7s ease-in-out infinite;
}

.preview-card-tertiary {
    width: 220px;
    bottom: 0;
    right: 0;
    transform: rotate(8deg);
    z-index: 2;
    animation: floatSlow 8s ease-in-out infinite reverse;
}

.preview-card-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.25rem 0.5rem;
}

.preview-card-top p {
    color: var(--docsdee-muted);
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
}

.status-pill {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
    font-weight: 700;
}

.preview-card-main img,
.preview-card-secondary img,
.preview-card-tertiary img {
    width: 100%;
    height: auto;
}

.feature-card,
.template-card,
.step-card,
.doc-type-card,
.pricing-card {
    height: 100%;
    border-radius: var(--docsdee-radius);
    background: var(--docsdee-surface);
    border: 1px solid var(--docsdee-border);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.template-card:hover,
.step-card:hover,
.doc-type-card:hover,
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.10);
}

.feature-card,
.step-card,
.doc-type-card {
    padding: 1.6rem;
}

.feature-icon,
.doc-type-icon,
.sharing-icon {
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--docsdee-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card h3,
.template-card h3,
.step-card h3,
.doc-type-card h3,
.pricing-card h3,
.sharing-item h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
}

.feature-card p,
.template-card p,
.step-card p,
.doc-type-card p,
.pricing-card p,
.sharing-item p,
.accordion-body,
.footer-copy,
.footer-links a {
    color: var(--docsdee-muted);
}

.template-image-wrap {
    padding: 1rem;
}

.template-image-wrap img {
    border-radius: 18px;
    background: #fff;
}

.template-card-body {
    padding: 0 1.25rem 1.25rem;
}

.step-number {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--docsdee-primary), var(--docsdee-secondary));
    color: #fff;
    font-weight: 800;
    margin-bottom: 1rem;
}

.sharing-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.sharing-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.15rem;
    border-radius: 22px;
    background: var(--docsdee-surface);
    border: 1px solid var(--docsdee-border);
}

.sharing-showcase {
    position: relative;
}

.sharing-window {
    background: var(--docsdee-surface);
    border-radius: 28px;
    border: 1px solid var(--docsdee-border);
    box-shadow: var(--docsdee-shadow);
    overflow: hidden;
}

.sharing-window-bar {
    display: flex;
    gap: 0.45rem;
    padding: 1rem 1.25rem;
    background: rgba(37, 99, 235, 0.06);
}

.sharing-window-bar span {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.18);
}

.sharing-window-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

.mobile-preview {
    padding: 0.8rem;
    border-radius: 28px;
    background: linear-gradient(180deg, #0f172a, #1e293b);
}

.mobile-screen {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
}

.share-url-card,
.qr-placeholder {
    border: 1px solid var(--docsdee-border);
    border-radius: 22px;
    padding: 1.1rem;
    background: #fff;
}

.share-url-card label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    color: var(--docsdee-muted);
}

.share-url-card strong {
    word-break: break-all;
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
}

.qr-grid {
    width: 132px;
    height: 132px;
    background:
        linear-gradient(90deg, var(--docsdee-text) 10px, transparent 10px) 0 0 / 22px 22px,
        linear-gradient(var(--docsdee-text) 10px, transparent 10px) 0 0 / 22px 22px,
        linear-gradient(90deg, transparent 11px, var(--docsdee-text) 11px 14px, transparent 14px) 0 0 / 22px 22px,
        linear-gradient(transparent 11px, var(--docsdee-text) 11px 14px, transparent 14px) 0 0 / 22px 22px;
    border-radius: 12px;
}

.sharing-details {
    display: grid;
    gap: 1rem;
}

.sharing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.pricing-card {
    padding: 1.8rem;
}

.pricing-card.featured {
    position: relative;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), #ffffff);
    border-color: rgba(37, 99, 235, 0.2);
}

.pricing-tier {
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--docsdee-primary);
    margin-bottom: 0.9rem;
}

.pricing-card-top h3 {
    font-size: 2.4rem;
    margin-bottom: 0.25rem;
}

.pricing-card-top p {
    margin-bottom: 0.7rem;
}

.pricing-desc {
    display: block;
    min-height: 3rem;
    color: var(--docsdee-muted);
}

.pricing-list {
    list-style: none;
    margin: 1.25rem 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.pricing-list li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.pricing-list i {
    color: var(--docsdee-primary);
}

.faq-shell {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
    border-radius: 28px;
    background: var(--docsdee-surface);
    border: 1px solid var(--docsdee-border);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.06);
}

.accordion-item {
    border: none;
}

.accordion-button {
    font-weight: 700;
    padding: 1.25rem 0.5rem;
    background: transparent;
}

.accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--docsdee-primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.docsdee-footer {
    padding: 4rem 0 2rem;
    background: #0f172a;
    color: rgba(255, 255, 255, 0.88);
}

.docsdee-footer h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-logo {
    color: #fff;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.72);
    max-width: 340px;
}

.footer-links,
.footer-language-grid {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li + li {
    margin-top: 0.7rem;
}

.footer-links a,
.footer-language-link {
    color: rgba(255, 255, 255, 0.72);
}

.footer-language-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.footer-language-link.active,
.footer-language-link:hover,
.footer-links a:hover {
    color: #fff;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-socials a {
    width: 2.65rem;
    height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.95rem;
}

@keyframes floatSlow {
    0%,
    100% {
        transform: translateY(0) rotate(-6deg);
    }
    50% {
        transform: translateY(-10px) rotate(-4deg);
    }
}

@media (max-width: 1199.98px) {
    .sharing-window-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 8rem;
    }

    .hero-preview-wrap {
        min-height: 500px;
    }

    .preview-card-main {
        position: relative;
        inset: auto;
        width: 100%;
        margin-inline: auto;
    }

    .preview-card-secondary,
    .preview-card-tertiary {
        width: 180px;
    }
}

@media (max-width: 767.98px) {
    .section-space {
        padding: 4.25rem 0;
    }

    .hero-actions .btn,
    .sharing-actions .btn {
        width: 100%;
    }

    .hero-preview-wrap {
        min-height: 420px;
    }

    .preview-card-secondary,
    .preview-card-tertiary {
        width: 150px;
    }

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

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.6rem;
    }

    .hero-preview-wrap {
        min-height: 360px;
    }

    .preview-card-secondary,
    .preview-card-tertiary {
        display: none;
    }
}
