@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

html {
    scroll-behavior: smooth;
}

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #0f172a;
    --accent: #10b981;
    --background: #ffffff;
    --surface: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: #f1f5f9;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 700px;
    background: white;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Page Management */
.page {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content {
    padding: 40px;
}

/* Typography */
h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

h2 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
    margin-top: 32px;
}

.subtitle {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 32px;
}

.helper-text {
    font-size: 13px;
    color: #95a5a6;
    margin-bottom: 16px;
}

/* Page Header */
.page-header {
    margin-bottom: 24px;
}

/* Form Elements */
.form-section {
    margin-bottom: 32px;
}

.form-section:first-of-type h2 {
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.optional {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #34495e;
    margin-bottom: 8px;
}

.required {
    color: #e74c3c;
    font-weight: 600;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

input::placeholder {
    color: #bdc3c7;
}

/* Input with Skip Button */
.input-with-skip {
    display: flex;
    gap: 8px;
}

.input-with-skip input {
    flex: 1;
}

.btn-skip {
    padding: 12px 20px;
    background: #ecf0f1;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-skip:hover {
    background: #d5dbdb;
    color: #2c3e50;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: #ecf0f1;
    color: #7f8c8d;
}

.btn-secondary:hover {
    background: #d5dbdb;
    color: #2c3e50;
}

.btn-text {
    background: transparent;
    color: #3498db;
    padding: 8px 12px;
    font-size: 14px;
}

.btn-text:hover {
    background: #ecf0f1;
}

.btn-large {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    background: #2ecc71;
    color: white;
}

.btn-large:hover:not(:disabled) {
    background: #27ae60;
}

.btn-large:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.navigation-buttons {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #ecf0f1;
}

.navigation-buttons .helper-text {
    text-align: center;
    margin-top: 12px;
    margin-bottom: 0;
}

/* Status & Error Messages */
.status-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 16px;
    display: none;
}

.status-message.visible {
    display: block;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.error-message {
    font-size: 13px;
    color: #e74c3c;
    margin-top: 6px;
    display: none;
}

.error-message.visible {
    display: block;
}

input.error {
    border-color: #e74c3c;
}

input.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-content {
        padding: 24px;
    }

    h1 {
        font-size: 24px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ===== AI SELECTION PAGE STYLES ===== */
.ai-platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.ai-card {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ai-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #3498db;
}

.ai-card h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 8px;
    margin-top: 0;
}

.ai-card p {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 24px;
    line-height: 1.5;
}

.ai-card .platform-btn {
    margin-top: auto;
}

.helper-box {
    margin-top: 40px;
    padding: 20px;
    background: #f0f4f8;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.helper-box p {
    font-size: 14px;
    color: #34495e;
    margin: 0;
}

.copy-success-badge {
    display: none;
    opacity: 0;
    margin-left: 12px;
    padding: 4px 10px;
    background: #d4edda;
    color: #155724;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.4s ease;
    vertical-align: middle;
}


/* Navigation to Step 2 */
.step-navigation {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #ecf0f1;
    text-align: center;
}

.separator-text {
    font-size: 14px;
    color: #95a5a6;
    margin-bottom: 12px;
}

/* Report Input Section */
.report-input-section {
    margin-bottom: 40px;
}

.form-group.full-width textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
    line-height: 1.5;
}

.form-group.full-width textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Report Container */
.report-container {
    background: white;
    /* Clean, print-friendly look */
}

/* Report Header */
.report-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid #ecf0f1;
}

.brand-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #95a5a6;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.report-header h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.report-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    font-weight: 400;
    margin-bottom: 4px;
}

.report-date {
    font-size: 13px;
    color: #bdc3c7;
}

/* Report Sections */
.report-section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3498db;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ecf0f1;
}

/* 1. Business Snapshot Grid */
.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.snapshot-card {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid #bdc3c7;
}

.snapshot-card.strength {
    background: #f0f9eb;
    border-left-color: #2ecc71;
}

.snapshot-card.risk {
    background: #fff8e1;
    border-left-color: #f1c40f;
}

.snapshot-card label {
    font-size: 11px;
    text-transform: uppercase;
    color: #7f8c8d;
    margin-bottom: 6px;
    display: block;
}

.snapshot-card p {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.insight-box {
    font-size: 16px;
    font-style: italic;
    color: #34495e;
    line-height: 1.6;
    background: #f0f4f8;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    margin: 0;
}

/* 2. GBP & 3. Social - Two Col Grid */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.col h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #2c3e50;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 8px;
}

/* Bullet Lists */
.bullet-list {
    list-style: none;
    padding: 0;
}

.bullet-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #34495e;
}

.bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #95a5a6;
}

.bullet-list.highlight li::before {
    content: "⚡";
    color: #f1c40f;
}

.bullet-list.success li::before {
    content: "✓";
    color: #2ecc71;
}

/* Status Bar & Badges */
.status-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.optimized {
    background: #e8f8f5;
    color: #27ae60;
    border: 1px solid #a9dfbf;
}

.status-badge.average {
    background: #fef9e7;
    color: #f39c12;
    border: 1px solid #f9e79f;
}

.status-badge.poor,
.status-badge.missing {
    background: #fdebd0;
    color: #e67e22;
    border: 1px solid #fad7a0;
}

/* Budget Mode Badge */
.budget-badge {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.budget-badge.low {
    background: #f0f3f4;
    color: #7f8c8d;
    border: 1px solid #d5dbdb;
}

.budget-badge.test {
    background: #fef9e7;
    color: #f39c12;
    border: 1px solid #f9e79f;
}

.budget-badge.scale {
    background: #e8f8f5;
    color: #27ae60;
    border: 1px solid #a9dfbf;
}

/* Social Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.metric-card {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
}

.metric-card .label {
    font-size: 10px;
    text-transform: uppercase;
    color: #95a5a6;
    margin-bottom: 4px;
    display: block;
}

.metric-card .value {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
}

/* 4. Content Strategy */
.content-strategy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.strategy-card {
    background: #f4f6f7;
    padding: 20px;
    border-radius: 8px;
}

.strategy-card h4 {
    font-size: 14px;
    color: #34495e;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.mini-list li {
    font-size: 13px;
    margin-bottom: 6px;
}

.platform-breakdown {
    background: white;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 16px;
}

.platform-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #ecf0f1;
}

.platform-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.platform-item strong {
    color: #2c3e50;
    font-weight: 600;
    margin-right: 8px;
}

/* 5. Performance Marketing Meter */
.readiness-meter {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 24px;
}

.readiness-meter label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #7f8c8d;
    margin-bottom: 12px;
}

.meter-bar {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #f1c40f, #2ecc71);
    border-radius: 6px;
    transition: width 1s ease-out;
}

.funnel-breakdown {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
}

.funnel-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.funnel-step span:first-child {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 600;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
}

.status-dot.active {
    background: #2ecc71;
}

.status-dot.issue {
    background: #e74c3c;
}

.marketer-note {
    font-size: 13px;
    color: #555;
    background: #fff8e1;
    padding: 12px;
    border-radius: 4px;
    border-left: 3px solid #f1c40f;
}

/* 6. Action Plan */
.action-plan-grid {
    display: grid;
    gap: 16px;
}

.action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border: 1px solid #ecf0f1;
    border-radius: 10px;
    transition: transform 0.2s;
    margin-bottom: 2px;
}

.action-content h4 {
    font-size: 15px;
    margin-bottom: 4px;
    color: #2c3e50;
}

.action-content span {
    font-size: 12px;
    color: #7f8c8d;
    background: #f0f3f4;
    padding: 2px 8px;
    border-radius: 4px;
}

.action-meta {
    text-align: right;
}

.tag {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.tag.p1 {
    background: #fee2e2;
    color: #c0392b;
}

.tag.p2 {
    background: #fef9e7;
    color: #d35400;
}

/* 7. Suggested Copy */
.highlight-section {
    background: #f0f4f8;
    /* Soft blue background */
    padding: 24px;
    border-radius: 8px;
    border: 1px dashed #3498db;
}

.highlight-section .section-title {
    border-bottom-color: #bdc3c7;
}

.copy-box {
    font-family: inherit;
    font-size: 15px;
    background: white;
    padding: 24px;
    border-radius: 8px;
    color: #2c3e50;
    line-height: 1.6;
    white-space: pre-wrap;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Report Footer */
.report-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid #ecf0f1;
    color: #95a5a6;
    font-size: 11px;
}

.report-footer p {
    margin-bottom: 4px;
}

/* Upgraded Performance Marketing Section Styles */
.sub-section {
    margin-top: 32px;
}

.sub-title {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    text-transform: none;
}

.readiness-summary-card {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    margin-bottom: 24px;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #eee;
}

.readiness-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.readiness-table th {
    background: #f4f6f7;
    padding: 12px;
    font-weight: 600;
    color: #7f8c8d;
    border-bottom: 1px solid #eee;
}

.readiness-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    color: #2c3e50;
}

.readiness-table tr:last-child td {
    border-bottom: none;
}

.readiness-table .status-text {
    font-weight: 700;
}

.readiness-table .status-text.weak {
    color: #c0392b;
}

.readiness-table .status-text.moderate {
    color: #d35400;
}

.readiness-table .status-text.strong {
    color: #27ae60;
}

.audit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.audit-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ecf0f1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.audit-card.full-width {
    grid-column: span 2;
}

.audit-card h4 {
    font-size: 13px;
    margin-bottom: 16px;
    color: #34495e;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 10px;
    color: #555;
}

.badge-status {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-good {
    background: #d4edda;
    color: #155724;
}

.badge-partial {
    background: #fff3cd;
    color: #856404;
}

.badge-missing {
    background: #f8d7da;
    color: #721c24;
}

.readiness-factors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.factor-col {
    padding: 16px;
    border-radius: 8px;
}

.factor-col.ready {
    background: #f0fdf4;
}

.factor-col.improvement {
    background: #fef2f2;
}

.factor-col h4 {
    font-size: 12px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.risk-card {
    margin-top: 32px;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #eee;
    transition: border-color 0.3s ease;
}

.risk-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.risk-label {
    font-weight: 700;
    font-size: 15px;
}

.risk-card.high-risk {
    border-color: #f8d7da;
    background: #fffcfc;
}

.risk-card.moderate-risk {
    border-color: #fff3cd;
    background: #fffdf7;
}

.risk-card.low-risk {
    border-color: #d1e7dd;
    background: #fafffd;
}

.risk-text {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.roadmap-grid {
    display: grid;
    gap: 16px;
}

.roadmap-phase {
    position: relative;
    padding: 20px;
    padding-left: 56px;
    background: #f9f9fb;
    border-radius: 12px;
}

.phase-number {
    position: absolute;
    left: 16px;
    top: 20px;
    width: 28px;
    height: 28px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.roadmap-phase h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.projection-card {
    margin-top: 32px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 24px;
    border-radius: 12px;
    color: white;
}

.projection-card .sub-title {
    color: white;
    margin-bottom: 8px;
}

.projection-card p {
    font-size: 15px;
    margin: 0;
    opacity: 0.9;
}

/* Responsive Report */
@media (max-width: 768px) {

    .audit-grid,
    .readiness-factors-grid {
        grid-template-columns: 1fr;
    }

    .snapshot-grid,
    .two-col-grid,
    .content-strategy-grid,
    .social-grid {
        grid-template-columns: 1fr;
    }

    .status-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-header h1 {
        font-size: 24px;
    }
}

/* Export Button & Header Row */
.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

#export-pdf-btn {
    font-size: 11px;
    padding: 6px 14px;
    border: 1px solid #ddd;
    background: white;
    color: #2c3e50;
}

#export-pdf-btn:hover {
    background: #f8f9fa;
    border-color: #bdc3c7;
}

/* Report Branding Footer */
.report-branding-footer {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid #ecf0f1;
    text-align: center;
}

.report-branding-footer .brand-name {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.report-branding-footer .disclaimer {
    font-size: 11px;
    color: #95a5a6;
    max-width: 500px;
    margin: 0 auto 12px;
    line-height: 1.4;
}

.report-branding-footer .credits {
    font-size: 11px;
    color: #bdc3c7;
}

/* Utility: Page Break */
.page-break {
    page-break-before: always;
}

/* Print Styles */
@media print {
    @page {
        size: A4;
        margin: 20mm;
    }

    body {
        background: white;
        padding: 0;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .container {
        box-shadow: none;
        max-width: 100%;
        width: 100%;
        border-radius: 0;
    }

    /* Hide non-report elements */
    .page-header,
    .report-input-section,
    .step-navigation,
    .navigation-buttons,
    #export-pdf-btn,
    #back-to-ai-selection,
    .brand-tag {
        display: none !important;
    }

    .report-container {
        display: block !important;
    }

    /* Keep section visibility */
    .report-section {
        margin-bottom: 40px;
        page-break-inside: avoid;
    }

    .section-title {
        border-bottom: 2px solid #3498db;
    }

    /* Professional borders instead of shadows */
    .snapshot-card,
    .metric-card,
    .strategy-card,
    .action-item,
    .audit-card,
    .risk-card {
        box-shadow: none !important;
        border: 1px solid #eee !important;
    }

    .risk-card.high-risk {
        border: 2px solid #f8d7da !important;
    }

    .risk-card.moderate-risk {
        border: 2px solid #fff3cd !important;
    }

    .risk-card.low-risk {
        border: 2px solid #d1e7dd !important;
    }

    /* Preserving backgrounds */
    .meter-bar {
        border: 1px solid #ddd;
    }

    .meter-fill {
        background: linear-gradient(90deg, #f1c40f, #2ecc71) !important;
    }

    /* Ensure colors render prominently */
    .status-dot.active {
        background-color: #2ecc71 !important;
    }

    .status-dot.issue {
        background-color: #e74c3c !important;
    }

    .badge-good {
        background-color: #d4edda !important;
        color: #155724 !important;
    }

    .badge-partial {
        background-color: #fff3cd !important;
        color: #856404 !important;
    }

    .badge-missing {
        background-color: #f8d7da !important;
        color: #721c24 !important;
    }
}

/* Professional Landing Page Styles */
.landing-body {
    background: var(--background);
    display: block;
    padding: 0;
    overflow-x: hidden;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sticky Header with Glassmorphism */
header.landing-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    max-width: 100%;
    background: rgba(240, 249, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Header/Nav */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    position: relative;
    z-index: 10;
}

/* Desktop defaults for hamburger menu components */
.mobile-menu-btn {
    display: none;
    /* Hidden on desktop, shown via media query */
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.nav-main-links {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

/* Text link for header navigation */
.nav-text-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    margin-right: 24px;
}

.nav-text-link:hover {
    color: var(--primary);
}

/* App Header styling - Hidden as per new branding request */
.app-header {
    display: none;
}

/* Nav Link Classes (Responsive) */
.nav-auth-btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

#get-started-btn.nav-auth-btn {
    margin-left: 12px;
}

.user-profile-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 12px;
    background: rgba(15, 23, 42, 0.05);
    padding: 6px 16px;
    border-radius: 99px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
    justify-content: center;
}

.user-profile-nav .avatar {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.user-profile-nav .user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.user-profile-nav .divider {
    width: 1px;
    height: 16px;
    background: var(--border);
}

.user-profile-nav .admin-link {
    font-size: 13px;
    font-weight: 700;
    color: #ef4444;
    text-decoration: none;
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.user-profile-nav .dashboard-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.user-profile-nav .logout-btn {
    padding: 0;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 0 100px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(300px, 100vw, 600px);
    height: clamp(300px, 100vw, 600px);
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(40px, 8vw, 72px);
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--secondary);
}

.hero h1 span {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 48px;
    font-weight: 400;
}

/* Animation Keyframes */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }

    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-radial {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

/* Enhanced Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Section Common */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.section h2 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    margin-top: 0;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--secondary);
}

/* Feature Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.card h3 {
    font-family: var(--font-heading);
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
}

.card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* Workflow Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Hero Text Animation */
.animate-gradient-text {
    background: linear-gradient(300deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 6s ease infinite;
}

/* Enhanced CTA Button */
.cta-button {
    position: relative;
    /* overflow: hidden; Removed to prevent clipping issues */
    /* preserve existing styles... */
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: none;
}

.cta-button:hover::after {
    animation: shimmer 1.5s infinite;
}

/* Enhanced Card Hover */
.card {
    padding: 48px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    /* Reverted to safer transition */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card:hover {
    transform: translateY(-8px);
    /* Reduced movement, removed scale */
    background: white;
    border-color: var(--primary);
    box-shadow: 0 20px 40px -5px rgba(14, 165, 233, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.card:hover::before {
    opacity: 1;
}

.step-card {
    position: relative;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.85);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 900;
    color: rgba(14, 165, 233, 0.15);
    /* Subtle primary color for number */
    position: absolute;
    top: -10px;
    left: 20px;
    z-index: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.step-card:hover .step-num {
    transform: scale(1.1) rotate(-5deg);
    color: rgba(14, 165, 233, 0.25);
}

.step-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
    font-size: 20px;
}

.step-card p {
    position: relative;
    z-index: 1;
}

/* Pricing Section Upgrade */
.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 64px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-width: 900px;
    margin: 0 auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.pricing-table th {
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    background: var(--surface);
}

.pricing-table .check {
    color: var(--accent);
    font-weight: 800;
}

.pricing-table .check2 {
    color: red;
    font-weight: 800;
}

/* Footer Upgrade */
.landing-footer {
    background: var(--secondary);
    color: white;
    padding: 100px 0 60px;
    margin-top: 120px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 48px;
    margin-bottom: 48px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-left: 32px;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

@media (max-width: 768px) {
    .landing-nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
    }

    .nav-brand {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: var(--secondary);
        cursor: pointer;
        padding: 8px;
        z-index: 1001;
        /* Ensure clicks register over the background */
        position: relative;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
        animation: scale-in 0.2s ease-out;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        align-items: flex-start;
    }

    #get-started-btn.nav-auth-btn,
    .user-profile-nav {
        margin-left: 0;
        width: 100%;
    }

    .user-profile-nav {
        border-radius: 12px;
        flex-direction: column;
        padding: 16px;
        width: 100%;
        max-width: 100%;
    }

    .user-profile-nav .divider {
        width: 100%;
        height: 1px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .section {
        padding: 60px 0;
    }

    .landing-container {
        padding: 0 20px;
        /* Add minimum side margins for all text/content */
    }

    .footer-grid {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .footer-links a {
        margin: 0;
    }

    .pricing-card {
        padding: 24px 16px;
        overflow-x: auto;
    }

    .pricing-table {
        min-width: 500px;
        /* Forces horizontal scroll on small screens */
    }

    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    #back-to-top svg {
        width: 18px;
        height: 18px;
    }

    /* --- MOBILE VIEW CRITICAL FIXES --- */

    /* 1. Reduce padding on all cards */
    .card,
    .step-card,
    .snapshot-card {
        padding: 24px 16px;
    }

    .report-section {
        padding: 20px 16px;
    }

    /* 2. Responsive Tables (Dashboard / Admin) */
    .table-container,
    .table-card,
    .history-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -20px;
        padding: 0 20px;
        width: calc(100% + 40px);
    }

    table {
        min-width: 600px;
    }

    /* 3. Report Builder Top Layout fixes */
    .header-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    /* 4. Hero text clamping override */
    .hero h1 {
        font-size: clamp(32px, 10vw, 42px) !important;
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 16px;
    }
}

/* ======================================
   PRICING PAGE STYLES
   ====================================== */
.pricing-section {
    padding-bottom: 20px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

/* Individual Plan Card */
.pricing-plan-card {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Featured (Pro) Plan */
.plan-featured {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.95) 100%);
    border: 2px solid var(--primary);
    box-shadow: 0 8px 40px rgba(14, 165, 233, 0.12);
}

.plan-featured:hover {
    box-shadow: 0 16px 60px rgba(14, 165, 233, 0.18);
}

/* Popular Tag */
.plan-popular-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, #06b6d4 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Plan Badge / Name */
.plan-badge {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.plan-badge-pro {
    color: var(--primary);
}

/* Price */
.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
}

.price-period {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Plan Description */
.plan-description {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

/* Feature List */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text);
}

.feature-included svg {
    color: var(--accent);
    flex-shrink: 0;
}

.feature-excluded svg {
    color: #cbd5e1;
    flex-shrink: 0;
}

.feature-excluded span {
    color: var(--text-muted);
}

/* Plan CTA Buttons */
.plan-cta {
    display: block;
    text-align: center;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.plan-cta-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.plan-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.plan-cta-secondary {
    background: var(--surface);
    color: var(--secondary);
    border: 1px solid var(--border);
}

.plan-cta-secondary:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* FAQ Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 15px;
    color: var(--secondary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Pricing Grid — Mobile */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pricing-plan-card {
        padding: 32px 24px;
    }

    .price-amount {
        font-size: 42px;
    }
}

/* ======================================
   ANIMATED BACKGROUND (Pure CSS)
   ====================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #f1f5f9 40%, #ecfdf5 100%);
    pointer-events: none !important;
}

.bg-animation * {
    pointer-events: none !important;
}

/* --- Gradient Mesh Blobs --- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    will-change: transform;
    pointer-events: none;
}

.blob-1 {
    top: -15%;
    left: -10%;
    width: min(65vw, 650px);
    height: min(65vw, 650px);
    background: radial-gradient(circle, rgba(14, 165, 233, 0.20) 0%, rgba(14, 165, 233, 0.05) 70%, transparent 100%);
    animation: blob-drift-1 20s ease-in-out infinite alternate;
}

.blob-2 {
    bottom: -20%;
    right: -15%;
    width: min(70vw, 700px);
    height: min(70vw, 700px);
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.04) 70%, transparent 100%);
    animation: blob-drift-2 25s ease-in-out infinite alternate;
}

.blob-3 {
    top: 35%;
    left: 25%;
    width: min(45vw, 450px);
    height: min(45vw, 450px);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0.03) 70%, transparent 100%);
    animation: blob-drift-3 22s ease-in-out infinite alternate;
}

.blob-4 {
    top: 10%;
    right: 20%;
    width: min(35vw, 350px);
    height: min(35vw, 350px);
    background: radial-gradient(circle, rgba(14, 165, 233, 0.14) 0%, rgba(6, 182, 212, 0.04) 70%, transparent 100%);
    animation: blob-drift-4 18s ease-in-out infinite alternate;
}

@keyframes blob-drift-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(8vw, 12vh) scale(1.15);
    }

    100% {
        transform: translate(-4vw, 8vh) scale(0.95);
    }
}

@keyframes blob-drift-2 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(-10vw, -8vh) scale(1.1) rotate(15deg);
    }

    100% {
        transform: translate(5vw, -12vh) scale(0.9) rotate(-10deg);
    }
}

@keyframes blob-drift-3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(6vw, -10vh) scale(1.2);
    }

    100% {
        transform: translate(-8vw, 5vh) scale(0.85);
    }
}

@keyframes blob-drift-4 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-5vw, 8vh) scale(1.1);
    }

    100% {
        transform: translate(3vw, -6vh) scale(0.95);
    }
}

/* --- Subtle Grid Overlay --- */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
}

/* --- Floating Particles --- */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    animation: particle-float linear infinite;
}

.particles span:nth-child(1) {
    left: 10%;
    width: 3px;
    height: 3px;
    animation-duration: 18s;
    animation-delay: 0s;
}

.particles span:nth-child(2) {
    left: 20%;
    width: 5px;
    height: 5px;
    animation-duration: 22s;
    animation-delay: -4s;
    background: rgba(16, 185, 129, 0.25);
}

.particles span:nth-child(3) {
    left: 35%;
    width: 3px;
    height: 3px;
    animation-duration: 20s;
    animation-delay: -8s;
}

.particles span:nth-child(4) {
    left: 45%;
    width: 6px;
    height: 6px;
    animation-duration: 25s;
    animation-delay: -2s;
    background: rgba(99, 102, 241, 0.2);
}

.particles span:nth-child(5) {
    left: 55%;
    width: 4px;
    height: 4px;
    animation-duration: 19s;
    animation-delay: -6s;
}

.particles span:nth-child(6) {
    left: 65%;
    width: 3px;
    height: 3px;
    animation-duration: 23s;
    animation-delay: -10s;
    background: rgba(16, 185, 129, 0.2);
}

.particles span:nth-child(7) {
    left: 75%;
    width: 5px;
    height: 5px;
    animation-duration: 21s;
    animation-delay: -3s;
}

.particles span:nth-child(8) {
    left: 85%;
    width: 4px;
    height: 4px;
    animation-duration: 24s;
    animation-delay: -7s;
    background: rgba(14, 165, 233, 0.25);
}

.particles span:nth-child(9) {
    left: 5%;
    width: 3px;
    height: 3px;
    animation-duration: 26s;
    animation-delay: -12s;
}

.particles span:nth-child(10) {
    left: 30%;
    width: 5px;
    height: 5px;
    animation-duration: 17s;
    animation-delay: -5s;
    background: rgba(99, 102, 241, 0.15);
}

.particles span:nth-child(11) {
    left: 50%;
    width: 4px;
    height: 4px;
    animation-duration: 20s;
    animation-delay: -9s;
}

.particles span:nth-child(12) {
    left: 90%;
    width: 3px;
    height: 3px;
    animation-duration: 22s;
    animation-delay: -1s;
    background: rgba(16, 185, 129, 0.3);
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-10vh) scale(0.5);
        opacity: 0;
    }
}


/* Ensure content visibility over animation */
.landing-body,
body {
    background: transparent !important;
}

.landing-container {
    position: relative;
    z-index: 100;
}

header.landing-container {
    z-index: 200;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

#back-to-top svg {
    width: 20px;
    height: 20px;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}