ui(site-c): 💄 Redesign layout, styling, and interactivity for Site C with updated HTML structure, JavaScript behavior, and CSS styling
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
dc6ceb1ad7
commit
ab49c99bb9
3 changed files with 1303 additions and 0 deletions
352
drafts/site-c/index.html
Normal file
352
drafts/site-c/index.html
Normal file
|
|
@ -0,0 +1,352 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="Magic Civilization: a 4X engine designed for modders. Ship your own AI. Coming soon to Steam, App Store, Google Play.">
|
||||
<title>Magic Civilization — Mod the Mind</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<!-- Navigation -->
|
||||
<nav class="navbar">
|
||||
<div class="container">
|
||||
<div class="nav-brand">
|
||||
<span class="logo-text">⚔</span> Magic Civilization
|
||||
</div>
|
||||
<ul class="nav-links">
|
||||
<li><a href="#ai-interface">AI Mods</a></li>
|
||||
<li><a href="#wasm">WASM</a></li>
|
||||
<li><a href="#roadmap">Roadmap</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- Hero Section -->
|
||||
<section class="hero">
|
||||
<div class="container">
|
||||
<div class="hero-content">
|
||||
<h1>Mod the Mind</h1>
|
||||
<p class="hero-tagline">A 4X engine built for modders. Ship your own AI. Play against decision-makers you designed.</p>
|
||||
|
||||
<div class="hero-ctas">
|
||||
<a href="#" class="cta primary">Wishlist on Steam</a>
|
||||
<a href="#" class="cta secondary">View AI Mod Docs</a>
|
||||
</div>
|
||||
|
||||
<div class="hero-meta">
|
||||
<p><strong>Age of Dwarves</strong> — Episode 1 • Coming Soon</p>
|
||||
<p class="platforms">Available on <span class="chip">Steam</span> <span class="chip">App Store</span> <span class="chip">Google Play</span></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="hero-visual">
|
||||
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" class="ai-diagram">
|
||||
<!-- AI mod concept: neural net neuron -->
|
||||
<circle cx="100" cy="100" r="80" fill="none" stroke="var(--accent)" stroke-width="2" opacity="0.3"/>
|
||||
<circle cx="100" cy="100" r="60" fill="none" stroke="var(--accent)" stroke-width="1.5" opacity="0.5"/>
|
||||
<circle cx="100" cy="100" r="40" fill="none" stroke="var(--accent)" stroke-width="1" opacity="0.7"/>
|
||||
|
||||
<!-- Center node -->
|
||||
<circle cx="100" cy="100" r="8" fill="var(--accent)"/>
|
||||
|
||||
<!-- Surrounding decision nodes -->
|
||||
<circle cx="100" cy="40" r="5" fill="var(--accent)" opacity="0.6"/>
|
||||
<circle cx="100" cy="160" r="5" fill="var(--accent)" opacity="0.6"/>
|
||||
<circle cx="50" cy="100" r="5" fill="var(--accent)" opacity="0.6"/>
|
||||
<circle cx="150" cy="100" r="5" fill="var(--accent)" opacity="0.6"/>
|
||||
<circle cx="60" cy="60" r="5" fill="var(--accent)" opacity="0.6"/>
|
||||
<circle cx="140" cy="140" r="5" fill="var(--accent)" opacity="0.6"/>
|
||||
|
||||
<!-- Connecting lines -->
|
||||
<line x1="100" y1="100" x2="100" y2="40" stroke="var(--accent)" stroke-width="1" opacity="0.4"/>
|
||||
<line x1="100" y1="100" x2="100" y2="160" stroke="var(--accent)" stroke-width="1" opacity="0.4"/>
|
||||
<line x1="100" y1="100" x2="50" y2="100" stroke="var(--accent)" stroke-width="1" opacity="0.4"/>
|
||||
<line x1="100" y1="100" x2="150" y2="100" stroke="var(--accent)" stroke-width="1" opacity="0.4"/>
|
||||
<line x1="100" y1="100" x2="60" y2="60" stroke="var(--accent)" stroke-width="1" opacity="0.4"/>
|
||||
<line x1="100" y1="100" x2="140" y2="140" stroke="var(--accent)" stroke-width="1" opacity="0.4"/>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- AI Interface Section -->
|
||||
<section id="ai-interface" class="ai-interface">
|
||||
<div class="container">
|
||||
<h2>The AI Plugin Interface</h2>
|
||||
<p class="section-intro">Three trait methods. One decision loop. Your imagination.</p>
|
||||
|
||||
<div class="code-block">
|
||||
<pre><code><span class="kw">pub trait</span> <span class="typ">DecisionMaker</span> {
|
||||
<span class="kw">fn</span> <span class="fn">decide_turn</span>(
|
||||
<span class="kw">&mut</span> <span class="kw">self</span>,
|
||||
<span class="var">state</span>: <span class="typ">&GameState</span>,
|
||||
<span class="var">slot</span>: <span class="typ">PlayerId</span>,
|
||||
<span class="var">seed</span>: <span class="typ">u64</span>,
|
||||
) <span class="kw">-></span> <span class="typ">Vec</span><<span class="typ">Action</span>>;
|
||||
|
||||
<span class="kw">fn</span> <span class="fn">resolve_combat</span>(
|
||||
<span class="kw">&mut</span> <span class="kw">self</span>,
|
||||
<span class="var">units</span>: <span class="typ">&</span>[<span class="typ">Unit</span>],
|
||||
) <span class="kw">-></span> <span class="typ">CombatOrder</span>;
|
||||
|
||||
<span class="kw">fn</span> <span class="fn">inspect</span>(<span class="kw">&self</span>) <span class="kw">-></span> <span class="typ">AiMetadata</span>;
|
||||
}</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="features-grid">
|
||||
<div class="feature">
|
||||
<div class="feature-icon">📊</div>
|
||||
<h3>Access Complete State</h3>
|
||||
<p>Map, units, cities, tech, economics, diplomacy—everything the game knows, your AI sees.</p>
|
||||
</div>
|
||||
<div class="feature">
|
||||
<div class="feature-icon">🎲</div>
|
||||
<h3>Deterministic by Design</h3>
|
||||
<p>Same seed, same game. Replay, debug, validate your decisions. No RNG surprises.</p>
|
||||
</div>
|
||||
<div class="feature">
|
||||
<div class="feature-icon">⚙</div>
|
||||
<h3>Composition Over Config</h3>
|
||||
<p>Implement once, plug in everywhere. Trading, diplomacy, magic, combat—one interface.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ai-variants">
|
||||
<h3>Shipping AI Variants</h3>
|
||||
<div class="variant-list">
|
||||
<div class="variant">
|
||||
<span class="variant-tag neural">Neural</span>
|
||||
<strong>Learned (PPO)</strong>
|
||||
<p>Trained via self-play. Open-sourced as worked example. 128K games, 5 strategies emergent.</p>
|
||||
</div>
|
||||
<div class="variant">
|
||||
<span class="variant-tag scripted">Scripted</span>
|
||||
<strong>Six Personalities</strong>
|
||||
<p>MCTS + heuristics. Dwarven Traditionalist, Trader, Conqueror, Scholar, Mystic, Xenophobe.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- WASM Section -->
|
||||
<section id="wasm" class="wasm">
|
||||
<div class="container">
|
||||
<h2>WASM by Default</h2>
|
||||
<p class="section-intro">Safe. Deterministic. Cross-platform. The mod lingua franca.</p>
|
||||
|
||||
<div class="wasm-grid">
|
||||
<div class="wasm-item">
|
||||
<div class="wasm-icon">🔒</div>
|
||||
<h3>Sandboxed</h3>
|
||||
<p>No filesystem, no network, no OS calls. Your mod can't crash the game or steal saves.</p>
|
||||
</div>
|
||||
<div class="wasm-item">
|
||||
<div class="wasm-icon">⏱</div>
|
||||
<h3>Deterministic</h3>
|
||||
<p>Floating-point ops, RNG, time—all pinned. Replays never diverge, even years later.</p>
|
||||
</div>
|
||||
<div class="wasm-item">
|
||||
<div class="wasm-icon">📦</div>
|
||||
<h3>One Binary</h3>
|
||||
<p>Compile once. Ships unmodified on Windows, macOS, Linux, mobile. No per-platform rebuilds.</p>
|
||||
</div>
|
||||
<div class="wasm-item">
|
||||
<div class="wasm-icon">🚀</div>
|
||||
<h3>Near-Native Speed</h3>
|
||||
<p>Wasmer JIT + engine optimizations. Typical AI turn decision: <100ms on mid-range hardware.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wasm-diagram">
|
||||
<h3>Loading Pipeline</h3>
|
||||
<svg viewBox="0 0 500 120" xmlns="http://www.w3.org/2000/svg" class="pipeline-svg">
|
||||
<!-- Boxes -->
|
||||
<rect x="10" y="30" width="90" height="60" fill="none" stroke="var(--accent)" stroke-width="2" rx="4"/>
|
||||
<text x="55" y="65" text-anchor="middle" dominant-baseline="middle" class="svg-text">Mod.wasm</text>
|
||||
|
||||
<polygon points="110,60 130,40 130,80" fill="var(--accent)"/>
|
||||
|
||||
<rect x="140" y="30" width="90" height="60" fill="none" stroke="var(--accent)" stroke-width="2" rx="4"/>
|
||||
<text x="185" y="65" text-anchor="middle" dominant-baseline="middle" class="svg-text">Validate</text>
|
||||
|
||||
<polygon points="240,60 260,40 260,80" fill="var(--accent)"/>
|
||||
|
||||
<rect x="270" y="30" width="90" height="60" fill="none" stroke="var(--accent)" stroke-width="2" rx="4"/>
|
||||
<text x="315" y="65" text-anchor="middle" dominant-baseline="middle" class="svg-text">Instantiate</text>
|
||||
|
||||
<polygon points="370,60 390,40 390,80" fill="var(--accent)"/>
|
||||
|
||||
<rect x="400" y="30" width="90" height="60" fill="none" stroke="var(--accent)" stroke-width="2" rx="4"/>
|
||||
<text x="445" y="65" text-anchor="middle" dominant-baseline="middle" class="svg-text">Game</text>
|
||||
|
||||
<!-- Labels -->
|
||||
<text x="55" y="100" text-anchor="middle" class="svg-label">Signed</text>
|
||||
<text x="185" y="100" text-anchor="middle" class="svg-label">Checksum</text>
|
||||
<text x="315" y="100" text-anchor="middle" class="svg-label">Sandboxed</text>
|
||||
<text x="445" y="100" text-anchor="middle" class="svg-label">Deterministic</text>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Native Escape Hatch -->
|
||||
<section id="native" class="native">
|
||||
<div class="container">
|
||||
<h2>Native Escape Hatch</h2>
|
||||
<p class="section-intro">Need raw GPU? Deep reinforcement learning? Go native—with your signature.</p>
|
||||
|
||||
<div class="native-content">
|
||||
<div class="native-text">
|
||||
<p>For AI projects that demand native performance (CUDA, large model inference, specialized math), sign your plugin with a developer certificate. The game loads and isolates it—you own the security risk, you own the support burden.</p>
|
||||
|
||||
<p><strong>The bar is signature, not gatekeeping.</strong> We're not reviewing code. We're not limiting what you can do. Sign it, ship it, users decide.</p>
|
||||
|
||||
<div class="native-callout">
|
||||
<p><strong>Post-launch roadmap:</strong> Steam Workshop will surface both WASM and signed native mods side-by-side. Filtering, ratings, versioning built in.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="native-comparison">
|
||||
<table class="comparison-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>WASM</th>
|
||||
<th>Native (Signed)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Sandbox</td>
|
||||
<td class="check">✓ Enforced</td>
|
||||
<td class="x">Full access</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Platform coverage</td>
|
||||
<td class="check">✓ Windows, macOS, Linux, iOS, Android</td>
|
||||
<td class="x">Per-platform builds</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Determinism guarantee</td>
|
||||
<td class="check">✓ By default</td>
|
||||
<td class="x">Your responsibility</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Review gate</td>
|
||||
<td class="check">✓ Zero—publish immediately</td>
|
||||
<td class="check">✓ Signature only, no code review</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Typical use case</td>
|
||||
<td>MCTS, heuristics, small NN</td>
|
||||
<td>LLM inference, CUDA training, bespoke math</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Open Source Section -->
|
||||
<section id="opensource" class="opensource">
|
||||
<div class="container">
|
||||
<h2>Ship Open Source</h2>
|
||||
<p class="section-intro">The shipped learned AI is your working example.</p>
|
||||
|
||||
<div class="opensource-content">
|
||||
<div class="opensource-box">
|
||||
<h3>Reference Implementation</h3>
|
||||
<p>The Neural variant—PPO trainer, 128K game history, strategy evaluation suite—lives on GitHub as public Rust + WASM. Read it. Fork it. Retrain it. Own the stack.</p>
|
||||
|
||||
<a href="#" class="code-link">
|
||||
<code>github.com/magic-civilization/ai-reference</code>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="opensource-stats">
|
||||
<div class="stat">
|
||||
<span class="stat-value">128K</span>
|
||||
<span class="stat-label">Training games</span>
|
||||
</div>
|
||||
<div class="stat">
|
||||
<span class="stat-value">5</span>
|
||||
<span class="stat-label">Emergent strategies</span>
|
||||
</div>
|
||||
<div class="stat">
|
||||
<span class="stat-value">Apache 2.0</span>
|
||||
<span class="stat-label">License</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Roadmap Section -->
|
||||
<section id="roadmap" class="roadmap">
|
||||
<div class="container">
|
||||
<h2>Roadmap</h2>
|
||||
<p class="section-intro">From launch through post-launch.</p>
|
||||
|
||||
<div class="roadmap-timeline">
|
||||
<div class="phase">
|
||||
<div class="phase-marker done">✓</div>
|
||||
<h3>Episode 1: Age of Dwarves</h3>
|
||||
<p><strong>Pre-launch (now).</strong> Wishlist opens. AI mod docs go live. Reference AI training begins.</p>
|
||||
</div>
|
||||
|
||||
<div class="phase">
|
||||
<div class="phase-marker soon">→</div>
|
||||
<h3>1.0 Launch</h3>
|
||||
<p><strong>Steam, App Store, Google Play.</strong> Shipped with 1 neural + 6 scripted AIs. Direct mod loading from ~/Documents/MagicCivilization/mods/.</p>
|
||||
</div>
|
||||
|
||||
<div class="phase">
|
||||
<div class="phase-marker future">⊗</div>
|
||||
<h3>1.x: Steam Workshop</h3>
|
||||
<p><strong>Post-launch update.</strong> Unified mod discovery, versioning, ratings. One-click install for WASM and signed native mods.</p>
|
||||
</div>
|
||||
|
||||
<div class="phase">
|
||||
<div class="phase-marker future">⊗</div>
|
||||
<h3>Episode 2: Age of Kzzkyt</h3>
|
||||
<p><strong>2027.</strong> Second playable race. New decision-making constraints. Modders craft new AIs for new rules.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- CTA Section -->
|
||||
<section class="cta-final">
|
||||
<div class="container">
|
||||
<h2>Ready to Mod?</h2>
|
||||
<p>Wishlist on Steam and stay in the loop.</p>
|
||||
<div class="final-ctas">
|
||||
<a href="#" class="cta primary">Wishlist on Steam</a>
|
||||
<a href="#" class="cta secondary">AI Mod Docs</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<div class="footer-content">
|
||||
<p><strong>Magic Civilization: Age of Dwarves</strong></p>
|
||||
<p>A 4X strategy game in development. Coming soon to <span class="chip">Steam</span> <span class="chip">App Store</span> <span class="chip">Google Play</span>.</p>
|
||||
<p class="footer-meta">Not available on web. Desktop and mobile only.</p>
|
||||
</div>
|
||||
<div class="footer-links">
|
||||
<a href="#">Privacy</a>
|
||||
<a href="#">Credits</a>
|
||||
<a href="#">Contact</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
49
drafts/site-c/script.js
Normal file
49
drafts/site-c/script.js
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
// Smooth scroll already handled by CSS scroll-behavior
|
||||
// Minimal interactivity for polish
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
// CTA buttons - prevent default href
|
||||
document.querySelectorAll('a[href="#"]').forEach(link => {
|
||||
link.addEventListener('click', (e) => {
|
||||
e.preventDefault();
|
||||
console.log('CTA clicked:', link.textContent.trim());
|
||||
// In a real implementation, these would route to Steam wishlist, docs, etc.
|
||||
});
|
||||
});
|
||||
|
||||
// Add slight animation on scroll for visible elements
|
||||
const observerOptions = {
|
||||
threshold: 0.1,
|
||||
rootMargin: '0px 0px -50px 0px'
|
||||
};
|
||||
|
||||
const observer = new IntersectionObserver((entries) => {
|
||||
entries.forEach(entry => {
|
||||
if (entry.isIntersecting) {
|
||||
entry.target.style.animation = 'fadeInUp 0.6s ease-out forwards';
|
||||
observer.unobserve(entry.target);
|
||||
}
|
||||
});
|
||||
}, observerOptions);
|
||||
|
||||
// Observe sections and cards
|
||||
document.querySelectorAll('section, .feature, .wasm-item, .variant, .stat, .phase').forEach(el => {
|
||||
observer.observe(el);
|
||||
});
|
||||
});
|
||||
|
||||
// Add fade-in-up animation
|
||||
const style = document.createElement('style');
|
||||
style.textContent = `
|
||||
@keyframes fadeInUp {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
`;
|
||||
document.head.appendChild(style);
|
||||
902
drafts/site-c/styles.css
Normal file
902
drafts/site-c/styles.css
Normal file
|
|
@ -0,0 +1,902 @@
|
|||
/* Reset and Variables */
|
||||
:root {
|
||||
--accent: #a78bfa;
|
||||
--accent-dark: #7c3aed;
|
||||
--accent-light: #ddd6fe;
|
||||
--bg: #0f172a;
|
||||
--bg-secondary: #1e293b;
|
||||
--bg-tertiary: #334155;
|
||||
--text: #f1f5f9;
|
||||
--text-secondary: #cbd5e1;
|
||||
--text-tertiary: #94a3b8;
|
||||
--border: #475569;
|
||||
--success: #34d399;
|
||||
--warning: #fbbf24;
|
||||
|
||||
--font-mono: 'JetBrains Mono', monospace;
|
||||
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
|
||||
--spacing-xs: 0.5rem;
|
||||
--spacing-sm: 1rem;
|
||||
--spacing-md: 1.5rem;
|
||||
--spacing-lg: 2rem;
|
||||
--spacing-xl: 3rem;
|
||||
--spacing-2xl: 4rem;
|
||||
|
||||
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-sans);
|
||||
background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 50%, var(--bg) 100%);
|
||||
color: var(--text);
|
||||
line-height: 1.6;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* Container */
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 var(--spacing-lg);
|
||||
}
|
||||
|
||||
/* Typography */
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.5px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 3.5rem;
|
||||
line-height: 1.1;
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: var(--spacing-lg);
|
||||
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.5rem;
|
||||
margin-bottom: var(--spacing-md);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
p {
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--accent-light);
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.9rem;
|
||||
background: var(--bg-tertiary);
|
||||
padding: 0.2rem 0.6rem;
|
||||
border-radius: 4px;
|
||||
color: var(--accent-light);
|
||||
}
|
||||
|
||||
/* Navigation */
|
||||
.navbar {
|
||||
background: rgba(15, 23, 42, 0.8);
|
||||
backdrop-filter: blur(8px);
|
||||
border-bottom: 1px solid var(--border);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.navbar .container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: var(--spacing-md) var(--spacing-lg);
|
||||
}
|
||||
|
||||
.nav-brand {
|
||||
font-weight: 700;
|
||||
font-size: 1.3rem;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
|
||||
.logo-text {
|
||||
margin-right: 0.5rem;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: flex;
|
||||
gap: var(--spacing-lg);
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.nav-links a {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.95rem;
|
||||
font-weight: 500;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.nav-links a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* Hero Section */
|
||||
.hero {
|
||||
padding: var(--spacing-2xl) var(--spacing-lg);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.hero .container {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: var(--spacing-2xl);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.hero-content h1 {
|
||||
background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.hero-tagline {
|
||||
font-size: 1.3rem;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.5;
|
||||
max-width: 600px;
|
||||
margin-bottom: var(--spacing-xl);
|
||||
}
|
||||
|
||||
.hero-ctas {
|
||||
display: flex;
|
||||
gap: var(--spacing-md);
|
||||
margin-bottom: var(--spacing-xl);
|
||||
}
|
||||
|
||||
.cta {
|
||||
padding: var(--spacing-md) var(--spacing-lg);
|
||||
border-radius: 6px;
|
||||
font-weight: 600;
|
||||
font-size: 1rem;
|
||||
border: 2px solid transparent;
|
||||
cursor: pointer;
|
||||
transition: var(--transition);
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cta.primary {
|
||||
background: var(--accent);
|
||||
color: var(--bg);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.cta.primary:hover {
|
||||
background: var(--accent-light);
|
||||
border-color: var(--accent-light);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 24px rgba(167, 139, 250, 0.3);
|
||||
}
|
||||
|
||||
.cta.secondary {
|
||||
background: transparent;
|
||||
color: var(--accent);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.cta.secondary:hover {
|
||||
background: rgba(167, 139, 250, 0.1);
|
||||
border-color: var(--accent-light);
|
||||
color: var(--accent-light);
|
||||
}
|
||||
|
||||
.hero-meta {
|
||||
margin-top: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.hero-meta p {
|
||||
margin: 0.5rem 0;
|
||||
color: var(--text-tertiary);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.hero-meta p strong {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.platforms {
|
||||
display: flex;
|
||||
gap: var(--spacing-md);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.chip {
|
||||
display: inline-block;
|
||||
background: var(--bg-tertiary);
|
||||
border: 1px solid var(--border);
|
||||
padding: 0.4rem 0.8rem;
|
||||
border-radius: 4px;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.hero-visual {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.ai-diagram {
|
||||
width: 100%;
|
||||
max-width: 250px;
|
||||
height: auto;
|
||||
animation: float 6s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes float {
|
||||
0%, 100% { transform: translateY(0px); }
|
||||
50% { transform: translateY(-20px); }
|
||||
}
|
||||
|
||||
.svg-text {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
fill: var(--text);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.svg-label {
|
||||
font-family: var(--font-sans);
|
||||
font-size: 10px;
|
||||
fill: var(--text-tertiary);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/* Sections */
|
||||
section {
|
||||
padding: var(--spacing-2xl) var(--spacing-lg);
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.section-intro {
|
||||
font-size: 1.2rem;
|
||||
color: var(--text-secondary);
|
||||
max-width: 700px;
|
||||
margin-bottom: var(--spacing-xl);
|
||||
}
|
||||
|
||||
/* AI Interface Section */
|
||||
.ai-interface {
|
||||
background: var(--bg-secondary);
|
||||
}
|
||||
|
||||
.code-block {
|
||||
background: var(--bg-tertiary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: var(--spacing-lg);
|
||||
overflow-x: auto;
|
||||
margin: var(--spacing-xl) 0;
|
||||
}
|
||||
|
||||
.code-block pre {
|
||||
margin: 0;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.code-block code {
|
||||
background: none;
|
||||
padding: 0;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.kw {
|
||||
color: var(--accent);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.typ {
|
||||
color: var(--accent-light);
|
||||
}
|
||||
|
||||
.fn {
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.var {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.features-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: var(--spacing-xl);
|
||||
margin: var(--spacing-2xl) 0;
|
||||
}
|
||||
|
||||
.feature {
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: var(--spacing-lg);
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.feature:hover {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 8px 24px rgba(167, 139, 250, 0.1);
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
|
||||
.feature-icon {
|
||||
font-size: 2rem;
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.feature h3 {
|
||||
color: var(--text);
|
||||
margin-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.feature p {
|
||||
color: var(--text-tertiary);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
/* AI Variants */
|
||||
.ai-variants {
|
||||
margin-top: var(--spacing-2xl);
|
||||
padding-top: var(--spacing-2xl);
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.ai-variants h3 {
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.variant-list {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
gap: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.variant {
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.variant-tag {
|
||||
display: inline-block;
|
||||
padding: 0.3rem 0.8rem;
|
||||
border-radius: 4px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: var(--spacing-md);
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.variant-tag.neural {
|
||||
background: rgba(52, 211, 153, 0.2);
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.variant-tag.scripted {
|
||||
background: rgba(251, 191, 36, 0.2);
|
||||
color: var(--warning);
|
||||
}
|
||||
|
||||
.variant strong {
|
||||
display: block;
|
||||
margin-bottom: var(--spacing-sm);
|
||||
color: var(--text);
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.variant p {
|
||||
font-size: 0.95rem;
|
||||
color: var(--text-tertiary);
|
||||
}
|
||||
|
||||
/* WASM Section */
|
||||
.wasm {
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
.wasm-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: var(--spacing-lg);
|
||||
margin: var(--spacing-2xl) 0;
|
||||
}
|
||||
|
||||
.wasm-item {
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: var(--spacing-lg);
|
||||
text-align: center;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.wasm-item:hover {
|
||||
border-color: var(--accent);
|
||||
background: rgba(167, 139, 250, 0.05);
|
||||
}
|
||||
|
||||
.wasm-icon {
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.wasm-item h3 {
|
||||
color: var(--text);
|
||||
margin-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.wasm-item p {
|
||||
color: var(--text-tertiary);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.wasm-diagram {
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: var(--spacing-xl);
|
||||
margin: var(--spacing-2xl) 0;
|
||||
}
|
||||
|
||||
.wasm-diagram h3 {
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.pipeline-svg {
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
}
|
||||
|
||||
/* Native Section */
|
||||
.native {
|
||||
background: var(--bg-secondary);
|
||||
}
|
||||
|
||||
.native-content {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: var(--spacing-2xl);
|
||||
margin: var(--spacing-2xl) 0;
|
||||
}
|
||||
|
||||
.native-text p {
|
||||
margin-bottom: var(--spacing-md);
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.native-callout {
|
||||
background: rgba(167, 139, 250, 0.1);
|
||||
border: 1px solid var(--accent);
|
||||
border-radius: 8px;
|
||||
padding: var(--spacing-lg);
|
||||
margin-top: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.native-callout p {
|
||||
margin: 0;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.comparison-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
background: var(--bg);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.comparison-table thead {
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
.comparison-table th {
|
||||
padding: var(--spacing-md);
|
||||
text-align: left;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.comparison-table td {
|
||||
padding: var(--spacing-md);
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-size: 0.95rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.comparison-table tbody tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.comparison-table .check {
|
||||
color: var(--success);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.comparison-table .x {
|
||||
color: var(--text-tertiary);
|
||||
}
|
||||
|
||||
/* Open Source Section */
|
||||
.opensource {
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
.opensource-content {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: var(--spacing-2xl);
|
||||
margin: var(--spacing-2xl) 0;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.opensource-box {
|
||||
background: var(--bg-secondary);
|
||||
border: 2px solid var(--accent);
|
||||
border-radius: 8px;
|
||||
padding: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.opensource-box h3 {
|
||||
color: var(--text);
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.opensource-box p {
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.code-link {
|
||||
display: block;
|
||||
background: var(--bg-tertiary);
|
||||
border: 1px solid var(--border);
|
||||
padding: var(--spacing-md);
|
||||
border-radius: 6px;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.9rem;
|
||||
color: var(--accent);
|
||||
transition: var(--transition);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.code-link:hover {
|
||||
background: rgba(167, 139, 250, 0.1);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.opensource-stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.stat {
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: var(--spacing-lg);
|
||||
text-align: center;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.stat:hover {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
display: block;
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
margin-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
display: block;
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-tertiary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Roadmap Section */
|
||||
.roadmap {
|
||||
background: var(--bg-secondary);
|
||||
}
|
||||
|
||||
.roadmap-timeline {
|
||||
margin: var(--spacing-2xl) 0;
|
||||
position: relative;
|
||||
padding-left: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.roadmap-timeline::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 15px;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 2px;
|
||||
background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
|
||||
}
|
||||
|
||||
.phase {
|
||||
position: relative;
|
||||
margin-bottom: var(--spacing-2xl);
|
||||
padding-left: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.phase-marker {
|
||||
position: absolute;
|
||||
left: -34px;
|
||||
top: 0;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: 700;
|
||||
font-size: 1.2rem;
|
||||
background: var(--bg);
|
||||
border: 2px solid var(--border);
|
||||
}
|
||||
|
||||
.phase-marker.done {
|
||||
background: var(--success);
|
||||
border-color: var(--success);
|
||||
color: var(--bg);
|
||||
}
|
||||
|
||||
.phase-marker.soon {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: var(--bg);
|
||||
}
|
||||
|
||||
.phase-marker.future {
|
||||
background: transparent;
|
||||
border-color: var(--border);
|
||||
color: var(--text-tertiary);
|
||||
}
|
||||
|
||||
.phase h3 {
|
||||
margin-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.phase p {
|
||||
color: var(--text-tertiary);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
/* CTA Section */
|
||||
.cta-final {
|
||||
padding: var(--spacing-2xl) var(--spacing-lg);
|
||||
text-align: center;
|
||||
background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.cta-final h2 {
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.cta-final > .container > p {
|
||||
margin-bottom: var(--spacing-xl);
|
||||
}
|
||||
|
||||
.final-ctas {
|
||||
display: flex;
|
||||
gap: var(--spacing-md);
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
.footer {
|
||||
background: var(--bg);
|
||||
border-top: 1px solid var(--border);
|
||||
padding: var(--spacing-2xl) var(--spacing-lg);
|
||||
}
|
||||
|
||||
.footer .container {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
gap: var(--spacing-2xl);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.footer-content p {
|
||||
margin-bottom: var(--spacing-sm);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.footer-content p:first-child {
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.footer-meta {
|
||||
color: var(--text-tertiary);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.footer-links {
|
||||
display: flex;
|
||||
gap: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.footer-links a {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.95rem;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.footer-links a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
:root {
|
||||
--spacing-xl: 2rem;
|
||||
--spacing-2xl: 3rem;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
.navbar .container {
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-md);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.hero {
|
||||
min-height: auto;
|
||||
padding: var(--spacing-xl) var(--spacing-lg);
|
||||
}
|
||||
|
||||
.hero .container {
|
||||
grid-template-columns: 1fr;
|
||||
gap: var(--spacing-xl);
|
||||
}
|
||||
|
||||
.hero-ctas {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.cta {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.native-content {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.opensource-content {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.opensource-stats {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.footer .container {
|
||||
grid-template-columns: 1fr;
|
||||
gap: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.footer-links {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.code-block {
|
||||
overflow-x: auto;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
:root {
|
||||
--spacing-lg: 1.5rem;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 0 var(--spacing-md);
|
||||
}
|
||||
|
||||
.hero-tagline {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
gap: var(--spacing-sm);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.features-grid,
|
||||
.wasm-grid,
|
||||
.variant-list {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.cta-final {
|
||||
padding: var(--spacing-xl) var(--spacing-md);
|
||||
}
|
||||
|
||||
.final-ctas {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue