* {
    box-sizing: border-box;
}

:root {
    --bg: #07111f;
    --bg-2: #0b1728;
    --card: rgba(16, 27, 46, 0.78);
    --card-strong: #101b2e;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --blue: #3b82f6;
    --blue-2: #1d8cf8;
    --green: #10b981;
    --yellow: #facc15;
    --danger: #ef4444;
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at 16% 18%, rgba(59, 130, 246, 0.20), transparent 26%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.12), transparent 28%),
        linear-gradient(135deg, #06101d 0%, #07111f 50%, #081827 100%);
    color: var(--text);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 88%);
}

a {
    color: inherit;
}

.topbar {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1180px;
    min-height: 72px;
    z-index: 50;
    background: rgba(7, 17, 31, 0.78);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -0.04em;
    font-size: 19px;
}

.nav-icon,
.footer-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(59,130,246,0.95), rgba(16,185,129,0.95));
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 950;
    box-shadow: 0 18px 45px rgba(59, 130, 246, 0.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 800;
    font-size: 13px;
    padding: 11px 14px;
    border-radius: 14px;
    transition: .2s ease;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.12);
}

.nav-cta {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.12);
    color: #ffffff !important;
    padding: 12px 18px !important;
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--blue), var(--green)) !important;
}

.main-shell {
    width: calc(100% - 48px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 150px 0 80px;
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 28px;
    align-items: stretch;
}

.hero-panel,
.auth-panel,
.preview-panel {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
    border: 1px solid var(--line);
    border-radius: 34px;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.hero-panel {
    padding: 42px;
    min-height: 560px;
    position: relative;
    overflow: hidden;
}

.hero-panel::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,0.22), transparent 66%);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #b7f7df;
    font-size: 13px;
    font-weight: 900;
}

.kicker-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 22px rgba(16,185,129,0.95);
}

.hero-title {
    margin: 28px 0 20px;
    font-size: clamp(42px, 5.6vw, 78px);
    line-height: .91;
    letter-spacing: -0.075em;
}

.hero-title span {
    color: #93c5fd;
}

.hero-text {
    max-width: 610px;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.8;
    margin: 0 0 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.btn {
    height: 54px;
    padding: 0 22px;
    border-radius: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
    border: 1px solid transparent;
    cursor: pointer;
    transition: .2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: white;
    box-shadow: 0 22px 50px rgba(59, 130, 246, 0.26);
}

.btn-secondary {
    background: rgba(255,255,255,0.07);
    color: white;
    border-color: rgba(255,255,255,0.12);
}

.btn:hover {
    transform: translateY(-2px);
}

.clinical-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.clinical-item {
    padding: 15px;
    border-radius: 20px;
    background: rgba(2, 6, 23, 0.34);
    border: 1px solid rgba(148,163,184,0.13);
}

.clinical-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}

.clinical-item span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.preview-panel {
    padding: 26px;
    position: relative;
    overflow: hidden;
}

.protocol-card {
    background: rgba(2, 6, 23, 0.54);
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 28px;
    padding: 24px;
    min-height: 508px;
}

.protocol-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.protocol-tag {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 900;
}

.protocol-status {
    color: #86efac;
    font-weight: 900;
    font-size: 12px;
}

.manual-cover {
    padding: 22px;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(59,130,246,0.20), rgba(16,185,129,0.10)),
        rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 20px;
}

.manual-cover small {
    color: var(--muted);
    font-weight: 800;
}

.manual-cover h2 {
    margin: 12px 0 8px;
    font-size: 34px;
    letter-spacing: -0.05em;
    line-height: 1;
}

.manual-cover p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.6;
}

.protocol-list {
    display: grid;
    gap: 10px;
}

.protocol-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.07);
    color: #e2e8f0;
    font-weight: 800;
    font-size: 14px;
}

.protocol-row span {
    color: var(--green);
}

.footer {
    position: relative;
    z-index: 2;
    background: rgba(2, 6, 23, 0.48);
    border-top: 1px solid var(--line);
    padding: 60px 30px 30px;
}

.footer-container {
    max-width: 1180px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 950;
    margin-bottom: 16px;
}

.footer-description {
    color: var(--muted);
    line-height: 1.8;
    font-size: 15px;
    max-width: 430px;
}

.footer-title {
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    color: var(--muted-2);
    font-size: 14px;
}

@media (max-width: 920px) {
    .topbar {
        top: 12px;
        width: calc(100% - 24px);
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 4px;
    }

    .nav-links a {
        font-size: 12px;
        padding: 9px 8px;
    }

    .main-shell {
        width: calc(100% - 24px);
        padding-top: 145px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        padding: 28px;
        min-height: auto;
    }

    .clinical-list {
        grid-template-columns: 1fr;
    }

    .protocol-card {
        min-height: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

.section-title {
    margin: 24px 0 18px;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.055em;
    color: var(--text);
}

.compact-panel {
    min-height: auto;
    padding: 34px;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.ecosystem-card {
    background: rgba(2, 6, 23, 0.38);
    border: 1px solid rgba(148,163,184,0.14);
    border-radius: 22px;
    padding: 20px;
}

.ecosystem-card strong {
    display: block;
    font-size: 15px;
    margin-bottom: 8px;
}

.ecosystem-card span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.roadmap-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(59,130,246,0.12);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 900;
    margin-top: 10px;
}

@media (max-width: 920px) {
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
}
.auth-form {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.auth-form .field {
    margin: 0;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 900;
}

.auth-form input {
    width: 100%;
    height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.52);
    color: #f8fafc;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
    transition: .2s ease;
}

.auth-form input:focus {
    border-color: rgba(59, 130, 246, 0.75);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.auth-form button {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #ffffff;
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 22px 50px rgba(59, 130, 246, 0.26);
    transition: .2s ease;
}

.auth-form button:hover {
    transform: translateY(-2px);
}

.auth-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.auth-option-card {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    transition: .2s ease;
}

.auth-option-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59,130,246,0.35);
    background: rgba(59,130,246,0.08);
}

.auth-option-card strong {
    display: block;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 950;
    margin-bottom: 5px;
}

.auth-option-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.auth-disclaimer {
    margin-top: 16px;
    padding: 14px 15px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.36);
    border: 1px solid rgba(255,255,255,0.07);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 620px) {
    .auth-options {
        grid-template-columns: 1fr;
    }
}