velxio/frontend/src/pages/LandingPage.css

800 lines
15 KiB
CSS

/* ── Base ──────────────────────────────────────────────── */
:root {
--accent: #007acc;
--bg: #09090b;
--bg-card: #0f0f12;
--bg-alt: #07070a;
--border: #18181f;
--border-hi: #252530;
--text: #d8d8e0;
--text-muted: #72727e;
--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
--mono: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
--radius: 3px;
}
.landing {
min-height: 100vh;
background: var(--bg);
color: var(--text);
font-family: var(--font);
overflow-x: hidden;
}
/* ── Nav ──────────────────────────────────────────────── */
.landing-nav {
position: sticky;
top: 0;
z-index: 100;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 40px;
height: 52px;
background: rgba(9, 9, 11, 0.92);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border);
}
.landing-nav-brand {
display: flex;
align-items: center;
gap: 10px;
font-size: 17px;
font-weight: 700;
color: var(--text);
letter-spacing: -0.2px;
font-family: var(--mono);
}
.landing-nav-brand svg {
width: 20px;
height: 20px;
color: var(--accent);
}
.landing-nav-links {
display: flex;
align-items: center;
gap: 4px;
}
.nav-link {
display: flex;
align-items: center;
gap: 6px;
padding: 5px 12px;
color: var(--text-muted);
text-decoration: none;
font-size: 13px;
border-radius: var(--radius);
transition: color 0.15s, background 0.15s;
}
.nav-link svg {
width: 15px;
height: 15px;
}
.nav-link:hover {
color: var(--text);
background: rgba(255, 255, 255, 0.05);
}
.nav-btn-primary {
padding: 5px 14px;
background: var(--accent);
color: #fff;
text-decoration: none;
font-size: 13px;
font-weight: 600;
border-radius: var(--radius);
transition: background 0.15s;
border: 1px solid rgba(255,255,255,0.1);
}
.nav-btn-primary:hover {
background: #1a8fd1;
}
/* ── Nav auth skeleton ────────────────────────────────── */
.nav-auth-skeleton {
width: 80px;
height: 28px;
background: var(--border);
border-radius: var(--radius);
animation: skeleton-pulse 1.4s ease-in-out infinite;
}
@keyframes skeleton-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.4; }
}
/* ── User menu ────────────────────────────────────────── */
.user-menu {
position: relative;
}
.user-menu-trigger {
display: flex;
align-items: center;
gap: 8px;
background: transparent;
border: 1px solid var(--border-hi);
border-radius: 20px;
padding: 3px 10px 3px 4px;
cursor: pointer;
color: var(--text);
font-size: 13px;
transition: border-color 0.15s, background 0.15s;
}
.user-menu-trigger:hover {
border-color: #333;
background: rgba(255,255,255,0.04);
}
.user-avatar {
width: 24px;
height: 24px;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
}
.user-avatar-initials {
display: flex;
align-items: center;
justify-content: center;
background: var(--accent);
color: #fff;
font-size: 11px;
font-weight: 700;
}
.user-avatar-lg {
width: 36px;
height: 36px;
font-size: 15px;
}
.user-menu-name {
font-size: 13px;
font-weight: 500;
color: var(--text);
max-width: 120px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.user-menu-dropdown {
position: absolute;
right: 0;
top: calc(100% + 6px);
background: #131318;
border: 1px solid var(--border-hi);
border-radius: 6px;
min-width: 200px;
z-index: 200;
box-shadow: 0 8px 24px rgba(0,0,0,0.5);
overflow: hidden;
}
.user-menu-header {
display: flex;
align-items: center;
gap: 10px;
padding: 14px 14px 12px;
}
.user-menu-uname {
font-size: 13.5px;
font-weight: 600;
color: var(--text);
}
.user-menu-email {
font-size: 11.5px;
color: var(--text-muted);
margin-top: 1px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 130px;
}
.user-menu-divider {
height: 1px;
background: var(--border);
}
.user-menu-item {
display: flex;
align-items: center;
gap: 9px;
width: 100%;
padding: 9px 14px;
color: var(--text-muted);
font-size: 13px;
text-decoration: none;
background: none;
border: none;
cursor: pointer;
text-align: left;
transition: background 0.12s, color 0.12s;
}
.user-menu-item:hover {
background: rgba(255,255,255,0.05);
color: var(--text);
}
.user-menu-signout {
color: #e06c75;
}
.user-menu-signout:hover {
background: rgba(224, 108, 117, 0.08);
color: #e06c75;
}
/* ── Hero ─────────────────────────────────────────────── */
.landing-hero {
display: grid;
grid-template-columns: 1fr 1fr;
align-items: center;
gap: 48px;
padding: 80px 80px 80px 80px;
max-width: 1200px;
margin: 0 auto;
min-height: 80vh;
}
.hero-left {
display: flex;
flex-direction: column;
gap: 0;
}
.hero-eyebrow {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 20px;
}
.eyebrow-tag {
font-family: var(--mono);
font-size: 10px;
font-weight: 600;
letter-spacing: 1.2px;
color: var(--accent);
border: 1px solid rgba(0, 122, 204, 0.3);
padding: 2px 7px;
border-radius: 2px;
}
.eyebrow-dot {
width: 3px;
height: 3px;
background: var(--border-hi);
border-radius: 50%;
}
.hero-title {
margin: 0 0 16px;
font-size: clamp(32px, 4.5vw, 56px);
font-weight: 800;
line-height: 1.1;
letter-spacing: -1.5px;
color: #e8e8f0;
}
.hero-accent {
color: var(--accent);
font-weight: 800;
}
.hero-subtitle {
margin: 0 0 32px;
font-size: 15.5px;
line-height: 1.7;
color: var(--text-muted);
max-width: 480px;
}
.hero-ctas {
display: flex;
gap: 12px;
flex-wrap: wrap;
margin-bottom: 28px;
}
.cta-primary {
display: flex;
align-items: center;
gap: 8px;
padding: 11px 24px;
background: var(--accent);
color: #fff;
text-decoration: none;
font-size: 14px;
font-weight: 700;
border-radius: var(--radius);
transition: background 0.15s, transform 0.1s;
border: 1px solid rgba(255,255,255,0.1);
}
.cta-primary svg {
width: 16px;
height: 16px;
}
.cta-primary:hover {
background: #1a8fd1;
transform: translateY(-1px);
}
.cta-secondary {
display: flex;
align-items: center;
gap: 8px;
padding: 11px 24px;
background: transparent;
border: 1px solid var(--border-hi);
color: var(--text);
text-decoration: none;
font-size: 14px;
font-weight: 600;
border-radius: var(--radius);
transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.cta-secondary svg {
width: 16px;
height: 16px;
}
.cta-secondary:hover {
background: rgba(255, 255, 255, 0.04);
border-color: #333;
transform: translateY(-1px);
}
/* Specs strip */
.hero-specs {
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}
.spec-pill {
font-family: var(--mono);
font-size: 11.5px;
color: var(--text-muted);
background: var(--bg-card);
border: 1px solid var(--border);
padding: 3px 8px;
border-radius: 2px;
}
.spec-sep {
color: var(--border-hi);
font-size: 11px;
}
/* Hero right — schematic */
.hero-right {
display: flex;
align-items: center;
justify-content: center;
}
.schematic-svg {
width: 100%;
max-width: 440px;
height: auto;
border: 1px solid var(--border);
border-radius: 4px;
filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.6));
}
/* ── Sections ─────────────────────────────────────────── */
.landing-section {
padding: 80px 80px;
max-width: 1200px;
margin: 0 auto;
border-top: 1px solid var(--border);
}
.landing-section-alt {
max-width: 100%;
background: var(--bg-alt);
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
padding: 80px 0;
}
.landing-section-alt .section-header,
.landing-section-alt .features-grid {
max-width: 1200px;
margin-left: auto;
margin-right: auto;
padding-left: 80px;
padding-right: 80px;
}
.section-header {
margin-bottom: 40px;
}
.section-label {
display: block;
font-family: var(--mono);
font-size: 11px;
color: var(--accent);
letter-spacing: 0.5px;
margin-bottom: 10px;
opacity: 0.7;
}
.section-title {
margin: 0 0 8px;
font-size: clamp(22px, 3vw, 30px);
font-weight: 800;
letter-spacing: -0.6px;
color: #e8e8f0;
}
.section-sub {
margin: 0;
font-size: 14.5px;
color: var(--text-muted);
max-width: 480px;
line-height: 1.65;
}
/* ── Boards ───────────────────────────────────────────── */
.boards-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
gap: 16px;
}
.board-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 24px 16px 18px;
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
transition: border-color 0.2s;
position: relative;
}
.board-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: var(--accent);
opacity: 0;
transition: opacity 0.2s;
border-radius: var(--radius) var(--radius) 0 0;
}
.board-card:hover {
border-color: var(--border-hi);
}
.board-card:hover::before {
opacity: 1;
}
.board-svg {
width: 100%;
max-width: 210px;
height: auto;
filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}
.board-info {
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
width: 100%;
border-top: 1px solid var(--border);
padding-top: 14px;
}
.board-name {
font-size: 13.5px;
font-weight: 700;
color: var(--text);
}
.board-chip {
font-size: 11px;
font-family: var(--mono);
color: var(--text-muted);
}
/* ── Features ─────────────────────────────────────────── */
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1px;
background: var(--border);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
.feature-card {
background: var(--bg-alt);
padding: 28px 24px;
transition: background 0.15s;
border-radius: 0;
}
.feature-card:hover {
background: var(--bg-card);
}
.feature-icon {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 14px;
color: var(--accent);
border: 1px solid rgba(0, 122, 204, 0.25);
border-radius: 2px;
background: rgba(0, 122, 204, 0.06);
}
.feature-icon svg {
width: 18px;
height: 18px;
}
.feature-title {
margin: 0 0 7px;
font-size: 14px;
font-weight: 700;
color: #e8e8f0;
}
.feature-desc {
margin: 0;
font-size: 13px;
line-height: 1.65;
color: var(--text-muted);
}
/* ── Support ──────────────────────────────────────────── */
.landing-support {
background: var(--bg-alt);
border-top: 1px solid var(--border);
padding: 72px 40px;
}
.support-content {
max-width: 520px;
margin: 0 auto;
text-align: center;
}
.support-icon {
display: flex;
justify-content: center;
margin-bottom: 18px;
color: var(--accent);
}
.support-icon svg {
width: 36px;
height: 36px;
}
.support-title {
margin: 0 0 10px;
font-size: clamp(20px, 2.5vw, 26px);
font-weight: 800;
letter-spacing: -0.5px;
color: #e8e8f0;
}
.support-sub {
margin: 0 0 28px;
font-size: 14px;
line-height: 1.7;
color: var(--text-muted);
}
.support-btns {
display: flex;
gap: 12px;
justify-content: center;
flex-wrap: wrap;
}
.support-btn {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 20px;
font-size: 13.5px;
font-weight: 600;
border-radius: var(--radius);
text-decoration: none;
transition: opacity 0.15s, transform 0.1s;
}
.support-btn:hover {
opacity: 0.85;
transform: translateY(-1px);
}
.support-btn-gh {
background: #1c2128;
color: #e6edf3;
border: 1px solid #30363d;
}
.support-btn-pp {
background: #003087;
color: #fff;
border: 1px solid rgba(255,255,255,0.1);
}
.support-btn svg {
width: 16px;
height: 16px;
flex-shrink: 0;
}
/* ── Footer ───────────────────────────────────────────── */
.landing-footer {
padding: 28px 40px;
border-top: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 16px;
background: var(--bg);
}
.footer-brand {
display: flex;
align-items: center;
gap: 8px;
font-family: var(--mono);
font-size: 14px;
font-weight: 700;
color: var(--text-muted);
}
.footer-brand svg {
width: 16px;
height: 16px;
color: var(--accent);
}
.footer-links {
display: flex;
gap: 24px;
}
.footer-links a {
color: var(--text-muted);
text-decoration: none;
font-size: 13px;
transition: color 0.15s;
}
.footer-links a:hover {
color: var(--text);
}
.footer-copy {
font-size: 11.5px;
color: #333;
margin: 0;
width: 100%;
text-align: center;
font-family: var(--mono);
}
.footer-copy a {
color: #3a3a3a;
text-decoration: none;
transition: color 0.15s;
}
.footer-copy a:hover {
color: var(--text-muted);
}
/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
.landing-hero {
grid-template-columns: 1fr;
padding: 60px 32px;
min-height: auto;
gap: 40px;
}
.hero-right {
order: -1;
}
.schematic-svg {
max-width: 360px;
}
.hero-title {
font-size: 36px;
}
.landing-section,
.landing-support {
padding: 60px 32px;
}
.landing-section-alt .section-header,
.landing-section-alt .features-grid {
padding-left: 32px;
padding-right: 32px;
}
}
@media (max-width: 600px) {
.landing-nav {
padding: 0 20px;
}
.landing-nav-links .nav-link:not(:last-child) {
display: none;
}
.landing-hero {
padding: 48px 20px;
}
.landing-section,
.landing-support {
padding: 48px 20px;
}
.landing-section-alt .section-header,
.landing-section-alt .features-grid {
padding-left: 20px;
padding-right: 20px;
}
.hero-title {
font-size: 30px;
}
.features-grid {
grid-template-columns: 1fr;
}
.landing-footer {
padding: 24px 20px;
flex-direction: column;
align-items: flex-start;
}
}