:root {
    --bg: #0b141a;
    --bg-elevated: #111b21;
    --bg-card: #1f2c34;
    --text: #e9edef;
    --text-muted: #8696a0;
    --accent: #25d366;
    --accent-dark: #1da851;
    --accent-soft: rgba(37, 211, 102, 0.12);
    --warn: #f59e0b;
    --warn-soft: rgba(245, 158, 11, 0.12);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.12);
    --info: #38bdf8;
    --info-soft: rgba(56, 189, 248, 0.12);
    --border: rgba(255, 255, 255, 0.08);
    --radius: 14px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --font: "DM Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
}

.container {
    width: min(1100px, calc(100% - 2rem));
    margin-inline: auto;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: #052e16;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s;
}

.btn:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    background: rgba(11, 20, 26, 0.85);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.logo-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #128c7e);
    display: grid;
    place-items: center;
    color: #052e16;
    font-weight: 700;
}

.logo-by {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-nav a:not(.btn) { color: var(--text-muted); font-size: 0.95rem; }

.hero {
    padding: 4rem 0 3rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37, 211, 102, 0.18), transparent),
        var(--bg);
}

.hero-inner { max-width: 720px; }

.hero-kicker {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.75rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.hero-lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0 0 2rem;
}

.scan-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.scan-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.scan-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.scan-row input {
    flex: 1 1 240px;
    min-width: 0;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font: inherit;
}

.scan-row input:focus {
    outline: 2px solid rgba(37, 211, 102, 0.45);
    border-color: var(--accent);
}

.scan-hint {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 2rem 0 0;
    margin: 0;
    flex-wrap: wrap;
}

.hero-stats li { color: var(--text-muted); font-size: 0.95rem; }
.hero-stats strong { display: block; color: var(--text); font-size: 1.25rem; }

.btn-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(5, 46, 22, 0.25);
    border-top-color: #052e16;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.results {
    padding: 2rem 0 3rem;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.results-header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
}

.results-domain {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    word-break: break-all;
}

.score-ring-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.score-ring { width: 100%; height: 100%; transform: rotate(-90deg); }

.score-ring-bg {
    fill: none;
    stroke: var(--bg-card);
    stroke-width: 10;
}

.score-ring-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 0.8s ease, stroke 0.3s;
}

.score-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.score-max {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.readiness-banner {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.readiness-banner.is-ready {
    background: var(--accent-soft);
    border-color: rgba(37, 211, 102, 0.35);
    color: #86efac;
}

.readiness-banner.is-likely {
    background: var(--info-soft);
    border-color: rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
}

.readiness-banner.is-work {
    background: var(--warn-soft);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}

.readiness-banner.is-not {
    background: var(--danger-soft);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.results-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .results-grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
    .results-grid { grid-template-columns: 1fr; }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.card h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.checks-list, .advisor-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checks-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.checks-list li:last-child { border-bottom: none; }

.check-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.check-icon.pass {
    background: var(--accent-soft);
    color: var(--accent);
}

.check-icon.fail {
    background: var(--danger-soft);
    color: var(--danger);
}

.check-body { flex: 1; min-width: 0; }

.check-title {
    font-weight: 600;
    margin: 0 0 0.15rem;
}

.check-detail {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.check-score {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.advisor-intro {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.advisor-list li {
    padding: 0.85rem;
    border-radius: 10px;
    margin-bottom: 0.65rem;
    border: 1px solid var(--border);
}

.advisor-list li:last-child { margin-bottom: 0; }

.advisor-list li.type-critical { background: var(--danger-soft); border-color: rgba(239, 68, 68, 0.25); }
.advisor-list li.type-warning { background: var(--warn-soft); border-color: rgba(245, 158, 11, 0.25); }
.advisor-list li.type-info { background: var(--info-soft); border-color: rgba(56, 189, 248, 0.2); }
.advisor-list li.type-success { background: var(--accent-soft); border-color: rgba(37, 211, 102, 0.25); }

.advisor-list strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.advisor-list p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.cta-block {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.cta-block h4 { margin: 0 0 0.5rem; }
.cta-block p { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 1rem; }

.results-footer-note {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.features {
    padding: 3rem 0 4rem;
    border-top: 1px solid var(--border);
}

.features h2 {
    text-align: center;
    margin: 0 0 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.feature-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--accent);
}

.feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-inner p { margin: 0; }

.form-error {
    color: #fca5a5;
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.card-intro {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: -0.35rem 0 0.85rem;
}

.missing-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.missing-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.missing-list li:last-child { border-bottom: none; }

.missing-list strong {
    display: block;
    color: #fcd34d;
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.missing-list p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.missing-none {
    margin: 0;
    color: var(--accent);
}

.results-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

@media (max-width: 900px) {
    .results-actions { grid-template-columns: 1fr; }
}

.cta-card {
    border-color: rgba(37, 211, 102, 0.2);
}

.cta-card--ready {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.14), var(--bg-card));
    border-color: rgba(37, 211, 102, 0.4);
}

.cta-card--pending {
    border-color: rgba(245, 158, 11, 0.25);
}

.cta-card-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    justify-content: space-between;
}

.cta-card h3 { margin: 0 0 0.35rem; }

.cta-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.lead-intro {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: -0.25rem 0 1rem;
}

.lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

@media (max-width: 600px) {
    .lead-grid { grid-template-columns: 1fr; }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.field span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.field input,
.field textarea {
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font: inherit;
}

.field input:focus,
.field textarea:focus {
    outline: 2px solid rgba(37, 211, 102, 0.35);
    border-color: var(--accent);
}

.field-full { grid-column: 1 / -1; margin-top: 0.85rem; }

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-field input { margin-top: 0.2rem; accent-color: var(--accent); }

.lead-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.lead-success {
    margin: 0;
    color: #86efac;
    font-size: 0.9rem;
}

.phase-note {
    margin: 1.5rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: var(--bg-elevated);
    border: 1px dashed var(--border);
    color: var(--text-muted);
    font-size: 0.88rem;
    text-align: center;
}

.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;
}

.feature-card--highlight {
    border-color: rgba(37, 211, 102, 0.25);
    background: linear-gradient(180deg, rgba(37, 211, 102, 0.06), var(--bg-elevated));
}

.feature-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.assistance-section {
    padding: 3rem 0 4rem;
    border-top: 1px solid var(--border);
    background:
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(37, 211, 102, 0.1), transparent),
        var(--bg);
}

.assistance-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .assistance-inner { grid-template-columns: 1fr; }
}

.assistance-copy h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.02em;
}

.assistance-lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.assistance-teaser h3 {
    margin: 0 0 0.5rem;
}

.assistance-teaser p {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}
