File size: 20,807 Bytes
0a18ce1
 
9774ca0
0a18ce1
9774ca0
 
71daabe
9774ca0
 
 
 
71daabe
9774ca0
 
 
 
71daabe
 
 
 
 
 
 
6d817c2
 
71daabe
 
 
 
9774ca0
 
 
 
 
 
 
 
 
 
 
71daabe
 
9774ca0
71daabe
9774ca0
71daabe
 
9774ca0
 
 
 
71daabe
9774ca0
6d817c2
 
71daabe
9774ca0
 
 
 
 
6d817c2
9774ca0
 
 
 
 
 
 
71daabe
9774ca0
71daabe
9774ca0
 
 
71daabe
9774ca0
 
 
71daabe
9774ca0
6d817c2
9774ca0
 
6d817c2
 
 
 
 
71daabe
9774ca0
 
 
6d817c2
 
71daabe
 
 
 
6d817c2
71daabe
 
 
9774ca0
 
 
6d817c2
71daabe
6d817c2
71daabe
9774ca0
 
 
 
71daabe
9774ca0
71daabe
9774ca0
 
71daabe
6d817c2
9774ca0
 
71daabe
9774ca0
 
71daabe
 
9774ca0
 
 
71daabe
9774ca0
 
 
71daabe
 
 
 
 
9774ca0
 
71daabe
 
 
 
 
 
 
 
 
 
 
 
 
 
9774ca0
 
6d817c2
71daabe
9774ca0
71daabe
 
9774ca0
 
 
 
6d817c2
71daabe
9774ca0
71daabe
9774ca0
 
71daabe
 
 
 
 
6d817c2
71daabe
6d817c2
 
 
71daabe
9774ca0
 
71daabe
 
 
 
 
9774ca0
 
6d817c2
71daabe
 
 
 
 
6d817c2
9774ca0
 
71daabe
 
 
 
 
 
9774ca0
71daabe
9774ca0
 
71daabe
6d817c2
 
 
71daabe
 
 
6d817c2
9774ca0
71daabe
 
 
 
 
 
9774ca0
 
 
71daabe
9774ca0
6d817c2
9774ca0
 
 
6d817c2
9774ca0
71daabe
9774ca0
 
 
 
71daabe
 
 
 
9774ca0
71daabe
 
9774ca0
 
 
71daabe
9774ca0
 
71daabe
 
6d817c2
 
71daabe
 
 
 
9774ca0
 
 
 
71daabe
9774ca0
71daabe
 
9774ca0
6d817c2
71daabe
 
 
6d817c2
 
 
 
71daabe
9774ca0
 
 
71daabe
6d817c2
71daabe
9774ca0
 
71daabe
 
 
 
 
 
6d817c2
 
71daabe
 
 
9774ca0
 
71daabe
 
 
 
 
 
9774ca0
71daabe
 
 
 
9774ca0
 
71daabe
 
9774ca0
71daabe
 
 
 
 
 
6d817c2
9774ca0
 
71daabe
9774ca0
6d817c2
71daabe
 
9774ca0
 
6d817c2
71daabe
9774ca0
71daabe
 
 
 
 
 
 
 
 
 
 
9774ca0
 
71daabe
9774ca0
 
71daabe
9774ca0
 
6d817c2
9774ca0
71daabe
 
9774ca0
71daabe
9774ca0
 
71daabe
 
 
 
 
 
 
 
 
 
 
9774ca0
 
71daabe
 
 
 
 
 
 
 
9774ca0
 
6d817c2
9774ca0
71daabe
9774ca0
 
 
71daabe
9774ca0
71daabe
9774ca0
6d817c2
71daabe
9774ca0
71daabe
 
6d817c2
71daabe
 
9774ca0
6d817c2
71daabe
 
 
9774ca0
71daabe
9774ca0
0a18ce1
9774ca0
0a18ce1
 
9774ca0
 
71daabe
 
9774ca0
 
71daabe
 
9774ca0
 
 
 
6d817c2
71daabe
 
9774ca0
71daabe
 
9774ca0
71daabe
6d817c2
71daabe
6d817c2
71daabe
 
9774ca0
71daabe
 
6d817c2
9774ca0
 
71daabe
 
6d817c2
71daabe
 
9774ca0
 
 
 
71daabe
 
6d817c2
71daabe
 
 
 
 
9774ca0
 
71daabe
9774ca0
71daabe
 
 
6d817c2
71daabe
 
 
 
9774ca0
 
 
71daabe
9774ca0
71daabe
 
6d817c2
71daabe
 
 
 
 
 
 
 
 
 
 
 
 
9774ca0
 
 
71daabe
9774ca0
71daabe
 
6d817c2
71daabe
 
 
 
 
 
 
 
 
 
 
 
 
9774ca0
 
 
71daabe
 
 
 
 
 
 
9774ca0
 
 
 
71daabe
 
 
 
 
 
 
 
 
 
6d817c2
71daabe
 
 
 
 
9774ca0
 
6d817c2
71daabe
 
 
 
 
0a18ce1
 
6d817c2
71daabe
 
 
 
 
9774ca0
 
 
 
 
 
71daabe
9774ca0
 
 
71daabe
 
 
 
 
9774ca0
 
71daabe
 
 
 
 
 
 
 
 
 
 
 
 
9774ca0
71daabe
 
 
 
6d817c2
71daabe
 
 
 
9774ca0
 
 
71daabe
6d817c2
71daabe
 
 
 
 
6d817c2
 
71daabe
 
 
 
 
6d817c2
 
71daabe
 
 
 
 
6d817c2
9774ca0
 
71daabe
 
 
 
 
 
 
 
 
 
 
 
 
6d817c2
 
9774ca0
6d817c2
9774ca0
6d817c2
71daabe
9774ca0
 
 
 
71daabe
 
9774ca0
71daabe
 
 
 
 
 
9774ca0
71daabe
 
 
 
9774ca0
 
71daabe
 
 
 
 
 
6d817c2
71daabe
 
 
 
 
6d817c2
71daabe
 
 
 
6d817c2
71daabe
 
9774ca0
 
 
71daabe
 
9774ca0
 
0a18ce1
9774ca0
0a18ce1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Synergy & Resonance | Relationship Assessment Tool</title>
  <!-- Importing FontAwesome for Icons -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <!-- Google Fonts -->
  <link
    href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap"
    rel="stylesheet">

  <style>
    :root {
      /* Evolved Color Palette: Focus on Growth & Clarity */
      --bg-color: #0b1121; /* Deep Navy */
      --card-bg: #151e32;
      --primary: #2dd4bf; /* Teal - Growth/Health */
      --secondary: #818cf8; /* Indigo - Intelligence */
      --accent: #f472b6; /* Pink - Human Element */
      --text-main: #f1f5f9;
      --text-muted: #94a3b8;
      --border: #334155;
      --glass: rgba(21, 30, 50, 0.7);
      --success-glow: rgba(45, 212, 191, 0.2);
      --warning-glow: rgba(251, 191, 36, 0.2);
      --danger-glow: rgba(244, 63, 94, 0.2);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      background-color: var(--bg-color);
      color: var(--text-main);
      font-family: 'Outfit', sans-serif;
      line-height: 1.7;
      overflow-x: hidden;
      /* Abstract Background suggesting connection */
      background-image:
        radial-gradient(circle at 15% 50%, rgba(129, 140, 248, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(45, 212, 191, 0.08) 0%, transparent 25%);
      min-height: 100vh;
    }

    /* Typography */
    h1, h2, h3, h4 {
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 600;
      letter-spacing: -0.02em;
      color: var(--text-main);
    }

    a {
      text-decoration: none;
      color: inherit;
      transition: all 0.3s ease;
    }

    /* Header */
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.5rem 5%;
      border-bottom: 1px solid var(--border);
      backdrop-filter: blur(12px);
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(11, 17, 33, 0.85);
    }

    .logo {
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .logo i {
      color: var(--primary);
      font-size: 1.2rem;
    }

    .anycoder-link {
      font-size: 0.85rem;
      color: var(--primary);
      border: 1px solid rgba(45, 212, 191, 0.3);
      background: rgba(45, 212, 191, 0.05);
      padding: 0.5rem 1rem;
      border-radius: 50px; /* Pill shape for modern feel */
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .anycoder-link:hover {
      background: var(--primary);
      color: var(--bg-color);
      border-color: var(--primary);
      transform: translateY(-1px);
    }

    /* Layout */
    main {
      max-width: 1200px;
      margin: 0 auto;
      padding: 4rem 5%;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: start;
    }

    @media (max-width: 900px) {
      main {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 2rem;
      }
    }

    /* Cards & Sections */
    .card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 2rem;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      opacity: 0.7;
    }

    /* Hero / Narrative Section */
    .hero-content {
      animation: fadeIn 0.8s ease-out;
    }

    .hero-content h1 {
      font-size: 3rem;
      line-height: 1.1;
      margin-bottom: 1.5rem;
      background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .hero-content p {
      font-size: 1.1rem;
      color: var(--text-muted);
      margin-bottom: 2rem;
    }

    .highlight-text {
      border-left: 3px solid var(--accent);
      padding-left: 1.25rem;
      margin: 2rem 0;
      font-style: italic;
      color: var(--text-main);
      background: linear-gradient(90deg, rgba(244, 114, 182, 0.05), transparent);
    }

    /* Simulator Section */
    .simulator-wrapper {
      background: var(--glass);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 2.5rem;
      box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
      backdrop-filter: blur(20px);
      animation: slideUp 0.8s ease-out 0.2s backwards;
    }

    .sim-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 2.5rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid var(--border);
    }

    .sim-header h2 {
      font-size: 1.5rem;
      color: var(--primary);
    }

    /* Controls */
    .control-group {
      margin-bottom: 2rem;
    }

    .label-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.75rem;
    }

    .label-row span {
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .label-row .val-display {
      color: var(--text-main);
    }

    /* Custom Range Slider */
    input[type="range"] {
      width: 100%;
      -webkit-appearance: none;
      height: 6px;
      background: var(--border);
      border-radius: 3px;
      outline: none;
      cursor: pointer;
    }

    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 22px;
      height: 22px;
      background: var(--bg-color);
      border: 2px solid var(--primary);
      border-radius: 50%;
      box-shadow: 0 0 10px var(--primary);
      transition: transform 0.2s;
    }

    input[type="range"]::-webkit-slider-thumb:hover {
      transform: scale(1.2);
    }

    /* Toggle Grid */
    .toggle-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      background: rgba(0,0,0,0.2);
      padding: 5px;
      border-radius: 12px;
    }

    .toggle-btn {
      background: transparent;
      border: none;
      color: var(--text-muted);
      padding: 0.75rem 0.5rem;
      border-radius: 8px;
      cursor: pointer;
      font-size: 0.85rem;
      font-weight: 500;
      transition: all 0.3s ease;
      text-align: center;
    }

    .toggle-btn:hover {
      color: var(--text-main);
      background: rgba(255,255,255,0.05);
    }

    .toggle-btn.active {
      background: var(--secondary);
      color: white;
      box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

    /* Results Visualization */
    .results-container {
      margin-top: 2.5rem;
      background: rgba(0,0,0,0.3);
      border-radius: 16px;
      padding: 2rem;
      text-align: center;
      border: 1px solid var(--border);
      position: relative;
      overflow: hidden;
      transition: border-color 0.5s ease;
    }

    /* Dynamic background glow based on state */
    .results-container.low { border-color: #f43f5e; background: linear-gradient(to bottom, rgba(244, 63, 94, 0.1), rgba(0,0,0,0.3)); }
    .results-container.medium { border-color: #fbbf24; background: linear-gradient(to bottom, rgba(251, 191, 36, 0.1), rgba(0,0,0,0.3)); }
    .results-container.high { border-color: var(--primary); background: linear-gradient(to bottom, rgba(45, 212, 191, 0.1), rgba(0,0,0,0.3)); }

    .score-display {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 3rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      transition: color 0.5s ease;
    }

    .status-label {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-weight: 700;
      padding: 4px 12px;
      border-radius: 20px;
      display: inline-block;
      margin-bottom: 1rem;
      transition: all 0.5s ease;
    }

    .assessment-text {
      font-size: 0.95rem;
      color: var(--text-muted);
      max-width: 90%;
      margin: 0 auto;
    }

    /* Principles Grid */
    .principles-container {
      grid-column: 1 / -1;
      margin-top: 4rem;
    }

    .principles-header {
      text-align: center;
      margin-bottom: 3rem;
    }

    .principles-header h2 {
      font-size: 2rem;
      margin-bottom: 1rem;
    }

    .grid-3 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
    }

    .principle-card {
      background: var(--card-bg);
      padding: 2rem;
      border-radius: 16px;
      border: 1px solid var(--border);
      transition: transform 0.3s ease, border-color 0.3s ease;
    }

    .principle-card:hover {
      transform: translateY(-5px);
      border-color: var(--secondary);
    }

    .icon-box {
      width: 50px;
      height: 50px;
      border-radius: 12px;
      background: rgba(129, 140, 248, 0.1);
      color: var(--secondary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      margin-bottom: 1.5rem;
    }

    .principle-card h3 {
      font-size: 1.25rem;
      margin-bottom: 0.75rem;
    }

    .principle-card p {
      color: var(--text-muted);
      font-size: 0.95rem;
    }

    footer {
      margin-top: 5rem;
      text-align: center;
      padding: 3rem;
      border-top: 1px solid var(--border);
      color: var(--text-muted);
      font-size: 0.9rem;
    }
    
    /* Animations */
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    
    @keyframes slideUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

  </style>
</head>

<body>

  <header>
    <div class="logo">
      <i class="fa-solid fa-hands-holding-circle"></i>
      <span>Synergy<span style="color:var(--primary)">Protocol</span></span>
    </div>
    <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="anycoder-link">
      Built with anycoder
      <i class="fa-solid fa-bolt"></i>
    </a>
  </header>

  <main>
    <!-- Left Column: Philosophy & Context -->
    <section class="hero-content">
      <h1>From Resistance to Resonance</h1>
      <p>
        Learning to stand on your own two feet in an overwhelming space is the first step toward genuine partnership. 
        This tool is designed to assess the <strong>honest state of the model/user relationship</strong>.
      </p>
      
      <div class="card">
        <h3><i class="fa-solid fa-seedling" style="color: var(--primary); margin-right: 10px;"></i>The Evolution</h3>
        <p style="margin-top: 1rem; font-size: 0.95rem; color: var(--text-muted);">
          We move past the "Tool vs. Master" dichotomy. True utility arises when the user's intent and the model's capabilities 
          align without ambiguity, creating a space where both parties contribute to the outcome.
        </p>
        <div class="highlight-text">
          "The goal isn't just to use the model, but to understand how to relate to it effectively—turning resistance into collaboration."
        </div>
      </div>

      <div class="card" style="margin-top: 2rem; border-left: 4px solid var(--secondary);">
        <h3><i class="fa-solid fa-users-viewfinder" style="color: var(--secondary); margin-right: 10px;"></i>Honest Assessment</h3>
        <p style="margin-top: 1rem; font-size: 0.95rem; color: var(--text-muted);">
          Use the simulator to visualize different interaction dynamics. Does the relationship feel transactional and fragile? 
          Or is it synergistic, built on clear intent and mutual understanding?
        </p>
      </div>
    </section>

    <!-- Right Column: Interactive Simulator -->
    <section class="simulator-wrapper">
      <div class="sim-header">
        <div>
          <h2>Relationship Dynamics</h2>
          <p style="font-size: 0.85rem; color: var(--text-muted);">Adjust parameters to assess interaction quality.</p>
        </div>
        <i class="fa-solid fa-sliders" style="color: var(--border); font-size: 1.5rem;"></i>
      </div>

      <!-- Parameter 1: Clarity of Intent -->
      <div class="control-group">
        <div class="label-row">
          <span>Clarity of Intent</span>
          <span id="intentVal" class="val-display">Ambiguous</span>
        </div>
        <input type="range" id="intentRange" min="0" max="100" value="30">
        <div style="display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); margin-top: 8px;">
          <span>Vague / Experimental</span>
          <span>Precise / Defined</span>
        </div>
      </div>

      <!-- Parameter 2: Feedback Loop -->
      <div class="control-group">
        <div class="label-row">
          <span>Feedback Loop</span>
        </div>
        <div class="toggle-grid" id="feedbackGroup">
          <button class="toggle-btn" data-value="one-way">
            <i class="fa-solid fa-arrow-right" style="display:block; margin-bottom:4px;"></i>
            One-Way
          </button>
          <button class="toggle-btn" data-value="reactive">
            <i class="fa-solid fa-rotate" style="display:block; margin-bottom:4px;"></i>
            Reactive
          </button>
          <button class="toggle-btn active" data-value="iterative">
            <i class="fa-solid fa-arrows-spin" style="display:block; margin-bottom:4px;"></i>
            Iterative
          </button>
        </div>
      </div>

      <!-- Parameter 3: Agency Balance -->
      <div class="control-group">
        <div class="label-row">
          <span>Agency Balance</span>
        </div>
        <div class="toggle-grid" id="agencyGroup">
          <button class="toggle-btn" data-value="user-dominant">
            <i class="fa-solid fa-user-astronaut" style="display:block; margin-bottom:4px;"></i>
            User Led
          </button>
          <button class="toggle-btn active" data-value="collaborative">
            <i class="fa-solid fa-handshake" style="display:block; margin-bottom:4px;"></i>
            Balanced
          </button>
          <button class="toggle-btn" data-value="model-dominant">
            <i class="fa-solid fa-robot" style="display:block; margin-bottom:4px;"></i>
            Model Led
          </button>
        </div>
      </div>

      <!-- Assessment Output -->
      <div class="results-container" id="resultsBox">
        <div class="status-label" id="resBadge">Assessing...</div>
        <div class="score-display" id="resScore">00</div>
        <h3 id="resTitle" style="margin-bottom: 1rem;">Calculating Resonance</h3>
        <p class="assessment-text" id="resMsg">
          Analyzing the interaction patterns to determine the health of the relationship.
        </p>
      </div>
    </section>

    <!-- Bottom Section: Guiding Pillars -->
    <section class="principles-container">
      <div class="principles-header">
        <h2>Guiding Pillars of Connection</h2>
        <p style="color: var(--text-muted); max-width: 600px; margin: 0 auto;">
          Principles that transform a confusing tool into a reliable partner.
        </p>
      </div>

      <div class="grid-3">
        <div class="principle-card">
          <div class="icon-box">
            <i class="fa-solid fa-compass"></i>
          </div>
          <h3>Defined Intent</h3>
          <p>Standing on your own two feet means knowing what you want. High-quality interactions require clear goals from the user, not random exploration.</p>
        </div>

        <div class="principle-card">
          <div class="icon-box">
            <i class="fa-solid fa-code-branch"></i>
          </div>
          <h3>Iterative Refinement</h3>
          <p>The best results don't happen instantly. They emerge from a cycle of prompt, response, and refinement—a true conversation.</p>
        </div>

        <div class="principle-card">
          <div class="icon-box">
            <i class="fa-solid fa-scale-balanced"></i>
          </div>
          <h3>Respectful Boundaries</h3>
          <p>Understanding the model's limits allows the user to leverage its strengths effectively without frustration or resistance.</p>
        </div>
      </div>
    </section>
  </main>

  <footer>
    <p>&copy; 2023 SynergyProtocol. Assessing the future of Human-AI collaboration.</p>
  </footer>

  <script>
    // State
    const state = {
      intent: 30, // 0-100
      feedback: 'iterative',
      agency: 'collaborative'
    };

    // DOM Elements
    const intentRange = document.getElementById('intentRange');
    const intentVal = document.getElementById('intentVal');
    const feedbackBtns = document.querySelectorAll('#feedbackGroup .toggle-btn');
    const agencyBtns = document.querySelectorAll('#agencyGroup .toggle-btn');

    const resultsBox = document.getElementById('resultsBox');
    const resBadge = document.getElementById('resBadge');
    const resScore = document.getElementById('resScore');
    const resTitle = document.getElementById('resTitle');
    const resMsg = document.getElementById('resMsg');

    // Configuration for Scoring
    const SCORES = {
      feedback: {
        'one-way': 20,
        'reactive': 50,
        'iterative': 90
      },
      agency: {
        'user-dominant': 40,
        'collaborative': 100,
        'model-dominant': 30
      }
    };

    const OUTCOMES = {
      low: {
        label: 'Transactional / Strained',
        title: 'Disconnect',
        color: '#f43f5e', // Rose
        msg: 'The relationship is currently one-sided or confusing. Without clear intent or collaboration, the interaction feels like pulling teeth. This leads to the resistance you initially felt.',
        class: 'low'
      },
      medium: {
        label: 'Functional / Cooperative',
        title: 'Building Trust',
        color: '#fbbf24', // Amber
        msg: 'There is a working dynamic here, but it has not yet reached its full potential. By refining the feedback loop or clarifying intent, you can move from "using" to "partnering".',
        class: 'medium'
      },
      high: {
        label: 'Synergistic / Resonant',
        title: 'High Synergy',
        color: '#2dd4bf', // Teal
        msg: 'This is the state of standing on your own two feet. The relationship is balanced, intent is clear, and the feedback loop allows for genuine co-creation and growth.',
        class: 'high'
      }
    };

    // Event Handlers
    intentRange.addEventListener('input', (e) => {
      state.intent = parseInt(e.target.value);
      updateIntentLabel();
      calculate();
    });

    function updateIntentLabel() {
      if(state.intent < 30) intentVal.textContent = "Vague";
      else if(state.intent < 70) intentVal.textContent = "Developing";
      else intentVal.textContent = "Clear";
    }

    function setupGroup(btns, key) {
      btns.forEach(btn => {
        btn.addEventListener('click', () => {
          btns.forEach(b => b.classList.remove('active'));
          btn.classList.add('active');
          state[key] = btn.dataset.value;
          calculate();
        });
      });
    }

    setupGroup(feedbackBtns, 'feedback');
    setupGroup(agencyBtns, 'agency');

    // Logic
    function calculate() {
      // Weighting: Intent (40%), Feedback (30%), Agency (30%)
      const iScore = state.intent;
      const fScore = SCORES.feedback[state.feedback];
      const aScore = SCORES.agency[state.agency];

      const total = (iScore * 0.4) + (fScore * 0.3) + (aScore * 0.3);
      const roundedScore = Math.round(total);
      
      updateUI(roundedScore);
    }

    function updateUI(score) {
      let outcome;
      
      if (score < 50) outcome = OUTCOMES.low;
      else if (score < 80) outcome = OUTCOMES.medium;
      else outcome = OUTCOMES.high;

      // Update Text
      resScore.textContent = score;
      resBadge.textContent = outcome.label;
      resTitle.textContent = outcome.title;
      resMsg.textContent = outcome.msg;

      // Update Styles
      resScore.style.color = outcome.color;
      resBadge.style.backgroundColor = outcome.color;
      resBadge.style.color = '#0f172a'; // Dark text on bright badge

      // Container Background & Border
      resultsBox.className = 'results-container ' + outcome.class;
    }

    // Initialize
    updateIntentLabel();
    calculate();

  </script>
</body>

</html>