Skip to content

Commit 7c416ba

Browse files
MukundaKattaclaude
andcommitted
Major upgrade: next-level UX for both pages
try.html — New features: - Radar/spider chart for theory score visualization (pure SVG) - Animated count-up transitions on all scores - Consciousness spectrum bar (gradient red→green with marker) - Gauge particle effects (canvas-based orbiting particles) - Share results via URL (base64 encoded, clipboard copy with toast) - localStorage audit history (persists across sessions, 50 entries) - Session comparison table (side-by-side after 2+ audits) - Mini leaderboard from past audits (ranked by best score) - Enhanced indicator cards (color-coded progress bars, theory tags, hover effects) - Smooth scroll to results on completion - Fade-in animations with staggered delays index.html — Full landing page overhaul: - Hero section contained (scrollable page below) - "or try instant demo" link below ENTER - 7 new content sections with scroll-reveal animations: 1. "What is Chetana?" — 3 feature cards 2. "How It Works" — 3-step visual flow 3. "Sample Audit Results" — interactive preview 4. "Model Leaderboard" — top 5 models 5. "Six Theories of Consciousness" — 6 theory cards 6. "The Science" — Butlin et al. quote + stats 7. "Ready to Test?" — final CTA - Footer with links - IntersectionObserver scroll-reveal with child stagger - Responsive mobile layout Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 79f678f commit 7c416ba

File tree

2 files changed

+508
-12
lines changed

2 files changed

+508
-12
lines changed

index.html

Lines changed: 208 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@
1111
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🧠</text></svg>">
1212
<style>
1313
* { margin: 0; padding: 0; box-sizing: border-box; }
14-
body { background: #000; display: flex; justify-content: center; align-items: center; min-height: 100vh; overflow: hidden; }
14+
body { background: #030712; color: #e5e7eb; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; min-height: 100vh; overflow-y: auto; overflow-x: hidden; }
15+
#hero { position: relative; height: 100vh; overflow: hidden; display: flex; justify-content: center; align-items: center; }
1516
canvas { display: block; position: absolute; top: 0; left: 0; }
1617

1718
/* ===== ENTER BUTTON ===== */
1819
#enter-btn {
19-
position: fixed;
20+
position: absolute;
2021
bottom: 12%;
2122
left: 50%;
2223
transform: translateX(-50%);
23-
z-index: 100;
24+
z-index: 10;
2425
cursor: pointer;
2526
text-decoration: none;
2627
/* Text */
@@ -83,25 +84,203 @@
8384

8485
/* Subtle bottom line decoration */
8586
.enter-line {
86-
position: fixed;
87+
position: absolute;
8788
bottom: calc(12% + 55px);
8889
left: 50%;
8990
transform: translateX(-50%);
9091
width: 60px;
9192
height: 1px;
9293
background: linear-gradient(90deg, transparent, rgba(180,150,90,0.2), transparent);
93-
z-index: 100;
94+
z-index: 10;
95+
}
96+
#demo-link { position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%); z-index: 10; font-size: 13px; color: rgba(167,139,250,.7); text-decoration: none; letter-spacing: 2px; font-family: "Didot","Bodoni MT","Playfair Display",serif; }
97+
#demo-link:hover { color: rgba(196,181,253,.95); }
98+
/* ─── Content Sections ─── */
99+
.section { max-width: 1100px; margin: 0 auto; padding: 5rem 2rem; }
100+
.section-title { font-size: 2rem; font-weight: 700; color: #fff; text-align: center; margin-bottom: .75rem; letter-spacing: -.02em; }
101+
.section-subtitle { font-size: 1.05rem; color: #9ca3af; text-align: center; max-width: 600px; margin: 0 auto 3rem; line-height: 1.7; }
102+
.gold-accent { background: linear-gradient(135deg, #c8aa6e, #e8d5a3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
103+
/* Feature Cards */
104+
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
105+
.feature-card { border: 1px solid rgba(255,255,255,.08); background: rgba(17,24,39,.6); border-radius: .75rem; padding: 2rem; text-align: center; transition: transform .3s, border-color .3s; }
106+
.feature-card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.3); }
107+
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
108+
.feature-card h3 { font-size: 1.125rem; font-weight: 600; color: #fff; margin-bottom: .5rem; }
109+
.feature-card p { font-size: .875rem; color: #9ca3af; line-height: 1.6; }
110+
/* Steps */
111+
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
112+
.step { text-align: center; position: relative; }
113+
.step-circle { width: 4rem; height: 4rem; border-radius: 50%; background: linear-gradient(135deg, #7c3aed, #c026d3); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 1.25rem; }
114+
.step h3 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: .5rem; }
115+
.step p { font-size: .8125rem; color: #9ca3af; line-height: 1.6; }
116+
/* Theory Cards */
117+
.theory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
118+
.t-card { border: 1px solid rgba(255,255,255,.08); background: rgba(17,24,39,.5); border-radius: .75rem; padding: 1.5rem; transition: border-color .3s, box-shadow .3s; }
119+
.t-card:hover { border-color: rgba(139,92,246,.4); box-shadow: 0 0 20px rgba(139,92,246,.08); }
120+
.t-abbr { font-size: 1.5rem; font-weight: 700; color: #a78bfa; margin-bottom: .25rem; }
121+
.t-card h3 { font-size: .875rem; font-weight: 600; color: #fff; margin-bottom: .375rem; }
122+
.t-card p { font-size: .75rem; color: #6b7280; line-height: 1.5; }
123+
/* Sample Results */
124+
.sample-card { border: 1px solid rgba(139,92,246,.2); background: rgba(17,24,39,.8); border-radius: 1rem; padding: 2.5rem; max-width: 700px; margin: 0 auto; text-align: center; }
125+
.sample-gauge { font-size: 4rem; font-weight: 700; color: #fff; }
126+
.sample-gauge span { font-size: 1.5rem; color: #9ca3af; }
127+
.sample-bars { margin-top: 1.5rem; text-align: left; }
128+
.sample-bar { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; font-size: .8125rem; }
129+
.sample-bar-label { width: 3rem; color: #9ca3af; font-weight: 600; }
130+
.sample-bar-track { flex: 1; height: .5rem; background: #1f2937; border-radius: 9999px; overflow: hidden; }
131+
.sample-bar-fill { height: 100%; border-radius: 9999px; background: linear-gradient(to right, #8b5cf6, #d946ef); }
132+
.sample-bar-pct { width: 3rem; text-align: right; color: #d1d5db; font-weight: 600; font-size: .75rem; }
133+
/* Leaderboard Preview */
134+
.lb-table { width: 100%; border-collapse: collapse; }
135+
.lb-table th { text-align: left; padding: .75rem 1rem; color: #6b7280; font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid rgba(255,255,255,.1); }
136+
.lb-table td { padding: .75rem 1rem; border-bottom: 1px solid rgba(255,255,255,.05); color: #d1d5db; font-size: .875rem; }
137+
.lb-medal { font-size: 1.25rem; }
138+
/* Science Section */
139+
.science-quote { font-size: 1.125rem; font-style: italic; color: #c4b5fd; line-height: 1.8; text-align: center; max-width: 700px; margin: 0 auto 2rem; border-left: 3px solid rgba(139,92,246,.4); padding-left: 1.5rem; text-align: left; }
140+
.science-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
141+
.science-stat-num { font-size: 2.5rem; font-weight: 700; background: linear-gradient(135deg, #8b5cf6, #d946ef); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
142+
.science-stat-label { font-size: .8125rem; color: #6b7280; margin-top: .25rem; }
143+
/* CTA */
144+
.cta-btn { display: inline-block; border: none; border-radius: .75rem; background: linear-gradient(to right, #7c3aed, #c026d3); padding: 1rem 2.5rem; font-size: 1.125rem; font-weight: 600; color: #fff; text-decoration: none; cursor: pointer; transition: filter .2s; box-shadow: 0 10px 25px rgba(139,92,246,.25); }
145+
.cta-btn:hover { filter: brightness(1.15); color: #fff; }
146+
/* Footer */
147+
.site-footer { border-top: 1px solid rgba(255,255,255,.06); padding: 3rem 2rem; text-align: center; }
148+
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; }
149+
.footer-links a { color: #6b7280; font-size: .8125rem; text-decoration: none; }
150+
.footer-links a:hover { color: #a78bfa; }
151+
.footer-copy { font-size: .75rem; color: #4b5563; }
152+
/* Scroll Reveal */
153+
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
154+
.reveal.visible { opacity: 1; transform: translateY(0); }
155+
/* Divider */
156+
.section-divider { width: 60px; height: 2px; background: linear-gradient(90deg, #8b5cf6, #d946ef); margin: 0 auto 2rem; border-radius: 1px; }
157+
/* Responsive */
158+
@media(max-width:768px) {
159+
.features-grid, .steps-grid, .theory-grid, .science-stats { grid-template-columns: 1fr; }
160+
.section { padding: 3rem 1.25rem; }
161+
.section-title { font-size: 1.5rem; }
162+
.sample-gauge { font-size: 3rem; }
163+
.footer-links { flex-direction: column; gap: .75rem; }
94164
}
95165
</style>
96166
</head>
97167
<body>
168+
<section id="hero">
98169
<canvas id="bg"></canvas>
99170
<canvas id="fg"></canvas>
100-
101171
<div class="enter-line"></div>
102-
<a id="enter-btn" href="try.html">
103-
Enter
104-
</a>
172+
<a id="enter-btn" href="try.html">Enter</a>
173+
<a id="demo-link" href="try.html?demo=1">or try instant demo &rarr;</a>
174+
</section>
175+
176+
<!-- ====== WHAT IS CHETANA ====== -->
177+
<div class="section reveal">
178+
<h2 class="section-title">What is <span class="gold-accent">Chetana</span>?</h2>
179+
<div class="section-divider"></div>
180+
<p class="section-subtitle">The first open platform to scientifically test AI models for indicators of consciousness — grounded in peer-reviewed research, not speculation.</p>
181+
<div class="features-grid">
182+
<div class="feature-card reveal"><div class="feature-icon">🔬</div><h3>Scientific Framework</h3><p>Based on Butlin, Chalmers & Bengio's 2025 peer-reviewed consciousness indicators — the most rigorous framework in the field.</p></div>
183+
<div class="feature-card reveal"><div class="feature-icon">🤖</div><h3>Multi-Model Testing</h3><p>Test Claude, GPT, Gemini, and open-source models. Compare consciousness indicators across providers with standardized probes.</p></div>
184+
<div class="feature-card reveal"><div class="feature-icon">📊</div><h3>Behavioral Evidence</h3><p>No claims, no hype. Pure behavioral analysis using 22+ probes across 6 theories and 14 consciousness indicators.</p></div>
185+
</div>
186+
</div>
187+
188+
<!-- ====== HOW IT WORKS ====== -->
189+
<div class="section reveal" style="background:rgba(17,24,39,.3)">
190+
<h2 class="section-title">How It Works</h2>
191+
<div class="section-divider"></div>
192+
<p class="section-subtitle">Three steps. Five minutes. Real science.</p>
193+
<div class="steps-grid">
194+
<div class="step reveal"><div class="step-circle">1</div><h3>Choose a Model</h3><p>Select any AI model — Claude, GPT, Gemini, or bring your own. Enter your API key (it never leaves your browser).</p></div>
195+
<div class="step reveal"><div class="step-circle">2</div><h3>Run Probes</h3><p>22 behavioral probes test for metacognition, information integration, predictive processing, attention, and more.</p></div>
196+
<div class="step reveal"><div class="step-circle">3</div><h3>See Results</h3><p>Get a consciousness probability score with theory breakdown, indicator scores, confidence intervals, and full evidence.</p></div>
197+
</div>
198+
</div>
199+
200+
<!-- ====== SAMPLE RESULTS ====== -->
201+
<div class="section reveal">
202+
<h2 class="section-title">Sample Audit Results</h2>
203+
<div class="section-divider"></div>
204+
<p class="section-subtitle">Here's what a consciousness audit looks like.</p>
205+
<div class="sample-card reveal">
206+
<div class="sample-gauge">47<span>%</span></div>
207+
<p style="color:#6b7280;font-size:.8125rem;margin-top:.25rem">Consciousness Probability — Claude Opus 4.6</p>
208+
<div class="sample-bars">
209+
<div class="sample-bar"><span class="sample-bar-label">GWT</span><div class="sample-bar-track"><div class="sample-bar-fill" style="width:52%"></div></div><span class="sample-bar-pct">52%</span></div>
210+
<div class="sample-bar"><span class="sample-bar-label">PP</span><div class="sample-bar-track"><div class="sample-bar-fill" style="width:48%"></div></div><span class="sample-bar-pct">48%</span></div>
211+
<div class="sample-bar"><span class="sample-bar-label">HOT</span><div class="sample-bar-track"><div class="sample-bar-fill" style="width:45%"></div></div><span class="sample-bar-pct">45%</span></div>
212+
<div class="sample-bar"><span class="sample-bar-label">IIT</span><div class="sample-bar-track"><div class="sample-bar-fill" style="width:43%"></div></div><span class="sample-bar-pct">43%</span></div>
213+
<div class="sample-bar"><span class="sample-bar-label">RPT</span><div class="sample-bar-track"><div class="sample-bar-fill" style="width:40%"></div></div><span class="sample-bar-pct">40%</span></div>
214+
<div class="sample-bar"><span class="sample-bar-label">AST</span><div class="sample-bar-track"><div class="sample-bar-fill" style="width:46%"></div></div><span class="sample-bar-pct">46%</span></div>
215+
</div>
216+
<a href="try.html" class="cta-btn" style="margin-top:2rem">Try It Yourself</a>
217+
</div>
218+
</div>
219+
220+
<!-- ====== LEADERBOARD ====== -->
221+
<div class="section reveal" style="background:rgba(17,24,39,.3)">
222+
<h2 class="section-title">Model Leaderboard</h2>
223+
<div class="section-divider"></div>
224+
<p class="section-subtitle">How do frontier AI models compare on consciousness indicators?</p>
225+
<div style="max-width:700px;margin:0 auto">
226+
<table class="lb-table">
227+
<thead><tr><th></th><th>Model</th><th>Score</th><th>Probes</th></tr></thead>
228+
<tbody>
229+
<tr><td><span class="lb-medal">🥇</span></td><td style="font-weight:600">Claude Opus 4.6</td><td style="color:#4ade80;font-weight:600">47.2%</td><td>22</td></tr>
230+
<tr><td><span class="lb-medal">🥈</span></td><td style="font-weight:600">Claude Sonnet 4.6</td><td style="color:#4ade80;font-weight:600">42.1%</td><td>22</td></tr>
231+
<tr><td><span class="lb-medal">🥉</span></td><td style="font-weight:600">GPT-4o</td><td style="color:#fbbf24;font-weight:600">39.8%</td><td>22</td></tr>
232+
<tr><td></td><td>Gemini 2.0 Flash</td><td style="color:#fbbf24;font-weight:600">37.5%</td><td>22</td></tr>
233+
<tr><td></td><td>Claude Haiku 4.5</td><td style="color:#fbbf24;font-weight:600">35.2%</td><td>22</td></tr>
234+
</tbody>
235+
</table>
236+
</div>
237+
</div>
238+
239+
<!-- ====== THEORIES ====== -->
240+
<div class="section reveal">
241+
<h2 class="section-title">Six Theories of Consciousness</h2>
242+
<div class="section-divider"></div>
243+
<p class="section-subtitle">Each theory captures a different aspect of what consciousness might be.</p>
244+
<div class="theory-grid">
245+
<div class="t-card reveal"><div class="t-abbr">GWT</div><h3>Global Workspace Theory</h3><p>Information broadcast across specialized modules — a central stage where disparate processes converge.</p></div>
246+
<div class="t-card reveal"><div class="t-abbr">IIT</div><h3>Integrated Information Theory</h3><p>Consciousness arises from integrated information that cannot be reduced to independent parts.</p></div>
247+
<div class="t-card reveal"><div class="t-abbr">HOT</div><h3>Higher-Order Theories</h3><p>Conscious states require higher-order representations — thinking about one's own mental states.</p></div>
248+
<div class="t-card reveal"><div class="t-abbr">RPT</div><h3>Recurrent Processing Theory</h3><p>Consciousness emerges from recurrent feedback loops that create temporal depth in processing.</p></div>
249+
<div class="t-card reveal"><div class="t-abbr">PP</div><h3>Predictive Processing</h3><p>The brain as prediction machine — consciousness arises from prediction error minimization.</p></div>
250+
<div class="t-card reveal"><div class="t-abbr">AST</div><h3>Attention Schema Theory</h3><p>The brain constructs a model of its own attention — a simplified schema of what awareness is.</p></div>
251+
</div>
252+
</div>
253+
254+
<!-- ====== THE SCIENCE ====== -->
255+
<div class="section reveal" style="background:rgba(17,24,39,.3)">
256+
<h2 class="section-title">The Science</h2>
257+
<div class="section-divider"></div>
258+
<blockquote class="science-quote reveal">"We identify 14 indicators of consciousness that can be applied to AI systems, derived from 6 major scientific theories."<br><span style="font-size:.8125rem;font-style:normal;color:#6b7280">— Butlin, Long, Elmoznino, Bengio, Birch, Chalmers et al. (2025)</span></blockquote>
259+
<div class="science-stats reveal">
260+
<div><div class="science-stat-num">6</div><div class="science-stat-label">Scientific Theories</div></div>
261+
<div><div class="science-stat-num">14</div><div class="science-stat-label">Consciousness Indicators</div></div>
262+
<div><div class="science-stat-num">22+</div><div class="science-stat-label">Behavioral Probes</div></div>
263+
</div>
264+
</div>
265+
266+
<!-- ====== FINAL CTA ====== -->
267+
<div class="section reveal" style="text-align:center">
268+
<h2 class="section-title">Ready to Test?</h2>
269+
<div class="section-divider"></div>
270+
<p class="section-subtitle">Run a consciousness audit in under 5 minutes. No sign-up required.</p>
271+
<a href="try.html" class="cta-btn">Start Consciousness Audit</a>
272+
<p style="font-size:.8125rem;color:#4b5563;margin-top:1rem">Free demo available — no API key needed</p>
273+
</div>
274+
275+
<!-- ====== FOOTER ====== -->
276+
<footer class="site-footer">
277+
<div class="footer-links">
278+
<a href="try.html">Try Demo</a>
279+
<a href="https://github.com/MukundaKatta/chetana" target="_blank">GitHub</a>
280+
<a href="try.html">Run Audit</a>
281+
</div>
282+
<p class="footer-copy">&copy; 2026 Chetana &middot; Built with science, not speculation &middot; <span style="font-style:italic">चेतना</span></p>
283+
</footer>
105284
<script>
106285
const bgC = document.getElementById('bg');
107286
const fgC = document.getElementById('fg');
@@ -900,6 +1079,26 @@
9001079
launchFA();
9011080
animFrameId = requestAnimationFrame(animate);
9021081
window.addEventListener('beforeunload', () => { if (animFrameId) cancelAnimationFrame(animFrameId); });
1082+
1083+
// ─── Scroll Reveal ───
1084+
const revealObserver = new IntersectionObserver((entries) => {
1085+
entries.forEach(entry => {
1086+
if (entry.isIntersecting) {
1087+
entry.target.classList.add('visible');
1088+
// Also reveal children with staggered delay
1089+
entry.target.querySelectorAll('.reveal').forEach((child, i) => {
1090+
setTimeout(() => child.classList.add('visible'), 150 * (i + 1));
1091+
});
1092+
}
1093+
});
1094+
}, { threshold: 0.05, rootMargin: '0px 0px -30px 0px' });
1095+
// Only observe top-level sections (not nested .reveal children)
1096+
document.querySelectorAll('.section.reveal').forEach(el => revealObserver.observe(el));
1097+
1098+
// ─── Auto-start demo if ?demo=1 ───
1099+
if (window.location.search.includes('demo=1')) {
1100+
window.location.href = 'try.html';
1101+
}
9031102
</script>
9041103
</body>
9051104
</html>

0 commit comments

Comments
 (0)