walidsobhie-code
refactor: Squeeze folders further - cleaner structure
65888d5
/* Stack 2.9 - Styles */
/* CSS Variables */
:root {
--bg-primary: #0a0a0f;
--bg-secondary: #12121a;
--bg-tertiary: #1a1a25;
--bg-card: #15151f;
--text-primary: #f0f0f5;
--text-secondary: #a0a0b0;
--text-muted: #606070;
--accent-primary: #6366f1;
--accent-secondary: #8b5cf6;
--accent-tertiary: #a855f7;
--accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
--success: #22c55e;
--warning: #f59e0b;
--error: #ef4444;
--border-color: rgba(255, 255, 255, 0.08);
--border-glow: rgba(99, 102, 241, 0.3);
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
--shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
--shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
--shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--radius-xl: 24px;
--transition-fast: 0.15s ease;
--transition-normal: 0.3s ease;
--transition-slow: 0.5s ease;
}
/* Reset */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
overflow-x: hidden;
}
/* Background Pattern */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.04) 0%, transparent 70%);
pointer-events: none;
z-index: -1;
}
/* Container */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 24px;
}
/* Typography */
h1, h2, h3, h4 {
font-weight: 700;
line-height: 1.2;
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
/* Navigation */
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
background: rgba(10, 10, 15, 0.8);
backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border-color);
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
padding: 16px 24px;
display: flex;
align-items: center;
justify-content: space-between;
}
.logo {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
color: var(--text-primary);
font-weight: 700;
font-size: 1.25rem;
}
.logo-icon {
font-size: 1.5rem;
animation: bounce 2s infinite;
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-5px); }
}
.nav-links {
display: flex;
align-items: center;
gap: 32px;
list-style: none;
}
.nav-links a {
color: var(--text-secondary);
text-decoration: none;
font-weight: 500;
transition: color var(--transition-fast);
}
.nav-links a:hover {
color: var(--text-primary);
}
.nav-github {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
background: var(--bg-tertiary);
border-radius: var(--radius-md);
border: 1px solid var(--border-color);
transition: all var(--transition-fast);
}
.nav-github:hover {
border-color: var(--accent-primary);
background: rgba(99, 102, 241, 0.1);
}
.mobile-toggle {
display: none;
flex-direction: column;
gap: 5px;
padding: 8px;
background: none;
border: none;
cursor: pointer;
}
.mobile-toggle span {
width: 24px;
height: 2px;
background: var(--text-primary);
border-radius: 2px;
transition: all var(--transition-fast);
}
/* Hero Section */
.hero {
min-height: 100vh;
display: flex;
align-items: center;
padding: 120px 24px 80px;
position: relative;
overflow: hidden;
}
.hero-bg {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
radial-gradient(ellipse at 70% 60%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
z-index: -1;
}
.hero-content {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
align-items: center;
}
.hero-text {
animation: fadeInUp 0.8s ease;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.hero-title {
margin-bottom: 24px;
}
.gradient-text {
background: var(--accent-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero-subtitle {
color: var(--text-secondary);
font-size: 1.125rem;
margin-bottom: 32px;
max-width: 500px;
}
.hero-buttons {
display: flex;
gap: 16px;
flex-wrap: wrap;
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 14px 28px;
border-radius: var(--radius-md);
font-weight: 600;
font-size: 1rem;
text-decoration: none;
cursor: pointer;
transition: all var(--transition-fast);
border: none;
}
.btn-primary {
background: var(--accent-gradient);
color: white;
box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 0 60px rgba(99, 102, 241, 0.4);
}
.star-count {
background: rgba(255, 255, 255, 0.2);
padding: 2px 8px;
border-radius: 12px;
font-size: 0.875rem;
}
.btn-secondary {
background: var(--bg-tertiary);
color: var(--text-primary);
border: 1px solid var(--border-color);
}
.btn-secondary:hover {
border-color: var(--accent-primary);
background: rgba(99, 102, 241, 0.1);
}
.btn-outline {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 24px;
border-radius: var(--radius-md);
font-weight: 600;
text-decoration: none;
color: var(--accent-primary);
border: 2px solid var(--accent-primary);
background: transparent;
transition: all var(--transition-fast);
}
.btn-outline:hover {
background: var(--accent-primary);
color: white;
}
/* Code Editor Demo */
.hero-demo {
animation: fadeInUp 0.8s ease 0.2s both;
}
.code-editor {
background: var(--bg-secondary);
border-radius: var(--radius-lg);
border: 1px solid var(--border-color);
overflow: hidden;
box-shadow: var(--shadow-lg);
}
.editor-header {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
background: var(--bg-tertiary);
border-bottom: 1px solid var(--border-color);
}
.editor-dots {
display: flex;
gap: 6px;
}
.dot {
width: 12px;
height: 12px;
border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca42; }
.editor-title {
color: var(--text-muted);
font-size: 0.875rem;
font-family: 'Fira Code', monospace;
}
.editor-content {
padding: 20px;
min-height: 300px;
font-family: 'Fira Code', 'Consolas', monospace;
font-size: 0.9rem;
line-height: 1.8;
}
.code-lines {
color: var(--text-secondary);
}
.code-line {
display: flex;
gap: 16px;
}
.line-number {
color: var(--text-muted);
user-select: none;
min-width: 24px;
text-align: right;
}
.line-content {
color: var(--text-primary);
}
.keyword { color: #c792ea; }
.string { color: #c3e88d; }
.function { color: #82aaff; }
.comment { color: #546e7a; }
.operator { color: #89ddff; }
.variable { color: #f78c6c; }
/* Features Section */
.features {
padding: 100px 0;
background: var(--bg-secondary);
}
.section-title {
text-align: center;
margin-bottom: 16px;
}
.section-subtitle {
text-align: center;
color: var(--text-secondary);
margin-bottom: 60px;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 24px;
}
.feature-card {
background: var(--bg-card);
border-radius: var(--radius-lg);
padding: 32px;
border: 1px solid var(--border-color);
transition: all var(--transition-normal);
}
.feature-card:hover {
transform: translateY(-4px);
border-color: var(--border-glow);
box-shadow: var(--shadow-glow);
}
.feature-icon {
font-size: 2.5rem;
margin-bottom: 16px;
}
.feature-card h3 {
margin-bottom: 12px;
color: var(--text-primary);
}
.feature-card p {
color: var(--text-secondary);
line-height: 1.7;
}
/* Benchmarks Preview */
.benchmarks-preview {
padding: 100px 0;
}
.benchmark-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 24px;
margin-bottom: 40px;
}
.benchmark-card {
background: var(--bg-secondary);
border-radius: var(--radius-lg);
padding: 24px;
border: 1px solid var(--border-color);
text-align: center;
}
.benchmark-card.highlight {
border-color: var(--accent-primary);
box-shadow: var(--shadow-glow);
}
.benchmark-value {
font-size: 2.5rem;
font-weight: 700;
background: var(--accent-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.benchmark-label {
color: var(--text-secondary);
margin: 8px 0 16px;
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 1px;
}
.benchmark-bar {
height: 6px;
background: var(--bg-tertiary);
border-radius: 3px;
overflow: hidden;
}
.benchmark-fill {
height: 100%;
background: var(--accent-gradient);
border-radius: 3px;
transition: width 1s ease;
}
.benchmark-fill.pulse {
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.benchmarks-preview .btn-outline {
display: block;
width: fit-content;
margin: 0 auto;
}
/* Demo Section */
.demo {
padding: 100px 0;
background: var(--bg-secondary);
}
.demo-container {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 24px;
align-items: start;
}
.demo-terminal {
background: var(--bg-primary);
border-radius: var(--radius-lg);
border: 1px solid var(--border-color);
overflow: hidden;
}
.terminal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background: var(--bg-tertiary);
border-bottom: 1px solid var(--border-color);
color: var(--text-secondary);
font-size: 0.875rem;
}
.terminal-clear {
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 1px;
}
.terminal-clear:hover {
color: var(--text-primary);
}
.terminal-body {
padding: 16px;
min-height: 300px;
max-height: 400px;
overflow-y: auto;
font-family: 'Fira Code', monospace;
font-size: 0.875rem;
}
.terminal-line {
margin-bottom: 8px;
line-height: 1.6;
}
.terminal-line.system {
color: var(--text-muted);
}
.terminal-line.user {
color: var(--text-primary);
}
.terminal-line.assistant {
color: var(--success);
}
.terminal-input {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 16px;
background: var(--bg-tertiary);
border-top: 1px solid var(--border-color);
}
.prompt {
color: var(--accent-primary);
font-weight: bold;
}
.terminal-input input {
flex: 1;
background: none;
border: none;
color: var(--text-primary);
font-family: 'Fira Code', monospace;
font-size: 0.875rem;
outline: none;
}
.terminal-input input::placeholder {
color: var(--text-muted);
}
.demo-commands {
background: var(--bg-card);
border-radius: var(--radius-lg);
padding: 24px;
border: 1px solid var(--border-color);
}
.demo-commands p {
color: var(--text-secondary);
margin-bottom: 16px;
font-size: 0.875rem;
}
.demo-cmd {
display: block;
width: 100%;
padding: 10px 16px;
margin-bottom: 8px;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-family: 'Fira Code', monospace;
font-size: 0.8rem;
cursor: pointer;
text-align: left;
transition: all var(--transition-fast);
}
.demo-cmd:hover {
border-color: var(--accent-primary);
background: rgba(99, 102, 241, 0.1);
}
/* How It Works */
.how-it-works {
padding: 100px 0;
}
.steps {
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
flex-wrap: wrap;
}
.step {
text-align: center;
padding: 24px;
background: var(--bg-secondary);
border-radius: var(--radius-lg);
border: 1px solid var(--border-color);
min-width: 140px;
}
.step-number {
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
background: var(--accent-gradient);
border-radius: 50%;
font-weight: 700;
font-size: 1.25rem;
margin: 0 auto 12px;
}
.step h3 {
margin-bottom: 8px;
font-size: 1.125rem;
}
.step p {
color: var(--text-secondary);
font-size: 0.875rem;
}
.step-arrow {
color: var(--accent-primary);
font-size: 1.5rem;
font-weight: bold;
}
/* FAQ Section */
.faq {
padding: 100px 0;
background: var(--bg-secondary);
}
.faq-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 24px;
}
.faq-item {
background: var(--bg-card);
border-radius: var(--radius-lg);
padding: 24px;
border: 1px solid var(--border-color);
transition: all var(--transition-fast);
}
.faq-item:hover {
border-color: var(--border-glow);
}
.faq-item h3 {
font-size: 1.125rem;
margin-bottom: 12px;
color: var(--text-primary);
}
.faq-item p {
color: var(--text-secondary);
line-height: 1.7;
}
/* Footer */
.footer {
padding: 60px 0 24px;
background: var(--bg-primary);
border-top: 1px solid var(--border-color);
}
.footer-content {
display: flex;
justify-content: space-between;
align-items: start;
flex-wrap: wrap;
gap: 40px;
margin-bottom: 40px;
}
.footer-brand {
display: flex;
flex-direction: column;
gap: 8px;
}
.footer-brand span {
font-size: 1.25rem;
font-weight: 700;
}
.footer-brand p {
color: var(--text-secondary);
}
.footer-links {
display: flex;
gap: 24px;
flex-wrap: wrap;
}
.footer-links a {
color: var(--text-secondary);
text-decoration: none;
transition: color var(--transition-fast);
}
.footer-links a:hover {
color: var(--text-primary);
}
.footer-bottom {
text-align: center;
padding-top: 24px;
border-top: 1px solid var(--border-color);
}
.footer-bottom p {
color: var(--text-muted);
font-size: 0.875rem;
}
/* Responsive */
@media (max-width: 900px) {
.hero-content {
grid-template-columns: 1fr;
text-align: center;
}
.hero-subtitle {
margin: 0 auto 32px;
}
.hero-buttons {
justify-content: center;
}
.demo-container {
grid-template-columns: 1fr;
}
.steps {
flex-direction: column;
}
.step-arrow {
transform: rotate(90deg);
}
}
@media (max-width: 768px) {
.nav-links {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
flex-direction: column;
background: var(--bg-secondary);
padding: 20px;
gap: 16px;
border-bottom: 1px solid var(--border-color);
}
.nav-links.active {
display: flex;
}
.mobile-toggle {
display: flex;
}
.features-grid, .benchmark-grid, .faq-grid {
grid-template-columns: 1fr;
}
.hero {
padding: 100px 24px 60px;
}
}
/* Animations */
@keyframes glow {
0%, 100% { box-shadow: var(--shadow-glow); }
50% { box-shadow: 0 0 60px rgba(99, 102, 241, 0.4); }
}
.feature-card:hover {
animation: glow 2s infinite;
}
/* Benchmark Page Styles */
.benchmark-hero {
padding: 160px 0 80px;
text-align: center;
background: var(--bg-secondary);
position: relative;
overflow: hidden;
}
.benchmark-hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
z-index: 0;
}
.benchmark-hero .container {
position: relative;
z-index: 1;
}
.benchmark-hero h1 {
font-size: clamp(2.5rem, 5vw, 3.5rem);
margin-bottom: 16px;
}
.benchmark-hero .subtitle {
color: var(--text-secondary);
font-size: 1.25rem;
margin-bottom: 48px;
}
.benchmark-summary {
display: flex;
justify-content: center;
gap: 24px;
flex-wrap: wrap;
}
.summary-card {
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 24px 32px;
min-width: 140px;
}
.summary-card.highlight {
border-color: var(--accent-primary);
box-shadow: var(--shadow-glow);
}
.summary-value {
font-size: 2rem;
font-weight: 700;
background: var(--accent-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.summary-label {
color: var(--text-secondary);
font-size: 0.875rem;
margin-top: 8px;
}
.benchmark-charts {
padding: 80px 0;
}
.chart-container {
background: var(--bg-secondary);
border-radius: var(--radius-lg);
padding: 32px;
border: 1px solid var(--border-color);
height: 400px;
margin-bottom: 24px;
}
.chart-legend {
display: flex;
justify-content: center;
gap: 24px;
flex-wrap: wrap;
}
.legend-item {
display: flex;
align-items: center;
gap: 8px;
color: var(--text-secondary);
font-size: 0.875rem;
}
.legend-color {
width: 12px;
height: 12px;
border-radius: 3px;
}
.benchmark-comparison {
padding: 80px 0;
background: var(--bg-secondary);
}
.comparison-table-wrapper {
overflow-x: auto;
}
.comparison-table {
width: 100%;
border-collapse: collapse;
background: var(--bg-card);
border-radius: var(--radius-lg);
overflow: hidden;
}
.comparison-table th,
.comparison-table td {
padding: 16px 20px;
text-align: left;
border-bottom: 1px solid var(--border-color);
}
.comparison-table th {
background: var(--bg-tertiary);
color: var(--text-secondary);
font-weight: 600;
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 1px;
}
.comparison-table td {
color: var(--text-primary);
}
.comparison-table tr:last-child td {
border-bottom: none;
}
.comparison-table .highlight-row {
background: rgba(99, 102, 241, 0.1);
}
.comparison-table .highlight-row td {
border-bottom: 1px solid var(--accent-primary);
}
.comparison-table .best {
color: var(--success);
font-weight: 600;
}
.tool-use-section {
padding: 80px 0;
}
.tool-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
.tool-card {
background: var(--bg-secondary);
border-radius: var(--radius-lg);
padding: 24px;
border: 1px solid var(--border-color);
}
.tool-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.tool-header h3 {
font-size: 1.125rem;
}
.tool-score {
font-size: 1.5rem;
font-weight: 700;
color: var(--success);
}
.tool-bar {
height: 8px;
background: var(--bg-tertiary);
border-radius: 4px;
overflow: hidden;
margin-bottom: 12px;
}
.tool-fill {
height: 100%;
background: var(--accent-gradient);
border-radius: 4px;
}
.tool-desc {
color: var(--text-secondary);
font-size: 0.875rem;
}
.methodology {
padding: 80px 0;
background: var(--bg-secondary);
}
.methodology-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 24px;
}
.methodology-card {
background: var(--bg-card);
border-radius: var(--radius-lg);
padding: 24px;
border: 1px solid var(--border-color);
}
.methodology-card h3 {
font-size: 1.125rem;
margin-bottom: 16px;
color: var(--accent-primary);
}
.methodology-card ul,
.methodology-card ol {
color: var(--text-secondary);
padding-left: 20px;
}
.methodology-card li {
margin-bottom: 8px;
line-height: 1.6;
}
.self-evolution-demo {
padding: 80px 0;
}
.evolution-chart-container {
background: var(--bg-secondary);
border-radius: var(--radius-lg);
padding: 32px;
border: 1px solid var(--border-color);
height: 350px;
margin-bottom: 16px;
}
.evolution-note {
text-align: center;
color: var(--text-muted);
font-size: 0.875rem;
}
@media (max-width: 768px) {
.benchmark-summary {
gap: 16px;
}
.summary-card {
padding: 20px;
min-width: 100px;
}
.summary-value {
font-size: 1.5rem;
}
.chart-container {
height: 300px;
padding: 16px;
}
.tool-grid {
grid-template-columns: 1fr;
}
}