[v-cloak] {
    display: none !important;
}

body { 
    font-family: 'Inter', sans-serif; 
    font-variation-settings: "opsz" 30;
    font-feature-settings: "ss07" on, "cv05" on, "ss03" on, "cv11" on, "cv01" on, "cv09" on;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

.font-mono{
    font-family: 'Geist mono';
    letter-spacing: 0.02em;
}

/* Fluid Heading Classes */
/* f-7 (h1): Tighter on desktop, looser on mobile */
.f-7 { 
  font-size: clamp(3rem, 2.3182rem + 2.7273vi, 4.5rem); 
  line-height: 1.1!important; 
}

/* f-6 (h2) */
.f-6 { 
  font-size: clamp(2.25rem, 1.7386rem + 2.0455vi, 3.375rem); 
  line-height: 1.2!important; 
}

/* f-5 (h3) */
.f-5 { 
  font-size: clamp(1.875rem, 1.4489rem + 1.7045vi, 2.8125rem); 
  line-height: 1.3!important; 
}

/* f-4 (h4) */
.f-4 { 
  font-size: clamp(1.5rem, 1.1591rem + 1.3636vi, 2.25rem); 
  line-height: 1.3!important; 
}

/* f-1 (p): Your requested logic (Less on desktop, more on mobile) */
.f-1 { 
  font-size: clamp(0.6667rem, 0.5152rem + 0.6061vi, 1rem); 
  line-height: 1.3!important; 
}

/* -----------------------------------------------------------------
 * Landing Page
 * ----------------------------------------------------------------- */
details summary::-webkit-details-marker {
    display: none;
}

details summary {
    cursor: pointer;
    user-select: none;
}

details[open] summary svg {
    transform: rotate(90deg);
}

details summary svg {
    transition: transform 0.3s ease;
}

.shadow-macOS {
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
                rgba(0, 0, 0, 0.12) 0px -12px 30px,
                rgba(0, 0, 0, 0.12) 0px 4px 6px,
                rgba(0, 0, 0, 0.17) 0px 12px 13px,
                rgba(0, 0, 0, 0.09) 0px -3px 5px
            !important;
}

[data-noise] {
    position: relative;
}

[data-noise]::after {
    content: '';
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0) url(img/bg-noise.png) repeat 0 0;
    background-size: 220px;
    opacity: 0.2;
    will-change: transform;
    z-index: 100;
    pointer-events: none;
}



[data-heading-mask="left"] {
    padding-block: 0.1em;
    margin-block: -0.1em;
    background-image: radial-gradient(circle farthest-side at 0% 0%, #cab1ff 5%, #146ef5 10%, currentColor 20%);
    background-size: 350% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-glow] {
    outline: 1px solid #30afff;
    box-shadow: inset 0 0 4px 1px #126ff4f5,
                inset 0 0 30px 4px #0062ff4d,
                inset 0 0 120px 10px #0015ff33,
                0 0 6px 1px #126ff4f5,
                0 0 30px 4px #0062ff4d,
                0 0 300px 20px #0015ff33;
}

[data-glow="hover"] {
    transition: outline 0.1s, box-shadow 0.3s ease-out;
    outline: 1px solid transparent;
    box-shadow: inset 0 0 4px 1px transparent,
                inset 0 0 30px 4px transparent,
                inset 0 0 120px 10px #0015ff33,
                0 0 6px 1px transparent,
                0 0 30px 4px transparent,
                0 0 300px 20px transparent;
    will-change: box-shadow;
}

[data-glow="hover"]:hover {
    outline: 1px solid #30afff;
    box-shadow: inset 0 0 4px 1px #126ff4f5,
                inset 0 0 30px 4px #0062ff4d,
                inset 0 0 120px 10px #0015ff33,
                0 0 6px 1px #126ff4f5,
                0 0 30px 4px #0062ff4d,
                0 0 300px 20px #0015ff33;
}

.hero-wrapper {
    position: absolute;
    width: 100vw;
    height: 100vh;
    overflow-y: hidden;
    z-index: -1;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1600px;
    height: 100vh;
}

.star-container {
  pointer-events: none;
  width: 1200px;
  max-width: 100%;
  translate: 0 30vh;
  height: auto;
  margin: 0 auto;
  display: block;
  position: relative;
  overflow: visible;
}

.star-v2 {
  fill: white;
  opacity: 0;
  scale: 0;
  /* This pins the scale origin to the exact center of the circle radius */
  transform-origin: center;
  transform-box: fill-box;
  animation: starLife var(--speed, 5s) infinite ease-in-out;
  animation-delay: var(--delay, 0s);
}

@keyframes starLife {
  0%, 10% { opacity: 0; scale: 0; }
  15% { opacity: 1; scale: 1; }
  15%, 45% { opacity: 1; scale: 1; }
  55% { opacity: 0; scale: 0; } /* Scales down to 0 over ~300-500ms */
  100% { opacity: 0; scale: 0; }
}

.s1 { --speed: 7s;  --delay: 1.2s; }
.s2 { --speed: 5s;  --delay: 0.5s; }
.s3 { --speed: 9s;  --delay: 3.0s; }
.s4 { --speed: 6s;  --delay: 1.8s; }
.s5 { --speed: 8s;  --delay: 0.2s; }
.s6 { --speed: 10s; --delay: 4.5s; }
.s7 { --speed: 4s;  --delay: 2.1s; }
.s8 { --speed: 11s; --delay: 0.8s; }
.s9 { --speed: 6s;  --delay: 5.5s; }

.mesh-1 {
    opacity: 1;
    pointer-events: none;
    cursor: auto;
    width: 1600px;
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0%) scale(1.6);
}

.mesh-2 {
    opacity: 1;
    pointer-events: none;
    width: 1600px;
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 5%) scale(1.2);
}

.mesh-3 {
    pointer-events: none;
    width: 800px;
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -53%) scale(1.2);
    opacity: 0.6;
}

/* -----------------------------------------------------------------
 * App
 * ----------------------------------------------------------------- */
/* Editor Styles */
.content-block { background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: all 0.2s; margin-bottom: 24px; border: 2px solid transparent; }
.block-header { padding: 8px 16px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; border-radius: 6px 6px 0 0; display: flex; justify-content: space-between; align-items: center; }

/* Rich Editor Box */
.editor-box { display: flex; flex-direction: column; height: 100%; background: transparent; border-radius: 4px; transition: border-color 0.2s; position: relative; }

/* Multi-column Editor Box styling */
.editor-box, .multi-column-editor {
    background: #FAFAF9;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 16px;
}

    .dark .editor-box, .dark .multi-column-editor{
        background-color: rgba(250, 250, 250, 0.04);
    }

.multi-column-editor .quill-editor-container {
    min-height: 120px;
}
.multi-column-editor .quill-editor-container .ql-editor {
    min-height: 120px;
}
.editor-toolbar { padding: 6px; border-bottom: 1px solid #f1f5f9; background: #fdfdfd; display: flex; gap: 4px; flex-wrap: wrap; }
.editor-btn { padding: 4px 8px; border-radius: 4px; cursor: pointer; color: #64748b; font-size: 0.8rem; background: transparent; border: none; }
.editor-btn:hover { background: #e2e8f0; color: #334155; }

/* Quill Editor Container */
.quill-editor-container { flex-grow: 1; min-height: 150px; position: relative; }
.quill-editor-container .ql-editor {
    padding: 0px;
    min-height: 150px;
    font-size: 1rem;
    line-height: 1.6;
    /* color: #333333; */
    font-family: 'Inter', sans-serif;
    overflow: visible !important;
}

.dark .quill-editor-container .ql-editor{
    color: #E5E5E5;
}
.dark .ql-bubble .ql-tooltip{
    background: #171717;
}

/* Quill Editor Content Styles */
.quill-editor-container .ql-editor ul { list-style-type: disc; margin-left: 20px; }
.quill-editor-container .ql-editor ol { list-style-type: decimal; margin-left: 20px; }
.quill-editor-container .ql-editor h1 { font-weight: 600; font-size: 1.8em!important; margin-top: 0.8em; margin-bottom: 0.4em; color: #0B0A0A; line-height: 1.1; }
.quill-editor-container .ql-editor h2 { font-weight: 600; font-size: 1.5em!important; margin-top: 0.75em; margin-bottom: 0.35em; color: #0B0A0A; line-height: 1.1; }
.quill-editor-container .ql-editor h3 { font-weight: 600; font-size: 1.25em!important; margin-top: 0.6em; margin-bottom: 0.3em; color: #0B0A0A; line-height: 1.1; }
.quill-editor-container .ql-editor blockquote { border-left: 4px solid #D6D3D1; padding-left: 16px; margin: 16px 0; font-style: italic; color: #57534D; }
.quill-editor-container .ql-editor pre { background: #A6A09B; padding: 12px; border-radius: 6px; font-family: monospace; font-size: 0.9em; overflow-x: auto; margin: 16px 0; }
.quill-editor-container .ql-editor b, .quill-editor-container .ql-editor strong{ font-weight: 700; }
.quill-editor-container .ql-editor a { color: #0084d1 !important; text-decoration: underline; cursor: pointer; }


.dark .quill-editor-container .ql-editor h1,
.dark .quill-editor-container .ql-editor h2,
.dark .quill-editor-container .ql-editor h3{
    color: #F5F5F5;
}


/* Internal page links (from mentions) */
.quill-editor-container .ql-editor a[href^="#"] {
    background-color: #eff6ff;
    border-radius: 4px;
    padding: 0 2px;
    transition: background-color 0.2s;
}
.quill-editor-container .ql-editor a[href^="#"]:hover {
    background-color: #dbeafe;
}

/* Quill Mention styling */
.quill-editor-container .ql-editor .mention {
    color: #ea580c;
    cursor: pointer;
    background-color: rgba(49, 144, 255, 0.2);
    border:1px solid rgba(49, 144, 255, 0.5);
    color: #55B2FF;
    border-radius: 4px;
    padding: 2px 4px;
    transition: all 0.2s;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
}
.quill-editor-container .ql-editor .mention:hover {
    background-color: rgba(49, 144, 255, 0.6);
    border-color: #3190FF;
    color: #ffffff;

}

/* Quill Bubble Toolbar - ensure it appears above sidebar */
.ql-bubble .ql-tooltip {
    z-index: 100 !important;
}

/* Fix arrow icon position for quill bubble */
.ql-bubble .ql-tooltip:not(.ql-flip) .ql-tooltip-arrow {
   display: none!important;
}

/* Quill Mention Plugin Styles */
.ql-mention-list-container {
    position: absolute !important;
    z-index: 1000 !important;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 240px;
    overflow-y: auto;
    min-width: 180px;
    pointer-events: auto !important;
}
.ql-mention-list {
    list-style: none;
    margin: 0;
    padding: 4px;
}
.ql-mention-list-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #334155;
    border-radius: 6px;
    margin: 2px 4px;
    transition: background-color 0.15s ease;
}
.ql-mention-list-item:hover, .ql-mention-list-item.selected {
    background: #f1f5f9;
}
.ql-mention-list-item .flex {
    display: flex;
    align-items: center;
    gap: 8px;
}
.quill-editor-container .ql-editor.ql-blank::before { color: #A8A29E; font-style: normal; left: 0; }


.dark .quill-editor-container .ql-editor.ql-blank::before{
    color: #787878;
}



/* Status Colors */
.status-draft { border-color: #fca5a5; }
.status-wip { border-color: #fde047; }
.status-alternative { border-color: #60a5fa; }
.status-final { border-color: #86efac; }
.status-archived { opacity: 0.6; border-color: #e2e8f0; }

/* Modals */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 50; display: none; background: rgba(9, 9, 11 ,0.25); /* backdrop-filter: blur(3px); */ }
.modal-overlay.open { display: flex; align-items: center; justify-content: center; }


.dark .modal-overlay { background: rgba(0, 0, 0,0.75); }


.modal-content { width: 80%; height: 80%; display: flex; flex-direction: column; }
.map-wrapper { width: 100%; height: 100%; position: relative; }

/* Sidebar fade mask */
aside .overflow-y-auto { padding-bottom: 4rem; }

/* Status Select */
.status-select {
    width: auto;
    min-width: fit-content;
    border: 1px solid;
    padding: 2px 8px;
}

/* Visual Map Tree Connectors (pseudo-elements that can't be expressed in Tailwind) */
.vm2-project-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    border-left: 2px solid #d4d4d4;
    height: 10px;
}


.dark .vm2-project-title::after {
    border-left-color: #525252;
}


.vm2-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #d4d4d4;
    height: 24px;
}

.dark .vm2-children::before {
    border-left-color: #525252;
}

.vm2-tree > .vm2-node::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 50%;
    border-left: 2px solid #d4d4d4;
    height: 24px;
}


.dark .vm2-tree > .vm2-node::before {
    border-left-color: #525252;
}


.vm2-tree > .vm2-node:not(:only-child)::after {
    content: '';
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    border-top: 2px solid #d4d4d4;
}


.dark .vm2-tree > .vm2-node:not(:only-child)::after {
    border-top-color: #525252;
}


.vm2-tree > .vm2-node:first-child::after { left: 50%; }
.vm2-tree > .vm2-node:last-child::after { right: 50%; }
.vm2-tree > .vm2-node:only-child::after { display: none; }
.vm2-tree > .vm2-node:only-child { padding: 0; }

.vm2-children > .vm2-node::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 50%;
    border-left: 2px solid #d4d4d4;
    height: 24px;
}

.dark .vm2-children > .vm2-node::before {
    border-left-color: #525252;
}


.vm2-children > .vm2-node::after {
    content: '';
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    border-top: 2px solid #d4d4d4;
}

.dark .vm2-children > .vm2-node::after {
    border-top-color: #525252;
}


.vm2-children > .vm2-node:first-child::after { left: 50%; }
.vm2-children > .vm2-node:last-child::after { right: 50%; }
.vm2-children > .vm2-node:only-child::after { display: none; }
.vm2-children > .vm2-node:only-child { padding: 0; }

/* Sitemap Table */
.sitemap-table {
    border-collapse: collapse;
    width: 100%;
}
.sitemap-table thead th {
    font-weight: normal;
}
.sitemap-table tbody tr td {
    padding: 8px 20px;
}
.sitemap-table tbody tr td:first-child {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}
.sitemap-table tbody tr td:last-child {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}
.sitemap-table tbody tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.025);
}
.sitemap-table tbody tr:hover td {
    background: rgba(0, 0, 0, 0.05);
}

.dark .sitemap-table tbody tr:nth-child(even) td {
    background: rgba(245, 245, 245, 0.03);
}
.dark .sitemap-table tbody tr:hover td {
    background: rgba(245, 245, 245, 0.05);
}


/* Tree indentation lines */
.tree-line {
    position: absolute;
    background: #d4d4d8;
}

.dark .tree-line {
    background: #525252;
}

:root {
  /* A custom "elastic" spring easing defined with the new linear() syntax */
  --spring-easing: linear(
    0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017,
    1.077, 1.101, 1.103, 1.101, 1.089 27.8%, 1.035 33.4%, 1.006 37.4%,
    0.991 41.6%, 0.986 45.7%, 0.991, 1.002 58.2%, 1.005 66.6%, 1 100%
  );

  --power3-inOut: linear(
    0 0%, 0.0029 13.8%, 0.0184 21.9%,
    0.0339 25.51%, 0.0551 28.81%,
    0.0827 31.88%, 0.1168 34.76%,
    0.1962 39.57%, 0.3005 44.02%,
    0.4084 47.53%, 0.6242 53.45%,
    0.7493 57.93%, 0.8495 62.97%,
    0.8888 65.67%, 0.9213 68.51%,
    0.9629 73.9%, 0.9876 80.16%,
    0.998 87.5%, 1 100%
    );

    --expo-out: linear(
    0 0%, 0.1684 2.66%, 0.3165 5.49%,
    0.446 8.52%, 0.5581 11.78%,
    0.6535 15.29%, 0.7341 19.11%,
    0.8011 23.3%, 0.8557 27.93%,
    0.8962 32.68%, 0.9283 38.01%,
    0.9529 44.08%, 0.9711 51.14%,
    0.9833 59.06%, 0.9915 68.74%, 1 100%
    );

    --power3-out: linear(
    0 0%, 0.1538 4.09%, 0.2926 8.29%,
    0.4173 12.63%, 0.5282 17.12%,
    0.6255 21.77%, 0.7099 26.61%,
    0.782 31.67%, 0.8425 37%, 0.8887 42.23%,
    0.9257 47.79%, 0.9543 53.78%,
    0.9752 60.32%, 0.9883 67.11%,
    0.9961 75%, 1 100%
    );

    --power3-in: linear(
    0 0%, 0.0039 25%, 0.0117 32.89%,
    0.0248 39.68%, 0.0457 46.22%,
    0.0743 52.21%, 0.1113 57.77%,
    0.1575 63%, 0.218 68.33%, 0.2901 73.39%,
    0.3745 78.23%, 0.4718 82.88%,
    0.5827 87.37%, 0.7074 91.71%,
    0.8462 95.91%, 1 100%
    );

}

.animate-in {
  --start-y: 20vh;
  --start-scale: 1;
  --easing: ease-in-out; 
  --duration: 1s;

  /* This will no longer conflict with transform: translateX(-50%) */
  animation: fadeUp var(--duration) var(--easing) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    translate: 0 var(--start-y);
    scale: var(--start-scale);
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}