* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --ink: #0b1520;
    --slate: #1c2a3a;
    --brass: #c8972e;
    --brass-light: #e8be6a;
    --cream: #faf6ef;
    --fog: #e8e2d8;
    --text: #3d4a58;
    --text-light: #6b7a8d;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(250, 246, 239, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 151, 46, 0.1);
}

.logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--ink);
    letter-spacing: -0.5px;
    cursor: pointer;
}

.logo span { color: var(--brass); }

.nav-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--brass);
    background: rgba(200, 151, 46, 0.1);
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* BUTTONS */
.btn-primary {
    background: var(--brass);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--brass-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 151, 46, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--fog);
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--brass);
    color: var(--brass);
}

.back-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 0.95rem;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.back-btn:hover { color: var(--brass); }

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.hero-eyebrow {
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brass);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.hero-proof {
    font-size: 0.85rem;
    color: var(--text-light);
}

.hero-proof span {
    font-weight: 700;
    color: var(--brass);
}

/* FEATURES */
.features {
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--fog);
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--brass-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* HOW IT WORKS */
.how-it-works {
    padding: 6rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.how-it-works h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}

.step {
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brass);
    color: white;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.step h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA BOTTOM */
.cta-bottom {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--ink);
    color: white;
}

.cta-bottom h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-bottom p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.cta-bottom .btn-primary {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* FOOTER */
footer {
    padding: 3rem 2rem;
    text-align: center;
}

.footer-text {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* FORM */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h1 {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.step-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brass);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--fog);
}

.form-group {
    margin-bottom: 1.5rem;
    flex: 1;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.required { color: var(--brass); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    border: 2px solid var(--fog);
    border-radius: 8px;
    background: white;
    color: var(--text);
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brass);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7a8d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.form-step {
    animation: fadeIn 0.3s ease;
}

/* LOADING */
.loading-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.loading-icon {
    margin-bottom: 2rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--fog);
    border-top-color: var(--brass);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-container h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.loading-sub {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 400px;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.loading-step {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    background: white;
    border: 1px solid var(--fog);
    transition: all 0.3s;
    opacity: 0.5;
}

.loading-step.active {
    opacity: 1;
    border-color: var(--brass-light);
    color: var(--text);
    background: rgba(200, 151, 46, 0.05);
}

.loading-step.done {
    opacity: 1;
    color: var(--brass);
    border-color: var(--brass);
}

/* REPORT */
.report-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
}

.report-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--fog);
}

.report-meta {
    margin: 1.5rem 0;
}

.report-meta h1 {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
}

.report-meta p {
    color: var(--text-light);
    margin-top: 0.25rem;
}

.report-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.report-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--fog);
    line-height: 1.8;
    font-size: 1.05rem;
}

.report-content h1 {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ink);
    margin: 2rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--fog);
}

.report-content h1:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.report-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    margin: 1.75rem 0 0.75rem;
}

.report-content h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--slate);
    margin: 1.5rem 0 0.5rem;
}

.report-content p {
    margin-bottom: 1rem;
    color: var(--text);
}

.report-content ul, .report-content ol {
    margin: 0.75rem 0 1.25rem 1.5rem;
}

.report-content li {
    margin-bottom: 0.4rem;
}

.report-content strong {
    color: var(--ink);
}

.report-content blockquote {
    border-left: 3px solid var(--brass);
    padding: 0.75rem 1.25rem;
    background: rgba(200, 151, 46, 0.05);
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.report-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.report-content th,
.report-content td {
    padding: 0.6rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--fog);
}

.report-content th {
    font-weight: 600;
    color: var(--ink);
    background: rgba(200, 151, 46, 0.05);
}

.report-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--fog);
}

.report-footer p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ERROR */
.error-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.error-icon { font-size: 3rem; margin-bottom: 1rem; }

.error-container h2 {
    font-family: 'Syne', sans-serif;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.error-container p {
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 400px;
}

/* ANIMATIONS */
@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
    nav { padding: 1rem 1.25rem; }
    .hero { padding: 6rem 1.5rem 3rem; }
    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 1.05rem; }
    .steps-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .form-container { padding: 6rem 1.5rem 3rem; }
    .report-container { padding: 6rem 1.25rem 3rem; }
    .report-content { padding: 1.5rem; }
    .cta-bottom h2 { font-size: 1.75rem; }
    .report-actions { flex-direction: column; }
}

/* PRINT */
@media print {
    nav, .back-btn, .report-actions, .report-footer { display: none !important; }
    .report-container { padding: 0; max-width: 100%; }
    .report-content { border: none; padding: 0; box-shadow: none; }
    body { background: white; }
}
