Files
DocNest/frontend/src/pages/LandingPage.css
2026-03-15 09:45:17 +00:00

432 lines
7.4 KiB
CSS

/* Landing Page Styles */
.landing-page {
min-height: 100vh;
color: hsl(var(--text-primary));
background: hsl(var(--background));
}
.landing-theme-toggle {
position: fixed;
top: 24px;
right: 24px;
z-index: 20;
}
/* ========================================
Hero Section
======================================== */
.landing-hero {
min-height: 90vh;
display: flex;
align-items: center;
position: relative;
overflow: hidden;
padding: 6rem 2rem 5rem;
background: var(--gradient-hero);
}
.hero-gem svg {
opacity: 0.18;
filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.2));
}
.hero-grid {
width: 100%;
max-width: 1200px;
margin: 0 auto;
display: grid;
gap: 3rem;
align-items: center;
}
.hero-content {
text-align: left;
}
.hero-logo {
display: inline-flex;
align-items: center;
gap: 12px;
padding: 0.4rem 0.85rem;
border-radius: 999px;
background: hsl(var(--surface));
border: 1px solid hsl(var(--border));
box-shadow: var(--shadow-sm);
margin-bottom: 1.5rem;
}
.hero-logo-icon {
width: 28px;
height: 28px;
image-rendering: pixelated;
}
.hero-brand {
font-size: 0.95rem;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
color: hsl(var(--text-secondary));
}
.hero-headline {
font-size: 2.75rem;
font-weight: 700;
color: hsl(var(--text-primary));
margin: 0 0 1.25rem 0;
line-height: 1.1;
}
.hero-tagline {
font-size: 1.1rem;
color: hsl(var(--text-secondary));
margin: 0 0 2rem 0;
line-height: 1.7;
}
.hero-login-buttons {
display: flex;
flex-direction: column;
gap: 1rem;
}
.hero-note {
font-size: 0.9rem;
color: hsl(var(--text-muted));
margin: 0;
}
.provider-buttons {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.landing-login-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 0.9rem 1.4rem;
font-size: 1rem;
font-weight: 600;
border: 1px solid hsl(var(--border));
border-radius: var(--radius-md);
background: hsl(var(--surface));
color: hsl(var(--text-primary));
cursor: pointer;
box-shadow: var(--shadow-sm);
transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.landing-login-button:hover {
transform: translateY(-1px);
box-shadow: var(--shadow-md);
}
.landing-login-button.primary {
background: var(--gradient-accent);
color: white;
border: none;
gap: 12px;
}
.landing-login-button.primary:hover {
filter: brightness(0.98);
}
.landing-login-button.provider {
background: hsl(var(--surface));
}
.landing-login-button.guest {
background: transparent;
border: 1px dashed hsl(var(--border));
color: hsl(var(--text-secondary));
font-size: 0.9rem;
padding: 0.6rem 1.5rem;
}
.landing-login-button.guest:hover {
color: hsl(var(--text-primary));
border-style: solid;
}
.landing-login-button.large {
padding: 1rem 2rem;
font-size: 1.05rem;
}
.oauth-icon {
flex-shrink: 0;
}
.hero-mock {
background: hsl(var(--surface));
border: 1px solid hsl(var(--border));
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
overflow: hidden;
}
.mock-topbar {
display: flex;
gap: 6px;
padding: 12px 16px;
border-bottom: 1px solid hsl(var(--border));
background: hsl(var(--surface-muted));
}
.mock-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: hsl(var(--border));
}
.mock-body {
padding: 20px 22px 24px;
display: flex;
flex-direction: column;
gap: 16px;
}
.mock-tabs {
display: flex;
gap: 12px;
font-size: 0.85rem;
color: hsl(var(--text-muted));
}
.mock-tab {
padding-bottom: 6px;
border-bottom: 2px solid transparent;
}
.mock-tab.active {
color: hsl(var(--text-primary));
border-bottom-color: hsl(var(--primary));
font-weight: 600;
}
.mock-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.mock-card {
background: hsl(var(--surface-muted));
border-radius: var(--radius-md);
padding: 14px;
border: 1px solid hsl(var(--border));
}
.mock-line {
height: 8px;
background: hsl(var(--border));
border-radius: 999px;
margin-bottom: 8px;
}
.mock-line.wide {
width: 90%;
}
.mock-line.short {
width: 55%;
margin-bottom: 0;
}
.mock-rows {
display: flex;
flex-direction: column;
gap: 10px;
}
.mock-row {
display: grid;
grid-template-columns: 24px 1fr 80px;
align-items: center;
gap: 10px;
padding: 10px 12px;
border-radius: var(--radius-md);
border: 1px solid hsl(var(--border));
}
.mock-pill {
width: 18px;
height: 18px;
border-radius: 999px;
background: hsl(var(--secondary));
}
/* ========================================
Features Section
======================================== */
.landing-features {
padding: 5rem 2rem;
background: hsl(var(--background));
}
.section-divider {
display: flex;
align-items: center;
gap: 12px;
padding: 0 2rem;
background: hsl(var(--background));
max-width: 1200px;
margin: 0 auto;
height: 32px;
}
.divider-line {
flex: 1;
height: 1px;
background: hsl(var(--border));
}
.section-title {
text-align: center;
font-size: 2.25rem;
font-weight: 700;
color: hsl(var(--text-primary));
margin: 0 0 3rem 0;
}
.features-grid {
display: grid;
grid-template-columns: 1fr;
gap: 1.75rem;
max-width: 1200px;
margin: 0 auto;
}
.feature-card {
background: hsl(var(--surface));
padding: 2rem;
border: 1px solid hsl(var(--border));
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
text-align: left;
transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.feature-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
.feature-icon {
width: 52px;
height: 52px;
border-radius: 14px;
background: hsl(var(--surface-muted));
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1.25rem;
border: 1px solid hsl(var(--border));
}
.feature-title {
font-size: 1.15rem;
font-weight: 700;
color: hsl(var(--text-primary));
margin: 0 0 0.6rem 0;
}
.feature-description {
font-size: 1rem;
color: hsl(var(--text-secondary));
margin: 0;
line-height: 1.6;
}
/* ========================================
Footer Section
======================================== */
.landing-footer {
padding: 4.5rem 2rem;
background: hsl(var(--surface-muted));
border-top: 1px solid hsl(var(--border));
}
.footer-content {
text-align: center;
max-width: 600px;
margin: 0 auto;
}
.footer-headline {
font-size: 1.9rem;
font-weight: 700;
color: hsl(var(--text-primary));
margin: 0 0 0.75rem 0;
}
.footer-tagline {
font-size: 1.05rem;
color: hsl(var(--text-secondary));
margin: 0 0 2rem 0;
}
.footer-login-buttons {
display: flex;
justify-content: center;
margin-bottom: 2.5rem;
}
.footer-tech {
font-size: 0.9rem;
color: hsl(var(--text-muted));
margin: 0;
}
/* ========================================
Responsive Design
======================================== */
@media (min-width: 768px) {
.hero-headline {
font-size: 3.25rem;
}
.hero-tagline {
font-size: 1.2rem;
}
.provider-buttons {
flex-direction: row;
}
.features-grid {
grid-template-columns: repeat(2, 1fr);
}
.section-title {
font-size: 2.5rem;
}
}
@media (min-width: 1024px) {
.hero-grid {
grid-template-columns: 1.05fr 0.95fr;
}
.features-grid {
grid-template-columns: repeat(4, 1fr);
}
}
@media (prefers-reduced-motion: reduce) {
.landing-login-button,
.feature-card {
transition: none;
}
}