:root {
    --bg: #0a0a0f;
    --surface: #111118;
    --border: #1e1e2e;
    --arrow: #E6E0E0;
    --text: #e2e2f0;
    --muted: #5a5a78;
    --accent-1: #ff6b35; /* Frame */
    --accent-2: #f7c59f; /* Aquire */
    --accent-3: #4ecdc4; /* Compile */
    --accent-4: #34d399; /* Embed */
    --accent-5: #a78bfa; /* Trace */
   
    --line: 1px solid var(--border);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
html{
    scroll-behavior: smooth;
}
  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    
  }

  /* NOISE TEXTURE */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 100;
    opacity: 0.4;
  }

  /* HEADER */
  header {
    padding: 80px 60px 60px;
    border-bottom: var(--line);
    position: relative;
    overflow: hidden;
  }

  header::after {
    content: 'FACET';
    position: absolute;
    right: 0px;
    top: -30px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 280px;
    color: var(--border);
    pointer-events: none;
    line-height: 1;
    letter-spacing: -10px;
  }

  .tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--accent-1);
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
  }

  h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(60px, 10vw, 120px);
    line-height: 0.9;
    letter-spacing: 2px;
    color: var(--text);
    position: relative;
    z-index: 1;
  }

  h1 span {
    color: var(--accent-1);
  }

  .subtitle {
    margin-top: 24px;
    max-width: 580px;
    font-size: 16px;
    color: var(--muted);
    font-style: italic;
    position: relative;
    z-index: 1;
  }

  /* PHILOSOPHY STRIP */
  .philosophy {
    padding: 40px 60px;
    border-bottom: var(--line);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .philosophy-item {
    padding: 0 40px 0 0;
    border-right: var(--line);
    margin-right: 40px;
  }

  .philosophy-item:last-child {
    border-right: none;
    margin-right: 0;
  }

  .philosophy-item .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 8px;
  }

  .philosophy-item p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
  }

  /* MAIN CONTENT */
  main {
    padding: 0 60px 100px;
    
  }

  /* SECTION HEADER */
  .section-label {
    padding: 50px 0 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: var(--line);
    margin-bottom: 0;
  }

  .section-label h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    letter-spacing: 3px;
    color: var(--muted);
  }

  .section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  /* PHASE CARDS */
  .phases {
    display: flex;
    flex-direction: column;
   
  }

  .phase {
    display: grid;
    grid-template-columns: 280px 1fr;
    border-bottom: var(--line);
    min-height: 200px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s forwards;
  }

  .phase:nth-child(1) { animation-delay: 0.1s; }
  .phase:nth-child(2) { animation-delay: 0.2s; }
  .phase:nth-child(3) { animation-delay: 0.3s; }
  .phase:nth-child(4) { animation-delay: 0.4s; }
  .phase:nth-child(5) { animation-delay: 0.5s; }

  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }

  .phase-meta {
    padding: 40px 40px 40px 0;
    border-right: var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .phase-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text);
    letter-spacing: 2px;
  }

  .phase-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 64px;
    line-height: 0.9;
    letter-spacing: 2px;
    margin-top: 12px;
  }

  .phase-trigger {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1px;
    margin-top: 16px;
    font-style: italic;
  }

  .phase-body {
    padding: 40px 0 40px 50px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .phase-desc {
    font-size: 15px;
    color: var(--text);
    max-width: 600px;
    line-height: 1.75;
  }

  .phase-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .action-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
    color: var(--muted);
  }

  .action-item::before {
    content: '→';
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
  }

  .action-item strong {
    color: var(--text);
    font-weight: 400;
  }

  /* COLOR ACCENTS PER PHASE */
  .phase-1 .phase-name { color: var(--accent-1); }
  .phase-2 .phase-name { color: var(--accent-2); }
  .phase-3 .phase-name { color: var(--accent-3); }
  .phase-4 .phase-name { color: var(--accent-4); }
  .phase-5 .phase-name { color: var(--accent-5); }

  .phase-1 .action-item::before { color: var(--accent-1); }
  .phase-2 .action-item::before { color: var(--accent-2); }
  .phase-3 .action-item::before { color: var(--accent-3); }
  .phase-4 .action-item::before { color: var(--accent-4); }
  .phase-5 .action-item::before { color: var(--accent-5); }

  /* AI PROMPT TEMPLATES */
  .prompts-section {
    margin-top: 0;
  }

  .prompt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .prompt-card {
    padding: 40px;
    border-right: var(--line);
    border-bottom: var(--line);
    opacity: 0;
    animation: fadeUp 0.5s forwards;
  }

  .prompt-card:nth-child(even) { border-right: none; }
  .prompt-card:nth-child(1) { animation-delay: 0.1s; }
  .prompt-card:nth-child(2) { animation-delay: 0.2s; }
  .prompt-card:nth-child(3) { animation-delay: 0.3s; }
  .prompt-card:nth-child(4) { animation-delay: 0.4s; }

  .prompt-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--accent-1);
    text-transform: uppercase;
    margin-bottom: 16px;
  }

  .prompt-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 2px;
    color: var(--text);
    margin-bottom: 20px;
  }

  .prompt-box {
    background: var(--surface);
    border: var(--line);
    border-radius: 4px;
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.8;
    color: var(--text);
    position: relative;
  }

  .prompt-box .var {
    color: var(--accent-2);
    font-style: italic;
  }

  .prompt-box .key {
    color: var(--accent-3);
  }

  .copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--border);
    border: none;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    padding: 4px 10px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s;
    border-radius: 2px;
  }

  .copy-btn:hover {
    background: var(--accent-1);
    color: var(--bg);
  }

  /* THE EMBED SYSTEM */
  .embed-section .section-label { margin-bottom: 0; }

  .embed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: var(--line);
  }

  .embed-col {
    padding: 40px;
    border-right: var(--line);
  }

  .embed-col:last-child { border-right: none; }

  .embed-col-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--accent-3);
    margin-bottom: 20px;
  }

  .embed-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
  }

  .embed-item:last-child { border-bottom: none; }

  .embed-item strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 4px;
  }

  /* REVIEW RHYTHM */
  .rhythm-section {
    border-bottom: var(--line);
    padding: 40px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .rhythm-item {
    padding: 0 40px 0 0;
    border-right: var(--line);
    margin-right: 0;
  }

  .rhythm-item:last-child { border-right: none; }

  .rhythm-freq {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    line-height: 1;
    color: var(--accent-4);
    margin-bottom: 8px;
    padding: 0 40px;
  }

  .rhythm-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted);
    padding: 0 40px;
    margin-bottom: 12px;
  }

  .rhythm-desc {
    font-size: 13px;
    color: var(--muted);
    padding: 0 40px;
    line-height: 1.6;
  }

  /* FOOTER MANTRA */
  footer {
    padding: 60px;
    border-top: var(--line);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }

  .mantra {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(24px, 4vw, 48px);
    color: var(--border);
    letter-spacing: 4px;
    line-height: 1.1;
    transition: color 0.3s;
  }

  .mantra:hover {
    color: var(--muted);
  }

  .version {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    text-align: right;
  }

  /* FLOW DIAGRAM */
  .flow {
    padding: 40px 0;
    border-bottom: var(--line);
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
  }

  .flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 120px;
    text-decoration: none;
  }

  .flow-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.2;
    transition: transform 0.2s;
  }

  .flow-circle:hover { transform: scale(1.15); }

  .flow-node-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    margin-top: 10px;
    text-align: center;
  }

  .flow-arrow {
    flex: 1;
    height: 1px;
    background: var(--arrow);
    position: relative;
    min-width: 30px;
  }

  .flow-arrow::after {
    content: '▶';
    position: absolute;
    right: -6px;
    top: -5px;
    font-size: 8px;
    color: var(--arrow);
  }

  .fc-1 { border-color: var(--accent-1); color: var(--accent-1); }
  .fc-2 { border-color: var(--accent-2); color: var(--accent-2); }
  .fc-3 { border-color: var(--accent-3); color: var(--accent-3); }
  .fc-4 { border-color: var(--accent-4); color: var(--accent-4); }
  .fc-5 { border-color: var(--accent-5); color: var(--accent-5); }

  .fn-1 { color: var(--accent-1); }
  .fn-2 { color: var(--accent-2); }
  .fn-3 { color: var(--accent-3); }
  .fn-4 { color: var(--accent-4); }
  .fn-5 { color: var(--accent-5); }

  @media (max-width: 900px) {
    header, main, footer { padding-left: 24px; padding-right: 24px; }
    .philosophy, .embed-grid { grid-template-columns: 1fr; }
    .philosophy-item { border-right: none; border-bottom: var(--line); padding-bottom: 24px; margin-bottom: 24px; }
    .phase { grid-template-columns: 1fr; }
    .phase-meta { border-right: none; border-bottom: var(--line); padding-right: 0; padding-bottom: 24px; }
    .phase-body { padding-left: 0; padding-top: 24px; }
    .prompt-grid, .rhythm-section { grid-template-columns: 1fr; }
    .prompt-card:nth-child(even) { border-right: var(--line); }
    .rhythm-item { border-right: none; border-bottom: var(--line); padding-bottom: 24px; margin-bottom: 24px; }
    header::after { font-size: 120px; }
  }