* {
    box-sizing: border-box;
    border-color: #262a33;
}

body {
    margin: 0;
    background: #0c0d0f;
    color: #e2e8f0;
    font-family: "Work Sans", sans-serif;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: auto;
    padding: 20px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* nav */
.nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 56px;
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.nav-link {
    text-decoration: none;
    color: #94a3b8;
}

.nav-link:hover {
    color: #f59e0b;
}

/* header */
.badge {
    display: flex;
    gap: 8px;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
}

.icon {
    width: 16px;
    height: 16px;
}

.title {
    margin: 24px 0 0;
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    color: #ffa500;
}

.subtitle {
    max-width: 448px;
    margin: 16px 0 0;
    text-align: center;
    font-size: 16px;
    color: #94a3b8;
}

/* url input form */
.form {
    width: 100%;
    max-width: 576px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.input-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #262a33;
    border-radius: 6px;
    background: #141619;
    color: #94a3b8;
}

.input-wrap:focus-within {
    border-color: #f59e0b;
}

input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: #e2e8f0;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
}

.btn-outline {
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #94a3b8;
    color: #0c0d0f;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #f59e0b;
    color: #0c0d0f;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.error {
    max-width: 576px;
    margin-top: 24px;
    padding: 8px 16px;
    text-align: center;
    border: 1px solid #ef44444d;
    border-radius: 6px;
    background: #ef44441a;
    color: #ef4444;
    font-size: 12px;
}

/* scanning state */
.scanning {
    width: 100%;
    max-width: 576px;
    margin-top: 40px;
    overflow: hidden;
    border: 1px solid #262a33;
    border-radius: 6px;
    background: #141619;
}

.scan-lines {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    color: #94a3b8;
}

.scan-lines p {
    margin: 0;
}

/* results screen */
.results {
    width: 100%;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.report-card {
    width: 100%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    border: 1px solid #262a33;
    border-radius: 6px;
    background: #141619;
}

.report-info {
    min-width: 0;
    text-align: center;
}

.label {
    margin: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    text-transform: uppercase;
    color: #94a3b8;
}

.report-url {
    margin: 4px 0 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: "JetBrains Mono", monospace;
    font-size: 18px;
    font-weight: 600;
    color: #94a3b8;
}

.report-title {
    margin: 4px 0 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    color: #94a3b8;
}

.report-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    color: #94a3b8;
}

/* score ring */
.score-ring {
    position: relative;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}

.ring-svg {
    transform: rotate(-90deg);
}

.ring-bg {
    stroke: #262a33;
}

.ring-fg {
    transition: stroke-dashoffset 1s ease-out;
}

.score-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-family: "JetBrains Mono", monospace;
    font-size: 40px;
    font-weight: 700;
    display: center;
}

.score-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    text-transform: uppercase;
}

/* category score bars */
.category-bars {
    width: 100%;
    display: grid;
    gap: 12px;
}

.cat-bar {
    padding: 16px;
    border: 1px solid #262a33;
    border-radius: 6px;
    background: #141619;
}

.cat-bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cat-bar-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    font-weight: 600;
}

.cat-bar-score {
    font-family: "JetBrains Mono", monospace;
    font-size: 18px;
    font-weight: 700;
}

.cat-bar-track {
    height: 4px;
    margin-top: 12px;
    border-radius: 2px;
    background: #262a33;
}

.cat-bar-fill {
    width: 0;
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease-out;
}

/* per-category findings list */
#category-sections {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cat-section h2 {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.findings {
    width: 100%;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.finding {
    width: 100%;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #262a33;
    border-radius: 6px;
    background: #141619;
}

.finding .icon {
    margin-top: 3px;
}

.finding-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.finding-detail {
    font-size: 12px;
    color: #94a3b8;
}

.finding-why {
    font-size: 12px;
    color: #94a3b8;
}

.finding-fix {
    font-size: 12px;
    color: #94a3b8;
}

.finding-why strong {
    color: #e2e8f0;
}

.finding-fix strong {
    color: #e2e8f0;
}

/* score/severity colors - keep these grouped, they're a set */
.score-good, .stroke-good { color: #10b981; stroke: #10b981; }
.score-ok, .stroke-ok { color: #fbbf24; stroke: #fbbf24; }
.score-bad, .stroke-bad { color: #ef4444; stroke: #ef4444; }
.fill-good { background: #10b981; }
.fill-ok { background: #fbbf24; }
.fill-bad { background: #ef4444; }

/* About page content */
.about-content {
  margin-top: 40px;
  width: 100%;
  max-width: 544px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-heading {
  margin: 24px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffa500;
}
.about-heading:first-child { margin-top: 0; }

.about-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.about-cta {
  align-self: flex-start;
  margin-top: 8px;
  text-decoration: none;
  display: inline-flex;
}

/* Thanks page */
.thanks-links {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.thanks-links a { text-decoration: none; }

/* footer */
.made-with {
    margin-top: 32px;
    text-align: center;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    color: #94a3b8;
}

.footer {
    margin-top: auto;
    padding-top: 64px;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    color: #94a3b8;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

.footer-links a {
    color: #f59e0b;
}

.hidden {
    display: none !important;
}

@media (min-width: 640px) {
    .title {
        font-size: 56px;
    }

    .report-card {
        flex-direction: row;
        justify-content: space-between;
    }

    .report-info,
    .report-meta {
        text-align: left;
        justify-content: flex-start;
    }

    .category-bars {
        grid-template-columns: 1fr 1fr;
    }
}

@keyframes scan {
    0%, 100% { transform: translateY(-100%); }
    50% { transform: translateY(100%); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}