Copy / static /style.css
HusainHG's picture
Upload 9 files
ee1baf1 verified
/* GLOBAL STYLES & RESET*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary-navy: #1a237e;
--primary-navy-dark: #0d1642;
--primary-navy-light: #283593;
--accent-gold: #d4af37;
--accent-gold-dark: #b8941f;
--accent-gold-light: #f0d677;
--text-dark: #1a1a1a;
--text-gray: #4a4a4a;
--text-light: #6a6a6a;
--bg-white: #ffffff;
--bg-light: #f8f9fa;
--bg-lighter: #f5f7fa;
--border-light: #e0e6ed;
--success: #10b981;
--warning: #f59e0b;
--error: #ef4444;
--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
color: var(--text-dark);
background: var(--bg-lighter);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* HEADER*/
.header {
background: var(--bg-white);
border-bottom: 1px solid var(--border-light);
position: sticky;
top: 0;
z-index: 1000;
box-shadow: var(--shadow-sm);
}
.header-content {
max-width: 1200px;
margin: 0 auto;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 1.25rem;
font-weight: 700;
color: var(--primary-navy);
}
.logo svg {
color: var(--accent-gold);
}
.nav {
display: flex;
gap: 2rem;
}
.nav-link {
color: var(--text-gray);
text-decoration: none;
font-weight: 500;
transition: var(--transition);
font-size: 0.95rem;
}
.nav-link:hover {
color: var(--primary-navy);
}
/* SECTIONS & LAYOUT */
.section {
display: none;
min-height: calc(100vh - 200px);
padding: 3rem 2rem;
}
.section.active {
display: block;
animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* LANDING PAGE */
.hero-container {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
align-items: center;
padding: 2rem 0;
}
.hero-content {
animation: slideInLeft 0.8s ease-out;
}
@keyframes slideInLeft {
from {
opacity: 0;
transform: translateX(-30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.hero-title {
font-size: 3rem;
font-weight: 800;
color: var(--primary-navy);
line-height: 1.2;
margin-bottom: 1.5rem;
}
.hero-subtitle {
font-size: 1.25rem;
color: var(--text-gray);
margin-bottom: 2.5rem;
line-height: 1.6;
}
.hero-features {
display: flex;
flex-direction: column;
gap: 1rem;
margin-bottom: 2.5rem;
}
.feature-item {
display: flex;
align-items: center;
gap: 0.75rem;
color: var(--text-dark);
font-weight: 500;
}
.feature-item svg {
color: var(--success);
flex-shrink: 0;
}
.cta-button {
background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
color: white;
border: none;
padding: 1.25rem 3rem;
font-size: 1.125rem;
font-weight: 600;
border-radius: 12px;
cursor: pointer;
transition: var(--transition);
display: inline-flex;
align-items: center;
gap: 0.75rem;
box-shadow: var(--shadow-md);
}
.cta-button:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
background: linear-gradient(135deg, var(--primary-navy-dark) 0%, var(--primary-navy) 100%);
}
.cta-button:active {
transform: translateY(0);
}
.hero-note {
margin-top: 1.5rem;
color: var(--text-light);
font-size: 0.95rem;
}
.hero-illustration {
animation: slideInRight 0.8s ease-out;
}
.hero-illustration svg {
width: 100%;
height: auto;
}
@keyframes slideInRight {
from {
opacity: 0;
transform: translateX(30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
/* QUESTION PAGE */
.question-container {
max-width: 700px;
margin: 0 auto;
}
.progress-bar {
background: var(--bg-white);
height: 8px;
border-radius: 10px;
overflow: hidden;
margin-bottom: 1.5rem;
box-shadow: var(--shadow-sm);
}
.progress-fill {
background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
height: 100%;
width: 0%;
transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.question-counter {
text-align: center;
color: var(--text-light);
font-size: 0.9rem;
font-weight: 600;
margin-bottom: 2rem;
text-transform: uppercase;
letter-spacing: 1px;
}
.question-card {
background: var(--bg-white);
border-radius: 16px;
padding: 3rem;
box-shadow: var(--shadow-lg);
animation: slideUp 0.4s ease-out;
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.question-text {
font-size: 1.75rem;
font-weight: 700;
color: var(--primary-navy);
margin-bottom: 1rem;
line-height: 1.4;
}
.question-subtitle {
color: var(--text-light);
margin-bottom: 2.5rem;
font-size: 1rem;
line-height: 1.6;
}
/* Answer Inputs */
.answer-input input,
.answer-input textarea {
width: 100%;
padding: 1rem 1.25rem;
border: 2px solid var(--border-light);
border-radius: 10px;
font-size: 1rem;
font-family: inherit;
transition: var(--transition);
background: var(--bg-lighter);
}
.answer-input input:focus,
.answer-input textarea:focus {
outline: none;
border-color: var(--accent-gold);
background: var(--bg-white);
box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}
.answer-input textarea {
resize: vertical;
min-height: 120px;
}
/* Button Options */
.answer-options {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 1rem;
margin-bottom: 2rem;
}
.option-btn {
padding: 1rem 1.5rem;
border: 2px solid var(--border-light);
background: var(--bg-white);
border-radius: 10px;
cursor: pointer;
font-size: 1rem;
font-weight: 500;
color: var(--text-dark);
transition: var(--transition);
text-align: center;
}
.option-btn:hover {
border-color: var(--accent-gold);
background: var(--bg-lighter);
}
.option-btn.selected {
border-color: var(--accent-gold);
background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
color: white;
box-shadow: var(--shadow-md);
}
/* Checkbox Options */
.answer-checkboxes {
display: flex;
flex-direction: column;
gap: 1rem;
margin-bottom: 2rem;
}
.checkbox-option {
display: flex;
align-items: center;
padding: 1rem 1.25rem;
border: 2px solid var(--border-light);
border-radius: 10px;
cursor: pointer;
transition: var(--transition);
background: var(--bg-white);
}
.checkbox-option:hover {
border-color: var(--accent-gold);
background: var(--bg-lighter);
}
.checkbox-option.selected {
border-color: var(--accent-gold);
background: rgba(212, 175, 55, 0.1);
}
.checkbox-option input[type="checkbox"] {
width: 20px;
height: 20px;
margin-right: 1rem;
cursor: pointer;
accent-color: var(--accent-gold);
}
.checkbox-option label {
flex: 1;
cursor: pointer;
font-weight: 500;
color: var(--text-dark);
}
/* Question Actions */
.question-actions {
display: flex;
justify-content: space-between;
gap: 1rem;
margin-top: 2.5rem;
}
.btn-primary,
.btn-secondary {
padding: 1rem 2rem;
border: none;
border-radius: 10px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
display: flex;
align-items: center;
gap: 0.5rem;
}
.btn-primary {
background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
color: white;
flex: 1;
justify-content: center;
box-shadow: var(--shadow-md);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}
.btn-primary:active {
transform: translateY(0);
}
.btn-primary:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}
.btn-secondary {
background: var(--bg-light);
color: var(--text-dark);
border: 2px solid var(--border-light);
}
.btn-secondary:hover {
background: var(--bg-lighter);
border-color: var(--primary-navy);
}
/* LOADING PAGE */
.loading-container {
max-width: 600px;
margin: 0 auto;
text-align: center;
padding: 3rem;
}
.loading-spinner {
margin: 0 auto 2rem;
width: 100px;
height: 100px;
}
.loading-title {
font-size: 2rem;
font-weight: 700;
color: var(--primary-navy);
margin-bottom: 1rem;
}
.loading-text {
color: var(--text-gray);
font-size: 1.125rem;
margin-bottom: 3rem;
line-height: 1.6;
}
.loading-steps {
display: flex;
justify-content: space-between;
gap: 2rem;
}
.loading-step {
flex: 1;
padding: 1.5rem;
background: var(--bg-white);
border-radius: 12px;
border: 2px solid var(--border-light);
transition: var(--transition);
}
.loading-step.active {
border-color: var(--accent-gold);
background: rgba(212, 175, 55, 0.05);
}
.loading-step.active .step-icon {
background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
color: white;
}
.step-icon {
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--bg-light);
color: var(--text-light);
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
margin: 0 auto 1rem;
transition: var(--transition);
}
.step-text {
font-size: 0.9rem;
font-weight: 600;
color: var(--text-dark);
}
/* RESULTS PAGE*/
.results-container {
max-width: 1200px;
margin: 0 auto;
}
.results-header {
text-align: center;
margin-bottom: 3rem;
padding-bottom: 2rem;
border-bottom: 2px solid var(--border-light);
}
.results-title {
font-size: 2.5rem;
font-weight: 800;
color: var(--primary-navy);
margin-bottom: 1rem;
}
.results-subtitle {
font-size: 1.25rem;
color: var(--text-gray);
margin-bottom: 2rem;
}
.results-actions {
display: flex;
justify-content: center;
gap: 1rem;
flex-wrap: wrap;
}
.btn-download,
.btn-regenerate {
padding: 0.875rem 1.75rem;
border: none;
border-radius: 10px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
display: flex;
align-items: center;
gap: 0.5rem;
}
.btn-download {
background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
color: white;
box-shadow: var(--shadow-md);
}
.btn-download:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}
.btn-regenerate {
background: var(--primary-navy);
color: white;
box-shadow: var(--shadow-md);
}
.btn-regenerate:hover {
background: var(--primary-navy-dark);
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}
/* Document Cards */
.documents-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 1.5rem;
margin-bottom: 3rem;
}
.document-card {
background: var(--bg-white);
border-radius: 12px;
padding: 1.75rem;
border: 2px solid var(--border-light);
transition: var(--transition);
animation: fadeInUp 0.5s ease-out;
animation-fill-mode: both;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.document-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-lg);
border-color: var(--accent-gold);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: start;
margin-bottom: 1rem;
}
.card-title {
font-size: 1.25rem;
font-weight: 700;
color: var(--primary-navy);
line-height: 1.3;
flex: 1;
}
.priority-badge {
padding: 0.35rem 0.75rem;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
white-space: nowrap;
margin-left: 0.75rem;
}
.priority-badge.critical {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
color: white;
}
.priority-badge.high {
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
color: white;
}
.priority-badge.medium {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
color: white;
}
.priority-badge.low {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
color: white;
}
.category-badge {
display: inline-block;
padding: 0.35rem 0.85rem;
background: rgba(26, 35, 126, 0.1);
color: var(--primary-navy);
border-radius: 20px;
font-size: 0.8rem;
font-weight: 600;
margin-bottom: 1rem;
}
.card-description {
color: var(--text-gray);
font-size: 0.95rem;
line-height: 1.6;
margin-bottom: 1rem;
}
.card-section {
margin-top: 1.25rem;
padding-top: 1.25rem;
border-top: 1px solid var(--border-light);
}
.card-section-title {
font-size: 0.85rem;
font-weight: 700;
color: var(--text-light);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 0.75rem;
}
.card-section-content {
color: var(--text-dark);
font-size: 0.95rem;
line-height: 1.6;
}
.card-section-content.risk {
color: var(--error);
font-weight: 500;
}
.stakeholders-list {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.stakeholder-tag {
padding: 0.35rem 0.75rem;
background: var(--bg-lighter);
color: var(--text-dark);
border-radius: 20px;
font-size: 0.85rem;
font-weight: 500;
}
/* Optional Documents Section */
.optional-documents-section {
margin-top: 4rem;
padding-top: 3rem;
border-top: 2px solid var(--border-light);
}
.section-title {
font-size: 2rem;
font-weight: 700;
color: var(--primary-navy);
margin-bottom: 0.5rem;
}
.section-subtitle {
font-size: 1.125rem;
color: var(--text-gray);
margin-bottom: 2rem;
}
/* FOOTER*/
.footer {
background: var(--primary-navy);
color: white;
margin-top: 4rem;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
padding: 3rem 2rem;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
}
.footer-section h3,
.footer-section h4 {
margin-bottom: 1rem;
color: var(--accent-gold);
}
.footer-section p {
color: rgba(255, 255, 255, 0.8);
line-height: 1.6;
}
.footer-section a {
display: block;
color: rgba(255, 255, 255, 0.8);
text-decoration: none;
margin-bottom: 0.5rem;
transition: var(--transition);
}
.footer-section a:hover {
color: var(--accent-gold);
}
.footer-bottom {
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding: 1.5rem 2rem;
text-align: center;
color: rgba(255, 255, 255, 0.6);
font-size: 0.9rem;
}
/* RESPONSIVE DESIGN*/
@media (max-width: 968px) {
.hero-container {
grid-template-columns: 1fr;
gap: 2rem;
}
.hero-illustration {
order: -1;
}
.hero-title {
font-size: 2.25rem;
}
.documents-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 640px) {
.header-content {
padding: 1rem;
}
.nav {
gap: 1rem;
}
.hero-title {
font-size: 1.875rem;
}
.hero-subtitle {
font-size: 1.125rem;
}
.cta-button {
width: 100%;
justify-content: center;
}
.question-card {
padding: 2rem 1.5rem;
}
.question-text {
font-size: 1.5rem;
}
.answer-options {
grid-template-columns: 1fr;
}
.question-actions {
flex-direction: column;
}
.btn-secondary {
order: -1;
}
.loading-steps {
flex-direction: column;
gap: 1rem;
}
.results-title {
font-size: 2rem;
}
.results-actions {
flex-direction: column;
}
.results-actions button {
width: 100%;
justify-content: center;
}
.footer-content {
grid-template-columns: 1fr;
}
}
/*UTILITY CLASSES*/
.text-center {
text-align: center;
}
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }