landing/static/css/styles.css
Cipher Vance 1a66ebdfc4 feat: Complete UI/UX redesign with modern responsive design
- Redesign landing page with contemporary gradient backgrounds and glassmorphism
- Add 3D phone mockup with floating animation and interactive stats display
- Implement modern navigation with blur backdrop and smooth scroll effects
- Update feature cards with icons, hover animations, and improved typography
- Integrate countdown timer into hero CTA section with glassmorphic styling
- Add responsive email signup form with enhanced validation

- Modernize newsletters listing page with card-based grid layout
- Add empty state design with call-to-action for newsletter subscription
- Implement smooth loading animations and hover effects for newsletter cards
- Update navigation consistency across all pages

- Redesign newsletter detail page with professional article layout
- Add reading metadata display (date, reading time, author, tags)
- Enhance content typography with proper heading hierarchy and styling
- Implement share functionality with Web Share API and clipboard fallback
- Add print-optimized styles and action buttons
- Improve mobile reading experience with responsive design

- Establish consistent design system with CSS custom properties
- Use CSS Grid and Flexbox for modern, flexible layouts
- Add comprehensive mobile responsiveness (320px to desktop)
- Implement smooth animations and micro-interactions throughout
- Maintain accessibility with semantic HTML and proper contrast ratios
- Preserve all existing Flask template functionality and JavaScript features

Breaking changes: Complete visual redesign requires updated asset references
Performance: Optimized CSS with efficient animations and modern layout techniques
2025-08-24 12:47:15 -05:00

476 lines
No EOL
8.7 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary: #1e4e9c;
--secondary: #337cf2;
--accent: #00d4ff;
--text-dark: #1a1a1a;
--text-light: #6b7280;
--bg-light: #f8fafc;
--white: #ffffff;
--gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
--shadow: 0 10px 30px rgba(30, 78, 156, 0.1);
--shadow-hover: 0 20px 40px rgba(30, 78, 156, 0.15);
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
line-height: 1.7;
color: var(--text-dark);
overflow-x: hidden;
}
/* Navigation */
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
z-index: 1000;
padding: 1rem 0;
transition: all 0.3s ease;
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 1.5rem;
font-weight: 700;
color: var(--text-dark);
text-decoration: none;
transition: transform 0.3s ease;
}
.logo:hover {
transform: scale(1.05);
}
.logo-accent {
color: var(--primary);
}
.nav-links {
display: flex;
gap: 2rem;
list-style: none;
}
.nav-links a {
text-decoration: none;
color: var(--text-dark);
font-weight: 500;
transition: color 0.3s ease;
position: relative;
}
.nav-links a::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 0;
height: 2px;
background: var(--gradient);
transition: width 0.3s ease;
}
.nav-links a:hover::after {
width: 100%;
}
/* Hero Section */
.hero {
min-height: 100vh;
background: var(--gradient);
display: flex;
align-items: center;
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
opacity: 0.3;
}
.hero-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
align-items: center;
position: relative;
z-index: 1;
}
.hero-content h1 {
font-size: clamp(2.5rem, 5vw, 4rem);
font-weight: 800;
color: white;
margin-bottom: 1.5rem;
line-height: 1.2;
text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
.hero-content .subtitle {
font-size: 1.25rem;
color: rgba(255, 255, 255, 0.9);
margin-bottom: 2rem;
font-weight: 300;
}
.cta-section {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(20px);
padding: 2rem;
border-radius: 20px;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.cta-section h3 {
color: white;
font-size: 1.5rem;
margin-bottom: 0.5rem;
font-weight: 600;
}
.cta-section p {
color: rgba(255, 255, 255, 0.8);
margin-bottom: 1.5rem;
}
.email-form {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
}
.email-input {
flex: 1;
padding: 1rem 1.5rem;
border: none;
border-radius: 50px;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
font-size: 1rem;
outline: none;
transition: all 0.3s ease;
}
.email-input:focus {
background: white;
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}
.notify-btn {
padding: 1rem 2rem;
background: var(--white);
color: var(--primary);
border: none;
border-radius: 50px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
white-space: nowrap;
}
.notify-btn:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-hover);
}
/* Countdown Timer */
.countdown {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1rem;
margin-top: 1rem;
}
.countdown-item {
text-align: center;
color: white;
}
.countdown-number {
font-size: 2rem;
font-weight: 700;
display: block;
}
.countdown-label {
font-size: 0.875rem;
opacity: 0.8;
text-transform: uppercase;
letter-spacing: 1px;
}
.hero-visual {
position: relative;
height: 500px;
display: flex;
align-items: center;
justify-content: center;
}
.phone-mockup {
width: 300px;
height: 600px;
background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
border-radius: 40px;
padding: 20px;
box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
position: relative;
transform: rotate(-5deg);
animation: float 6s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: rotate(-5deg) translateY(0px); }
50% { transform: rotate(-5deg) translateY(-20px); }
}
.screen {
width: 100%;
height: 100%;
background: var(--gradient);
border-radius: 25px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
}
.app-interface {
color: white;
text-align: center;
}
.app-logo {
font-size: 2rem;
font-weight: 700;
margin-bottom: 1rem;
}
.stats-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
margin-top: 2rem;
}
.stat-card {
background: rgba(255, 255, 255, 0.1);
padding: 1rem;
border-radius: 15px;
text-align: center;
}
.stat-number {
font-size: 1.5rem;
font-weight: 700;
}
.stat-label {
font-size: 0.75rem;
opacity: 0.8;
}
/* Features Section */
.features {
padding: 6rem 0;
background: var(--bg-light);
position: relative;
}
.section-header {
text-align: center;
max-width: 800px;
margin: 0 auto 4rem;
padding: 0 2rem;
}
.section-header h2 {
font-size: clamp(2rem, 4vw, 3rem);
font-weight: 700;
margin-bottom: 1rem;
background: var(--gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.section-header p {
font-size: 1.125rem;
color: var(--text-light);
}
.features-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 2rem;
}
.feature-card {
background: white;
padding: 2.5rem;
border-radius: 20px;
box-shadow: var(--shadow);
transition: all 0.3s ease;
border: 1px solid rgba(30, 78, 156, 0.05);
position: relative;
overflow: hidden;
}
.feature-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: var(--gradient);
}
.feature-card:hover {
transform: translateY(-10px);
box-shadow: var(--shadow-hover);
}
.feature-icon {
width: 60px;
height: 60px;
background: var(--gradient);
border-radius: 15px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1.5rem;
color: white;
font-size: 1.5rem;
}
.feature-card h3 {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 1rem;
color: var(--text-dark);
}
.feature-list {
list-style: none;
}
.feature-list li {
margin-bottom: 0.75rem;
position: relative;
padding-left: 1.5rem;
color: var(--text-light);
}
.feature-list li::before {
content: '✓';
position: absolute;
left: 0;
color: var(--secondary);
font-weight: bold;
}
.feature-list li strong {
color: var(--text-dark);
}
/* Footer */
.footer {
background: var(--text-dark);
color: white;
text-align: center;
padding: 2rem 0;
}
/* Mobile Styles */
@media (max-width: 768px) {
.nav-container {
padding: 0 1rem;
}
.nav-links {
display: none;
}
.hero-container {
grid-template-columns: 1fr;
gap: 2rem;
text-align: center;
}
.hero-visual {
order: -1;
height: 300px;
}
.phone-mockup {
width: 200px;
height: 400px;
}
.email-form {
flex-direction: column;
}
.countdown {
grid-template-columns: repeat(2, 1fr);
gap: 0.5rem;
}
.features-grid {
grid-template-columns: 1fr;
gap: 1.5rem;
}
.feature-card {
padding: 2rem;
}
}
@media (max-width: 480px) {
.cta-section {
padding: 1.5rem;
margin: 0 1rem;
}
.features-container {
padding: 0 1rem;
}
}