:root {
    --bg-top: #eef3ff;
    --bg-bottom: #f8fbff;
    --surface: rgba(255, 255, 255, 0.74);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --text: #15213b;
    --muted: #66728e;
    --line: rgba(112, 132, 174, 0.15);
    --purple: #7658ff;
    --blue: #3c7cff;
    --cyan: #60c9ff;
    --success: #109f6f;
    --success-soft: rgba(16, 159, 111, 0.1);
    --warning: #c48b12;
    --warning-soft: rgba(196, 139, 18, 0.12);
    --danger: #db4c64;
    --danger-soft: rgba(219, 76, 100, 0.11);
    --shadow: 0 28px 72px rgba(44, 72, 149, 0.14);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(118, 88, 255, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(60, 124, 255, 0.18), transparent 24%),
        linear-gradient(180deg, var(--bg-top), var(--bg-bottom) 58%, #eef4ff 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: 0;
    border-radius: 999px;
    filter: blur(38px);
    opacity: 0.55;
    pointer-events: none;
}

body::before {
    width: 300px;
    height: 300px;
    left: -90px;
    top: 110px;
    background: rgba(118, 88, 255, 0.2);
}

body::after {
    width: 380px;
    height: 380px;
    right: -110px;
    bottom: -90px;
    background: rgba(96, 201, 255, 0.18);
}

.page-shell {
    position: relative;
    z-index: 1;
    max-width: 1220px;
    margin: 0 auto;
    padding: 28px 20px 54px;
}

a {
    color: var(--blue);
}

.topbar,
.subnav,
.result-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
}

.brand-lockup,
.result-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.result-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 18px 35px rgba(81, 97, 255, 0.28);
}

.brand-copy {
    display: grid;
    gap: 3px;
}

.brand-label {
    font-size: 0.98rem;
    font-weight: 800;
}

.brand-subtitle,
.hero-copy p,
.input-hint,
.feature-card span,
.loader-copy p,
.result-url,
.panel-header p,
.suggestion-copy p,
.finding-copy p,
.plagiarism-copy p,
.page-url,
.tooltip-copy {
    color: var(--muted);
}

.hero-grid,
.stats-grid,
.insight-grid,
.feature-grid {
    display: grid;
    gap: 20px;
}

.hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: stretch;
}

.hero-copy {
    padding: 34px 6px 0;
}

.eyebrow,
.section-label,
.subnav-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--purple);
}

.hero-copy h1,
.loader-copy h1 {
    margin: 14px 0 16px;
    letter-spacing: -0.05em;
}

.hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.9rem, 6vw, 5rem);
    line-height: 0.97;
}

.loader-copy h1,
.score-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1;
}

.hero-copy p {
    max-width: 62ch;
    font-size: 1.04rem;
    line-height: 1.8;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-pills span,
.status-pill,
.loader-step {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(118, 88, 255, 0.12);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 12px 24px rgba(69, 96, 173, 0.08);
    font-weight: 700;
}

.hero-card,
.card,
.loader-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: var(--radius-xl);
    background: var(--surface);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.hero-card,
.card,
.loader-card,
.feature-card,
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.hero-card:hover,
.card:hover,
.feature-card:hover,
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 34px 80px rgba(44, 72, 149, 0.17);
}

.hero-card,
.score-hero,
.progress-card,
.stat-card,
.insight-grid .card {
    padding: 28px;
}

.loader-card {
    padding: 28px;
}

.card-glow {
    position: absolute;
    inset: -1px;
    background:
        radial-gradient(circle at 18% 12%, rgba(96, 201, 255, 0.24), transparent 30%),
        radial-gradient(circle at 88% 0%, rgba(118, 88, 255, 0.25), transparent 26%);
    pointer-events: none;
}

.card-header,
.panel-header {
    position: relative;
    z-index: 1;
}

.card-header h2,
.panel-header h3,
.progress-header h3 {
    margin: 10px 0 0;
}

.panel-header p {
    margin: 10px 0 0;
    line-height: 1.65;
}

.domain-form {
    position: relative;
    z-index: 1;
    margin-top: 24px;
}

.domain-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.input-row {
    display: flex;
    gap: 12px;
}

.input-row input {
    flex: 1;
    min-width: 0;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.88);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.input-row input:focus {
    outline: none;
    border-color: rgba(118, 88, 255, 0.42);
    box-shadow: 0 0 0 6px rgba(118, 88, 255, 0.08);
    transform: translateY(-1px);
}

.gradient-button,
.input-row button {
    border: 0;
    min-height: 58px;
    padding: 0 24px;
    border-radius: 18px;
    font: inherit;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    box-shadow: 0 18px 36px rgba(87, 96, 255, 0.32);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.gradient-button:hover,
.input-row button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(87, 96, 255, 0.35);
    filter: saturate(1.05);
}

.gradient-button.secondary {
    background: linear-gradient(135deg, rgba(118, 88, 255, 0.18), rgba(60, 124, 255, 0.18));
    color: var(--text);
    box-shadow: none;
    border: 1px solid rgba(118, 88, 255, 0.12);
}

.ghost-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.input-row button {
    min-width: 180px;
}

.input-row button:disabled,
.gradient-button:disabled {
    opacity: 0.8;
    cursor: progress;
    transform: none;
}

.input-hint {
    margin: 12px 0 0;
    font-size: 0.92rem;
}

.error-banner {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    color: #ab2d4d;
    background: rgba(219, 76, 100, 0.1);
    border: 1px solid rgba(219, 76, 100, 0.16);
}

.payment-notice {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(60, 124, 255, 0.1);
    border: 1px solid rgba(60, 124, 255, 0.16);
    color: #2253b7;
    font-weight: 700;
}

.report-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(118, 88, 255, 0.12);
    color: var(--text);
    box-shadow: 0 12px 30px rgba(44, 72, 149, 0.08);
}

.report-note span {
    color: var(--muted);
}

.feature-grid {
    grid-template-columns: repeat(2, 1fr);
}

.feature-grid {
    margin-top: 22px;
}

.pricing-section,
.legal-shell {
    margin-top: 26px;
}

.section-header h2,
.section-header h1 {
    margin: 12px 0 10px;
}

.section-header p {
    margin: 0;
    max-width: 70ch;
    color: var(--muted);
    line-height: 1.75;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 22px;
}

.pricing-card {
    display: grid;
    gap: 12px;
    padding: 28px;
    min-height: 240px;
    align-content: start;
}

.pricing-card h3 {
    margin: 0;
}

.pricing-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.pricing-badge {
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(16, 159, 111, 0.1);
    color: var(--success);
    font-weight: 800;
}

.pricing-badge.paid {
    background: rgba(118, 88, 255, 0.12);
    color: var(--purple);
}

.pricing-amount {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.legal-card {
    padding: 30px;
}

.legal-prose {
    display: grid;
    gap: 18px;
}

.legal-prose h2 {
    margin: 10px 0 0;
    font-size: 1.2rem;
}

.legal-prose p {
    margin: 0;
    color: var(--muted);
    line-height: 1.82;
    font-size: 1rem;
}

.contact-form {
    margin-top: 28px;
    display: grid;
    gap: 18px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 10px;
    font-weight: 700;
}

.contact-form span {
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    font: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.88);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(118, 88, 255, 0.42);
    box-shadow: 0 0 0 6px rgba(118, 88, 255, 0.08);
    transform: translateY(-1px);
}

.site-footer {
    margin-top: 40px;
    padding: 24px 20px 4px;
    border-top: 1px solid rgba(112, 132, 174, 0.15);
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.footer-copy {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
}

.feature-card,
.loader-stat,
.suggestion-item,
.finding-item,
.plagiarism-card,
.required-card {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(118, 138, 181, 0.12);
}

.feature-card strong,
.loader-stat strong,
.stat-card strong {
    display: block;
    font-size: 1.06rem;
    font-weight: 800;
}

.metric-note {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.loader-layout {
    max-width: 980px;
    margin: 0 auto;
}

.loader-primary {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: center;
}

.loader-visual {
    display: grid;
    place-items: center;
}

.loader-ring {
    position: relative;
    width: 220px;
    height: 220px;
    padding: 16px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 60%, transparent 61%),
        conic-gradient(from 180deg, rgba(118, 88, 255, 0.15) 0deg 360deg);
    animation: spinGlow 5s linear infinite;
    box-shadow: 0 24px 56px rgba(54, 87, 170, 0.16);
}

.loader-core {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.93);
    font-size: 2rem;
    font-weight: 800;
}

.loader-copy p {
    margin: 0;
    line-height: 1.7;
}

.loader-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.loader-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.loader-step {
    color: var(--muted);
}

.loader-step.active {
    background: linear-gradient(135deg, rgba(118, 88, 255, 0.16), rgba(60, 124, 255, 0.16));
    color: var(--text);
}

.dashboard {
    animation: riseIn 0.45s ease;
}

.score-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.score-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.score-orb {
    display: grid;
    place-items: center;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(240, 244, 255, 0.96)),
        linear-gradient(135deg, rgba(118, 88, 255, 0.13), rgba(60, 124, 255, 0.16));
    box-shadow: inset 0 6px 18px rgba(255, 255, 255, 0.9), 0 24px 52px rgba(54, 87, 170, 0.18);
}

.score-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.score-caption {
    color: var(--muted);
    font-weight: 700;
}

.status-pill {
    min-width: 180px;
    text-align: center;
}

.progress-card {
    margin-top: 18px;
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.progress-track {
    width: 100%;
    height: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(117, 131, 173, 0.14);
}

.progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan));
    transition: width 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-grid {
    margin-top: 18px;
    grid-template-columns: repeat(4, 1fr);
}

.metrics-grid {
    grid-template-columns: repeat(4, 1fr);
}

.stat-card strong {
    margin-top: 8px;
    font-size: 1.4rem;
    line-height: 1.25;
}

.insight-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 18px;
}

.required-pages-grid,
.suggestion-list,
.findings-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.required-card {
    display: grid;
    gap: 10px;
}

.required-card.detected {
    border-color: rgba(16, 159, 111, 0.22);
}

.required-card.partial {
    border-color: rgba(196, 139, 18, 0.22);
}

.required-card.missing {
    border-color: rgba(219, 76, 100, 0.2);
}

.required-head,
.required-meta,
.required-status {
    display: flex;
    align-items: center;
}

.required-head,
.required-meta {
    justify-content: space-between;
    gap: 12px;
}

.required-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(118, 88, 255, 0.13), rgba(60, 124, 255, 0.13));
    font-size: 1.1rem;
}

.required-status {
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
}

.required-status.detected {
    color: var(--success);
    background: var(--success-soft);
}

.required-status.partial {
    color: var(--warning);
    background: var(--warning-soft);
}

.required-status.missing {
    color: var(--danger);
    background: var(--danger-soft);
}

.suggestion-item,
.finding-item,
.plagiarism-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.suggestion-icon,
.finding-icon,
.plagiarism-icon {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    min-height: 34px;
    border-radius: 12px;
    background: rgba(118, 88, 255, 0.08);
    font-size: 1rem;
    font-weight: 800;
}

.plagiarism-copy strong {
    display: block;
    font-size: 1.1rem;
}

.plagiarism-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
}

.plagiarism-badge.good {
    color: var(--success);
    background: var(--success-soft);
}

.plagiarism-badge.moderate {
    color: var(--warning);
    background: var(--warning-soft);
}

.plagiarism-badge.high {
    color: var(--danger);
    background: var(--danger-soft);
}

.guideline-alert {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(196, 139, 18, 0.12);
    border: 1px solid rgba(196, 139, 18, 0.18);
    color: #8c6210;
    font-weight: 700;
}

.hidden {
    display: none !important;
}

.reveal-up {
    animation: riseIn 0.5s ease both;
}

@keyframes spinGlow {
    to {
        transform: rotate(360deg);
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .hero-grid,
    .stats-grid,
    .metrics-grid,
    .insight-grid,
    .loader-primary,
    .loader-stats,
    .feature-grid,
    .pricing-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: none;
    }

    .score-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .score-stack {
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .page-shell {
        padding: 18px 14px 40px;
    }

    .hero-card,
    .loader-card,
    .score-hero,
    .progress-card,
    .stat-card,
    .insight-grid .card {
        padding: 20px;
        border-radius: 24px;
    }

    .hero-copy {
        padding-top: 10px;
    }

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

    .topbar,
    .subnav,
    .result-topbar,
    .result-actions,
    .input-row,
    .required-head,
    .required-meta,
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .input-row button,
    .gradient-button {
        width: 100%;
    }

    .site-footer {
        text-align: left;
    }

    .loader-ring {
        width: 180px;
        height: 180px;
    }
}
